/*
 * /game（AI駆動ゲーム開発コース）専用の見た目。
 * 2026-11-19 石山「ゲームなのでもっと他のLPとは毛色を異なるものに」「ワクワクするLPである必要がある」で、
 * 白地×紺のコースLPの型をやめ、ゲームのタイトル画面のような暗い面×ネオンの光に組み替えた。
 * 色: 面 #070b16 / 箱 #0f1730 / 強調 シアン #3de8ff・マゼンタ #ff4d8d / 予約ボタンだけライム #d6ff3f（ほかの強調に使わない）。
 * 動きは CSS だけ（JSなし）。動きを減らす設定では止める
 */
.game-lp {
	--g-bg: #070b16;
	--g-panel: #0f1730;
	--g-panel-2: #131d3c;
	--g-line: rgb(61 232 255 / 0.28);
	--g-cyan: #3de8ff;
	--g-pink: #ff4d8d;
	--g-lime: #d6ff3f;
	--g-text: #eef2ff;
	--g-sub: #aebbdc;
	background: var(--g-bg);
	color: var(--g-text);
}

/* 面の地模様: 細い格子と、上からのシアンの光 */
.game-grid {
	background-image:
		radial-gradient(60% 40% at 50% 0%, rgb(61 232 255 / 0.13), transparent 70%),
		linear-gradient(rgb(61 232 255 / 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgb(61 232 255 / 0.055) 1px, transparent 1px);
	background-size:
		100% 100%,
		44px 44px,
		44px 44px;
}

.game-grid-pink {
	background-image:
		radial-gradient(55% 40% at 80% 0%, rgb(255 77 141 / 0.14), transparent 70%),
		radial-gradient(45% 35% at 10% 100%, rgb(61 232 255 / 0.1), transparent 70%);
}

/* 英字の小さなラベル（HUD風） */
.game-label {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--g-cyan);
}

/* 見出しのグラデーション文字 */
.game-gradient-text {
	background: linear-gradient(92deg, var(--g-cyan) 0%, #8fb4ff 45%, var(--g-pink) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 18px rgb(61 232 255 / 0.35));
}

.game-glow {
	text-shadow: 0 0 22px rgb(61 232 255 / 0.45);
}

/* 角を斜めに落とした箱。外側（線の色）と内側（面）を同じ形で重ねる */
.game-cut {
	clip-path: polygon(
		0 0,
		calc(100% - 16px) 0,
		100% 16px,
		100% 100%,
		16px 100%,
		0 calc(100% - 16px)
	);
}

.game-frame {
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgb(61 232 255 / 0.75),
		rgb(61 232 255 / 0.12) 40%,
		rgb(255 77 141 / 0.6)
	);
}

.game-frame-soft {
	padding: 1px;
	background: linear-gradient(
		135deg,
		rgb(61 232 255 / 0.4),
		rgb(255 255 255 / 0.06) 50%,
		rgb(255 77 141 / 0.3)
	);
}

/* 輪郭だけの大きい数字（STAGE 01 など） */
.game-outline-num {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--g-cyan);
	filter: drop-shadow(0 0 10px rgb(61 232 255 / 0.5));
	font-style: italic;
	font-weight: 900;
	line-height: 1;
}

/* 予約ボタン。ライムの面がゆっくり明滅する（キランは共通の data-cta-shine） */
.game-cta {
	background: var(--g-lime);
	color: #070b16;
	box-shadow:
		0 0 0 1px rgb(214 255 63 / 0.5),
		0 0 28px rgb(214 255 63 / 0.45);
}

@media (prefers-reduced-motion: no-preference) {
	.game-cta {
		animation: game-pulse 2.8s ease-in-out infinite;
	}

	/* FVのキーアートがゆっくり寄る */
	.game-kenburns {
		animation: game-kenburns 22s ease-in-out infinite alternate;
	}

	/* ジャンル名が横に流れる帯 */
	.game-marquee {
		animation: game-marquee 26s linear infinite;
	}

	.game-float {
		animation: game-float 5.5s ease-in-out infinite;
	}

	/* スクロールで見えたら下からふわっと出る（未対応ブラウザは最初から表示） */
	@supports (animation-timeline: view()) {
		.game-reveal {
			animation: game-reveal linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 45%;
		}
	}
}

@keyframes game-pulse {
	0%,
	100% {
		box-shadow:
			0 0 0 1px rgb(214 255 63 / 0.5),
			0 0 22px rgb(214 255 63 / 0.35);
	}
	50% {
		box-shadow:
			0 0 0 1px rgb(214 255 63 / 0.7),
			0 0 40px rgb(214 255 63 / 0.6);
	}
}

@keyframes game-kenburns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.07);
	}
}

@keyframes game-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@keyframes game-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes game-reveal {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* FAQ（details）。開いたら＋を×に */
.game-faq summary {
	list-style: none;
	cursor: pointer;
}

.game-faq summary::-webkit-details-marker {
	display: none;
}

.game-faq details[open] .game-faq-plus {
	transform: rotate(45deg);
}

/*
 * 予約フォーム（共通の BookingCTA）。このページだけ、面をLPと同じ暗い面にする（2026-11-19 石山）。
 * フォーム本体（カレンダー・入力欄）は共通部品の色のまま読めるよう、白い箱に載せる
 */
.game-booking > section {
	background: transparent;
}

.game-booking > section > h2 {
	color: var(--g-text);
	text-shadow: 0 0 22px rgb(61 232 255 / 0.45);
}

.game-booking > section > div > div:first-child {
	color: var(--g-text);
}

/* フォームは <ssg-island style="display:contents"> で包まれていて箱にならないので、その直下に当てる */
.game-booking ssg-island > * {
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	/* SPは箱を左右に8pxはみ出させ、カレンダーの幅を元のまま保つ（狭まると日付が「11/2 0」と折れる） */
	margin-inline: -8px;
	padding: 16px 8px;
	box-shadow:
		0 0 0 1px rgb(61 232 255 / 0.35),
		0 0 32px rgb(61 232 255 / 0.18);
}

@media (min-width: 640px) {
	.game-booking ssg-island > * {
		margin-inline: 0;
		padding: 28px;
	}
}
