/**
 * Top page styles.
 */

body.home {
	background-image: url("../../img/top_body_bg.webp");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% auto;
}

.top-fv {
	background-image: url("../../img/fv_bg.webp") !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.fv_top {
	background-image: url("../../img/fv_top.webp") !important;
	background-position: left top !important;
	background-repeat: no-repeat !important;
	background-size: 100% auto !important;
}

.top-fv,
.top-movie-section,
.aboutus-deco-section,
.top-point-section,
.top-news-section,
.service-deco-section,
.recruit-deco-section {
	position: relative;
	overflow: visible;
}

.top-fv::after,
.top-movie-section::after,
.aboutus-deco-section::before,
.top-point-section::after {
	position: absolute;
	z-index: 1;
	content: "";
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.top-fv::after {
	right: -670px;
	bottom: 0;
	width: 2775px;
	aspect-ratio: 2775 / 58;
	background-image: url("../../img/top_fv_text.svg");
}

.top-movie-section::after {
	left: 0;
	bottom: 0;
	width: min(100vw, 1390px);
	aspect-ratio: 1390 / 58;
	background-image: url("../../img/top_movie_text.svg");
}

.top-movie-bg {
	margin-top: 0 !important;
}

.top-recruit-heading {
	font-size: 32px !important;
}

.recruit-deco-section {
	position: relative;
	overflow: visible;
}

.recruit-deco-section::after {
	position: absolute;
	right: clamp(16px, 7vw, 110px);
	top: 72%;
	z-index: 1;
	width: clamp(220px, 30vw, 471px);
	aspect-ratio: 471 / 264;
	content: "";
	background: url("../../img/top_recruit_deco.svg") center / contain no-repeat;
	pointer-events: none;
}

.recruit-deco-section > * {
	position: relative;
	z-index: 2;
}

.service-deco-section {
	position: relative;
	overflow: visible;
}

.service-deco-section::before,
.service-deco-section::after {
	position: absolute;
	z-index: 1;
	content: "";
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
}

.service-deco-section::before {
	top: 13px;
	right: clamp(-80px, -5vw, -24px);
	z-index: 3;
	width: clamp(320px, 48vw, 676px);
	aspect-ratio: 676 / 385;
	background-image: url("../../img/top_service_deco01.svg");
}

.service-deco-section::after {
	left: 0;
	top: 96%;
	width: clamp(48px, 7vw, 78px);
	aspect-ratio: 78 / 76;
	background-image: url("../../img/top_service_deco02.svg");
}

.service-deco-section > * {
	position: relative;
	z-index: 2;
}

.service-deco-section .icd-columns-slider {
	position: relative;
}

.top-news-section::before {
	position: absolute;
	right: 0;
	top: 100px;
	z-index: 1;
	width: clamp(132px, 18vw, 262px);
	aspect-ratio: 262 / 460;
	content: "";
	background: url("../../img/top_news_deco01.svg") center / contain no-repeat;
	pointer-events: none;
}

.top-news-section::after {
	position: absolute;
	right: 0;
	top: -13px;
	z-index: 1;
	width: min(100vw, 1002px);
	aspect-ratio: 1002 / 80;
	content: "";
	background: url("../../img/top_service_text.svg") center / contain no-repeat;
	pointer-events: none;
}

.aboutus-deco-section {
	position: relative;
	overflow: visible;
}

.aboutus-deco-section::before {
	right: 0;
	bottom: -22px;
	z-index: 4;
	width: min(100vw, 1221px);
	aspect-ratio: 1221 / 58;
	background-image: url("../../img/top_about_text.svg");
}

.aboutus-deco-section::after {
	position: absolute;
	right: 19%;
	top: 86%;
	z-index: 3;
	width: clamp(300px, 40vw, 556px);
	aspect-ratio: 556 / 280;
	content: "";
	background: url("../../img/top_aboutus_deco.svg") center / contain no-repeat;
	pointer-events: none;
}

.aboutus-deco-section > * {
	position: relative;
	z-index: 2;
}

.top-point-section::after {
	left: 0;
	bottom: 0;
	width: min(100vw, 866px);
	aspect-ratio: 866 / 58;
	background-image: url("../../img/top_point_text.svg");
}

.top-movie-video {
	position: relative;
	overflow: hidden;
	background-color: #000;
}

.top-movie-video video {
	display: block;
	width: 100%;
	background-color: #000;
}

.top-movie-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	padding: 0;
	border: 0;
	background-color: #000;
	color: #fff;
	font: inherit;
	cursor: pointer;
	transition: opacity 0.4s ease;
}

.top-movie-video.is-playing .top-movie-video__overlay {
	opacity: 0;
	pointer-events: none;
}

.top-movie-video__visual {
	width: 100%;
	height: 100%;
	background-image: url("../../img/movie_thumbnail.webp");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

@media (max-width: 1024px) {
	.top-movie-section::after,
	.aboutus-deco-section::before,
	.top-point-section::after,
	.top-news-section::after {
		display: none;
	}

	.top-point-section .wp-block-columns.is-style-step-up {
		flex-direction: column;
		gap: 20px;
		row-gap: 20px;
		margin-top: 3rem !important;
		--wp--style--block-gap: 20px;
	}

	.top-point-section .wp-block-columns.is-style-step-up > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
		margin-top: 0;
	}

	.top-point-section .top-point-card-title {
		text-align: center !important;
	}

	.service-deco-section .icd-columns-slider__button,
	.service-deco-section .icd-columns-slider__button::before {
		width: 24px !important;
		height: 24px !important;
	}

	.service-deco-section .wp-block-columns.is-style-slider {
		--icd-slider-gap: 24px;
	}

	.service-deco-section .wp-block-columns.is-style-slider > .wp-block-column {
		padding: 24px 22px !important;
	}

	.service-deco-section .wp-block-columns.is-style-slider > .wp-block-column > .wp-block-group {
		gap: 24px;
		row-gap: 24px;
		--wp--style--block-gap: 24px;
	}

	.service-deco-section .wp-block-columns.is-style-slider > .wp-block-column > .wp-block-group > .wp-block-group:first-child {
		gap: 0;
		column-gap: 0;
	}

	.service-deco-section .wp-block-columns.is-style-slider .has-large-font-size {
		font-size: 18px !important;
		line-height: 1.65 !important;
	}

	.service-deco-section .wp-block-columns.is-style-slider .top-service-card-title {
		font-size: 18px !important;
		line-height: 1.45 !important;
	}

	.service-deco-section .wp-block-columns.is-style-slider .top-service-card-index-number .has-barlow-font-family.has-large-font-size {
		font-size: 14px !important;
		line-height: 1 !important;
		letter-spacing: 0.08em !important;
	}

	.service-deco-section .wp-block-columns.is-style-slider .top-service-card-index-number .has-barlow-font-family:not(.has-large-font-size) {
		min-width: 1.35em;
		font-size: 48px !important;
		line-height: 0.7 !important;
		white-space: nowrap;
	}

	.service-deco-section .top-service-card-title-wrap {
		padding: 0 0 0 18px !important;
		margin-top: 6px;
	}

	.service-deco-section .wp-block-columns.is-style-slider .wp-block-image {
		margin-top: 8px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.top-fv::after {
		right: -2008px;
	}

	.service-deco-section .icd-columns-slider {
		box-sizing: border-box;
		width: calc(100vw - 48px);
		max-width: none;
		margin-right: calc(50% - 50vw + 24px);
		margin-left: calc(50% - 50vw + 24px);
		padding-right: 12px;
		padding-left: 12px;
	}

	.service-deco-section .icd-columns-slider__button--prev {
		left: -6px;
	}

	.service-deco-section .icd-columns-slider__button--next {
		right: -6px;
	}

	.service-deco-section .wp-block-columns.is-style-slider > .wp-block-column {
		flex-basis: calc((100% - var(--icd-slider-gap)) / 2) !important;
		max-width: calc((100% - var(--icd-slider-gap)) / 2);
	}
}

@media (max-width: 767px) {
	body.home {
		background-image: none;
	}

	.top-fv::after,
	.top-movie-section::after {
		bottom: -22px;
		width: 760px;
	}

	.top-fv::after {
		left: 0;
		right: auto;
		bottom: 0;
		width: 1164px;
		background-position: left center;
	}

	.top-fv {
		background-image: url("../../img/top_fv_bg_sp.webp") !important;
		background-position: bottom left !important;
		background-repeat: no-repeat !important;
		background-size: 100% auto !important;
		padding-top: 90px !important;
		padding-bottom: 80px !important;
	}

	.top-fv-logo,
	.top-fv-logo img {
		width: 142px !important;
		height: auto !important;
	}

	.top-fv-logo {
		margin-bottom: 10px !important;
	}

	.top-fv-logo-sub,
	.top-fv-logo-sub img {
		width: 201px !important;
		height: auto !important;
	}

	.top-fv-logo-sub {
		margin-top: 10px !important;
	}

	.aboutus-deco-section::before {
		right: -30px;
		bottom: -24px;
		width: 520px;
	}

	.aboutus-deco-section {
		background-image: url("../../img/top_body_bg_sp.webp");
		background-position: center top;
		background-repeat: no-repeat;
		background-size: 100% auto;
	}

	.top-point-section::after {
		bottom: -26px;
		width: 430px;
	}

	.top-movie-section {
		padding-top: 0 !important;
		padding-bottom: 70px !important;
	}

	.top-point-section {
		background-position: 98% 97% !important;
		background-repeat: no-repeat !important;
		background-size: 80px !important;
		padding-top: 0 !important;
		margin-bottom: 40px !important;
	}

	.top-point-section.wp-block-mytheme-deco-bg-group::before,
	.top-point-section .wp-block-mytheme-deco-bg-group::before {
		border-radius: 0 48px 48px 0;
	}

	.top-point-section .wp-block-columns.is-style-step-up .wp-block-image img {
		width: 69px !important;
		height: auto;
	}

	.top-news-section {
		background-image: url("../../img/top_body_bg_sp.webp");
		background-position: center top;
		background-repeat: no-repeat;
		background-size: 100% auto;
		padding-top: 0 !important;
	}

	.top-news-section::before {
		top: 10px;
		width: 120px;
	}

	.recruit-deco-section::after {
		right: -40px;
		top: 10%;
		width: 220px;
	}

	.service-deco-section::before {
		top: 113px;
		right: 0;
		width: 190px;
	}

	.service-deco-section {
		margin-top: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 40px !important;
	}

	.service-deco-section::after {
		left: 24px;
		top: 98%;
		width: 54px;
	}

	.service-deco-section .icd-columns-slider {
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		padding-right: 18px;
		padding-left: 18px;
	}

	.service-deco-section .icd-columns-slider__button--prev {
		left: -8px;
	}

	.service-deco-section .icd-columns-slider__button--next {
		right: -8px;
	}

	.service-deco-section .wp-block-columns.is-style-slider {
		box-sizing: border-box;
		width: 100%;
		max-width: none !important;
		scroll-padding: 0;
	}

	.service-deco-section .wp-block-columns.is-style-slider > .wp-block-column {
		box-sizing: border-box;
		flex: 0 0 100% !important;
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
		scroll-snap-align: center;
	}

	.service-deco-section .wp-block-columns.is-style-slider .wp-block-group:has(> .wp-block-image) {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.aboutus-deco-section::after {
		right: 0;
		top: 100%;
		width: 230px;
	}

	.top-about-bg-image {
		background-image: none !important;
		background-repeat: no-repeat !important;
		background-size: 0 !important;
	}

	.top-about-bg-image::after {
		display: block;
		width: 160%;
		aspect-ratio: 556 / 280;
		margin-right: -30%;
		margin-left: -30%;
		content: "";
		background-image: url("../../img/top_about_sp.webp");
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;
	}

	.top-about-content {
		padding-top: 0% !important;
		padding-bottom: 20px !important;
	}

	.top-recruit-columns {
		flex-direction: column-reverse;
		gap: 0;
		row-gap: 0;
		--wp--style--block-gap: 0;
	}

	.top-recruit-heading {
		font-size: 20px !important;
		margin-left: 0 !important;
	}

	.top-recruit-text {
		padding-right: 0 !important;
	}

	.top-recruit-content {
		padding-bottom: 0 !important;
	}

	.top-recruit-content .wp-block-buttons {
		justify-content: center !important;
	}
}
