/* ============ TOKENS ============ */
:root {
  --bg-base: #FAF9F4;
  --bg-dark: #1B2032;
  --bg-darker: #10141F;
  --sand: #FCEFD0;
  --sky: #2D9CE8;
  --sky-deep: #1668C8;
  --ink: #1F2428;
  --muted: #6B7076;
  --inverse: #FAF9F4;
  --gb-darkest: #0F380F;
  --gb-dark: #306230;
  --gb-light: #8BAC0F;
  --gb-lightest: #9BBC0F;
  --cta: #E8434A;
  --yellow: #FFD23C;
  --pop-green: #4CC85A;
  --font-body: "Noto Sans JP", sans-serif;
  --font-dot: "DotGothic16", sans-serif;
  --font-px: "Press Start 2P", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-base);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.pixel-en { font-family: var(--font-px); }
.sp { display: none; }

/* ============ GB BOOT INTRO ============ */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-darker);
  display: grid; place-items: center;
}
.boot.boot--on { background: var(--gb-lightest); image-rendering: pixelated; }

/* カートリッジ挿入ステージ */
.boot__stage {
  grid-area: 1 / 1;
  position: relative;
  width: 640px; height: 720px;
  overflow: hidden;
}
.boot__cart {
  position: absolute; left: 50%; top: 0;
  width: 460px; margin-left: -230px;
  transform: translateY(-520px);
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, .5));
  z-index: 1;
}
.boot__slot {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 120px; z-index: 2;
  background: #272E47;
  border-radius: 10px 10px 0 0;
}
.boot__slot::before {
  content: "";
  position: absolute; left: 50%; top: -9px;
  width: 504px; height: 18px; margin-left: -252px;
  background: #0B0E18;
  border-radius: 4px;
}
.boot__slot::after {
  content: "POWER";
  position: absolute; left: 50%; bottom: 30px;
  transform: translateX(-50%);
  font-family: var(--font-px); font-size: 10px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: 2px;
}
@media (max-width: 700px) {
  /* 640px固定のステージはグリッド中央寄せだと画面外基準になるため、
     絶対配置＋transformで常にビューポート中央へ */
  .boot__stage {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) scale(.55);
  }
}

.boot__logo { grid-area: 1 / 1; text-align: center; opacity: 0; transform: translateY(-140px); }
.boot__title {
  font-family: var(--font-px);
  font-size: clamp(16px, 3vw, 28px);
  line-height: 1.8;
  color: var(--gb-darkest);
  display: block;
}
.boot__sub {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-px);
  font-size: 12px;
  color: var(--gb-lightest);
  background: var(--gb-darkest);
  padding: 6px 10px;
}
.boot__loading {
  display: block;
  margin-top: 26px;
  font-size: 10px;
  color: var(--gb-dark);
  letter-spacing: 1px;
  visibility: hidden;
}
.boot.is-waiting .boot__loading {
  visibility: visible;
  animation: blink 0.9s steps(2) infinite;
}
.boot.is-done { display: none; }

/* ============ COMMON ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.section { position: relative; padding: 100px 0; text-align: center; overflow-x: clip; }

/* 巨大背景タイポ（スクロールで本文と逆方向に流れる） */
.bgtext {
  position: absolute; top: 40px; left: 0; z-index: 0;
  font-family: var(--font-px);
  font-size: clamp(80px, 12vw, 170px);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(76, 200, 90, .16);
  pointer-events: none; user-select: none;
}
.bgtext--low { top: auto; bottom: 60px; -webkit-text-stroke-color: rgba(232, 67, 74, .10); }
.section--sand { background: var(--sand); }
.section--sky  { background: var(--sky); }
.section--base { background: var(--bg-base); }
.section--navy { background: var(--bg-dark); overflow: hidden; }

.chip {
  display: inline-block;
  background: var(--yellow);
  color: var(--bg-dark);
  font-size: 12px;
  padding: 9px 15px;
  border-radius: 2px;
  box-shadow: 0 3px 0 rgba(16, 20, 31, .25);
  margin-bottom: 22px;
}
.heading {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: 1px;
  color: var(--pop-green);
  -webkit-text-stroke: 0;
  text-shadow:
    -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 3px 3px 0 #fff,
    -3px 0 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, 0 3px 0 #fff,
    0 7px 0 rgba(16, 20, 31, .3);
  margin-bottom: 22px;
}
.lead { color: var(--muted); font-size: 16px; line-height: 1.9; margin-bottom: 44px; }
.lead--light { color: rgba(255, 255, 255, .92); }

.btn {
  display: inline-block;
  border-radius: 2px;
  font-size: 14px;
  padding: 14px 28px;
  transition: transform .12s steps(2), box-shadow .12s steps(2);
}
.btn--cta {
  background: var(--cta);
  color: #fff;
  font-family: var(--font-px);
  font-size: 12px;
  box-shadow: 0 5px 0 #a92c32;
}
.btn--cta:hover { transform: translateY(3px); box-shadow: 0 2px 0 #a92c32; }
.btn--ghost {
  border: 2px solid var(--gb-light);
  color: #fff;
  background: rgba(0, 0, 0, .25);
  font-weight: 500;
}
.btn--ghost:hover { background: rgba(139, 172, 15, .25); }
.btn--lg { padding: 18px 36px; font-size: 14px; }

/* 言語切り替え */
.langsw {
  position: absolute; top: 16px; right: 16px; z-index: 6;
  display: inline-flex;
  font-family: var(--font-px); font-size: 11px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 6px; overflow: hidden;
  backdrop-filter: blur(2px);
}
.langsw a, .langsw span { padding: 8px 12px; color: #fff; text-decoration: none; line-height: 1; }
.langsw a:hover { background: rgba(255, 255, 255, .2); }
.langsw .is-active { background: rgba(255, 255, 255, .92); color: var(--bg-darker); }

/* ============ HERO ============ */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/kv.jpg?v=2") center 55% / cover no-repeat;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__scrim {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(16, 20, 31, .6) 55%, rgba(16, 20, 31, .96));
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 56px;
  text-align: center; color: #fff;
  z-index: 6;
}
.hero__logo {
  position: absolute; left: 0; right: 0; top: 15%;
  margin: 0 auto;
  width: min(560px, 74vw);
  z-index: 5;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .35));
  animation: logofloat 3.4s steps(3) infinite;
}
@keyframes logofloat { 50% { transform: translateY(-10px); } }
.hero__label { font-size: 12px; color: var(--gb-lightest); letter-spacing: 1px; text-shadow: 0 2px 6px rgba(0,0,0,.6); margin-bottom: 20px; }
.hero__title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.6;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .55);
  margin-bottom: 28px;
}
.hero__title span { display: block; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero__preview {
  position: absolute; left: 90px; top: 150px; z-index: 5;
  background: var(--bg-darker);
  padding: 14px 14px 10px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  transform: rotate(-2deg);
}
.hero__preview-screen { position: relative; width: 300px; border-radius: 4px; overflow: hidden; }
.hero__preview-screen video { width: 100%; display: block; }
.hero__preview-label {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 10px;
  font-family: var(--font-px); font-size: 9px; color: rgba(255, 255, 255, .9);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); animation: blink 1s steps(2) infinite; }

/* ============ MARQUEE ============ */
.marquee {
  background: var(--yellow);
  border-top: 4px solid var(--bg-dark);
  border-bottom: 4px solid var(--bg-dark);
  overflow: hidden; white-space: nowrap;
  padding: 12px 0;
}
.marquee__inner { display: inline-flex; animation: marquee 22s linear infinite; }
.marquee__inner span { font-family: var(--font-px); font-size: 13px; color: var(--bg-dark); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ WAVE DIVIDERS（流線型・2層アニメーション） ============ */
.wave { height: 64px; position: relative; z-index: 2; margin-top: -1px; overflow: hidden; }
.wave::before, .wave::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 200%; height: 100%;
  background: var(--wave-c);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 80" preserveAspectRatio="none"><path d="M0,40 C200,80 400,80 600,40 C800,0 1000,0 1200,40 L1200,0 L0,0 Z"/></svg>') repeat-x;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 80" preserveAspectRatio="none"><path d="M0,40 C200,80 400,80 600,40 C800,0 1000,0 1200,40 L1200,0 L0,0 Z"/></svg>') repeat-x;
  -webkit-mask-size: 50% 100%;
          mask-size: 50% 100%;
  animation: waveflow 16s linear infinite;
  will-change: transform;
}
.wave::after {
  opacity: .45;
  animation-duration: 10s;
  animation-direction: reverse;
}
@keyframes waveflow { to { transform: translateX(-50%); } }
.wave--sand-to-sky  { background: var(--sky);      --wave-c: var(--sand); }
.wave--sky-to-base  { background: var(--bg-base);  --wave-c: var(--sky); }
.wave--base-to-sand { background: var(--sand);     --wave-c: var(--bg-base); }
.wave--sand-to-navy { background: var(--bg-dark);  --wave-c: var(--sand); }
.wave--base-to-sky  { background: var(--sky);      --wave-c: var(--bg-base); }
.wave--base-to-navy { background: var(--bg-dark);  --wave-c: var(--bg-base); }
.wave--navy-to-sky  { background: var(--sky);      --wave-c: var(--bg-dark); }
.wave--sand-to-base { background: var(--bg-base);  --wave-c: var(--sand); }
.wave--sky-to-sand  { background: var(--sand);     --wave-c: var(--sky); }

/* ============ DECOS ============ */
.deco { position: absolute; z-index: 1; image-rendering: pixelated; }
.deco--sun {
  width: 72px; height: 72px; right: 8%; top: 70px;
  background:
    linear-gradient(var(--yellow), var(--yellow)) 50% 0 / 8px 10px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 50% 100% / 8px 10px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 0 50% / 10px 8px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 100% 50% / 10px 8px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 50% 50% / 44px 44px no-repeat;
  animation: sunspin 8s steps(8) infinite;
}
@keyframes sunspin { to { transform: rotate(360deg); } }
.deco--cloud {
  width: 144px; height: 48px;
  background: #fff;
  clip-path: polygon(8% 100%, 8% 71%, 22% 71%, 22% 46%, 38% 46%, 38% 21%, 67% 21%, 67% 46%, 82% 46%, 82% 71%, 92% 71%, 92% 100%);
}
.deco--cloud1 { left: 6%; top: 70px; animation: drift 30s linear infinite; }
.deco--cloud2 { right: 5%; top: 130px; width: 110px; animation: drift 40s linear infinite reverse; }
.deco--cloud3 { right: 8%; top: 80px; width: 120px; animation: drift 36s linear infinite; }
@keyframes drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(60px); }
  100% { transform: translateX(0); }
}

/* ============ PHOTO ROLL（ABOUT下部を流れる当時写真） ============ */
.photoroll {
  overflow: hidden;
  margin-top: 72px;
  pointer-events: none;
}
.photoroll__track {
  display: flex;
  width: max-content;
  animation: rollmove 45s linear infinite;
  will-change: transform;
}
.photoroll__track img {
  height: 200px; width: auto;
  background: #fff;
  padding: 8px;
  margin-right: 26px;
  box-shadow: 0 6px 16px rgba(16, 20, 31, .18);
}
.photoroll__track img:nth-child(odd) { transform: rotate(1.2deg); }
.photoroll__track img:nth-child(even) { transform: rotate(-1.2deg); }
@keyframes rollmove { to { transform: translateX(-50%); } }

/* ============ NPC ACCENTS（賑やかしキャラ） ============ */
.npc {
  position: absolute; z-index: 2;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 6px 10px rgba(16, 20, 31, .18));
}
.npc--swim {
  width: 130px;
  right: 2%; bottom: -6px;
  animation: npcfloat 3.2s steps(3) infinite;
}
.npc--family {
  width: 170px;
  left: 3%; bottom: 14px;
  animation: npcwalk 1.1s steps(2) infinite;
}
/* 家族が歩くスペースぶん下余白を確保 */
#spots { padding-bottom: 190px; }
.npc--cheer {
  width: 110px;
  right: 8%; bottom: 40px;
  animation: npccheer 1.4s steps(2) infinite;
}
@keyframes npcfloat { 50% { transform: translateY(-10px); } }
@keyframes npcwalk { 50% { transform: translateY(-5px) rotate(1.5deg); } }
@keyframes npccheer { 50% { transform: translateY(-12px); } }

/* ============ ABOUT ============ */
.about__inner {
  display: flex; align-items: center; gap: 64px;
  text-align: left;
}
.about__photo {
  flex: 0 0 50%;
  background: #fff;
  padding: 14px 14px 10px;
  box-shadow: 0 10px 28px rgba(16, 20, 31, .22);
  transform: rotate(-1.5deg);
}
.about__photo img { display: block; }
.about__photo figcaption { font-size: 13px; font-weight: 500; padding: 10px 2px 4px; color: var(--ink); }
.about__copy .heading { margin-bottom: 26px; }
.about__text { color: var(--ink); font-size: 16px; line-height: 2.05; }
.about__text + .about__text { margin-top: 14px; }
.about__purpose {
  margin-top: 28px;
  background: #fff;
  border-left: 6px solid var(--pop-green);
  border-radius: 4px;
  padding: 22px 26px;
  box-shadow: 0 4px 12px rgba(16, 20, 31, .1);
}
.about__purpose-label {
  display: inline-block;
  font-size: 9px; color: var(--gb-dark);
  border: 1.5px solid var(--gb-dark);
  padding: 5px 9px; border-radius: 2px;
  margin-bottom: 12px;
}
.about__purpose p:last-child { font-size: 14.5px; line-height: 2; color: var(--ink); }
.about__purpose b { color: var(--gb-dark); }

/* ============ PARK MAP ============ */
.gbmap {
  background: var(--gb-darkest);
  border-radius: 8px; padding: 18px;
  box-shadow: 0 16px 40px rgba(16, 20, 31, .35);
}
.gbmap__screen { position: relative; }
.gbmap__img {
  display: block;
  width: 100%; height: auto;
  image-rendering: pixelated;
}

/* マップ画像に焼き込まれた施設ラベルの上に重ねる透明ホットスポット */
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  z-index: 3;
  transition: transform .12s steps(2);
}
.pin:hover {
  transform: translateY(-3px);
  outline: 3px solid var(--gb-darkest);
  outline-offset: 2px;
}

/* マップ拡大表示（クリックでライトボックス） */
.gbmap__img { cursor: zoom-in; }
.gbmap__hint {
  position: absolute; right: 10px; bottom: 10px; z-index: 4;
  font-family: var(--font-px); font-size: 10px;
  color: var(--gb-lightest); background: rgba(15, 56, 15, .85);
  padding: 6px 9px; border-radius: 4px;
  pointer-events: none;
}
.mapzoom {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(16, 20, 31, .93);
}
.mapzoom__scroll {
  position: absolute; inset: 0;
  overflow: auto; display: flex;
  -webkit-overflow-scrolling: touch;
}
.mapzoom__scroll img {
  display: block; margin: auto;
  width: 1400px; max-width: none;
  image-rendering: pixelated;
  background: var(--gb-darkest);
  border: 6px solid var(--gb-darkest); border-radius: 8px;
  cursor: zoom-out;
}
.mapzoom__close {
  position: fixed; top: 14px; right: 14px; z-index: 2;
  font-family: var(--font-px); font-size: 12px;
  color: #fff; background: var(--cta);
  border: 0; padding: 12px 16px; border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .4);
}

/* ============ GAMES ============ */
.game {
  display: flex; align-items: center; gap: 72px;
  margin-top: 88px; text-align: left;
}
.game--reverse { flex-direction: row-reverse; }
.game__media { position: relative; flex: 0 0 46%; height: 540px; }
.polaroid {
  position: absolute; top: 0; left: 0;
  background: #fff; padding: 12px 12px 8px;
  box-shadow: 0 6px 18px rgba(16, 20, 31, .18);
  transform: rotate(2deg);
  width: 62%;
}
.polaroid--tiltR { left: auto; right: 0; transform: rotate(-2deg); }
.polaroid img { aspect-ratio: 10 / 7; object-fit: cover; }
/* キャプションはGB画面が重なる側を避けて55%幅に収める */
.polaroid figcaption { font-size: 13px; font-weight: 500; padding: 8px 2px; max-width: 55%; }
.game--reverse .polaroid figcaption { margin-left: auto; text-align: right; }

.gbscreen {
  position: absolute; bottom: 0; right: 0;
  width: 62%;
  background: var(--gb-darkest);
  border-radius: 8px; padding: 14px;
  box-shadow: 0 10px 26px rgba(16, 20, 31, .3);
}
.game--reverse .gbscreen { right: auto; left: 0; }
.gbscreen__lcd {
  position: relative;
  background: var(--gb-lightest);
  aspect-ratio: 10 / 9;
  overflow: hidden;
  image-rendering: pixelated;
}
.gbscreen__lcd--video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gbscreen__score { position: absolute; left: 14px; top: 14px; font-size: 10px; color: var(--gb-darkest); }
.gbscreen__title {
  position: absolute; left: 0; right: 0; top: 38%;
  text-align: center;
  font-family: var(--font-dot); font-size: 30px;
  color: var(--gb-darkest);
}
.gbscreen__push { position: absolute; left: 0; right: 0; top: 60%; text-align: center; font-size: 10px; color: var(--gb-dark); }
.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gbscreen__ground {
  position: absolute; left: 0; right: 0; bottom: 8%;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--gb-dark) 0 28px, transparent 28px 50px);
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(15, 56, 15, .08) 0 2px, transparent 2px 4px);
}
.badge {
  position: absolute; left: 4%; bottom: 26%;
  background: var(--cta); color: #fff;
  font-size: 9px; padding: 9px 13px; border-radius: 2px;
  box-shadow: 0 3px 0 #a92c32;
  z-index: 3;
}
.game--reverse .badge { left: auto; right: 4%; }

/* AND MORE（その他のゲーム動画） */
.more {
  margin-top: 88px;
  display: flex; align-items: center; gap: 48px;
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 44px 52px;
  text-align: left; color: #fff;
}
.more__screen {
  flex: 0 0 36%;
  background: var(--gb-darkest);
  border-radius: 8px; padding: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.more__label {
  display: inline-block;
  background: var(--yellow); color: var(--bg-dark);
  font-size: 11px; padding: 8px 12px; border-radius: 2px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  margin-bottom: 16px;
  animation: nudge 1.2s steps(2) infinite;
}
.more__text h3 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.more__text p { color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.95; }

/* 各ゲームの担当キャラ（GB画面の角に乗る） */
.game__char {
  position: absolute;
  bottom: -20px; right: -30px;
  height: 135px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(16, 20, 31, .3));
}
.game__char img { height: 100%; width: auto; }
.game--reverse .game__char { right: auto; left: -30px; }
/* 水鉄砲FPSは反転行でも右下に */
#game-fps .game__char { left: auto; right: -30px; }
/* ゴーカートのダイチは右上 */
#game-gokart .game__char { bottom: auto; left: auto; top: -24px; right: -30px; }
/* ローラースケート（スケート番長トリオ）は左上に */
#game-skate .game__char {
  bottom: auto; right: auto;
  top: -24px; left: -22px;
}

.game__num { color: var(--cta); font-size: 14px; margin-bottom: 14px; }
.game__title { font-weight: 900; font-size: 30px; margin-bottom: 18px; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--gb-dark); color: var(--gb-dark);
  padding: 5px 10px; margin-bottom: 10px;
}
.tag--rule { border-color: var(--cta); color: var(--cta); margin-top: 18px; }
.game__body { color: var(--muted); font-size: 15px; line-height: 1.9; }
.game__body--rule { color: var(--ink); }

/* ============ CHARACTERS ============ */
.chars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.char {
  background: #fff; border-radius: 6px;
  padding: 24px 24px 28px;
  box-shadow: 0 6px 16px rgba(16, 20, 31, .18);
  text-align: center;
  border-bottom: 6px solid var(--yellow);
  transition: transform .15s steps(3);
}
.char:nth-child(2n) { border-bottom-color: var(--cta); }
.char:nth-child(3n) { border-bottom-color: var(--pop-green); }
.char:nth-child(odd) { transform: rotate(-.8deg); }
.char:nth-child(even) { transform: rotate(.8deg); }
.char:hover { transform: rotate(0deg) translateY(-8px); }
.char__img {
  height: 190px;
  display: grid; place-items: center;
  margin: 8px 0 14px;
}
.char__img img {
  max-height: 180px; width: auto; max-width: 85%;
  filter: drop-shadow(0 6px 10px rgba(16, 20, 31, .18));
}
.char:hover .char__img img { animation: charhop .5s steps(4); }
@keyframes charhop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  70% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
.char__name { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.char__role { color: var(--muted); font-size: 13px; line-height: 1.85; text-align: left; }
/* 夢の中の住人（ホテル脱出ゲーム）だけ異質なダークカード */
.char--dream { background: var(--bg-darker); border-bottom-color: var(--sky-deep) !important; }
/* PCの3列グリッドでは7枚目を中央（2列目）に */
@media (min-width: 861px) {
  .char--dream { grid-column: 2; }
}
.char--dream .char__name { color: #fff; }
.char--dream .char__role { color: rgba(255, 255, 255, .72); }
.char--dream .char__img img { filter: drop-shadow(0 0 18px rgba(45, 156, 232, .45)); }

/* ============ SYSTEM（スタンプ→ボス復活→挑戦） ============ */
.system .heading { text-shadow:
  -3px -3px 0 var(--bg-darker), 3px -3px 0 var(--bg-darker), -3px 3px 0 var(--bg-darker), 3px 3px 0 var(--bg-darker),
  -3px 0 0 var(--bg-darker), 3px 0 0 var(--bg-darker), 0 -3px 0 var(--bg-darker), 0 3px 0 var(--bg-darker),
  0 7px 0 rgba(0, 0, 0, .5);
}
.system__steps {
  display: flex; align-items: stretch; gap: 14px;
  margin-top: 34px;
}
.sysstep {
  flex: 1;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px;
  padding: 28px 26px 30px;
  color: #fff; text-align: left;
}
.sysstep__num {
  display: inline-block;
  background: var(--yellow); color: var(--bg-dark);
  font-size: 10px; padding: 7px 11px; border-radius: 2px;
  margin-bottom: 18px;
}
.sysstep__img {
  border-radius: 4px; overflow: hidden;
  margin-bottom: 18px;
  background: var(--gb-lightest);
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
}
.sysstep__img img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.sysstep__img--btm img { object-position: bottom; }
.sysstep__img--q { background: var(--bg-darker); }
.sysstep__img--q span {
  font-size: 52px; color: var(--yellow);
  animation: blink 1.2s steps(2) infinite;
}
.sysstep h3 { font-size: 18px; line-height: 1.6; margin-bottom: 10px; }
.sysstep p { color: rgba(255, 255, 255, .8); font-size: 13.5px; line-height: 1.9; }
.sysstep__arrow {
  align-self: center;
  color: var(--yellow); font-size: 16px;
  animation: nudge 1.2s steps(2) infinite;
}
.system__challenge {
  margin-top: 44px;
  color: #fff; font-size: 21px; font-weight: 700;
}
.system__challenge b { color: var(--yellow); font-weight: 900; }

/* ============ SOUND TEST（GBサウンドテスト風プレイヤー） ============ */
.sound .heading { text-shadow:
  -3px -3px 0 var(--bg-darker), 3px -3px 0 var(--bg-darker), -3px 3px 0 var(--bg-darker), 3px 3px 0 var(--bg-darker),
  -3px 0 0 var(--bg-darker), 3px 0 0 var(--bg-darker), 0 -3px 0 var(--bg-darker), 0 3px 0 var(--bg-darker),
  0 7px 0 rgba(0, 0, 0, .5);
}
.soundtest {
  max-width: 720px;
  margin: 10px auto 0;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}
.track {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  padding: 12px 18px 12px 12px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: background .15s;
}
.track + .track { margin-top: 2px; }
.track::before {
  content: "▶";
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cta); color: #fff;
  font-size: 12px;
  box-shadow: 0 3px 0 #a92c32;
  transition: transform .12s;
}
.track:hover { background: rgba(255, 255, 255, .08); }
.track:hover::before { transform: scale(1.08); }
.track.is-playing { background: rgba(255, 255, 255, .13); }
.track.is-playing::before { content: "■"; }
.track__num { font-size: 10px; color: rgba(255, 255, 255, .45); }
.track__name { font-size: 15px; font-weight: 700; color: #fff; }
.track__time { margin-left: auto; font-size: 10px; color: rgba(255, 255, 255, .5); }
/* イコライザ（再生中だけ跳ねる） */
.track__eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; visibility: hidden; }
.track.is-playing .track__eq { visibility: visible; }
.track__eq i { width: 4px; background: var(--yellow); height: 6px; border-radius: 1px; }
.track.is-playing .track__eq i { animation: eqbounce .6s steps(3) infinite; }
.track.is-playing .track__eq i:nth-child(2) { animation-delay: .15s; }
.track.is-playing .track__eq i:nth-child(3) { animation-delay: .3s; }
.track.is-playing .track__eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eqbounce { 0%, 100% { height: 5px; } 50% { height: 16px; } }
.sound__note { margin-top: 22px; color: rgba(255, 255, 255, .55); font-size: 13px; }

/* ============ MAP SPOTS（当時写真 ▶ ゲーム内再現 の対比カード） ============ */
.spots__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.spot {
  background: #fff; border-radius: 6px; padding: 14px 14px 6px;
  box-shadow: 0 6px 16px rgba(16, 20, 31, .16);
}
.spot__pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.spot__side { position: relative; }
.spot__side img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 4px;
}
.spot__side--gb img {
  image-rendering: pixelated;
  border: 3px solid var(--gb-darkest);
  box-sizing: border-box;
}
.spot__side figcaption {
  position: absolute; left: 8px; top: 8px;
  font-size: 8px; padding: 6px 8px; border-radius: 2px;
  background: rgba(255, 255, 255, .92); color: var(--ink);
}
.spot__side--gb figcaption { background: var(--gb-darkest); color: var(--gb-lightest); }
.spot__arrow {
  color: var(--cta); font-size: 14px;
  animation: nudge 1.2s steps(2) infinite;
}
/* ワイドカード：写真2枚を重ねスナップ（アルバム風）で見せる */
.spot--wide { grid-column: span 2; }
.spot__pair--wide { grid-template-columns: 1.1fr auto 1fr; }
.spot__side--fill { height: 100%; }
.spot__side--fill img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.spot__pile { position: relative; min-height: 340px; }
.spot__chip {
  position: absolute; left: 6px; top: -2px; z-index: 3;
  font-size: 8px; padding: 7px 10px; border-radius: 2px;
  background: var(--bg-dark); color: #fff;
}
.spot__snap {
  position: absolute;
  width: 55%;
  background: #fff;
  padding: 8px 8px 10px;
  box-shadow: 0 8px 20px rgba(16, 20, 31, .25);
  transition: transform .18s steps(3);
}
.spot__snap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spot__snap--a { left: 0; top: 12px; transform: rotate(-3.5deg); z-index: 1; }
.spot__snap--b { right: 0; bottom: 2px; transform: rotate(2.5deg); z-index: 2; }
/* マスキングテープ */
.spot__snap--a::before {
  content: "";
  position: absolute; top: -10px; left: 36%;
  width: 86px; height: 22px;
  background: rgba(255, 210, 60, .85);
  transform: rotate(-4deg);
}
.spot__snap--b::before {
  content: "";
  position: absolute; top: -9px; right: 12%;
  width: 70px; height: 20px;
  background: rgba(45, 156, 232, .55);
  transform: rotate(5deg);
}
/* ホバーで扇状にひらく */
.spot--wide:hover .spot__snap--a { transform: rotate(-6deg) translate(-8px, -6px); }
.spot--wide:hover .spot__snap--b { transform: rotate(5deg) translate(8px, 4px); }
@keyframes nudge { 50% { transform: translateX(4px); } }
.spot__name { font-weight: 700; font-size: 16px; text-align: left; padding: 10px 4px; }

/* ============ NEWS（GBメニュー風リスト） ============ */
.news {
  max-width: 880px;
  margin: 30px auto 0;
  background: var(--gb-lightest);
  border: 4px solid var(--gb-darkest);
  border-radius: 6px;
  box-shadow: 8px 8px 0 rgba(15, 56, 15, .25);
  padding: 10px 0;
  text-align: left;
  image-rendering: pixelated;
}
.news__item {
  position: relative;
  display: flex; align-items: baseline; gap: 20px;
  padding: 18px 28px 18px 46px;
  transition: background .1s steps(2);
}
.news__item + .news__item {
  border-top: 2px dashed rgba(15, 56, 15, .3);
}
.news__item::before {
  content: "▶";
  position: absolute; left: 20px;
  font-family: var(--font-dot); font-size: 13px;
  color: var(--gb-darkest);
  opacity: 0;
}
.news__item:hover { background: rgba(255, 255, 255, .35); }
.news__item:hover::before { opacity: 1; animation: nudge 0.8s steps(2) infinite; }
.news__item time {
  flex: 0 0 auto;
  font-size: 11px; color: var(--gb-dark);
}
.news__title { color: var(--gb-darkest); font-size: 15px; font-weight: 500; line-height: 1.7; }
.news__item:hover .news__title { text-decoration: underline; }
.news__new {
  flex: 0 0 auto;
  align-self: center;
  background: var(--cta); color: #fff;
  font-size: 8px; padding: 5px 8px; border-radius: 2px;
  animation: blink 1.2s steps(2) infinite;
}

/* ============ CTA ============ */
.cta { overflow: hidden; }
.cta .heading { text-shadow:
  -3px -3px 0 var(--bg-darker), 3px -3px 0 var(--bg-darker), -3px 3px 0 var(--bg-darker), 3px 3px 0 var(--bg-darker),
  -3px 0 0 var(--bg-darker), 3px 0 0 var(--bg-darker), 0 -3px 0 var(--bg-darker), 0 3px 0 var(--bg-darker),
  0 7px 0 rgba(0, 0, 0, .5);
}
.cta__label { color: var(--gb-light); font-size: 12px; letter-spacing: 2px; margin-bottom: 22px; }
.cta__actions { margin-top: 14px; }
.btn--xl { padding: 22px 56px; font-size: 16px; }
.cta__note { margin-top: 30px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.cta__note a { color: var(--gb-light); text-decoration: underline; }
.cta__note a:hover { color: var(--yellow); }

/* ============ FOOTER ============ */
.footer { background: var(--bg-dark); border-top: 1px solid rgba(255, 255, 255, .1); padding: 56px 0; color: #fff; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__logo img { height: 52px; width: auto; }
.footer__links { display: flex; gap: 28px; font-size: 13px; }
.footer__links a { opacity: .75; }
.footer__links a:hover { opacity: 1; color: var(--yellow); }
.footer__copy { margin-top: 24px; font-size: 12px; opacity: .5; }

/* ============ REVEAL (JSで制御) ============ */
.reveal { opacity: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1360px) {
  .hero__preview { left: 40px; top: 120px; }
  .hero__preview-screen { width: 230px; }
}

@media (max-width: 860px) {
  .sp { display: inline; }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }

  /* SPは絶対配置をやめて縦積みフローに（どの画面高さでも被らない） */
  .hero {
    height: auto; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center;
    padding: 92px 0 40px;
  }
  .hero__bg { background-position: center 45%; }
  .hero__logo { position: static; width: 80vw; margin: 0 auto; }
  .hero__preview {
    position: static; left: auto; top: auto;
    margin: 30px auto 0;
    transform: rotate(-2deg);
  }
  .hero__preview-screen { width: 190px; }
  .hero__content {
    position: static; margin-top: auto;
    padding: 36px 20px 0;
  }
  .hero__cta .btn { width: 100%; text-align: center; }
  .hero__cta { flex-direction: column; }

  .photoroll { margin-top: 48px; }
  .photoroll__track { animation-duration: 20s; }
  .photoroll__track img { height: 130px; padding: 5px; margin-right: 16px; }
  .npc--swim { width: 90px; right: 3%; bottom: 10px; }
  .npc--family { width: 110px; left: 4%; bottom: 8px; }
  #spots { padding-bottom: 130px; }
  .npc--cheer { width: 74px; right: 5%; bottom: 16px; }
  .about__inner { flex-direction: column-reverse; gap: 32px; text-align: center; }
  .about__photo { flex: none; width: 100%; }
  .about__photo figcaption { text-align: left; }
  .about__text { text-align: left; font-size: 14px; }
  .gbmap { padding: 8px; }

  .game, .game--reverse { flex-direction: column; gap: 12px; margin-top: 64px; }
  /* SPでは「番号 → タイトル → 写真・GB画面 → 史実・内容」の順に並べ替え */
  .game__text { display: contents; }
  .game__num { order: -3; margin-bottom: 0; }
  .game__title { order: -2; margin-bottom: 0; }
  .game__media { order: -1; margin: 8px 0 10px; }
  /* SPでは重ねず「写真 → バッジ → GB画面」の縦積みに */
  .game__media {
    flex: none; width: 100%; height: auto; min-height: 0;
    display: flex; flex-direction: column;
  }
  .game__char { height: 170px; bottom: -22px; right: -14px; }
  .game--reverse .game__char { left: -14px; }
  #game-fps .game__char { left: auto; right: -14px; }
  #game-gokart .game__char { bottom: auto; left: auto; top: -20px; right: -14px; height: 140px; }
  #game-shooting .game__char { height: 140px; }
  #game-skate .game__char { top: -26px; left: -12px; bottom: auto; right: auto; }
  .polaroid { position: relative; width: 100%; order: 1; }
  .polaroid figcaption { max-width: none; }
  .polaroid--tiltR { left: auto; right: auto; }
  .badge {
    position: static; order: 2;
    align-self: center;
    margin: 14px 0;
  }
  .gbscreen {
    position: relative; order: 3;
    width: 88%; margin: 0 auto;
  }
  .game--reverse .gbscreen { margin: 0 auto; }

  .track { padding: 10px; gap: 10px; }
  .track::before { width: 32px; height: 32px; font-size: 10px; }
  .track__name { font-size: 13px; }
  .news__item { flex-direction: column; gap: 6px; padding: 16px 20px 16px 34px; }
  .news__item::before { left: 14px; top: 19px; }
  .news__title { font-size: 14px; }
  .news__new { position: absolute; right: 14px; top: 16px; }
  .system__steps { flex-direction: column; gap: 12px; }
  .sysstep__arrow { transform: rotate(90deg); }
  .system__challenge { font-size: 17px; }
  .more { flex-direction: column; gap: 24px; padding: 28px 22px; margin-top: 64px; }
  .more__screen { flex: none; width: 100%; }
  .spots__grid { grid-template-columns: 1fr; }
  .spot--wide { grid-column: auto; }
  .spot__pair--wide { grid-template-columns: 1fr; }
  .spot__pair--wide .spot__arrow { display: none; }
  .spot__pair--wide .spot__side--fill { grid-column: auto; height: auto; }
  .spot__pair--wide .spot__side--fill img { aspect-ratio: 16 / 9; height: auto; }
  .spot__pile { min-height: 66vw; margin-bottom: 10px; }
  .spot__snap { width: 58%; }
  .chars__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  /* 奇数で1枚だけ余ったカード（夢の中の住人）は中央寄せ */
  .char--dream { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  .char { padding: 16px 14px 20px; }
  .char__img { height: 130px; }
  .char__img img { max-height: 124px; }
  .char__role { font-size: 12px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
