@charset "UTF-8";

/* ============================================
   カラー設定（ここを変更すれば全体に反映されます）
   ============================================ */
:root {
	/* ページ背景（LP外側） */
	--color-bg-outer: #f5f5f5;
	/* LP背景 */
	--color-bg-lp: #fff;
	/* CTA背景 */
	--color-cta-bg: #00aeb9;
	/* テキストリンク色 */
	--color-text-link: #00aeba;
	/* テキスト色 */
	--color-text: #333;

	/* スライド背景色（スライド番号に対応） */
	--color-slide-02: #fef6df;
	--color-slide-03: #ffd135;
	--color-slide-05: #d5f8fa;
	--color-slide-06: #d5f8fa;
	--color-slide-07: #d5f8fa;
	--color-slide-08: #d5f8fa;
	--color-slide-09: #fef6df;
	--color-slide-10: #d5f8fa;
	--color-slide-11: #ffd135;
	--color-slide-12: #ffd135;
}

/* ============================================
   BASE
   ============================================ */
html, body {
	height: 100%;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	background-color: var(--color-bg-outer);
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   LP OUTER WRAPPER
   PC: centered with max-width
   SP: full width
   ============================================ */
#lp-root {
	position: relative;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	margin: 0 auto;
	background-color: var(--color-bg-lp);
}

/* ============================================
   SLIDE AREA (Swiper container)
   ============================================ */
.slide-area {
	position: relative;
	flex-grow: 1;
	height: 80dvh;
	overflow: hidden;
}

.slide-area .swiper {
	height: 100%;
	touch-action: auto;
	display: flex;
	flex-direction: column;
}

.slide-area .swiper .swiper-wrapper {
	transition-timing-function: ease-out;
	flex: 1 1 auto;
	max-height: 100%;
	height: 1%;
}

.slide-area .swiper .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.slide-area .swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ============================================
   SLIDE BUTTON OVERLAY
   JSで画像の描画領域に合わせてbottom位置を計算
   ============================================ */
.slide-btn {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	pointer-events: auto;
	display: block;
}

.slide-btn img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.slide-btn:active {
	transform: translateX(-50%) scale(0.96);
}

/* ============================================
   SLIDE BACKGROUND COLORS
   色を変更する場合は :root のカラー変数を編集してください
   ============================================ */
.swiper-slide:nth-child(2)  { background-color: var(--color-slide-02); }
.swiper-slide:nth-child(3)  { background-color: var(--color-slide-03); }
.swiper-slide:nth-child(5)  { background-color: var(--color-slide-05); }
.swiper-slide:nth-child(6)  { background-color: var(--color-slide-06); }
.swiper-slide:nth-child(7)  { background-color: var(--color-slide-07); }
.swiper-slide:nth-child(8)  { background-color: var(--color-slide-08); }
.swiper-slide:nth-child(9)  { background-color: var(--color-slide-09); }
.swiper-slide:nth-child(10) { background-color: var(--color-slide-10); }
.swiper-slide:nth-child(11) { background-color: var(--color-slide-11); }
.swiper-slide:nth-child(12) { background-color: var(--color-slide-12); }

/* vertical scrollbar (right edge) */
.slide-area .swiper-vertical .swiper-scrollbar {
	right: 0;
}

/* horizontal pagination dots */
.slide-area .swiper-horizontal .swiper-wrapper {
	max-height: 88%;
}

.slide-area .swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background: #0098fe;
}

/* ============================================
   SLIDE TEXT OVERLAY
   JSで画像の描画領域に合わせて位置・サイズを計算
   data-bottom で上端位置を指定（画像下端からの%）
   ============================================ */
.slide-text {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	overflow: hidden;
	line-height: 1.45;
	color: var(--color-text);
}

.slide-text-heading {
	font-weight: bold;
	margin-top: 0.5em;
}

.slide-text-heading:first-child {
	margin-top: 0;
}

.slide-text ul {
	margin-top: 0.5em;
}

.slide-text li {
	margin-bottom: 0.4em;
	padding-left: 1em;
	text-indent: -1em;
}

.slide-text li::before {
	content: "・";
}

.slide-text-link {
	color: var(--color-text-link);
	text-decoration: underline;
	word-break: break-all;
}

/* ============================================
   FIXED CTA (CV BUTTON AREA)
   bottom 20dvh
   ============================================ */
.cv-fixed {
	width: 100%;
	max-height: 20dvh;
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-cta-bg);
}

.cv-fixed img {
	max-width: 100%;
	max-height: 20dvh;
	object-fit: contain;
	margin: 0 auto;
}

.cv-fixed a {
	display: block;
	width: 100%;
	text-align: center;
}

.cv-fixed a:active {
	transform: scale(0.98);
}

/* floating mode: CTA overlays on top of slides */
.cv-fixed.is-floating {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 20;
}

/* When CTA is floating, swiper takes full height */
.slide-area.has-floating-cta .swiper .swiper-wrapper {
	max-height: 100% !important;
}

.slide-area.has-floating-cta .swiper-pagination {
	bottom: 20dvh;
}

/* ============================================
   PC DECORATION（PC用装飾: 背景画像・CTA）
   SPでは非表示、PCのみ表示
   --lp-width: LP本体の幅（PC時に自動計算）
   ============================================ */
.pc-deco {
	display: none;
}

/* ============================================
   PC DISPLAY ADJUSTMENTS
   画面高さに比例した幅でSP画像の比率を維持
   ============================================ */
@media (min-width: 581px) {
	:root {
		/* LP本体の幅と、中央からの端位置 */
		--lp-width: calc(80dvh * 1125 / 1560);
		--lp-edge: calc(var(--lp-width) / 2 + 30px);
	}

	body {
		overflow-y: auto;
	}

	#lp-root {
		max-width: unset;
		width: var(--lp-width);
	}

	/* ---- PC装飾: 581px以上でもスペースが足りなければ非表示 ---- */
	.pc-deco {
		display: none;
	}
}

@media (min-width: 1240px) {
	.pc-deco {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		pointer-events: none;
		z-index: 100;
		overflow: hidden;
	}

	.pc-deco a {
		pointer-events: auto;
	}

	/* 背景画像（2倍書き出し → JSで自動的に半分サイズ表示） */
	.pc-bg {
		position: absolute;
		height: auto;
	}

	/* 左側: LP左端から30px左に配置（画像の右端基準） */
	.pc-bg-left {
		right: calc(50% + var(--lp-edge));
		top: 250px;
	}

	/* 右側: LP右端から30px右に配置（画像の左端基準） */
	.pc-bg-right {
		left: calc(50% + var(--lp-edge));
		top: 650px;
	}

	/* PC用CTA: LP右端から30px右、上から100px */
	.pc-cta {
		position: absolute;
		left: calc(50% + var(--lp-edge));
		top: 180px;
		width: 305px;
		display: block;
		z-index: 10;
	}

	.pc-cta img {
		width: 100%;
		height: auto;
	}

	.pc-cta:hover {
		opacity: 0.85;
	}
}
