/* MatchFantasy 事前登録LP（2026-10-04 作り直し）
   型は1つに固定: 見出し=ロゴと同じ作り(lettering.js) / 枠=濃紺の太縁+ぼかしなしの影 / 継ぎ目=波形の縁 / 背景=空色と黄色の交互 */
:root {
  --ink: #151a33;
  --cream: #fff3d2;
  --paper: #fffaf0;
  --gold: #ffcd5c;
  --gold-hi: #ffe46b;
  --gold-lo: #ffb81c;
  --sky-1: #52b9ee;
  --sky-2: #a9e6ff;
  --band-1: #ffd43b;
  --band-2: #ffc928;
  --red: #ff5048;
  --blue: #3f8cff;
  --green: #35c759;
  --font: 'LPRounded', 'Hiragino Maru Gothic ProN', 'Rounded Mplus 1c', sans-serif;
  --edge: 3.5px solid var(--ink);
  --drop: 0 6px 0 var(--ink);
  --wrap: min(100% - 32px, 1040px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky-1); color: var(--ink); font-family: var(--font); font-weight: 900; line-height: 1.5; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; position: relative; z-index: 2; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

/* ---------- 背景2種 ---------- */
.sky { position: relative; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 100%); --seam: var(--sky-1); --seam-back: #3fa6dc; }
.band { position: relative; background-color: var(--band-1); --seam: var(--band-1); --seam-back: #f2b90f;
  background-image: conic-gradient(var(--band-2) 25%, transparent 0 50%, var(--band-2) 0 75%, transparent 0);
  background-size: 88px 88px; }
.sky-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sky-stars::before { content: ''; position: absolute; inset: -160px 0 0; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='160'%3E%3Cg fill='%23fff'%3E%3Cpath d='M30 18c2 8 4 10 12 12-8 2-10 4-12 12-2-8-4-10-12-12 8-2 10-4 12-12z'/%3E%3Cpath d='M128 70c1.5 6 3 7.5 9 9-6 1.5-7.5 3-9 9-1.5-6-3-7.5-9-9 6-1.5 7.5-3 9-9z'/%3E%3Ccircle cx='86' cy='132' r='3'/%3E%3Ccircle cx='160' cy='20' r='2.5'/%3E%3Ccircle cx='54' cy='96' r='2'/%3E%3C/g%3E%3C/svg%3E");
  animation: stars-drift 22s linear infinite; }
@keyframes stars-drift { to { transform: translateY(160px); } }

/* 継ぎ目は1種類: 前のセクションへ食い込む波形の縁（2列。後列は少し暗い） */
.cloud-top { position: absolute; left: 0; right: 0; top: -30px; height: 32px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 30px 36px, var(--seam) 29px, transparent 29.6px) 0 0 / 50px 36px repeat-x,
    radial-gradient(circle at 30px 30px, var(--seam-back) 29px, transparent 29.6px) 25px -8px / 50px 36px repeat-x; }

/* ---------- ヘッダー（追従） ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px 0 12px; transition: background-color .2s, box-shadow .2s, transform .25s; }
.bar.is-solid { background: var(--paper); box-shadow: 0 3.5px 0 var(--ink); }
.bar-logo img { width: 128px; height: auto; transition: opacity .2s; }
.bar:not(.is-solid) .bar-logo img { opacity: 0; }
.bar-cta { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 8px; border: var(--edge); border-radius: 999px; text-decoration: none; font-size: 15px; letter-spacing: .02em;
  background: linear-gradient(var(--gold-hi) 0 52%, var(--gold-lo) 52%); box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.7); }
.bar-cta img { width: 30px; height: auto; margin: -6px 0; }
.bar-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- 共通部品 ---------- */
.card { position: relative; background: var(--paper); border: var(--edge); border-radius: 22px; box-shadow: var(--drop); }
.ribbon { position: absolute; left: 50%; top: 0; margin: 0; transform: translate(-50%, -55%) rotate(-2deg); white-space: nowrap; padding: 6px 22px; font-size: 16px; color: #fff; background: var(--red); border: var(--edge); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.ribbon-blue { background: var(--blue); }
.cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 330px); height: 64px; margin: 0 auto; border: var(--edge); border-radius: 999px; text-decoration: none; font-size: 21px; letter-spacing: .02em;
  background: linear-gradient(var(--gold-hi) 0 52%, var(--gold-lo) 52%); box-shadow: var(--drop), inset 0 3px 0 rgba(255,255,255,.75); animation: cta-pulse 1.9s ease-in-out infinite; }
.cta b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 24px; line-height: 1; padding-bottom: 3px; }
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); animation: none; }
.cta-hand { position: absolute; right: -8px; bottom: -26px; width: 46px; height: 52px; animation: hand-tap 1.1s ease-in-out infinite; pointer-events: none; }
@keyframes cta-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
@keyframes hand-tap { 0%, 100% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(-6px, -8px) rotate(-12deg); } }
.phone { position: relative; margin: 0; padding: 7px; background: #fff; border: 4px solid var(--ink); border-radius: 30px; box-shadow: 7px 8px 0 var(--ink); }
.phone video, .phone > img { width: 100%; height: auto; aspect-ratio: 780 / 1688; object-fit: cover; border-radius: 22px; background: #2a3d2a; }
.phone::after { content: ''; position: absolute; left: 50%; top: 13px; width: 30%; height: 9px; transform: translateX(-50%); border-radius: 9px; background: var(--ink); opacity: .9; }
.spark { position: absolute; width: 30px; height: 30px; z-index: 6; animation: twinkle 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); } 50% { transform: scale(1.1) rotate(45deg); } }

/* 見出し: 小さなタグ＋ロゴと同じ作りの大見出し */
.head { text-align: center; margin-bottom: 26px; }
.tag { display: inline-block; margin: 0 0 4px; padding: 4px 14px; font-size: 14px; letter-spacing: .06em; color: #fff; background: var(--ink); border-radius: 999px; }
.tag-hot { background: var(--red); border: 3px solid var(--ink); }
.head-sub { margin: 8px 0 0; font-size: 15px; }
.lt { margin: 0; font-size: 50px; line-height: 1.1; }
.lt.is-ready { display: flex; justify-content: center; }
.lt.is-ready svg { height: auto; max-width: 100%; overflow: visible; }
h2.lt:not(.is-ready) { color: var(--cream); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }

/* ---------- ファーストビュー ---------- */
.fv { overflow-x: clip; padding: 58px 0 64px; min-height: min(100svh, 900px); }
.fv-logo { position: relative; z-index: 4; width: min(80vw, 340px); height: auto; margin: 0 auto; animation: logo-in .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes logo-in { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
.fv-stage { position: relative; z-index: 3; width: min(100%, 420px); height: 452px; margin: -2px auto 0; }
.fv-phone, .phone-back { position: absolute; left: 50%; top: 0; width: 172px; }
.fv-phone { transform: translateX(-50%) rotate(-4deg); z-index: 3; animation: card-in .6s .15s cubic-bezier(.2,1.4,.4,1) both; }
.phone-back { height: 372px; transform: translateX(-38%) rotate(7deg); z-index: 1; background: var(--cream); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 7px 8px 0 var(--ink); }
@keyframes card-in { from { transform: translateX(-50%) translateY(60px) rotate(8deg) scale(.8); opacity: 0; } }
.fv-mon { position: absolute; height: auto; z-index: 4; filter: drop-shadow(0 5px 0 rgba(21,26,51,.35)); animation: mon-bob 3.2s ease-in-out infinite; }
.fv-mon-a { width: 168px; left: max(-12px, calc(50% - 218px)); bottom: 96px; animation-delay: -.6s; }
.fv-mon-b { width: 150px; right: max(-14px, calc(50% - 220px)); bottom: 128px; animation-delay: -1.7s; }
.fv-mon-c { width: 104px; right: max(14px, calc(50% - 180px)); top: 2px; z-index: 2; animation-delay: -2.4s; }
@keyframes mon-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fv-catch { position: absolute; left: 50%; bottom: -8px; width: 380px; max-width: 100vw; transform: translateX(-50%); z-index: 6; font-size: 54px; }
.spark-1 { left: calc(50% - 150px); top: 40px; }
.spark-2 { right: calc(50% - 120px); top: 150px; width: 22px; height: 22px; animation-delay: -1.2s; }
.pv-sticker { position: absolute; right: -24px; top: 18px; z-index: 5; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: var(--edge); border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--ink); cursor: pointer; transform: rotate(10deg); animation: sticker 2.6s ease-in-out infinite; }
.pv-sticker svg { width: 22px; height: 22px; margin: 6px 0 -6px 3px; }
.pv-sticker b { font-size: 15px; line-height: 1; margin-bottom: 8px; }
@keyframes sticker { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }
.fv-offer { position: relative; z-index: 5; width: var(--wrap); margin: 14px auto 0; display: grid; gap: 14px; justify-items: center; }
.offer-chip { display: flex; align-items: center; gap: 4px; padding: 4px 18px 4px 6px; text-decoration: none; background: var(--paper); border: var(--edge); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-1.5deg); }
.offer-chip img { width: 58px; height: auto; margin: -14px 0 -8px; }
.offer-chip span { display: grid; line-height: 1.15; }
.offer-chip small { font-size: 12px; color: #5a5f78; }
.offer-chip strong { font-size: 17px; }
.offer-chip em { font-style: normal; color: var(--red); font-size: 22px; margin-left: 4px; }

/* ---------- 事前登録特典 ---------- */
.gift { padding: 64px 0 72px; }
.gift-base { max-width: 420px; margin: 18px auto 0; padding: 34px 16px 18px; text-align: center; }
.gift-items { display: flex; align-items: center; justify-content: center; gap: 6px; }
.gift-item { display: grid; justify-items: center; }
.gift-item img { width: 104px; height: auto; margin-bottom: -4px; }
.gift-item p { margin: 0; display: flex; align-items: baseline; gap: 2px; font-size: 14px; }
.gift-item b { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.gift-plus { font-size: 30px; color: var(--red); }
.gift-equals { display: inline-block; margin: 12px 0 0; padding: 6px 18px; font-size: 18px; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; }
.gift-equals b { color: var(--red); font-size: 24px; }
.road-head { text-align: center; margin: 40px 0 6px; }
.road-lead { margin: 0; display: inline-grid; line-height: 1.1; }
.road-lead span { font-size: 18px; }
.road-lead strong { font-size: 30px; }
.road-lead strong b { color: var(--red); font-size: 50px; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; padding: 0 2px; }
.road { position: relative; list-style: none; margin: 10px auto 0; padding: 0; max-width: 440px; display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
.road::before, .road::after { content: ''; position: absolute; z-index: 0; border-left: 0; }
.road::before { left: calc(16% - 4px); right: calc(15% - 4px); top: 34px; height: 198px; border: 24px solid var(--ink); border-left: 0; border-radius: 0 99px 99px 0; }
.road::after { left: 16%; right: 15%; top: 38px; height: 190px; border: 16px solid #e3a33b; border-left: 0; border-radius: 0 95px 95px 0; }
.stop { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.stop:nth-child(5) { grid-column: 3; grid-row: 2; }
.stop:nth-child(6) { grid-column: 1 / span 2; grid-row: 2; }
.stop-medal { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--paper); border: var(--edge); box-shadow: 0 4px 0 var(--ink); }
.stop-medal img { width: 64px; height: auto; }
.stop-count { margin-top: -10px; padding: 1px 12px; font-size: 16px; color: #fff; background: var(--ink); border-radius: 999px; }
.stop-count small { font-size: 11px; margin-left: 1px; }
.stop-total { font-size: 13px; margin-top: 2px; }
.stop-total b { font-size: 20px; color: var(--red); margin: 0 1px; }
.stop-goal .stop-medal { width: 112px; height: 112px; background: radial-gradient(circle, #fff6c8 0 45%, var(--gold) 46%); }
.stop-goal .stop-medal img { width: 92px; }
.stop-goal .stop-total { font-size: 15px; }
.stop-goal .stop-total b { font-size: 30px; }
.stop-goal::before { content: 'GOAL'; position: absolute; top: -12px; left: calc(50% + 30px); z-index: 2; padding: 1px 8px; font-size: 13px; color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 8px; transform: rotate(10deg); }
.fine { max-width: 440px; margin: 22px auto 0; font-size: 11.5px; line-height: 1.6; font-weight: 700; color: #4a3b10; }
.share-row { display: grid; justify-items: center; gap: 14px; margin-top: 22px; }
.share-row .cta { font-size: 18px; }
.x-share { height: 44px; padding: 0 22px; border: var(--edge); border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 4px 0 rgba(21,26,51,.4); cursor: pointer; font-size: 15px; }

/* ---------- あそびかた（横スワイプのカード） ---------- */
.game { padding: 64px 0 56px; overflow-x: clip; }
.feat-rail { position: relative; z-index: 2; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px calc((100vw - min(76vw, 300px)) / 2) 34px; scrollbar-width: none; overscroll-behavior-x: contain; }
.feat-rail::-webkit-scrollbar { display: none; }
.feat { position: relative; flex: 0 0 min(76vw, 300px); scroll-snap-align: center; display: grid; justify-items: center; transition: transform .3s, opacity .3s; }
.feat:not(.is-active) { transform: scale(.9); opacity: .75; }
.feat-title { position: relative; z-index: 4; height: 64px; margin-bottom: -10px; font-size: 48px; }
.feat .phone { width: min(62vw, 228px); z-index: 2; }
.phone-still > img { aspect-ratio: 780 / 1688; object-position: 50% 30%; }
.feat-band { position: relative; z-index: 3; margin: -22px 0 0; padding: 8px 16px; font-size: 16px; color: #fff; background: var(--ink); border: 3px solid #fff; border-radius: 12px; box-shadow: 0 4px 0 rgba(21,26,51,.45); transform: rotate(-2deg); white-space: nowrap; }
.feat-band b { color: var(--gold); }
.feat-mon { position: absolute; z-index: 3; width: 118px; height: auto; left: -14px; bottom: 74px; filter: drop-shadow(0 4px 0 rgba(21,26,51,.35)); }
.feat:nth-child(even) .feat-mon { left: auto; right: -14px; }
.rail-dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.rail-dots button { width: 14px; height: 14px; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: #fff; cursor: pointer; transition: width .2s; }
.rail-dots button[aria-selected="true"] { width: 34px; border-radius: 999px; background: var(--gold); }
.pv-row { margin-top: 28px; }
.pv-btn { display: flex; align-items: center; gap: 12px; width: min(100%, 340px); margin: 0 auto; padding: 8px 14px 8px 8px; text-align: left; background: var(--paper); border: var(--edge); border-radius: 18px; box-shadow: var(--drop); cursor: pointer; }
.pv-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.pv-thumb { position: relative; flex: 0 0 auto; width: 54px; height: 72px; border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb svg { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 2px 0 var(--ink)); }
.pv-btn > span:nth-child(2) { display: grid; flex: 1; line-height: 1.2; }
.pv-btn small { font-size: 12px; color: #5a5f78; }
.pv-btn strong { font-size: 19px; }
.pv-btn > b { font-size: 30px; line-height: 1; }

/* ---------- 体験バトル ---------- */
.try { padding: 64px 0 72px; }
.try-mount { display: flex; justify-content: center; min-height: 560px; }

/* ---------- 冒険の舞台 ---------- */
.world { padding: 64px 0 64px; overflow-x: clip; }
.lands { position: relative; z-index: 2; list-style: none; margin: 0; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 16px 18px; scrollbar-width: none; }
.lands::-webkit-scrollbar { display: none; }
.lands li { flex: 0 0 auto; scroll-snap-align: center; }
.land { position: relative; display: grid; justify-items: center; width: 132px; padding: 0; border: 0; background: none; cursor: pointer; }
.land-window { display: block; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 0 0 4px #fff, 0 6px 0 4px var(--ink); background: #fff; }
.land-window img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.land-boss { position: absolute; width: 74px; height: auto; right: -4px; top: 58px; filter: drop-shadow(0 3px 0 rgba(21,26,51,.4)); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.land-no { position: absolute; left: 2px; top: -4px; display: grid; place-items: center; width: 34px; height: 34px; font-size: 14px; background: var(--gold); border: 3px solid var(--ink); border-radius: 50%; }
.land-name { margin-top: 14px; padding: 3px 10px; font-size: 13px; white-space: nowrap; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; }
.land[aria-pressed="true"] .land-window { box-shadow: 0 0 0 4px var(--gold), 0 6px 0 4px var(--ink); }
.land[aria-pressed="true"] .land-boss { transform: scale(1.25) translateY(-6px); }
.land[aria-pressed="true"] .land-name { background: var(--gold); }
.boss-block { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; margin-top: 18px; max-width: 460px; }
.boss-phone { width: 150px; transform: rotate(-3deg); }
.boss-copy { position: relative; min-height: 300px; display: grid; align-content: start; gap: 6px; }
.boss-warn { justify-self: start; margin: 4px 0 0; padding: 2px 12px; font-size: 14px; letter-spacing: .14em; color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 8px; transform: rotate(-3deg); }
.boss-line { margin: 0; display: grid; line-height: 1.1; }
.boss-line span { font-size: 17px; }
.boss-line strong { font-size: 40px; color: var(--cream); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; }
.boss-picked { justify-self: start; margin: 4px 0 0; display: grid; padding: 6px 12px; line-height: 1.15; font-size: 18px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.boss-picked small { font-size: 12px; color: #5a5f78; }
.boss-big { position: absolute; right: -20px; bottom: -14px; width: 190px; height: auto; z-index: -1; filter: drop-shadow(0 5px 0 rgba(21,26,51,.35)); }

/* ---------- なかま ---------- */
.friends { padding: 64px 0 40px; overflow-x: clip; }
.show { display: grid; justify-items: center; }
.show-stage { position: relative; width: 280px; height: 260px; display: grid; place-items: center; }
.show-rays { position: absolute; inset: -40px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.55) 0 10deg, transparent 10deg 24deg); mask: radial-gradient(circle, #000 30%, transparent 68%); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.show-img { position: relative; width: 250px; height: 240px; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(21,26,51,.35)); }
.show-img.is-pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.5) translateY(30px); opacity: 0; } }
.show-plate { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 16px 6px 8px; background: var(--paper); border: var(--edge); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-2deg); }
.show-plate img { width: 34px; height: 34px; }
.show-plate b { font-size: 24px; }
.show-stars { color: var(--gold-lo); -webkit-text-stroke: 1.5px var(--ink); font-size: 16px; letter-spacing: -2px; }
.show-thumbs { display: grid; grid-template-columns: repeat(4, 58px); gap: 10px; margin-top: 18px; }
.show-thumbs button { width: 58px; height: 58px; padding: 3px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.show-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.show-thumbs button[aria-pressed="true"] { background: var(--gold); transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.marquee { position: relative; z-index: 1; margin-top: 30px; display: grid; gap: 6px; }
.marquee-row { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee-row img { width: 82px; height: 82px; object-fit: contain; padding: 6px; background: rgba(255,250,240,.75); border: 3px solid var(--ink); border-radius: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 締め ---------- */
.final { padding: 64px 0 150px; overflow-x: clip; text-align: center; }
.final-logo { width: min(76vw, 320px); height: auto; margin: 0 auto 6px; }
.final .lt { margin-bottom: 30px; }
.final-card { max-width: 420px; margin: 0 auto; padding: 34px 18px 20px; }
.final-status { margin: 0; display: grid; gap: 4px; }
.final-status strong { font-size: 26px; }
.final-status span { font-size: 13px; font-weight: 700; line-height: 1.6; }
.store-row { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.store { display: grid; place-items: center; width: 150px; height: 56px; line-height: 1.1; text-decoration: none; color: #fff; background: var(--ink); border: 3px solid var(--ink); border-radius: 14px; }
.store span { font-size: 17px; }
.store small { font-size: 11px; color: var(--gold); }
.store.is-soon { opacity: .9; cursor: default; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none; overflow: hidden; }
.planet { position: absolute; left: 50%; bottom: -560px; width: 1400px; height: 640px; transform: translateX(-50%); border-radius: 50%; background: #8fe07a; border-top: 4px solid var(--ink); box-shadow: inset 0 14px 0 #b9f29b; }
.idle { position: absolute; bottom: 22px; left: var(--x); width: var(--s); height: var(--s); transform: translateX(-50%); background-size: 600% 600%; background-repeat: no-repeat; }
.idle.flip { transform: translateX(-50%) scaleX(-1); }

/* ---------- フッター ---------- */
.foot { display: grid; justify-items: center; gap: 8px; padding: 30px 16px 40px; background: var(--ink); color: #fff; text-align: center; }
.foot img { width: 150px; height: auto; }
.foot p { margin: 0; font-size: 12px; font-weight: 700; }
.foot small { font-size: 11px; opacity: .8; }

/* ---------- PV ---------- */
.pv-modal { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(21,26,51,.9); }
.pv-modal[open] { display: grid; place-items: center; }
.pv-modal::backdrop { background: transparent; }
.pv-frame { width: min(92vw, calc(86svh * 9 / 16)); border: 4px solid #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 4px var(--ink); }
.pv-frame video { width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; }
.pv-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: var(--edge); border-radius: 50%; background: var(--paper); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 #000; }

/* ---------- 入場 ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .5s, transform .6s cubic-bezier(.2,1.2,.4,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- PC幅 ---------- */
@media (min-width: 900px) {
  .bar { height: 64px; padding: 0 24px; }
  .bar-logo img, .bar:not(.is-solid) .bar-logo img { width: 160px; opacity: 1; }
  .fv { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr; column-gap: 20px; align-items: center; padding: 84px max(32px, calc(50% - 560px)) 70px; min-height: min(100svh, 860px); }
  .fv-logo { grid-column: 1; grid-row: 2; width: min(100%, 500px); margin: 0 auto; }
  .fv-offer { grid-column: 1; grid-row: 3; width: 100%; margin-top: 34px; align-self: start; }
  .fv-offer .cta { width: 360px; height: 70px; font-size: 23px; }
  .offer-chip { transform: rotate(-1.5deg) scale(1.12); }
  .fv-stage { grid-column: 2; grid-row: 1 / -1; height: 470px; transform: scale(1.18); transform-origin: center; }
  .feat-mon { width: 92px; left: -18px; bottom: 80px; }
  .feat:nth-child(even) .feat-mon { right: -18px; }
  .lt { font-size: 60px; }
  .feat-rail { justify-content: center; padding-inline: 32px; flex-wrap: nowrap; overflow-x: auto; }
  .feat { flex-basis: 260px; }
  .feat:not(.is-active) { transform: none; opacity: 1; }
  .feat .phone { width: 210px; }
  .rail-dots { display: none; }
  .lands { justify-content: safe center; }
  .boss-block { max-width: 640px; grid-template-columns: 200px 1fr; }
  .boss-phone { width: 200px; }
  .boss-big { width: 280px; }
}
@media (max-width: 359px) {
  .lt { font-size: 42px; }
  .fv-catch { font-size: 52px; }
  .fv-stage { transform: scale(.9); transform-origin: top center; height: 400px; }
  .cta { font-size: 18px; }
  .show-thumbs { grid-template-columns: repeat(4, 52px); }
  .show-thumbs button { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.boss-big.is-pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }

/* 道のスタート地点に立つ相棒 */
.road-start { position: absolute; left: -2px; top: -46px; width: 64px; height: 84px; z-index: 2; }
.road-start .idle { bottom: 18px; }
.road-start span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 0 6px; font-size: 11px; color: #fff; background: var(--green); border: 2.5px solid var(--ink); border-radius: 6px; }
