/* =========================================================
   CAR SERVICE Comes v2 — 「スクロールが、アクセル。」
   色：BRZ の WRブルー × カーボンの黒 × 赤いライン ＋ 看板の黄色
   書体：Dela Gothic One（和文の見出し）／Zen Kaku Gothic New（本文）
         Saira Condensed（英字の見出し）／Chakra Petch（計器・数字）
   ========================================================= */

:root {
  --bg: #07090d;
  --bg-2: #0c1017;
  --bg-3: #121822;
  --panel: #0f141d;
  --line: rgba(150, 175, 225, .14);
  --line-2: rgba(150, 175, 225, .3);
  --tx: #eef2f8;
  --tx-2: #bcc5d4;
  --tx-3: #8590a3;
  --blue: #2457ff;
  --blue-2: #1b44d6;
  --blue-deep: #0a1a5c;
  --blue-glow: #6b93ff;
  --red: #ff2e3e;
  --red-cta: #d81f2d;
  --red-cta-h: #b8121f;
  --green: #05a64b;
  --green-h: #038a3e;
  --sign: #f7b50f;          /* 看板の黄色 */
  --en: 'Saira Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --hud: 'Chakra Petch', 'Consolas', monospace;
  --disp: 'Dela Gothic One', 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --ja: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  --hd-h: 76px;
  --gut: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --sec: clamp(104px, 12vw, 176px);
  --skew: -9deg;
  --ease: cubic-bezier(.16, .84, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 12px); background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--ja);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .03em;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol, dl, dd, p, h1, h2, h3, h4, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* 日本語の改行：文節（w-b は BudouX で自動、.nw は手で）をひとかたまりにして、語の途中で折らない */
.nw, w-b { display: inline-block; }
.dot { font-family: var(--ja); font-weight: 700; }
.wrap { position: relative; max-width: calc(var(--max) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
:focus-visible { outline: 3px solid var(--blue-glow); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.skip { position: fixed; left: 12px; top: -80px; z-index: 300; padding: 12px 18px; background: #fff; color: var(--bg); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* フィルムの粒子（全体にうっすら・止まった1枚） */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tbd {
  display: inline-block; padding: 0 .75em; border: 1px dashed var(--red); color: #ff8a93;
  font-family: var(--ja); font-weight: 700; font-size: .8em; line-height: 1.9; letter-spacing: .1em; vertical-align: middle;
  background: rgba(255, 46, 62, .08);
}

/* =========================================================
   ボタン（斜めに切ったレースゲームのボタン）
   ※ clip-path は外側の枠線を切ってしまうので、フォーカスは内側の影で見せる
   ========================================================= */
.btn {
  --cut: 14px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 8px 30px 8px 26px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .06em; line-height: 1.2; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s;
}
.btn::after {
  content: ''; position: absolute; inset: 0 auto 0 -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateX(3px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn > span { display: flex; flex-direction: column; text-align: left; }
.btn small { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; opacity: .92; }
.btn--tel { background: var(--red-cta); color: #fff; }
.btn--tel:hover { background: var(--red-cta-h); }
.btn--tel > span { font-family: var(--hud); font-weight: 700; font-size: 25px; letter-spacing: .04em; }
.btn--tel small { font-family: var(--ja); }
.btn--line { background: var(--green); color: #fff; font-size: 17px; }
.btn--line:hover { background: var(--green-h); }
.btn--line svg { width: 26px; height: 26px; }
.btn--xl { min-height: 76px; padding-inline: clamp(26px, 2.4vw, 38px) clamp(24px, 2.1vw, 34px); --cut: 18px; }
.btn--xl.btn--tel > span { font-size: clamp(27px, 2.2vw, 33px); }
.btn--xl svg { width: 28px; height: 28px; }
.btn--xl.btn--line { font-size: 19px; }
.btn:focus-visible, .hd__tel:focus-visible, .hd__line:focus-visible, .yes:focus-visible, .spbar__btn:focus-visible, .mt:focus-visible, .vbtn:focus-visible, .garage__arrow:focus-visible, .sound:focus-visible, .gnav__sound:focus-visible {
  outline: none; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--bg);
}
[data-line].is-off { filter: saturate(.75); }

/* =========================================================
   スタートランプ
   ========================================================= */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse at 50% 60%, #0d1424 0%, #040508 70%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: introFailsafe .01s 5.5s forwards;
}
@keyframes introFailsafe { to { visibility: hidden; opacity: 0; } }
.intro__panel { display: grid; justify-items: center; gap: 34px; }
.intro__lights { display: flex; gap: clamp(10px, 2vw, 22px); padding: 18px 22px; background: #0b0d12; border: 1px solid #1f2633; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05); }
.pod { display: grid; gap: 10px; padding: 10px; background: #111520; border-radius: 6px; }
.pod i { width: clamp(30px, 6vw, 58px); aspect-ratio: 1; border-radius: 50%; background: #23161a; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .7); transition: background-color .08s, box-shadow .08s; }
.pod.on i { background: radial-gradient(circle at 40% 35%, #ff9aa2 0%, #ff2e3e 35%, #b30012 80%); box-shadow: 0 0 28px 6px rgba(255, 30, 50, .55), inset 0 -3px 6px rgba(0, 0, 0, .3); }
.intro__msg { position: relative; height: 1.4em; font-family: var(--hud); font-weight: 700; letter-spacing: .4em; font-size: 14px; color: var(--tx-3); text-align: center; }
.intro__go { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) skewX(var(--skew)) scale(.6); opacity: 0; font-family: var(--en); font-weight: 900; font-size: clamp(64px, 12vw, 140px); letter-spacing: .02em; color: #fff; text-shadow: 0 0 40px rgba(107, 147, 255, .9); }
.intro.is-go .intro__ready { opacity: 0; }
.intro.is-go .intro__go { opacity: 1; transform: translate(-50%, -50%) skewX(var(--skew)) scale(1); transition: transform .35s var(--ease), opacity .15s; }
.intro.is-out { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); transition: clip-path .7s var(--ease-io); }
.intro__skip { position: absolute; right: 20px; bottom: 20px; min-height: 48px; border: 1px solid #5b6578; background: rgba(255, 255, 255, .04); padding: 8px 22px; font-weight: 700; font-size: 15px; letter-spacing: .12em; color: #fff; cursor: pointer; }
.intro__skip:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* =========================================================
   ラップの進み具合（いちばん上の細い線）
   ========================================================= */
.lap { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: rgba(255, 255, 255, .06); pointer-events: none; }
.lap__fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--blue-glow) 80%, var(--red)); }

/* =========================================================
   ヘッダー
   ========================================================= */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd-h); padding-top: env(safe-area-inset-top); }
.hd::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 9, 13, .85), rgba(7, 9, 13, 0));
  transition: background-color .3s;
}
.hd.is-scrolled::before { background: rgba(7, 9, 13, .84); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid var(--line); }
.hd__inner { height: 100%; max-width: calc(1440px + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 20px; }

.logo { display: inline-flex; flex-direction: column; align-items: flex-start; flex: none; text-decoration: none; line-height: .9; margin-right: auto; color: #fff; white-space: nowrap; }
.logo__sub { font-family: var(--en); font-weight: 800; font-size: 11.5px; letter-spacing: .42em; color: var(--blue-glow); transform: skewX(var(--skew)); }
.logo__main { position: relative; font-family: var(--en); font-weight: 900; font-size: 36px; letter-spacing: .01em; transform: skewX(var(--skew)); transform-origin: left bottom; }
.logo__main i { position: absolute; left: calc(100% + 6px); bottom: .2em; width: 22px; height: 5px; background: var(--red); box-shadow: -8px 0 0 -1px rgba(255, 46, 62, .5), -15px 0 0 -2px rgba(255, 46, 62, .25); }

.gnav__list { display: flex; gap: clamp(12px, 1.6vw, 26px); counter-reset: nav; }
.gnav__list a { position: relative; display: grid; text-decoration: none; padding: 6px 2px; line-height: 1.15; white-space: nowrap; }
.gnav__en { font-family: var(--en); font-weight: 800; font-size: 15px; letter-spacing: .14em; color: #fff; }
.gnav__ja { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--tx-3); }
.gnav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gnav__list a:hover::after, .gnav__list a.is-current::after { transform: scaleX(1); }
.gnav__list a.is-current .gnav__ja { color: var(--tx); }
.gnav__cta { display: none; }

.minihud { display: none; }

.hd__line {
  --cut: 10px; flex: none;
  display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px 0 14px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  background: var(--green); color: #fff; text-decoration: none; font-family: var(--en); font-weight: 900; font-size: 16px; letter-spacing: .1em;
  transition: background-color .2s;
}
.hd__line:hover { background: var(--green-h); }
.hd__line svg { width: 20px; height: 20px; }
.hd__tel {
  --cut: 10px; flex: none;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 18px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  background: var(--red-cta); color: #fff; text-decoration: none; white-space: nowrap; transition: background-color .2s;
}
.hd__tel:hover { background: var(--red-cta-h); }
.hd__tel svg { width: 20px; height: 20px; }
.hd__tel-num { font-family: var(--hud); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.hd__tel-label { display: none; font-weight: 700; font-size: 14px; }
.menu-btn { display: none; }

/* 回転数のバー（メーターが隠れる画面幅で、ヘッダーの下に出す） */
.revbar { display: none; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: rgba(255, 255, 255, .06); pointer-events: none; }
.revbar span { display: block; height: 100%; width: 100%; transform: scaleX(.1); transform-origin: left; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-glow) 70%, #ffb020 82%, var(--red) 100%); background-size: 100vw 100%; }

/* =========================================================
   スピードメーター
   ========================================================= */
.hud {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 148px; height: 148px;
  pointer-events: none; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease);
}
.hud.is-on { opacity: 1; transform: none; }
.hud.is-on.is-idle { opacity: .38; }
@media (max-height: 800px) { .hud { scale: .82; transform-origin: right bottom; } .sound { right: 158px; bottom: 26px; } }
.hud::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(7, 9, 13, .92) 52%, rgba(7, 9, 13, .55) 70%, transparent 72%); }
.hud__dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud__arc { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 5; }
.hud__arc--fill { stroke: var(--blue-glow); stroke-dasharray: 0 400; filter: drop-shadow(0 0 6px rgba(107, 147, 255, .8)); transition: stroke .2s; }
.hud.is-red .hud__arc--fill { stroke: var(--red); filter: drop-shadow(0 0 8px rgba(255, 46, 62, .9)); }
.hud__ticks line { stroke: rgba(255, 255, 255, .55); stroke-width: 2; }
.hud__ticks line.is-red { stroke: var(--red); }
.hud__ticks text { fill: rgba(255, 255, 255, .6); font-family: var(--hud); font-size: 13px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.hud__ticks text.is-red { fill: var(--red); }
.hud__needle path { stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255, 46, 62, .9)); }
.hud__needle { transform-origin: 100px 100px; transform-box: view-box; transform: rotate(-108deg); }
.hud__hub { fill: #1a2030; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.hud__center { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); text-align: center; line-height: 1; }
.hud__gear { font-family: var(--hud); font-weight: 700; font-size: 32px; color: #fff; }
.hud__gear b { display: inline-block; min-width: 1ch; }
.hud__gear.is-shift b { animation: shift .35s var(--ease); }
@keyframes shift { 0% { color: var(--red); transform: scale(1.5); } 100% { color: #fff; transform: none; } }
.hud__spd { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--hud); font-weight: 700; font-size: 16px; line-height: 1; color: var(--blue-glow); font-variant-numeric: tabular-nums; }
.hud__spd b { display: inline-block; min-width: 3ch; text-align: right; }
.hud__spd span { margin-left: 3px; font-size: 9px; letter-spacing: .1em; color: var(--tx-3); }
.hud__rpm { position: absolute; left: 0; right: 0; top: 31%; text-align: center; font-family: var(--hud); font-size: 7.5px; letter-spacing: .12em; color: var(--tx-3); }
.hud__rev { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); white-space: nowrap; font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .2em; color: #fff; background: var(--red); padding: 1px 8px; opacity: 0; }
.hud.is-red .hud__rev { animation: blink .36s steps(2) infinite; }
@keyframes blink { 50% { opacity: 1; } }
.hud__hint { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; font-family: var(--hud); font-weight: 700; font-size: 9.5px; letter-spacing: .24em; color: var(--tx-3); }

/* エンジン音のボタン（メーターの左横に小さく） */
.sound {
  position: fixed; right: 184px; bottom: 30px; z-index: 45;
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  background: rgba(12, 16, 23, .86); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .14em; color: var(--tx-3);
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease), border-color .2s, color .2s;
}
.sound.is-on-screen { opacity: 1; transform: none; }
.sound.is-on-screen.is-idle { opacity: .45; }
.sound:hover { opacity: 1 !important; color: #fff; border-color: #fff; }
.sound svg { width: 16px; height: 16px; }
.sound__lb { color: var(--tx-3); }
.sound .i-sound__wave, .gnav__sound .i-sound__wave { opacity: .3; }
.sound[aria-pressed="true"], .gnav__sound[aria-pressed="true"] { border-color: var(--blue-glow); color: #fff; }
.sound[aria-pressed="true"] b, .gnav__sound[aria-pressed="true"] b { color: var(--blue-glow); }
.sound[aria-pressed="true"] .i-sound__wave, .gnav__sound[aria-pressed="true"] .i-sound__wave { opacity: 1; }

/* =========================================================
   1. START（トップ）
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(720px, 100svh);
  background:
    radial-gradient(ellipse 60% 55% at 72% 62%, rgba(36, 87, 255, .38), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(36, 87, 255, .16), transparent 70%),
    linear-gradient(180deg, #05070b 0%, #070b14 60%, #050609 100%);
}
.hero__streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__floor {
  position: absolute; left: -20%; right: -20%; bottom: -8%; height: 55%; z-index: -1; overflow: hidden;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%); mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
.hero__floor::before {
  content: ''; position: absolute; left: 0; right: 0; top: -46px; bottom: 0;
  background:
    linear-gradient(rgba(107, 147, 255, .28) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(107, 147, 255, .2) 1px, transparent 1px) 0 0 / 64px 100%;
  animation: floor 1.2s linear infinite;
}
@keyframes floor { to { transform: translateY(46px); } }
.hero__giant {
  position: absolute; right: -3vw; top: calc(var(--hd-h) + 2vh); z-index: -1;
  font-family: var(--en); font-weight: 900; font-size: clamp(200px, 31vw, 560px); line-height: .8; letter-spacing: -.01em;
  transform: skewX(var(--skew)) translateX(var(--giant-x, 0px));
  color: transparent; -webkit-text-stroke: 1.5px rgba(107, 147, 255, .38);
  user-select: none; white-space: nowrap;
}
.hero__giant span { background: linear-gradient(180deg, rgba(36, 87, 255, .22), rgba(36, 87, 255, 0) 75%); -webkit-background-clip: text; background-clip: text; }

.hero__car { position: absolute; right: -3vw; bottom: max(112px, 12vh); width: min(54vw, 1100px); z-index: 1; will-change: transform; }
.hero__car-body { position: relative; transform: translate3d(calc(var(--drive, 0) * 1px + var(--shake-x, 0px)), var(--shake-y, 0px), 0) skewX(calc(var(--lean, 0) * 1deg)); transform-origin: 50% 100%; }
.hero__car img { width: 100%; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .6)); }
.hero__car-sheen {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(104deg, transparent 38%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 58%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  -webkit-mask: url(images/brz.webp) center / 100% 100% no-repeat; mask: url(images/brz.webp) center / 100% 100% no-repeat;
  animation: sheen 7s 2.2s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes sheen { 0% { background-position: 140% 0; } 22%, 100% { background-position: -40% 0; } }
.hero__car-shadow { position: absolute; left: 4%; right: 6%; bottom: 2%; height: 14%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, .85), transparent); filter: blur(8px); transform: translateX(calc(var(--drive, 0) * 1px)); }
.hero__car::after { content: ''; position: absolute; left: 10%; right: 12%; bottom: -2%; height: 10%; z-index: -2; background: radial-gradient(closest-side, rgba(36, 87, 255, .55), transparent); filter: blur(14px); transform: translateX(calc(var(--drive, 0) * 1px)); }

.hero__body {
  position: relative; z-index: 2;
  max-width: calc(1440px + var(--gut) * 2); margin-inline: auto;
  padding: calc(var(--hd-h) + 7vh) var(--gut) 0;
}
.hero__body > * { max-width: 44vw; }
.hero__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-weight: 700; font-size: 15px; letter-spacing: .14em; color: var(--tx-2); }
.hero__tag-mark { width: 34px; height: 4px; background: var(--red); transform: skewX(var(--skew)); }
.hero__tag-en { font-family: var(--hud); font-size: 12px; letter-spacing: .3em; color: var(--blue-glow); }
.hero__title { margin-top: 22px; font-family: var(--disp); font-weight: 400; font-size: clamp(44px, min(5.2vw, 9.4vh), 92px); line-height: 1.16; letter-spacing: .01em; }
.hero__title > span { display: block; transform: skewX(-7deg); transform-origin: left bottom; }
.hero__title em { font-style: normal; color: var(--red); text-shadow: 0 0 40px rgba(255, 46, 62, .45); }
.hero__lead { margin-top: 26px; max-width: 34em !important; font-size: clamp(16px, 1.25vw, 18px); color: var(--tx-2); line-height: 2; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__meta {
  position: absolute; right: var(--gut); top: calc(var(--hd-h) + 18px); z-index: 2;
  display: flex; gap: 26px; font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--tx-2); white-space: nowrap;
}
.hero__meta span { margin-right: 10px; color: var(--tx-3); }
.hero__note { position: absolute; left: var(--gut); bottom: 70px; z-index: 2; font-size: 11px; color: var(--tx-3); letter-spacing: .05em; }
.press {
  position: absolute; left: 0; right: 0; bottom: 52px; z-index: 3; margin-inline: auto; width: max-content;
  display: grid; justify-items: center; gap: 2px; text-decoration: none; line-height: 1.2;
}
.press__txt { font-family: var(--en); font-weight: 900; font-size: 22px; letter-spacing: .32em; padding-left: .32em; transform: skewX(var(--skew)); animation: press 1.4s steps(1) infinite; }
.press__ja { font-size: 11px; letter-spacing: .3em; color: var(--tx-3); }
.press:hover .press__txt { color: var(--blue-glow); }
@keyframes press { 50% { opacity: .15; } }

/* 流れる帯（ベースは CSS で流し、スクロールの速さの分は JS で .band__boost を動かす） */
.band { position: relative; z-index: 3; overflow: hidden; background: var(--blue); color: #fff; transform: skewY(-2deg); margin-block: -18px; padding: 14px 0; box-shadow: 0 0 0 1px var(--blue); }
.band__boost { will-change: transform; }
.band__track { display: flex; gap: 36px; width: max-content; animation: band 28s linear infinite; }
.band span { font-family: var(--en); font-weight: 900; font-size: 30px; letter-spacing: .12em; line-height: 1; white-space: nowrap; transform: skewX(var(--skew)); }
.band i { align-self: center; width: 22px; height: 22px; flex: none; background: linear-gradient(90deg, #fff 0 33%, transparent 0 66%, #fff 0); clip-path: polygon(0 0, 60% 50%, 0 100%); }
@keyframes band { to { transform: translateX(-50%); } }
.band--sign { background: var(--sign); color: #0b1630; box-shadow: none; transform: skewY(1.6deg); }
.band--sign .band__track > span { font-family: var(--disp); font-weight: 400; letter-spacing: .06em; }
.band--sign .band__track > span:nth-of-type(3n + 2) { font-family: var(--en); font-weight: 900; letter-spacing: .1em; }
.band--sign i { background: linear-gradient(90deg, #0b1630 0 33%, transparent 0 66%, #0b1630 0); }

/* =========================================================
   区画の見出し
   ========================================================= */
.sec { position: relative; isolation: isolate; padding-block: var(--sec); }
.sec-hd { position: relative; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-hd__no { display: flex; align-items: center; gap: 14px; font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--blue-glow); }
.sec-hd__no b { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 8px; background: var(--blue); color: #fff; letter-spacing: .08em; font-size: 14px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.sec-hd__title { position: relative; margin-top: 16px; }
.sec-hd__en {
  position: absolute; left: -.06em; bottom: -.12em; z-index: -1;
  font-family: var(--en); font-weight: 900; font-size: clamp(96px, 15vw, 240px); line-height: .8; letter-spacing: .01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(107, 147, 255, .28); transform: skewX(var(--skew)); transform-origin: left bottom;
  pointer-events: none; user-select: none;
}
.sec-hd__ja { display: block; font-family: var(--disp); font-weight: 400; font-size: clamp(36px, 4.6vw, 68px); line-height: 1.25; transform: skewX(-6deg); transform-origin: left bottom; }
.sec-hd__lead { margin-top: 22px; max-width: 46em; color: var(--tx-2); font-size: clamp(16px, 1.3vw, 18px); }

/* =========================================================
   2. MENU（パソコンは GT のメニュー画面、スマホは横にスワイプ）
   ========================================================= */
.menu { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.menu::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px), repeating-linear-gradient(45deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 7px); }
.menu__stage { display: flex; flex-direction: column; }
.menu__panels { position: relative; display: grid; }
.mp { grid-area: 1 / 1; display: grid; grid-template-columns: 1.22fr 1fr; min-height: 440px; background: var(--panel); border: 1px solid var(--line); }
.js .menu__stage.is-tabs .mp { visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s; }
.js .menu__stage.is-tabs .mp.is-active { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
.mp__photo { position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%); }
.mp__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.mp.is-active .mp__photo img { transform: scale(1); }
.mp__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(15, 20, 29, .6)); }
.mp__photo--yard img { object-position: 50% 30%; }
.mp__photo--heavy img { object-position: 40% 40%; }
.mp__note { position: absolute; left: 12px; bottom: 10px; z-index: 1; padding: 2px 8px; background: rgba(5, 7, 12, .7); font-size: 11px; color: var(--tx-2); letter-spacing: .04em; }
.mp__photo--type { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--blue) 0%, var(--blue-deep) 70%); }
.mp__photo--type p { font-family: var(--en); font-weight: 900; font-size: clamp(64px, 7vw, 112px); line-height: .82; letter-spacing: .01em; color: #fff; transform: skewX(var(--skew)); }
.mp__photo--type b { color: var(--red); }
.mp__body { position: relative; padding: clamp(32px, 4vw, 56px) clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.mp__en { font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--blue-glow); }
.mp__title { margin: 12px 0 16px; font-family: var(--disp); font-weight: 400; font-size: clamp(30px, 3vw, 46px); line-height: 1.25; transform: skewX(-6deg); transform-origin: left bottom; }
.mp__text { color: var(--tx-2); }
.mp__sub { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--sign); }
/* 「こんなときに」のタグ（押せるボタンに見えないよう、枠なしのハッシュタグに） */
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 14.5px; font-weight: 700; color: var(--tx); }
.tags span::before { content: '#'; margin-right: 2px; color: var(--blue-glow); font-family: var(--hud); }
.tags .tags__hd { flex-basis: 100%; font-size: 12px; letter-spacing: .14em; color: var(--tx-3); }
.tags .tags__hd::before { content: none; }

.menu__tabs { order: 2; margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.mt {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 132px; padding: 18px 10px 16px;
  background: linear-gradient(180deg, #151b27, #0e131c); border: 1px solid var(--line); cursor: pointer;
  transition: transform .35s var(--ease), border-color .25s, background-color .25s;
}
.mt::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease); }
.mt svg { width: 46px; height: 46px; color: var(--blue-glow); margin-bottom: 6px; transition: color .25s, transform .35s var(--ease); }
.mt__ja { font-weight: 700; font-size: 16px; letter-spacing: .08em; white-space: nowrap; }
.mt__en { font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .22em; color: var(--tx-3); }
.mt:hover { transform: translateY(-4px); border-color: var(--line-2); }
.mt:hover svg { transform: scale(1.08); }
.mt.is-active { background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%); border-color: rgba(255, 255, 255, .5); transform: translateY(-6px); box-shadow: 0 18px 40px -16px rgba(36, 87, 255, .9); }
.mt.is-active::before { transform: scaleX(1); }
.mt.is-active svg { color: #fff; }
.mt.is-active .mt__en { color: rgba(255, 255, 255, .8); }

/* =========================================================
   3. SELECT（どの車で来る？）
   ========================================================= */
.select { background: radial-gradient(ellipse 70% 60% at 50% 40%, #0c1d5c 0%, #070b18 60%, var(--bg) 100%); overflow: hidden; }
.garage__stage { position: relative; isolation: isolate; height: clamp(420px, 44vw, 560px); border: 1px solid var(--line); background: radial-gradient(ellipse 50% 45% at 50% 62%, rgba(107, 147, 255, .28), transparent 70%); overflow: hidden; }
.garage__stage::before, .garage__stage::after { content: ''; position: absolute; width: 26px; height: 26px; border: 2px solid var(--blue-glow); }
.garage__stage::before { left: 12px; top: 12px; border-right: 0; border-bottom: 0; }
.garage__stage::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.garage__class { position: absolute; left: 34px; top: 30px; z-index: 2; font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--tx-3); }
.garage__class b { display: block; margin-top: 4px; font-family: var(--en); font-weight: 900; font-size: clamp(28px, 3vw, 44px); letter-spacing: .06em; color: #fff; transform: skewX(var(--skew)); transform-origin: left; }
.garage__no { position: absolute; right: 34px; top: 30px; z-index: 2; font-family: var(--hud); font-weight: 700; font-size: 14px; letter-spacing: .14em; color: var(--tx-3); white-space: nowrap; }
.garage__no b { font-size: 32px; color: #fff; }
.garage__car { position: absolute; left: 50%; top: 47%; z-index: 1; width: min(62%, 720px); height: 50%; transform: translate(-50%, -50%); display: grid; place-items: end center; }
.garage__svg { width: 100%; height: 100%; color: #e6ecfa; filter: drop-shadow(0 0 26px rgba(107, 147, 255, .55)) drop-shadow(0 18px 18px rgba(0, 0, 0, .6)); overflow: visible; }
.garage__svg.is-out { animation: carOut .38s var(--ease-io) forwards; }
.garage__svg.is-in { animation: carIn .6s var(--ease) both; }
@keyframes carOut { to { transform: translateX(-70%) skewX(14deg); opacity: 0; filter: blur(6px); } }
@keyframes carIn { from { transform: translateX(70%) skewX(14deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.garage__floor {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 40%; z-index: -1;
  background: linear-gradient(rgba(107, 147, 255, .3) 1px, transparent 1px) 0 0 / 100% 30px, linear-gradient(90deg, rgba(107, 147, 255, .22) 1px, transparent 1px) 0 0 / 52px 100%;
  transform: perspective(400px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.garage__turntable {
  position: absolute; left: 50%; top: 66%; z-index: 0; width: min(70%, 780px); aspect-ratio: 5 / 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 147, 255, .22), transparent 75%);
  box-shadow: inset 0 0 0 1px rgba(107, 147, 255, .35);
}
.garage__turntable::before {
  content: ''; position: absolute; inset: 6%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(107, 147, 255, .5) 0 2deg, transparent 2deg 12deg);
  -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 98%, transparent 100%); mask: radial-gradient(closest-side, transparent 86%, #000 88%, #000 98%, transparent 100%);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.garage__info { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; text-align: center; }
.garage__name { font-family: var(--disp); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; }
.garage__line { margin-top: 4px; color: var(--tx-2); font-weight: 700; }
.garage__stamp {
  position: absolute; right: clamp(28px, 7%, 110px); top: clamp(84px, 19%, 120px); z-index: 3;
  padding: 8px 14px 6px; border: 4px solid var(--red); color: var(--red);
  font-family: var(--en); font-weight: 900; font-size: clamp(26px, 2.8vw, 40px); line-height: .9; letter-spacing: .04em; text-align: center;
  transform: rotate(-10deg); background: rgba(7, 9, 13, .55); box-shadow: 0 0 30px rgba(255, 46, 62, .35);
}
.garage__stamp.is-pop { animation: stamp .5s var(--ease) both; }
@keyframes stamp { 0% { transform: rotate(-10deg) scale(2.2); opacity: 0; } 55% { transform: rotate(-10deg) scale(.92); opacity: 1; } 100% { transform: rotate(-10deg) scale(1); } }

.garage__picker { margin-top: 16px; display: grid; grid-template-columns: 56px 1fr 56px; gap: 10px; align-items: stretch; }
.garage__arrow { display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; transition: background-color .2s, border-color .2s; }
.garage__arrow:hover { background: var(--blue); border-color: var(--blue); }
.garage__arrow svg { width: 22px; height: 22px; }
.garage__arrow:first-child svg { transform: scaleX(-1); }
.garage__list { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.vbtn {
  width: 100%; display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--tx-3);
  transition: border-color .2s, color .2s, background-color .2s, transform .3s var(--ease);
}
.vbtn svg { width: 86%; height: 32px; color: currentColor; }
.vbtn span { font-weight: 700; font-size: 13px; letter-spacing: .02em; color: var(--tx-2); white-space: nowrap; }
.vbtn:hover { color: #fff; border-color: var(--line-2); transform: translateY(-3px); }
.vbtn.is-active { color: #fff; border-color: var(--blue-glow); background: linear-gradient(180deg, rgba(36, 87, 255, .4), rgba(36, 87, 255, .12)); }
.vbtn.is-active span { color: #fff; }
.garage__note { margin-top: 16px; font-size: 14px; color: var(--tx-3); }

/* =========================================================
   4. PIT（車検の流れ）
   ========================================================= */
.pit { background: var(--bg); }
.track { position: relative; --p: 0; }
.track__rail { position: relative; height: 70px; margin: 0 12.5%; }
.track__rail::before { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 18px, transparent 18px 30px); }
.track__fill { position: absolute; left: 0; bottom: 14px; height: 4px; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--blue), var(--blue-glow)); box-shadow: 0 0 14px rgba(107, 147, 255, .9); }
.track__goal { position: absolute; right: -14px; bottom: 6px; width: 28px; height: 20px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 10px 10px; transform: skewX(var(--skew)); box-shadow: 0 0 0 2px var(--bg); }
.track__car { position: absolute; bottom: 16px; left: calc(var(--p) * 100%); width: 120px; height: 37px; transform: translateX(-60%); color: #fff; filter: drop-shadow(0 0 12px rgba(107, 147, 255, .8)); }
.laps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lap-card { position: relative; padding: 32px 26px 30px; background: var(--panel); border: 1px solid var(--line); transition: border-color .4s, background-color .4s, transform .5s var(--ease); }
.lap-card::before { content: ''; position: absolute; left: 50%; top: -42px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: var(--bg); border: 3px solid rgba(255, 255, 255, .3); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.lap-card.is-passed { border-color: rgba(107, 147, 255, .55); background: linear-gradient(180deg, rgba(36, 87, 255, .18), var(--panel) 70%); }
.lap-card.is-passed::before { background: var(--blue-glow); border-color: #fff; box-shadow: 0 0 16px var(--blue-glow); }
.lap-card__no { display: flex; align-items: center; gap: 10px; font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--tx-3); }
.lap-card__no b { font-size: 34px; letter-spacing: 0; color: var(--blue-glow); }
.lap-card__flag { width: 28px; height: 20px; margin-left: auto; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 10px 10px; transform: skewX(var(--skew)); }
.lap-card__title { margin: 12px 0 8px; font-weight: 700; font-size: 22px; line-height: 1.4; letter-spacing: .06em; }
.lap-card__text { font-size: 15.5px; color: var(--tx-2); line-height: 1.85; }

.result { margin-top: clamp(64px, 8vw, 104px); padding: clamp(28px, 4vw, 52px); background: linear-gradient(135deg, #0f1730, #0b0f18 60%); border: 1px solid var(--line-2); position: relative; }
.result::before { content: ''; position: absolute; left: 0; top: 0; width: 120px; height: 4px; background: var(--red); }
.result__hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: .06em; }
.result__hd > span:first-child { font-family: var(--en); font-weight: 900; font-size: 18px; letter-spacing: .3em; color: var(--red); transform: skewX(var(--skew)); }
.result__eq { margin-top: 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.result__box { position: relative; padding: 30px 28px 26px; background: rgba(7, 9, 13, .6); border: 1px solid var(--line-2); }
.result__box--b { border-color: var(--blue-glow); box-shadow: inset 0 0 0 1px rgba(107, 147, 255, .25); }
.result__key { position: absolute; top: -18px; left: 22px; width: 36px; height: 36px; display: grid; place-items: center; font-family: var(--en); font-weight: 900; font-size: 22px; background: #fff; color: var(--bg); clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.result__box--b .result__key { background: var(--blue); color: #fff; }
.result__box h3 { font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.result__items { margin: 6px 0 10px; display: flex; flex-wrap: wrap; font-weight: 700; color: var(--blue-glow); font-size: 15px; }
.result__items span { white-space: nowrap; }
.result__items span:not(:last-child)::after { content: '・'; }
.result__box p:last-child { font-size: 15.5px; color: var(--tx-2); line-height: 1.85; }
.result__op { align-self: center; font-family: var(--en); font-weight: 900; font-size: 56px; line-height: 1; color: var(--red); }
.price { margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.price__hd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }
.price__list { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price__list div { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; background: rgba(7, 9, 13, .6); border: 1px solid var(--line); }
.price__list dt { font-weight: 700; }
.price__list dd { font-family: var(--hud); font-weight: 700; font-size: 22px; color: var(--tx-3); letter-spacing: .1em; }
.price__note { margin-top: 12px; font-size: 14px; color: var(--tx-3); }

/* =========================================================
   5. PIT LOUNGE（見せ場：待合のレースゲーム）
   ========================================================= */
.lounge { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(100svh, 980px); background: #05070c; }
.lounge::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(36, 87, 255, .22), transparent 70%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .016) 0 2px, transparent 2px 7px); }
.lounge__photo { position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 9vw) 100%, 0 100%); }
.lounge__photo img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 60% 70%; transform: translate3d(0, var(--lp, 0px), 0) scale(1.04); }
.lounge__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 12, 0) 55%, rgba(5, 7, 12, .7)), linear-gradient(0deg, rgba(5, 7, 12, .55), transparent 40%); }
.lounge__hud { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); z-index: 1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(5, 7, 12, .78); border-left: 3px solid var(--sign); font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .24em; color: var(--sign); }
.lounge__hud b { font-family: var(--ja); font-size: 14px; letter-spacing: .08em; color: #fff; }
.lounge__rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s steps(2) infinite; }
.lounge__body { position: relative; padding: calc(var(--sec) * .8) var(--gut) calc(var(--sec) * .8) clamp(24px, 3vw, 56px); display: flex; flex-direction: column; justify-content: center; max-width: 720px; }
.lounge__en { position: absolute; right: -.04em; top: calc(var(--sec) * .35); z-index: -1; font-family: var(--en); font-weight: 900; font-size: clamp(110px, 13vw, 230px); line-height: .82; letter-spacing: .01em; text-align: right; color: transparent; -webkit-text-stroke: 1px rgba(247, 181, 15, .3); transform: skewX(var(--skew)); pointer-events: none; }
.lounge__title { margin-top: 18px; font-family: var(--disp); font-weight: 400; font-size: clamp(34px, 3.8vw, 60px); line-height: 1.3; transform: skewX(-6deg); transform-origin: left bottom; }
.lounge__lead { margin-top: 22px; color: var(--tx-2); font-size: clamp(16px, 1.25vw, 18px); }
.pitsv { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pitsv li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.pitsv svg { width: 34px; height: 34px; flex: none; color: var(--sign); }
.pitsv span { display: grid; font-size: 13.5px; color: var(--tx-2); line-height: 1.5; }
.pitsv b { font-size: 16px; color: #fff; letter-spacing: .04em; }
.lounge__sub { position: relative; margin-top: 26px; width: min(48%, 280px); border: 1px solid var(--line-2); overflow: hidden; }
.lounge__sub img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 70%; }
.lounge__sub figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; background: linear-gradient(transparent, rgba(5, 7, 12, .85)); font-size: 12.5px; font-weight: 700; }

/* =========================================================
   6. RADIO（無線機の画面）
   ========================================================= */
.radio { background: var(--bg-2); }
.radio::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); }
.console { position: relative; max-width: 1060px; margin-inline: auto; background: linear-gradient(180deg, #0d121b, #090c12); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05); }
.console::before, .console::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--blue-glow); pointer-events: none; }
.console::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.console::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); background: rgba(36, 87, 255, .08); font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: var(--tx-3); white-space: nowrap; }
.console__ch i { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); vertical-align: 1px; }
.console__freq b { margin-left: 8px; font-size: 18px; letter-spacing: .08em; color: var(--blue-glow); }
.console__live { padding: 2px 10px; border: 1px solid var(--red); color: var(--red); animation: blink 1.6s steps(2) infinite; }
.radio__log { display: grid; gap: 16px; padding: clamp(24px, 3.4vw, 44px); }
.msg { max-width: 620px; padding: 16px 22px 18px; border: 1px solid var(--line-2); background: rgba(12, 16, 23, .9); position: relative; }
.msg--you { justify-self: start; clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.msg--pit { justify-self: end; background: linear-gradient(135deg, rgba(36, 87, 255, .32), rgba(27, 68, 214, .16)); border-color: rgba(107, 147, 255, .55); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
.msg__hd { display: flex; align-items: center; gap: 14px; font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--tx-3); }
.msg--pit .msg__hd { color: var(--blue-glow); }
.msg__who::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.msg.is-live .msg__who::before { background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink .8s steps(2) 3; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 3px; height: 100%; background: currentColor; transform: scaleY(.15); transform-origin: center; opacity: .8; }
.msg.is-live .wave i { animation: wave .5s ease-in-out 4 alternate; }
.wave i:nth-child(2n) { animation-delay: -.2s !important; }
.wave i:nth-child(3n) { animation-delay: -.35s !important; }
.wave i:nth-child(5n) { animation-delay: -.1s !important; }
@keyframes wave { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.msg__tx { margin-top: 8px; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.7; color: #fff; }
.js .msg { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s var(--ease); }
.js .msg.is-live { opacity: 1; transform: none; }
.js .msg .msg__tx { clip-path: inset(0 100% 0 0); transition: clip-path .9s steps(18) .25s; }
.js .msg.is-live .msg__tx { clip-path: inset(0 0 0 0); }

.radio__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; padding: 22px 24px 26px; border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.radio__cta-tx { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-weight: 700; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; letter-spacing: .06em; }
.radio__on { padding: 2px 10px; font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .2em; background: var(--red); color: #fff; animation: blink 1.6s steps(2) infinite; }
.radio__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   7. CREW（代表とお店）
   ========================================================= */
.crew { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.card { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; background: linear-gradient(135deg, var(--blue-2) 0%, var(--blue-deep) 55%, #070b1a 100%); border: 1px solid rgba(107, 147, 255, .5); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0; opacity: .35; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 7px), repeating-linear-gradient(45deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 7px); pointer-events: none; }
.card::after { content: 'CREW'; position: absolute; right: -.04em; bottom: -.16em; font-family: var(--en); font-weight: 900; font-size: clamp(110px, 14vw, 220px); line-height: 1; color: rgba(255, 255, 255, .045); transform: skewX(var(--skew)); pointer-events: none; }
.card__photo { position: relative; min-height: 440px; display: grid; place-content: center; justify-items: center; gap: 6px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px), rgba(7, 9, 13, .45); border-right: 1px solid rgba(107, 147, 255, .4); text-align: center; }
.card__ph-en { font-family: var(--en); font-weight: 900; font-size: 54px; letter-spacing: .1em; color: rgba(255, 255, 255, .22); transform: skewX(var(--skew)); }
.card__ph-ja { font-size: 14px; font-weight: 700; color: var(--tx-2); }
.card__body { position: relative; z-index: 1; padding: clamp(30px, 4vw, 56px); }
.card__team { font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .24em; color: rgba(255, 255, 255, .7); }
.card__team b { margin-left: 8px; color: #fff; }
.card__name { margin-top: 10px; display: flex; align-items: baseline; gap: 16px; font-family: var(--disp); font-size: clamp(34px, 3.6vw, 52px); line-height: 1.2; letter-spacing: .08em; }
.card__role { font-family: var(--ja); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: rgba(255, 255, 255, .75); }
.card__stats { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255, 255, 255, .22); }
.card__stats div { display: grid; grid-template-columns: 5.4em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.card__stats div:nth-child(odd) { padding-right: 18px; }
.card__stats dt { font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .2em; color: rgba(255, 255, 255, .6); line-height: 2.2; }
.card__stats dd { font-weight: 700; font-size: 15.5px; }
.card__msg { margin-top: 26px; color: #dfe6f5; }
.card__msg p + p { margin-top: 12px; }
.garagephoto { position: relative; margin-top: clamp(20px, 2.4vw, 32px); overflow: hidden; border: 1px solid var(--line-2); }
.garagephoto img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 62%; transition: transform 1.2s var(--ease); }
.garagephoto:hover img { transform: scale(1.03); }
.garagephoto figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 40px 22px 16px; background: linear-gradient(180deg, transparent, rgba(5, 7, 12, .88)); font-weight: 700; font-size: 17px; line-height: 1.6; }
.garagephoto figcaption span { display: block; font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .26em; color: var(--sign); }
.garagephoto::before, .garagephoto::after { content: ''; position: absolute; z-index: 1; width: 18px; height: 18px; border: 2px solid var(--sign); pointer-events: none; }
.garagephoto::before { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.garagephoto::after { right: 10px; top: 10px; border-left: 0; border-bottom: 0; }

/* =========================================================
   8. COURSE（アクセス：サーキットの地図のように）
   ========================================================= */
.access { background: var(--bg); overflow: hidden; }
.access__circuit { position: absolute; right: -4%; top: 40px; z-index: -1; width: min(52vw, 760px); height: auto; fill: none; }
.access__circuit path { stroke: rgba(107, 147, 255, .2); stroke-width: 14; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
.access__circuit circle { fill: var(--red); opacity: 0; transition: opacity .4s 2.4s; }
.access.is-drawn .access__circuit path, .is-capture .access__circuit path { stroke-dashoffset: 0; }
.access.is-drawn .access__circuit circle, .is-capture .access__circuit circle { opacity: 1; }
.access__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.status { border-top: 2px solid var(--blue); background: rgba(7, 9, 13, .7); }
.status > div { display: grid; grid-template-columns: 8.4em 1fr; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.status dt { font-weight: 700; line-height: 1.5; }
.status dt span { display: block; font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .24em; color: var(--blue-glow); }
.status dd small { display: block; font-size: 14px; color: var(--tx-3); line-height: 1.7; margin-top: 2px; }
.status__tel { font-family: var(--hud); font-weight: 700; font-size: 30px; letter-spacing: .04em; color: #fff; text-decoration: none; line-height: 1.2; }
.status__tel:hover { color: var(--blue-glow); }
.status__big { font-family: var(--hud); font-weight: 700; font-size: 24px; letter-spacing: .04em; }
.status__big--ja { font-family: var(--ja); font-size: 20px; }
.status__mail { font-family: var(--hud); font-weight: 700; font-size: 17px; letter-spacing: .02em; color: #fff; word-break: break-all; }
.status__mail:hover { color: var(--blue-glow); }
.landmark { position: relative; margin: 0 0 18px; border: 1px solid var(--line-2); overflow: hidden; }
.landmark img { width: 100%; aspect-ratio: 960 / 520; object-fit: cover; }
.landmark figcaption { position: absolute; left: 14px; bottom: 12px; padding: 6px 12px; background: rgba(5, 7, 12, .82); border-left: 3px solid var(--sign); font-weight: 700; font-size: 15px; line-height: 1.5; }
.landmark figcaption span { display: block; font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .26em; color: var(--sign); }
.map__frame { position: relative; padding: 10px; border: 1px solid var(--line-2); background: var(--bg); }
.map__frame::before, .map__frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red); z-index: 1; pointer-events: none; }
.map__frame::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.map__frame::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.map__frame iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(.55) contrast(1.05); background: var(--bg-3); }
.map__tag { position: absolute; left: 22px; bottom: 22px; padding: 4px 12px; background: var(--bg); border-left: 3px solid var(--red); font-family: var(--hud); font-weight: 700; font-size: 11px; letter-spacing: .2em; }
.map__link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--tx-2); }
.map__link svg { width: 18px; height: 18px; color: var(--red); }
.map__link:hover { color: #fff; }

/* =========================================================
   9. CONTINUE?（お問い合わせ）
   ========================================================= */
.cont { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--sec) + 30px) 0 var(--sec); text-align: center; background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(216, 31, 45, .25), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 100%, rgba(36, 87, 255, .25), transparent 70%), #05060a; }
.cont__flag { position: absolute; left: -5%; right: -5%; top: 0; height: 40px; background: conic-gradient(#fff 25%, #0b0d12 0 50%, #fff 0 75%, #0b0d12 0) 0 0 / 40px 40px; transform: skewY(-2deg) translateY(-14px); opacity: .9; }
.cont__q { font-family: var(--en); font-weight: 900; font-size: clamp(76px, 15vw, 230px); line-height: .9; letter-spacing: .02em; color: #fff; text-shadow: 0 0 60px rgba(107, 147, 255, .4); }
.cont__q-in { display: inline-block; transform: skewX(var(--skew)); }
.cont__q-in > span { color: var(--red); display: inline-block; animation: blink 1s steps(2) infinite; }
.cont__count { margin-top: 6px; height: 1.2em; font-family: var(--hud); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.2; color: var(--red); }
.cont__count b.is-tick { display: inline-block; animation: tick .9s var(--ease); }
.cont__count span { font-family: var(--ja); font-weight: 700; font-size: .42em; color: #fff; vertical-align: middle; margin-left: .4em; }
@keyframes tick { from { transform: scale(1.6); opacity: .2; } to { transform: none; opacity: 1; } }
.cont__title { margin-top: 18px; font-family: var(--disp); font-weight: 400; font-size: clamp(30px, 4vw, 54px); line-height: 1.35; }
.cont__lead { margin-top: 12px; color: var(--tx-2); }
.cont__yes { margin: 40px auto 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; max-width: 900px; }
.yes {
  --cut: 22px; position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; min-height: 104px; padding: 14px 36px 14px 34px;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  text-decoration: none; text-align: left; transition: transform .35s var(--ease), background-color .2s;
}
.yes::after { content: ''; position: absolute; inset: 0 auto 0 -60%; width: 40%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.yes:hover::after { left: 130%; }
.yes:hover { transform: scale(1.02); }
.yes--tel { background: var(--red-cta); }
.yes--tel:hover { background: var(--red-cta-h); }
.yes--line { background: var(--green); }
.yes--line:hover { background: var(--green-h); }
.yes__key { font-family: var(--en); font-weight: 900; font-size: 34px; letter-spacing: .06em; transform: skewX(var(--skew)); padding-right: 18px; border-right: 2px solid rgba(255, 255, 255, .4); line-height: 1; }
.yes__body { display: grid; line-height: 1.15; }
.yes__body small { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.yes__body b { font-family: var(--hud); font-weight: 700; font-size: clamp(26px, 2.7vw, 40px); letter-spacing: .02em; white-space: nowrap; }
.yes--line .yes__body b { font-family: var(--en); font-weight: 900; letter-spacing: .1em; }
.yes svg { width: 34px; height: 34px; }
.cont__hours { margin-top: 24px; font-weight: 700; color: var(--tx-2); font-size: 15px; }
.cont__hours b { font-family: var(--hud); font-size: 1.15em; color: #fff; }
.cont__sep { margin-inline: 8px; color: var(--tx-3); }
.cont__mail { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: 14px; color: var(--tx-3); }
.cont__mail svg { width: 18px; height: 18px; }
.cont__mail a { font-family: var(--hud); font-weight: 700; color: var(--tx-2); word-break: break-all; }
.cont__mail a:hover { color: #fff; }
.cont__no { margin-top: 40px; display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; font-family: var(--en); font-weight: 900; font-size: 22px; letter-spacing: .2em; color: var(--tx-3); }
.cont__no span { font-family: var(--ja); font-weight: 700; font-size: 13px; letter-spacing: .1em; }
.cont__no:hover { color: #fff; }

/* =========================================================
   フッター
   ========================================================= */
.ft { background: #040508; border-top: 1px solid var(--line); padding: 54px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--tx-3); }
.ft__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 48px; align-items: center; }
.logo--ft { margin-right: 0; }
.ft__addr { line-height: 1.8; color: var(--tx-2); }
.ft__addr span { display: inline-block; }
.ft__addr span:first-child { display: block; }
.ft__addr span:nth-child(3)::before { content: "／"; margin-inline: 8px; color: var(--tx-3); }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft__nav a { text-decoration: none; font-weight: 700; color: var(--tx-2); white-space: nowrap; }
.ft__nav a:hover { color: #fff; }
.ft__thanks { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--en); font-weight: 900; font-size: clamp(32px, 6vw, 84px); line-height: 1; letter-spacing: .06em; color: rgba(255, 255, 255, .07); }
.ft__thanks span { display: inline-block; transform: skewX(var(--skew)); }
.ft__copy { grid-column: 1 / -1; font-family: var(--hud); font-weight: 700; letter-spacing: .2em; font-size: 12px; }

/* スマホ下のボタン */
.spbar { display: none; }
.toast { position: fixed; left: 16px; right: 16px; bottom: 96px; z-index: 120; width: fit-content; max-width: 640px; margin-inline: auto; transform: translateY(20px); padding: 12px 20px; background: #fff; color: var(--bg); font-weight: 700; font-size: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.is-show { opacity: 1; transform: none; }

/* =========================================================
   浮かび上がる演出
   ========================================================= */
.js .rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .sec-hd.rv .sec-hd__en { transform: skewX(var(--skew)) translateX(-6%); opacity: 0; transition: transform 1.4s var(--ease), opacity 1.2s; }
.js .sec-hd.rv.is-in .sec-hd__en { transform: skewX(var(--skew)); opacity: 1; }
.js .lap-card { opacity: 0; transform: translateY(26px); }
.js .lap-card.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease), border-color .4s, background-color .4s; }
.js .lounge__body > * { opacity: 0; transform: translateX(40px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .lounge.is-in .lounge__body > * { opacity: 1; transform: none; }
.js .lounge.is-in .lounge__body > :nth-child(3) { transition-delay: .08s; }
.js .lounge.is-in .lounge__body > :nth-child(4) { transition-delay: .16s; }
.js .lounge.is-in .lounge__body > :nth-child(5) { transition-delay: .24s; }
.js .lounge.is-in .lounge__body > :nth-child(6) { transition-delay: .32s; }
.js .lounge .lounge__en { transform: skewX(var(--skew)) translateX(8%); }
.js .lounge.is-in .lounge__en { transform: skewX(var(--skew)); }

/* トップの登場（スタートランプの後） */
.js .hero__body > *, .js .hero__meta, .js .press > * { opacity: 0; transform: translateX(-40px) skewX(-6deg); }
.js .hero__car { opacity: 0; transform: translateX(55vw) skewX(-8deg); filter: blur(10px); }
.js .hero__giant { opacity: 0; }
.js.is-go .hero__body > *, .js.is-go .hero__meta, .js.is-go .press > * { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js.is-go .press__txt { transform: skewX(var(--skew)); }
.js.is-go .hero__body > :nth-child(2) { transition-delay: .08s; }
.js.is-go .hero__body > :nth-child(3) { transition-delay: .16s; }
.js.is-go .hero__body > :nth-child(4) { transition-delay: .24s; }
.js.is-go .hero__meta, .js.is-go .press > * { transition-delay: .5s; }
.js.is-go .hero__car { opacity: 1; transform: none; filter: none; transition: transform 1.1s cubic-bezier(.12, .9, .25, 1.04), opacity .3s, filter .9s; }
.js.is-go .hero__giant { opacity: 1; transition: opacity 1.6s .2s; }

/* script.js が動かなかったときの保険（隠したままにしない） */
.js:not(.js-ok) .rv, .js:not(.js-ok) .lap-card, .js:not(.js-ok) .msg, .js:not(.js-ok) .hero__body > *, .js:not(.js-ok) .hero__meta, .js:not(.js-ok) .press > *, .js:not(.js-ok) .hero__car, .js:not(.js-ok) .hero__giant, .js:not(.js-ok) .lounge__body > * { animation: failsafe .01s 2.5s forwards; }
.js:not(.js-ok) .msg .msg__tx { clip-path: none; }
@keyframes failsafe { to { opacity: 1; transform: none; filter: none; } }

/* 撮影用（?capture）と、動きを減らす設定 */
.is-capture .rv, .is-capture .lap-card, .is-capture .msg, .is-capture .lounge__body > * { opacity: 1 !important; transform: none !important; transition: none !important; }
.is-capture .msg .msg__tx { clip-path: none !important; }
.is-capture .sec-hd__en { opacity: 1 !important; transform: skewX(var(--skew)) !important; }
.is-capture .lounge__en { transform: skewX(var(--skew)) !important; }
.is-capture .hd, .is-capture .lap { position: absolute; }
.is-capture .spbar, .is-capture .hud, .is-capture .sound { display: none !important; }
.is-capture .hero__car-sheen, .is-capture .garage__turntable::before, .is-capture .band__track, .is-capture .hero__floor::before, .is-capture .press__txt, .is-capture .cont__q-in > span, .is-capture .radio__on, .is-capture .console__live, .is-capture .lounge__rec { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .lap-card, .js .msg, .js .hero__body > *, .js .hero__meta, .js .press > *, .js .hero__car, .js .hero__giant, .js .lounge__body > * { opacity: 1; transform: none; filter: none; transition: none; }
  .js.is-go .press__txt, .js .press__txt { transform: skewX(var(--skew)); }
  .js .msg .msg__tx { clip-path: none; transition: none; }
  .access__circuit path { stroke-dashoffset: 0; transition: none; }
  .access__circuit circle { opacity: 1; transition: none; }
  .hero__car-sheen { display: none; }
  .garage__turntable::before, .band__track, .hero__floor::before, .press__txt, .cont__q-in > span, .radio__on, .console__live, .lounge__rec, .msg.is-live .wave i { animation: none !important; }
}

/* =========================================================
   中くらいの画面
   ========================================================= */
@media (min-width: 1241px) {
  .hero__car { bottom: max(150px, 17vh); }
}
@media (max-width: 1240px) {
  .hud, .sound { display: none; }
  .revbar { display: block; }
  .minihud { display: flex; align-items: baseline; gap: 8px; padding: 4px 12px; border: 1px solid var(--line-2); font-family: var(--hud); font-weight: 700; line-height: 1; white-space: nowrap; flex: none; }
  .minihud__gear { font-size: 20px; color: #fff; }
  .minihud__spd { font-size: 12px; color: var(--blue-glow); font-variant-numeric: tabular-nums; }
  .minihud__spd b { display: inline-block; min-width: 3ch; text-align: right; margin-right: 2px; }
}
@media (max-width: 1180px) {
  /* ヘッダー：ここからメニューをたたむ */
  .hd__inner { gap: 10px; }
  .hd__line span, .hd__tel-num { display: none; }
  .hd__line { padding: 0 14px; }
  .hd__tel-label { display: inline; }
  .menu-btn { display: inline-grid; place-content: center; gap: 7px; width: 46px; height: 44px; flex: none; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; position: relative; z-index: 3; }
  .menu-btn span { width: 20px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: 0; z-index: 2; overflow-y: auto;
    padding: calc(var(--hd-h) + env(safe-area-inset-top) + 20px) var(--gut) 40px;
    background: radial-gradient(ellipse at 80% 0%, rgba(36, 87, 255, .35), transparent 60%), var(--bg);
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); visibility: hidden;
    transition: clip-path .55s var(--ease-io), visibility 0s .55s;
  }
  .gnav.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path .55s var(--ease-io); }
  .gnav__list { flex-direction: column; gap: 0; max-width: 640px; }
  .gnav__list li { border-bottom: 1px solid var(--line); }
  .gnav__list a { grid-template-columns: 3.4em 1fr; align-items: baseline; padding: 14px 4px; }
  .gnav__list a::before { counter-increment: nav; content: '0' counter(nav); font-family: var(--hud); font-weight: 700; font-size: 13px; color: var(--blue-glow); grid-row: 1 / 3; }
  .gnav__en { font-size: 26px; transform: skewX(var(--skew)); transform-origin: left; }
  .gnav__ja { font-size: 13px; }
  .gnav__list a::after { display: none; }
  .gnav__cta { display: grid; gap: 10px; margin-top: 26px; max-width: 640px; }
  .gnav__cta .btn { width: 100%; justify-content: flex-start; }
  .gnav__sound { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--tx-2); }
  .gnav__sound svg { width: 18px; height: 18px; }
  .gnav__sound b { font-family: var(--hud); }
  .menu-open .hd .logo, .menu-open .hd .hd__tel, .menu-open .hd .hd__line, .menu-open .hd .minihud { position: relative; z-index: 3; }
}
@media (max-width: 1100px) {
  .hero__body > * { max-width: 50vw; }
  .hero__car { width: 50vw; right: -6vw; }
  .hero__meta { display: none; }
  .menu__tabs { gap: 8px; }
  .mt__ja { font-size: 14px; }
  .laps { grid-template-columns: repeat(2, 1fr); }
  .track__rail { margin: 0 25%; }
  .lap-card::before { display: none; }
  .lounge { grid-template-columns: 1fr 1fr; }
  .pitsv { grid-template-columns: 1fr; }

}

/* =========================================================
   スマホ・タブレット
   ========================================================= */
@media (max-width: 900px) {
  :root { --hd-h: 62px; }
  body { font-size: 16px; }
  .logo__sub { font-size: 9.5px; }
  .logo__main { font-size: 29px; }
  .logo__main i { width: 16px; height: 4px; }
  .hd__tel, .hd__line { height: 42px; }
  .hd__tel { padding: 0 14px 0 12px; }
  .minihud { padding: 4px 8px; }
  /* 低価格の端末でカクつかないよう、スマホは背景のぼかしを使わない */
  .hd.is-scrolled::before { background: rgba(7, 9, 13, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }

  /* トップ：車を上、文字を下に */
  .hero { min-height: 0; display: flex; flex-direction: column; padding-bottom: 96px; }
  .hero__giant { top: calc(var(--hd-h) + 4px); right: auto; left: -4vw; font-size: 42vw; }
  .hero__car { position: relative; right: auto; bottom: auto; order: -1; width: 106vw; margin: calc(var(--hd-h) + 15vw) 0 0 -10vw; }
  .hero__body { padding-top: 6px; }
  .hero__body > * { max-width: none; }
  .hero__tag { font-size: 13px; }
  .hero__title { margin-top: 14px; font-size: clamp(36px, 10.4vw, 58px); }
  .hero__lead { margin-top: 16px; }
  .hero__cta { margin-top: 24px; display: grid; }
  .hero__cta .btn { width: 100%; justify-content: flex-start; }
  .btn--xl { min-height: 70px; }
  .btn--xl.btn--tel > span { font-size: 30px; }
  .hero__note { left: var(--gut); right: auto; bottom: 72px; }
  .hero__floor { height: 40%; }
  .press { bottom: 30px; }
  .press__txt { font-size: 18px; }
  .band span { font-size: 22px; }

  /* MENU：タブを上の小さなボタンにして、カードは横にスワイプ */
  .menu__tabs { order: 0; margin: 0 calc(var(--gut) * -1) 14px; padding: 2px var(--gut) 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .menu__tabs::-webkit-scrollbar { display: none; }
  .mt { flex: none; min-height: 0; padding: 10px 14px; grid-auto-flow: column; align-items: center; gap: 8px; transform: none !important; box-shadow: none !important; }
  .mt svg { width: 24px; height: 24px; margin: 0; }
  .mt__en { display: none; }
  .mt__ja { font-size: 14px; }
  .menu__panels { display: flex; gap: 12px; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .menu__panels::-webkit-scrollbar { display: none; }
  .menu__panels { align-items: flex-start; }
  .mp { grid-area: auto; flex: 0 0 86%; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; scroll-snap-align: center; }
  .mp__photo { aspect-ratio: 16 / 10; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%); }
  .mp__photo--type p { font-size: 14vw; }
  .mp__body { padding: 20px 20px 24px; justify-content: flex-start; }
  .mp__title { font-size: 28px; margin: 8px 0 12px; }
  .mp__text { font-size: 15.5px; }

  .garage__stage { height: 380px; }
  .garage__car { width: 84%; top: 47%; height: 40%; }
  .garage__class { left: 20px; top: 18px; }
  .garage__no { right: 20px; top: 22px; }
  .garage__no b { font-size: 24px; }
  .garage__stamp { right: 16px; top: 74px; font-size: 19px; border-width: 3px; padding: 5px 9px 4px; }
  .garage__info { bottom: 18px; padding-inline: 16px; }
  .garage__picker { grid-template-columns: 44px 1fr 44px; }
  .garage__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .garage__list::-webkit-scrollbar { display: none; }
  .garage__list li { flex: 0 0 100px; scroll-snap-align: center; }

  /* PIT：線を縦に */
  .track { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
  .track__rail { margin: 0; height: auto; }
  .track__rail::before { left: 15px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 18px, transparent 18px 30px); }
  .track__fill { left: 15px; top: 0; bottom: auto; width: 4px; height: calc(var(--p) * 100%); }
  .track__goal { right: auto; left: 3px; bottom: -22px; }
  .track__car { left: 17px; bottom: auto; top: calc(var(--p) * 100%); width: 74px; height: 23px; transform: translate(-50%, -50%) rotate(90deg); }
  .laps { grid-template-columns: 1fr; gap: 12px; }

  .result__eq { grid-template-columns: 1fr; gap: 26px; }
  .result__op { justify-self: center; margin: -14px 0; font-size: 44px; }
  .price__list { grid-template-columns: 1fr; }

  /* PIT LOUNGE：写真を上に */
  .lounge { grid-template-columns: 1fr; min-height: 0; }
  .lounge__photo { aspect-ratio: 4 / 4.4; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7vw), 0 100%); }
  .lounge__body { padding: 32px var(--gut) var(--sec); }
  .lounge__en { top: 8px; font-size: 26vw; }
  .lounge__sub { width: 62%; }

  .console__bar { padding: 10px 14px; font-size: 10.5px; letter-spacing: .12em; }
  .console__freq b { font-size: 14px; margin-left: 4px; }
  .radio__log { padding: 18px 14px; gap: 12px; }
  .msg { padding: 14px 16px 16px; }
  .msg--you { margin-right: 6%; }
  .msg--pit { margin-left: 6%; }

  .card { grid-template-columns: 1fr; }
  .card__photo { min-height: 240px; border-right: 0; border-bottom: 1px solid rgba(107, 147, 255, .4); }
  .card__stats { grid-template-columns: 1fr; }
  .card__stats div:nth-child(odd) { padding-right: 0; }
  .garagephoto img { aspect-ratio: 4 / 3; }

  .access__circuit { width: 110vw; right: -30vw; top: 20px; opacity: .7; }
  .access__grid { grid-template-columns: 1fr; }
  .status > div { grid-template-columns: 6.6em 1fr; padding: 14px 2px; }

  .cont__yes { grid-template-columns: 1fr; }
  .cont__sep { display: none; }
  .cont__note { display: block; margin-top: 4px; }
  .yes { grid-template-columns: auto 1fr; min-height: 92px; padding: 12px 24px 12px 26px; gap: 14px; }
  .yes svg { display: none; }
  .yes__key { font-size: 24px; padding-right: 14px; }
  .yes__body b { font-size: clamp(24px, 7.2vw, 30px); }

  .ft { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .ft__inner { grid-template-columns: 1fr; gap: 16px; }
  .ft__addr span { display: block; }
  .ft__addr span:nth-child(3)::before { content: none; }

  .spbar {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7, 9, 13, .97); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .spbar.is-shown { transform: none; }
  .spbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; text-decoration: none; font-weight: 700; font-size: 16px; color: #fff; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
  .spbar__btn svg { width: 22px; height: 22px; }
  .spbar__btn--tel { background: var(--red-cta); }
  .spbar__btn--line { background: var(--green); }
  .toast { top: calc(var(--hd-h) + 12px); bottom: auto; transform: translateY(-16px); }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(34px, 10.2vw, 44px); }
  .status > div { grid-template-columns: 5.6em 1fr; }
  .status__tel { white-space: nowrap; font-size: clamp(22px, 7.4vw, 30px); }
  .status__mail { font-size: 15px; }
  .garage__stage { height: 350px; }
  .hd__line { display: none; }
}
@media (max-width: 400px) {
  .minihud { display: none; }
}
@media (max-width: 360px) {
  .logo__main { font-size: 25px; }
  .btn--xl.btn--tel > span { font-size: 26px; }
  .yes { padding-inline: 18px; }
  .yes__key { font-size: 20px; padding-right: 10px; }
}
