/* ローディングアニメーション */
#my-loading {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	transition: opacity 0.6s ease;
}

#my-loading.is-hidden {
	opacity: 0;
	pointer-events: none;
}

#my-loading svg {
	width: 60%;
	max-width: 240px;
	height: auto;
	overflow: visible;
}

/* ロード中はページコンテンツのスクロールを禁止 */
body:has(#my-loading) {
	overflow: hidden;
}

.top-reason p.has-background {
	padding: 0.7rem 1rem;
	border-radius: 4px;

}

.top-reason .top-reason .wp-block-snow-monkey-blocks-flex {
	gap: 1rem;

}

@media (max-width: 599px) {
	.top-reason .wp-block-snow-monkey-blocks-flex {
		gap: 0;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: space-between;
	}

	.top-reason .wp-block-snow-monkey-blocks-flex p:first-child {
		width: 50px;
		text-align: center;
		height: 50px;
		padding: 0;
		flex: 0 0 50px;
		margin-top: 4px;
		margin-right: 12px;
	}


	.top-reason .wp-block-snow-monkey-blocks-flex p {
		width: 100%;
		flex: 1;
	}

	.top-reason .wp-block-snow-monkey-blocks-flex p:first-child strong {
		font-size: 22px;
		line-height: 50px;
		display: block;
	}
}

.top-reason .smb-section-break-the-grid__content {
	position: relative;
	z-index: 1;
	padding: 2rem;
	box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 599px) {
	.top-reason .smb-section-break-the-grid__content {
		padding: 2rem 1.125rem;
		margin-bottom: 2rem;
	}
}

.c-is-shadow {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.c-is-roound {
	border-radius: 8px;
}

.top-service .smb-panels__item {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.top-service .smb-panels__item:hover {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.c-cta .wp-block-snow-monkey-blocks-buttons .wp-block-snow-monkey-blocks-btn a {
	border: solid 1px #fff;

}

/* .top-fv__container {
	position: absolute;
	top: 50%;
	left: min(1%, 60px);
	width: max(40%, 638px);
	height: 100%;
	z-index: 1;
	transform: translateY(-50%);
} */

/* PC のみ：コンテナを左寄せ・幅を固定 */
@media (min-width: 640px) {
	.top-fv__container {
		width: max(50%, 638px);
		margin-left: 0 !important;
	}

	/* メインタイトルの行間を1.5に・折り返し防止はPCのみ */
	.top-fv__container .has-sm-5-xl-font-size {
		line-height: 1.5 !important;
		padding-top: 0.25rem !important;
		white-space: nowrap;
	}

	/* fv-second も折り返し防止はPCのみ */
	.top-fv__container .fv-second {
		white-space: nowrap;
	}
}

@media (max-width: 639px) {
	/* セクションを上揃えに変更し、上からの位置を padding-top で制御 */
	.smb-section-with-bgimage:has(.my-hero-slider) {
		min-height: 60vh !important;
		align-items: center!important;
	}

	.smb-section-with-bgimage:has(.my-hero-slider) .smb-section__inner {
		padding-top: 1rem;
	}

	.top-fv__container {
		width: 100% !important;
		margin-left: 0 !important;
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}

	/* 大見出し：PC（約3〜4rem）→ スマホ（1.6rem）、折り返し許可 */
	.top-fv__container .has-sm-5-xl-font-size {
		font-size: 1.6rem !important;
		white-space: normal !important;
		line-height: 1.4 !important;
	}

	/* 小見出し・補足 */
	.top-fv__container .has-sm-2-xl-font-size {
		font-size: 0.95rem !important;
		white-space: normal !important;
	}
}

/* ファーストビュー スライダー */
.my-hero-slider {
	width: 100%;
	height: 100%;
}

/* div でラップして Snow Monkey の img opacity 上書きを回避 */
.my-hero-slider__slide {
	position: absolute;
	inset: 0;
	overflow: hidden; /* ズーム時のはみ出し防止 */
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
}

.my-hero-slider__slide.is-active {
	opacity: 1;
}

.my-hero-slider__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
}

/* ズームエフェクト（my-hero-slider--zoom クラスが付いているときのみ有効） */
@keyframes my-hero-zoom {
	from { transform: scale(1); }
	to   { transform: scale(1.1); }
}

/* 全スライドにアニメーションを設定し、非アクティブ時は一時停止 */
/* → is-active が外れても scale がスナップバックしない */
.my-hero-slider--zoom .my-hero-slider__slide img {
	animation: my-hero-zoom 8s ease-in-out forwards;
	animation-play-state: paused;
}

.my-hero-slider--zoom .my-hero-slider__slide.is-active img {
	animation-play-state: running;
}

.top-fv__container .wp-block-snow-monkey-blocks-btn.is-style-ghost a {
	border: solid 1px #fff;
}

/* 画像表示アニメーション（カラーバーが流れてから画像が出現） */
.photoArea {
	position: relative;
	overflow: hidden;
}

.photoArea::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	background: #0068a80f;
}

.photoArea.move::before {
	animation: photoAreaBar 1s ease 0.1s forwards;
}

/* core/image */
figure.photoArea img {
	opacity: 0;
	transform: scale(1.1);
}

figure.photoArea.move img {
	animation: photoAreaReveal 1.2s ease 0.5s forwards;
}

/* core/cover */
.wp-block-cover.photoArea .wp-block-cover__image-background {
	opacity: 0;
	transform: scale(1.1);
}

.wp-block-cover.photoArea.move .wp-block-cover__image-background {
	animation: photoAreaReveal 1.2s ease 0.5s forwards;
}

@keyframes photoAreaBar {
	0%   { left: 0;    width: 0; }
	50%  { left: 0;    width: 100%; }
	68%  { left: 0;    width: 100%; }
	100% { left: 100%; width: 0; }
}

@keyframes photoAreaReveal {
	0%   { opacity: 0; transform: scale(1.1); }
	35%  { opacity: 0; transform: scale(1.1); }
	100% { opacity: 1; transform: scale(1); }
}
