:root {
  --bg: #0b1026;
  --panel: #141b3a;
  --line: #2c3a6e;
  --text: #e8ecf8;
  --muted: #9aa6cc;
  --gold: #f6c453;
  --gold-d: #a8701a;
  --green: #5fd0a8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DotGothic16", "Hiragino Sans", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: none;
}
img { image-rendering: pixelated; max-width: 100%; height: auto; display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 22%, #cfe 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 30%, #fff 50%, transparent 51%),
    linear-gradient(#05081a 0%, #0c1531 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; padding: 6vh 20px 2vh; margin-top: auto; }
.hero h1 { margin: 0 auto; max-width: 640px; }
.hero h1 img { width: 100%; margin: -12% 0 -10%; }
.release {
  display: inline-block; margin: 0 0 12px; padding: 6px 18px;
  background: var(--gold); color: #2a1a06; font-size: 20px;
  box-shadow: 0 4px 0 var(--gold-d);
}
.release span { font-size: 26px; margin-right: 4px; }
.lead { font-size: clamp(16px, 2.4vw, 22px); margin: 8px 0 20px; text-shadow: 0 2px 0 #000; }
.btn {
  display: inline-block; padding: 10px 26px; color: var(--bg); background: var(--green);
  text-decoration: none; box-shadow: 0 4px 0 #2a8a68; font-size: 18px;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 #2a8a68; }
.city { position: relative; width: 100%; min-width: 900px; align-self: center; margin-top: 2vh; container-type: inline-size; }
.hero-city { width: 100%; }

/* ---------- sections ---------- */
main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.block { padding: 64px 0 8px; }
.label {
  display: inline-block; margin: 0 0 24px; padding: 4px 16px; font-size: 22px; font-weight: normal;
  border: 2px solid var(--gold); color: var(--gold); box-shadow: 4px 4px 0 var(--gold-d);
}
.frame { border: 4px solid var(--line); background: #000; box-shadow: 6px 6px 0 #05070f; }
.frame video { width: 100%; height: auto; display: block; }
.about p { font-size: 17px; margin: 0; }

.eras { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.eras li { background: var(--panel); border: 2px solid var(--line); padding: 10px 10px 14px; color: var(--muted); font-size: 15px; }
.eras img { border: 2px solid #000; margin-bottom: 10px; }
.eras b { display: block; color: var(--gold); font-weight: normal; font-size: 18px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.features li { background: var(--panel); border-left: 6px solid var(--green); padding: 14px 18px; }
.features h3 { margin: 0 0 4px; font-weight: normal; color: var(--green); font-size: 19px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.shots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.shots img { border: 2px solid var(--line); }

.info dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; font-size: 16px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }

footer { text-align: center; padding: 72px 20px 40px; }
.soon { font-size: clamp(18px, 3vw, 26px); color: var(--gold); margin: 0 0 24px; }
.copy { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 600px) {
  .block { padding-top: 48px; }
  .release { font-size: 16px; }
  .release span { font-size: 21px; }
  .city { margin-left: -40%; }
}

/* ================================================================
   アニメーション（CSS だけで動かす。JavaScript が無効でも動く。
   「視差効果を減らす」の設定でも止めない）
   ================================================================ */

/* 星のまたたき・流れ星 */
.stars { position: absolute; top: 0; left: 0; width: 2px; height: 2px; background: transparent; }
.stars.s1 { box-shadow: 663px 154px #fff, 808px 666px #fff, 98px 74px #fff, 1097px 96px #fff, 748px 596px #fff, 118px 519px #fff, 439px 38px #fff, 176px 444px #fff, 856px 71px #fff, 492px 92px #fff, 1128px 434px #fff, 121px 846px #fff, 1158px 126px #fff, 457px 645px #fff, 1284px 596px #fff, 126px 590px #fff, 1199px 406px #fff, 101px 226px #fff, 95px 570px #fff, 272px 296px #fff, 858px 147px #fff, 1107px 120px #fff, 1169px 315px #fff, 1147px 835px #fff, 1396px 185px #fff, 211px 595px #fff, 1169px 654px #fff, 384px 381px #fff, 199px 560px #fff, 1458px 64px #fff, 1155px 61px #fff, 1267px 210px #fff, 1016px 696px #fff, 1088px 437px #fff, 1591px 321px #fff, 953px 599px #fff, 928px 370px #fff, 613px 254px #fff, 368px 715px #fff, 1597px 249px #fff, 167px 588px #fff, 614px 537px #fff, 1013px 896px #fff, 703px 746px #fff, 919px 294px #fff, 1247px 74px #fff, 241px 524px #fff, 856px 168px #fff, 1550px 350px #fff, 311px 500px #fff, 863px 40px #fff, 1368px 79px #fff, 1565px 571px #fff, 1173px 808px #fff, 642px 348px #fff, 1423px 358px #fff, 1217px 508px #fff, 1187px 816px #fff, 934px 70px #fff, 191px 276px #fff, 970px 713px #fff, 1360px 66px #fff, 124px 748px #fff, 1436px 317px #fff, 1325px 591px #fff, 1395px 841px #fff, 912px 291px #fff, 1467px 395px #fff, 1369px 355px #fff, 46px 472px #fff, 727px 172px #fff, 1251px 119px #fff, 1011px 60px #fff, 446px 786px #fff, 588px 132px #fff, 1512px 253px #fff, 814px 400px #fff, 1016px 82px #fff, 340px 459px #fff, 822px 562px #fff, 569px 140px #fff, 881px 884px #fff, 1126px 285px #fff, 1446px 425px #fff, 734px 699px #fff, 779px 236px #fff, 309px 84px #fff, 360px 154px #fff, 475px 674px #fff, 477px 12px #fff; animation: twinkle 3.2s steps(2) infinite; }
.stars.s2 { box-shadow: 993px 851px #bfe4ff, 1206px 186px #bfe4ff, 538px 288px #bfe4ff, 8px 149px #bfe4ff, 858px 547px #bfe4ff, 756px 624px #bfe4ff, 1159px 326px #bfe4ff, 257px 707px #bfe4ff, 1055px 632px #bfe4ff, 1341px 692px #bfe4ff, 1515px 55px #bfe4ff, 935px 891px #bfe4ff, 1597px 895px #bfe4ff, 1393px 817px #bfe4ff, 1145px 401px #bfe4ff, 815px 408px #bfe4ff, 807px 106px #bfe4ff, 986px 649px #bfe4ff, 820px 63px #bfe4ff, 390px 68px #bfe4ff, 427px 451px #bfe4ff, 332px 112px #bfe4ff, 696px 615px #bfe4ff, 107px 104px #bfe4ff, 0px 580px #bfe4ff, 309px 549px #bfe4ff, 207px 372px #bfe4ff, 1256px 26px #bfe4ff, 144px 895px #bfe4ff, 425px 628px #bfe4ff, 770px 152px #bfe4ff, 1299px 258px #bfe4ff, 711px 616px #bfe4ff, 745px 485px #bfe4ff, 251px 118px #bfe4ff, 999px 477px #bfe4ff, 983px 495px #bfe4ff, 638px 87px #bfe4ff, 295px 104px #bfe4ff, 1535px 350px #bfe4ff, 1516px 271px #bfe4ff, 980px 848px #bfe4ff, 1417px 165px #bfe4ff, 1057px 23px #bfe4ff, 420px 540px #bfe4ff, 740px 150px #bfe4ff, 1413px 556px #bfe4ff, 55px 776px #bfe4ff, 1081px 305px #bfe4ff, 1316px 884px #bfe4ff, 186px 712px #bfe4ff, 534px 530px #bfe4ff, 751px 171px #bfe4ff, 728px 790px #bfe4ff, 456px 545px #bfe4ff, 1109px 797px #bfe4ff, 1029px 337px #bfe4ff, 1303px 228px #bfe4ff, 1255px 830px #bfe4ff, 1553px 873px #bfe4ff; animation: twinkle 2.1s steps(2) infinite .7s; }
.stars.s3 { box-shadow: 399px 825px #ffe9a8, 490px 837px #ffe9a8, 820px 757px #ffe9a8, 464px 204px #ffe9a8, 1060px 504px #ffe9a8, 728px 748px #ffe9a8, 59px 28px #ffe9a8, 572px 483px #ffe9a8, 530px 198px #ffe9a8, 1418px 619px #ffe9a8, 705px 457px #ffe9a8, 1480px 357px #ffe9a8, 746px 82px #ffe9a8, 451px 104px #ffe9a8, 464px 481px #ffe9a8, 402px 345px #ffe9a8, 418px 494px #ffe9a8, 1278px 624px #ffe9a8, 3px 490px #ffe9a8, 1337px 352px #ffe9a8, 1317px 86px #ffe9a8, 1352px 122px #ffe9a8, 795px 801px #ffe9a8, 1457px 768px #ffe9a8, 408px 489px #ffe9a8, 365px 444px #ffe9a8, 1302px 340px #ffe9a8, 177px 820px #ffe9a8, 1478px 405px #ffe9a8, 948px 411px #ffe9a8; animation: twinkle 4.6s steps(3) infinite 1.3s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.shoot {
  position: absolute; top: 12%; left: 70%; width: 90px; height: 2px;
  background: linear-gradient(90deg, #fff, transparent); transform: rotate(-20deg); opacity: 0;
  animation: shoot 7s linear infinite 2s;
}
.shoot.b { top: 26%; left: 35%; animation-duration: 11s; animation-delay: 6s; }
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  2% { opacity: 1; }
  9% { opacity: 0; translate: -340px 125px; }
  100% { opacity: 0; translate: -340px 125px; }
}

/* ロゴ：上から落ちて弾み、そのあとゆっくり浮かんで光る */
.hero h1 { animation: logo-drop 1.1s cubic-bezier(.3, 1.6, .5, 1) both, logo-float 4s ease-in-out 1.2s infinite; }
.hero h1 img { animation: logo-glow 2.4s steps(4) 1.2s infinite; }
@keyframes logo-drop { 0% { transform: translateY(-120vh); } 100% { transform: translateY(0); } }
@keyframes logo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(246, 196, 83, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(246, 196, 83, .75)); }
}

/* リリース予定の札：光が走って、ときどき弾む */
.release { position: relative; overflow: hidden; animation: pop-in .5s steps(5) .9s both, badge-hop 3s ease-in-out 2s infinite; }
.release::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  animation: shine 2.6s ease-in-out 1.6s infinite;
}
@keyframes pop-in { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes badge-hop { 0%, 80%, 100% { translate: 0 0; } 86% { translate: 0 -8px; } 92% { translate: 0 0; } 96% { translate: 0 -3px; } }
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 130%; } }

/* キャッチコピー：1文字ずつ打たれていく */
.type { display: inline-block; clip-path: inset(0 100% 0 0); }
.type.t1 { animation: typing 1s steps(9) 1.5s forwards; }
.type.t2 { animation: typing 1.8s steps(19) 2.6s forwards; }
.type.t2::after { content: "_"; animation: blink .6s steps(1) infinite; }
@keyframes typing { to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 50% { opacity: 0; } }

/* ボタン：ぴょこぴょこ */
.btn { animation: pop-in .4s steps(4) 4.4s both, btn-bob 1.2s steps(2) 5s infinite; }
@keyframes btn-bob { 50% { translate: 0 -4px; } }

/* 街を歩く社員（4コマの歩き絵） */
.street { position: absolute; left: 0; right: 0; bottom: 4.2%; height: 2.9cqw; pointer-events: none; }
.walker {
  position: absolute; bottom: 0; left: 0; width: 1.25cqw; height: 1.9cqw; overflow: hidden;
  animation: walk-across var(--t) linear var(--d) infinite;
}
.walker img { width: 400%; max-width: none; height: 100%; animation: walk-frames .5s steps(4) infinite; }
.walker.rev { animation-name: walk-back; }
.walker.rev img { transform: scaleX(-1); transform-origin: 12.5% 50%; }
@keyframes walk-frames { to { translate: -100% 0; } }
@keyframes walk-across { from { left: -3cqw; } to { left: 103cqw; } }
@keyframes walk-back { from { left: 103cqw; } to { left: -3cqw; } }

/* 時代のキーワードが流れる帯 */
.ticker { overflow: hidden; background: var(--gold); color: #2a1a06; border-block: 4px solid var(--gold-d); white-space: nowrap; }
.ticker-run { display: inline-block; padding: 8px 0; animation: ticker 40s linear infinite; }
.ticker span { margin: 0 22px; font-size: 18px; }
.ticker span::before { content: "◆"; margin-right: 22px; color: var(--gold-d); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* 見出し：▶ が点滅 */
.label::before { content: "▶"; margin-right: 8px; animation: blink 1s steps(1) infinite; }

/* 画面に入ってきたら下からせり上がる（スクロール連動。対応していないブラウザではそのまま表示） */
@supports (animation-timeline: view()) {
  .block > *, .eras li, .features li, .shots img {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
  }
  .features li:nth-child(odd) { animation-name: from-left; }
  .features li:nth-child(even) { animation-name: from-right; }
  .shots img { animation-name: zoom-in; }
}
@keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes from-left { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes from-right { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.7) rotate(-2deg); } to { opacity: 1; transform: none; } }

/* 年代のカード：ふわふわ。のせると跳ねる */
.eras li { transition: transform .15s steps(3); }
.eras li:nth-child(1) img { animation: bob 3s ease-in-out infinite; }
.eras li:nth-child(2) img { animation: bob 3s ease-in-out .4s infinite; }
.eras li:nth-child(3) img { animation: bob 3s ease-in-out .8s infinite; }
.eras li:nth-child(4) img { animation: bob 3s ease-in-out 1.2s infinite; }
.eras li:nth-child(5) img { animation: bob 3s ease-in-out 1.6s infinite; }
.eras li:hover { transform: translateY(-8px); }
@keyframes bob { 50% { translate: 0 -4px; } }
.eras b::after { content: " ★"; color: var(--gold); animation: blink 1.4s steps(1) infinite; }

/* 特徴のカード：左の線の色が時代ごとに移り変わる */
.features li { animation-duration: 6s; }
.features li { border-left-color: var(--green); }
.features h3 { animation: hue 6s steps(6) infinite; }
@keyframes hue { 0%, 100% { color: var(--green); } 33% { color: var(--gold); } 66% { color: #8ab8ff; } }

/* スクリーンショット：ブラウン管の走査線がゆっくり流れる */
.shots { position: relative; }
.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 0, rgba(255, 255, 255, .05) 50%, transparent 100%);
  background-size: 100% 120px; animation: scan 4s linear infinite;
}
@keyframes scan { to { background-position: 0 120px; } }

/* 札幌の雪（どんなゲーム？の欄） */
.about { position: relative; overflow: hidden; }
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i {
  position: absolute; inset: -200px 0 0; display: block;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 60%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 55% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 75% 75%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 90% 10%, #fff 50%, transparent 51%);
  background-size: 260px 200px; opacity: .7; animation: snow 9s linear infinite;
}
.snow i.b { background-size: 180px 150px; opacity: .45; animation-duration: 14s; animation-direction: normal; }
@keyframes snow { to { transform: translate(-40px, 200px); } }
.about p { position: relative; }

/* 足もとを歩く猫 */
.footer-walk { position: relative; height: 40px; overflow: hidden; margin-bottom: 24px; }
.cat { position: absolute; bottom: 0; width: 32px; height: 48px; overflow: hidden; animation: walk-across 18s linear infinite; }
.footer-walk { container-type: inline-size; }
.cat img { width: 400%; max-width: none; height: 100%; animation: walk-frames .6s steps(4) infinite; }

/* リリースのお知らせ：ゲームの「PRESS START」のように点滅 */
.soon { animation: blink 1.2s steps(1) infinite; }

/* 画像の拡大表示（popover を使うので JavaScript なしで動く。外側を押すか Esc で閉じる） */
.zoomable { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; text-align: inherit; }
.zoomable img { transition: filter .15s steps(2); }
.zoomable:hover img, .zoomable:focus-visible img { filter: brightness(1.15); }
.zoom {
  width: min(96vw, 1600px); max-height: 94vh; margin: auto; padding: 8px; overflow: visible;
  background: var(--panel); border: 4px solid var(--gold); box-shadow: 8px 8px 0 var(--gold-d); color: var(--text);
}
.zoom:popover-open { animation: zoom-open .25s steps(5) both; }
.zoom::backdrop { background: rgba(5, 8, 20, .85); }
.zoom img { width: 100%; max-height: calc(94vh - 70px); object-fit: contain; }
.zoom p { margin: 6px 4px 0; text-align: center; font-size: 16px; color: var(--gold); }
.zoom-close {
  position: absolute; top: -20px; right: -20px; width: 40px; height: 40px; padding: 0;
  font: inherit; font-size: 26px; line-height: 1; cursor: pointer;
  background: var(--gold); color: #2a1a06; border: 0; box-shadow: 0 4px 0 var(--gold-d);
}
@keyframes zoom-open { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) { .zoom-close { top: -14px; right: -6px; } }

/* 体験版のボタンと欄 */
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-play { background: var(--gold); color: #2a1a06; box-shadow: 0 4px 0 var(--gold-d); }
.btn-play:hover { box-shadow: 0 2px 0 var(--gold-d); }
.btn-sub { background: var(--green); }
.btn-play.big { font-size: 24px; padding: 14px 40px; margin: 18px 0 8px; animation: btn-bob 1.2s steps(2) infinite, play-glow 1.6s steps(4) infinite; }
@keyframes play-glow { 50% { filter: drop-shadow(0 0 12px rgba(246, 196, 83, .8)); } }
.demo-box { background: var(--panel); border: 4px solid var(--gold); box-shadow: 6px 6px 0 #05070f; padding: 22px 24px; text-align: center; }
.demo-box p { margin: 0; font-size: 16px; }
.demo-box .note { color: var(--muted); font-size: 13px; }
.info a { color: var(--gold); }

/* 街の絵の空を、上の夜空に溶けこませる（境目の横線を消す）。文字の下まで少し重ねる */
.city { margin-top: -14vw; }
.hero-city {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
.hero-inner { z-index: 2; }
@media (max-width: 600px) { .city { margin-top: -10vh; } }

/* ================================================================
   ワクワク演出（すべて CSS。JavaScript なし・「視差効果を減らす」でも動く）
   ================================================================ */

/* 起動画面：ゲーム機の電源を入れたように始まる */
.boot {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #000; color: var(--gold); pointer-events: none;
  animation: boot-out .5s steps(5) 1.7s forwards;
}
.boot-title { margin: 0; font-size: 44px; text-shadow: 0 4px 0 var(--gold-d); animation: pop-in .4s steps(4) .1s both; }
.boot-load { margin: 0; color: #fff; letter-spacing: .2em; }
.boot-load span { animation: blink .4s steps(1) infinite; }
.boot-bar { width: 220px; height: 14px; border: 2px solid #fff; padding: 2px; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--green); animation: boot-fill 1.4s steps(10) .2s forwards; }
@keyframes boot-fill { to { width: 100%; } }
@keyframes boot-out { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(50% 0 50% 0); visibility: hidden; } }
/* 起動画面が開いてからヒーローの動きを始める */
.hero h1 { animation-delay: 1.9s, 3s; }
.release { animation-delay: 2.7s, 3.8s; }
.type.t1 { animation-delay: 3.4s; }
.type.t2 { animation-delay: 4.4s; }
.btn { animation-delay: 6.2s, 6.8s; }
.hero .btns .btn { animation: pop-in .4s steps(4) 6.2s both, btn-bob 1.2s steps(2) 6.8s infinite; }
.hero .btns .btn-sub { animation-delay: 6.4s, 7s; }

/* 西暦が 1977 から 2026 まで数えあがる */
@property --yr { syntax: "<integer>"; inherits: false; initial-value: 1977; }
.year-run { margin: 6px 0 0; font-size: clamp(40px, 7vw, 76px); line-height: 1; color: #fff; text-shadow: 0 4px 0 #3a2e5a, 0 0 18px rgba(127, 224, 255, .6); }
.year-run small { font-size: .35em; margin-left: 4px; color: var(--muted); }
.yr { --yr: 1977; counter-reset: yr var(--yr); animation: yr-up 4s steps(49) 2.4s forwards; }
.yr::after { content: counter(yr); }
@keyframes yr-up { to { --yr: 2026; } }

/* 建物の札：左から順にポンと出て、スポットライトが当たる（10秒でくり返す） */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -130%;
  padding: .35cqw .7cqw; background: #fff; color: #1b1b24; font-size: max(10px, .95cqw); white-space: nowrap; line-height: 1.3;
  border: max(2px, .15cqw) solid #1b1b24; box-shadow: 0 .25cqw 0 #1b1b24;
  opacity: 0; animation: tag-pop 10s steps(1) infinite; animation-delay: calc(3s + var(--n) * .9s);
}
.tag::after { content: ""; position: absolute; left: 50%; bottom: calc(-1 * max(8px, .6cqw)); translate: -50% 0; border: max(5px, .4cqw) solid transparent; border-top-color: #1b1b24; }
.tag b { display: block; color: #c0392b; font-weight: normal; font-size: 1.25em; }
.tag:nth-child(5) { background: var(--gold); }
@keyframes tag-pop {
  0% { opacity: 1; transform: scale(.2); }
  2% { transform: scale(1.25); }
  4% { transform: scale(1); }
  4%, 60% { opacity: 1; transform: translateY(0); }
  30% { transform: translateY(-6px); }
  61%, 100% { opacity: 0; }
}

/* 本社タワーの上で上場の花火 */
.fireworks { position: absolute; inset: 0; pointer-events: none; }
.fw { position: absolute; width: 4px; height: 4px; border-radius: 0; opacity: 0; animation: fw 10s linear infinite; }
.fw.f1 { left: 84%; top: 14%; box-shadow: 46px 0px 0 #ffd85a, 42px 18px 0 #ffd85a, 33px 33px 0 #ffd85a, 18px 42px 0 #ffd85a, 0px 46px 0 #ffd85a, -18px 42px 0 #ffd85a, -33px 33px 0 #ffd85a, -42px 18px 0 #ffd85a, -46px 0px 0 #ffd85a, -42px -18px 0 #ffd85a, -33px -33px 0 #ffd85a, -18px -42px 0 #ffd85a, 0px -46px 0 #ffd85a, 18px -42px 0 #ffd85a, 33px -33px 0 #ffd85a, 42px -18px 0 #ffd85a; animation-delay: 7.6s; }
.fw.f2 { left: 76%; top: 22%; box-shadow: 38px 0px 0 #ff6fa0, 34px 16px 0 #ff6fa0, 24px 30px 0 #ff6fa0, 8px 37px 0 #ff6fa0, -8px 37px 0 #ff6fa0, -24px 30px 0 #ff6fa0, -34px 16px 0 #ff6fa0, -38px 0px 0 #ff6fa0, -34px -16px 0 #ff6fa0, -24px -30px 0 #ff6fa0, -8px -37px 0 #ff6fa0, 8px -37px 0 #ff6fa0, 24px -30px 0 #ff6fa0, 34px -16px 0 #ff6fa0; animation-delay: 8s; }
.fw.f3 { left: 91%; top: 10%; box-shadow: 52px 0px 0 #7fe0ff, 49px 18px 0 #7fe0ff, 40px 33px 0 #7fe0ff, 26px 45px 0 #7fe0ff, 9px 51px 0 #7fe0ff, -9px 51px 0 #7fe0ff, -26px 45px 0 #7fe0ff, -40px 33px 0 #7fe0ff, -49px 18px 0 #7fe0ff, -52px 0px 0 #7fe0ff, -49px -18px 0 #7fe0ff, -40px -33px 0 #7fe0ff, -26px -45px 0 #7fe0ff, -9px -51px 0 #7fe0ff, 9px -51px 0 #7fe0ff, 26px -45px 0 #7fe0ff, 40px -33px 0 #7fe0ff, 49px -18px 0 #7fe0ff; animation-delay: 8.4s; }
.fw.f4 { left: 80%; top: 6%; box-shadow: 30px 0px 0 #a8ff8a, 26px 15px 0 #a8ff8a, 15px 26px 0 #a8ff8a, 0px 30px 0 #a8ff8a, -15px 26px 0 #a8ff8a, -26px 15px 0 #a8ff8a, -30px 0px 0 #a8ff8a, -26px -15px 0 #a8ff8a, -15px -26px 0 #a8ff8a, 0px -30px 0 #a8ff8a, 15px -26px 0 #a8ff8a, 26px -15px 0 #a8ff8a; animation-delay: 8.9s; }
@keyframes fw {
  0% { opacity: 1; transform: scale(.1); }
  6% { opacity: 1; transform: scale(1); }
  12% { opacity: 0; transform: scale(1.15) translateY(10px); }
  100% { opacity: 0; }
}

/* 歩く社員の頭上の吹き出し（ゲームと同じ絵、2コマ） */
.walker { overflow: visible; }
.walker .body { display: block; width: 100%; height: 100%; overflow: hidden; }
.emote {
  position: absolute; left: 50%; bottom: 100%; width: 1.3cqw; height: 1.3cqw; translate: -50% 0;
  background: var(--e) 0 0 / 200% 100% no-repeat; image-rendering: pixelated; opacity: 0;
  animation: emote-frames .5s steps(2) infinite, emote-pop 5s steps(1) infinite; animation-delay: 0s, var(--ed);
}
@keyframes emote-frames { to { background-position-x: 200%; } }
@keyframes emote-pop { 0% { opacity: 1; } 40%, 100% { opacity: 0; } }

/* 数字の欄：ゲームの規模をドンと見せる */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 48px; }
.stat { text-align: center; background: var(--panel); border: 2px solid var(--line); padding: 18px 10px 14px; box-shadow: 4px 4px 0 #05070f; }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.stat small { color: var(--gold); font-size: 22px; margin-left: 4px; }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.num { --n: 0; counter-reset: n var(--n); font-size: 64px; line-height: 1; color: var(--gold); text-shadow: 0 4px 0 var(--gold-d); }
.num::after { content: counter(n); }
.num { animation: count-up 1.6s steps(25) forwards; }
@supports (animation-timeline: view()) {
  .num { animation: count-up linear forwards; animation-timeline: view(); animation-range: entry 10% cover 40%; }
}
@keyframes count-up { to { --n: var(--to); } }
.stat:hover { transform: translateY(-6px) rotate(-1deg); }

/* 年代のカード：大きな年代の数字 */
.eras b { font-size: 30px; line-height: 1.2; text-shadow: 0 3px 0 var(--gold-d); }
.eras li { position: relative; }
.eras li:hover img { animation-play-state: paused; outline: 3px solid var(--gold); }

/* 見出しの「▶」の色を時代ごとに */
.label { background: rgba(246, 196, 83, .06); }

/* 体験版のボタン：ヒーローでも目立たせる */
.hero .btn-play { font-size: 22px; padding: 12px 34px; }

/* 1画面目で街と花火まで見えるように詰める */
.hero h1 { max-width: min(500px, 70vw); }
.hero-inner { padding-top: 3vh; }
.release { margin-bottom: 4px; }
.lead { margin: 4px 0 14px; }
.city { margin-top: -24vw; }
@media (max-width: 600px) { .city { margin-top: -6vh; } }
@keyframes fw {
  0% { opacity: 1; transform: scale(.2); }
  6% { opacity: 1; transform: scale(2.2); }
  12% { opacity: 0; transform: scale(2.5) translateY(14px); }
  100% { opacity: 0; }
}
.fw { width: 6px; height: 6px; }

/* 文字と街の絵が重なるのは空の部分だけにする（ボタンが札を隠さない） */
.hero h1 { max-width: min(460px, 70vw, 52vh); }
.year-run { font-size: clamp(34px, 7vh, 72px); }
.city { margin-top: -9vw; }
@media (max-width: 600px) { .city { margin-top: -4vh; } }

html, body { overflow-x: clip; }

/* 音のボタン（右上に固定。JavaScript が動くときだけ出る） */
.sound-toggle {
  position: fixed; top: 12px; right: 12px; z-index: 50; padding: 8px 14px;
  font: inherit; font-size: 15px; cursor: pointer; color: #2a1a06; background: var(--gold);
  border: 0; box-shadow: 0 4px 0 var(--gold-d); animation: pop-in .4s steps(4) 2s both, btn-bob 1.2s steps(2) 2.6s infinite;
}
.sound-toggle[aria-pressed="true"] { background: var(--green); box-shadow: 0 4px 0 #2a8a68; animation: none; }
.sound-toggle[hidden] { display: none; }

/* スマホ：街の絵を切らずに、左から右へゆっくり流して全部見せる。
   札が左から順に出るのに合わせて右へ動き、本社タワーの花火で止まって、また左へ戻る（札・花火と同じ10秒） */
@media (max-width: 899px) {
  .city { width: 900px; min-width: 900px; margin-left: 0; align-self: flex-start; translate: -230px 0; animation: city-pan 10s ease-in-out 3s infinite; }
}
@keyframes city-pan {
  0%, 8% { translate: -230px 0; }
  45%, 78% { translate: calc(100vw - 900px) 0; }
  100% { translate: -230px 0; }
}

/* PC：ビル5棟（絵の35〜84%）の真ん中が画面の真ん中にくるよう、少し大きくして左へずらす */
@media (min-width: 900px) {
  .city { width: 120%; min-width: 0; margin-left: -20%; align-self: flex-start; }
}
@media (min-width: 900px) {
  .city { margin-top: -14vw; }
  .hero h1 { max-width: min(460px, 70vw, 44vh); }
  .year-run { font-size: clamp(32px, 6vh, 72px); }
}
@media (min-width: 900px) {
  .lead br { display: none; }
  .lead { margin: 2px 0 12px; }
  .release { padding: 4px 16px; }
  .year-run { font-size: clamp(30px, 5.5vh, 68px); }
  .city { margin-top: -11.5vw; }
}

/* スクリーンショットのギャラリー：横にすべらせて見る（スクロールで吸いつく） */
.swipe-hint { margin: -12px 0 10px; color: var(--muted); font-size: 13px; animation: blink 1.6s steps(1) infinite; }
.gallery {
  list-style: none; margin: 0; padding: 4px 4px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 640px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--gold) var(--panel);
}
.gallery li { scroll-snap-align: center; background: var(--panel); border: 2px solid var(--line); padding: 8px 8px 10px; box-shadow: 4px 4px 0 #05070f; transition: transform .15s steps(3); }
.gallery li:hover { transform: translateY(-6px); border-color: var(--gold); }
.gallery img { border: 2px solid #000; }
.gallery p { margin: 8px 2px 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.gallery b { display: block; color: var(--gold); font-weight: normal; font-size: 18px; }
@media (max-width: 600px) { .gallery { grid-auto-columns: 86%; } }

/* ボタンの文字を上下の真ん中にそろえる */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; line-height: 1.2; }

/* 初めて開いたときの「音を出しますか？」。答えるまで、起動画面と演出を止めて待つ */
html.asking *, html.asking *::before, html.asking *::after { animation-play-state: paused !important; }
.sound-ask {
  max-width: min(440px, 90vw); padding: 22px 22px 16px; text-align: center;
  background: var(--panel); color: var(--text); border: 4px solid var(--gold); box-shadow: 8px 8px 0 var(--gold-d);
  font-family: inherit;
}
.sound-ask::backdrop { background: rgba(0, 0, 0, .55); }
.sound-ask[open] { animation: pop-in .3s steps(4) both !important; animation-play-state: running !important; }
.sound-ask p { margin: 0 0 10px; font-size: 15px; }
.sound-ask-title { font-size: 22px !important; color: var(--gold); }
.sound-ask-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0 12px; }
.sound-ask-btns .btn { font: inherit; font-size: 17px; padding: 10px 20px; border: 0; cursor: pointer; animation: none !important; }
.sound-ask-note { color: var(--muted); font-size: 12px !important; margin: 0 !important; }

/* スマホ：音のボタンはロゴに重ならないよう右下に小さく */
@media (max-width: 600px) {
  .sound-toggle { top: auto; bottom: 14px; right: 12px; font-size: 13px; padding: 7px 11px; }
}
