/*------------------------------------
--- メインスライダー
/* -------------------------------- */
.p-top__mainslider {
	width: 95%;
	margin: 0 auto;
	height: 46vw;
	overflow: hidden;
	position: relative;
	border-radius: 25px;
	z-index: 8888;
}

.p-top__mainslider>div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 46vw;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 9999;
	opacity: 0;
	animation-name: fade;
	animation-duration: 8s;
	animation-iteration-count: infinite;
}

@keyframes fade {
	0% {
		opacity: 0;
	}

	20% {
		opacity: 1;
	}

	80% {
		opacity: 0;
		transform: scale(1.2);
	}

	100% {
		z-index: 0;
		opacity: 0;
	}
}

.p-top__mainslider>div:nth-child(1) {
	background-image: url("../img/top-01.png");
	animation-delay: 0s;
}

.p-top__mainslider>div:nth-child(2) {
	background-image: url("../img/top-02.png");
	animation-delay: 2s;
}

.p-top__mainslider>div:nth-child(3) {
	background-image: url("../img/top-03.png");
	animation-delay: 4s;
}

.p-top__mainslider>div:nth-child(4) {
	background-image: url("../img/top-04.png");
	animation-delay: 6s;
}

.p-top__mainslider-titlewrap {
	position: relative;
	z-index: 8888;
}

.p-top__mainslider-title {
	display: inline-flex;
	position: absolute;
	background: #fff;
	padding: 5px 15px;
	border-radius: 5px;
	left: 60px;
	bottom: 30px;
	font-size: 44px;
	font-weight: 500;
}

.p-top__mainslider-title-egao {
	display: block;
	width: 150px;
	margin-left: -24px;
}


/*------------------------------------
--- ABOUT 函館を中心に展開
/* -------------------------------- */
.p-top__about-text {
	width: calc(40% - 60px);
}

.p-top__about-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.p-top__about-img-wrap {
	width: 60%;
	height: 400px;
	border-radius: 25px;
	overflow: hidden;
	position: relative;
}

.p-top__about-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media screen and (max-width: 1200px) {
	.p-top__about-inner {
		display: block;
	}

	.p-top__about-text {
		width: 100%;
		max-width: 600px;
		margin: 30px auto 0;
	}

	.p-top__about-img-wrap {
		width: 100%;
		max-width: 600px;
		height: 260px;
		margin: 0 auto;
	}
}


@media screen and (max-width: 768px) {
	.p-top__mainslider {
		height: 600px;
	}

	.p-top__mainslider>div {
		height: 100%;
	}

	.p-top__mainslider-title-egao {
		width: 100px;
	}

	.p-top__mainslider-title {
		font-size: 25px;
		left: 10px;
		bottom: 10px;
	}
}

/*------------------------------------
--- SERVICE サービス
/* -------------------------------- */
.p-top__service {
	display: block;
	background: #fff5eb;
	padding: 50px 0 0;
}

.p-top__service-list {
	display: grid;
	grid-gap: 35px;
	grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
	margin: 20px auto 0;
	width: 100%;
}

.p-top__service-list a {
	transition: .3s;
}

.p-top__service-list a:hover {
	opacity: 0.7;
	transition: opacity .3s;
}

.p-top__service-title {
	font-size: 28px;
	color: #e95414;
}

.p-top__service-title {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	transition: .3s;
}

.p-top__service-title:after {
	background: #e95414;
	color: #fff;
	content: "→";
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
}

.p-top__service-img-wrap {
	width: 100%;
	height: 300px;
	border-radius: 25px;
	overflow: hidden;
	position: relative;
}

.p-top__service-img {
	width: 100%;
	object-fit: contain;
	object-position: center;
}

.p-top__service-under-img-wrap {
	width: 100%;
	height: 300px;
	overflow: hidden;
	position: relative;

}

.p-top__service-under-img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	width: 100%;
	object-fit: contain;
	object-position: center;
}

@media screen and (max-width: 1020px) {
	.p-top__service-list {
		grid-gap: 20px;
		grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	}

	.p-top__service-img-wrap {
		max-height: 270px;
	}
}

@media screen and (max-width: 768px) {
	.p-top__service-list {
		grid-gap: 20px;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}

	.p-top__service-img-wrap {
		max-height: 230px;
	}

	.p-top__service-title {
		font-size: 22px;
	}
}

/*------------------------------------
--- RECRUIT リクルート
/* -------------------------------- */
.p-top__recruit-text>.con-title__en::before {
	background-color: #FFF;
}

.p-top__recruit-label {
	margin: 0 0 16px;
	font-weight: 700;
	letter-spacing: .08em;
}

.p-top__recruit-title {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 44px);
	line-height: 1.25;
}

.p-top__recruit-desc {
	margin: 0 0 28px;
	line-height: 1.8;
}

.p-top__recruit-cta {
	margin-top: 24px;
}

.p-top__recruit-inner {
	background: #e95414;
	border: solid 5px #f9be00;
	border-radius: 20px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
}

.p-top__recruit-img {
	flex: 1;
	position: relative;
	min-width: 0;
}

.p-top__recruit-img>img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.p-top__recruit-text {
	flex: 1;
	min-width: 0;
	padding: 48px 56px;
}



@media screen and (max-width: 768px) {
	.p-top__recruit-inner {
		display: block;
	}

	.p-top__recruit-img {
		aspect-ratio: 4 / 3;
		width: 100%;
	}

	.p-top__recruit-text {
		padding: 20px;
	}
}