/* =========================================================
   東京有明ベイポニー 公式サイト｜BAY NIGHT LIVE
   ルール：基本スタイル＝最終状態。keyframes は「from」だけを定義する。
   （アニメーションを止めても、すべての情報が正しく表示される）
   ========================================================= */

:root {
  --night: #050A1C;
  --night2: #0B1538;
  --navy: #1A2B5F;
  --chrome: #C9D3EA;
  --muted: #A9B6DA;
  --seam: #FF4B55;
  --seam-deep: #D7192A;
  --line: #06C755;
  --line-ink: #03200E;
  --hair: rgba(201, 211, 234, .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --crest: url(../assets/logo.jpg);
  --disp: 'Dela Gothic One', 'Zen Kaku Gothic New', sans-serif;
  --en: 'Barlow Condensed', 'Zen Kaku Gothic New', sans-serif;
  --bugH: 56px;
}
@media (min-width: 1024px) { :root { --bugH: 64px; } }
@property --n { syntax: '<integer>'; inherits: false; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion=off]) { scroll-behavior: smooth; }
}
html, body { background: var(--night); }
body { margin: 0; color: var(--chrome); font: 500 16px/1.85 'Zen Kaku Gothic New', sans-serif; -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
img { max-width: 100%; }
a { color: #fff; }
html { scroll-padding-top: calc(var(--bugH) + 16px); scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { html { scroll-padding-bottom: 0; } }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--night); font-weight: 700; }
.skip:focus { top: 8px; }
.crest { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; clip-path: circle(48%); background: var(--navy) var(--crest) center / 100% 100% no-repeat; }
img.crest { height: auto; background-image: none; object-fit: cover; }

/* ---------- お知らせバナー（スプレッドシートで文字を入れた時だけ表示） ---------- */
.notice { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; background: var(--seam-deep); color: #fff; font-weight: 700; font-size: 14px; text-align: center; }
.notice[hidden] { display: none; }

/* ---------- ヘッダー（中継の局ロゴ風） ---------- */
.bug { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; height: var(--bugH); padding: 0 16px; background: rgba(5, 10, 28, .84); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.bug-mark { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; perspective: 400px; }
.bug-mark .crest { width: 40px; animation: bugFlip 8s var(--ease-out) 3s infinite; }
.bug-progress { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.bug-progress circle { fill: none; stroke-width: 2; stroke: var(--hair); }
.bug-progress .bar { stroke: var(--seam); stroke-dasharray: 1; opacity: 0; }
.wordmark { display: grid; line-height: 1.15; text-decoration: none; }
.wordmark b { font: italic 800 18px/1.1 var(--en); color: #fff; letter-spacing: .02em; white-space: nowrap; }
.wordmark span { font: 700 11px/1.3 'Zen Kaku Gothic New', sans-serif; color: var(--chrome); }
.onair { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; background: var(--seam-deep); color: #fff; font: italic 800 12px/1 var(--en); letter-spacing: .08em; }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; animation: livePulse 1.6s ease-out infinite; }
.nav { display: none; margin-inline: auto; }
.nav a { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 12px; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--seam); transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease-out); }
.nav a:hover::after, .nav a:focus-visible::after { transform: none; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid var(--hair); border-radius: 50%; background: none; color: #fff; cursor: pointer; }
.icon-btn .i-play { display: none; }
html[data-motion=off] .icon-btn .i-pause { display: none; }
html[data-motion=off] .icon-btn .i-play { display: block; }
.bug .btn--line { display: none; }
@media (max-width: 420px) { .wordmark b { font-size: 16px; } .onair { display: none; } }
@media (max-width: 479px) { .tag-en { display: none; } }
@media (min-width: 768px) { .bug .btn--line { display: inline-flex; } }
@media (min-width: 1024px) { .bug { padding: 0 24px; } .nav { display: flex; } .icon-btn { margin-left: 0; } }

/* ---------- ボタン ---------- */
.btn { box-sizing: border-box; position: relative; isolation: isolate; overflow: hidden; overflow: clip; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 700 15px/1.3 'Zen Kaku Gothic New', sans-serif; text-decoration: none; transition: translate .25s var(--ease-out); }
.btn--line { background: var(--line); color: var(--line-ink); }
.btn--line:hover, .btn--line:visited { color: var(--line-ink); }
.btn--ghost { border: 2px solid #fff; color: #fff; }
.btn--xl { min-height: 56px; min-width: 260px; font-size: 17px; }
.btn--max { min-height: 64px; min-width: 300px; font-size: 18px; }
.btn .ico { flex: none; width: 22px; height: 22px; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn:focus-visible::after { transform: translateX(120%); }
.btn:active { scale: .97; }
@media (hover: hover) { .btn:hover { translate: 0 -2px; } .btn:hover::after { transform: translateX(120%); } }

/* ---------- ヒーロー（オープニング） ---------- */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; padding: 24px 16px 40px; overflow-x: hidden; overflow-x: clip; background: radial-gradient(ellipse at 50% 115%, var(--navy) 0%, var(--night2) 38%, var(--night) 72%); }
.hero::before { content: ''; position: absolute; inset: auto 0 0; height: 34%; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 48px, transparent 48px 96px); -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); }
.hero-outline { position: absolute; left: 50%; bottom: 4%; z-index: -1; margin: 0; translate: -50% 0; font: italic 900 28vw/.8 var(--en); color: transparent; -webkit-text-stroke: 1px rgba(201, 211, 234, .16); white-space: nowrap; pointer-events: none; }
.tower { position: absolute; top: 12px; z-index: -1; display: grid; grid-template-columns: repeat(4, 14px); gap: 6px; scale: .6; }
.tower--l { left: 4%; transform-origin: 0 0; }
.tower--r { right: 4%; transform-origin: 100% 0; }
.tower span { height: 10px; border-radius: 2px; background: #fff; box-shadow: 0 0 16px 3px rgba(220, 230, 255, .55); animation: floodOn .5s steps(1, end) calc(var(--i) * 60ms) backwards; }
.beam { position: absolute; top: 0; z-index: -1; width: 90%; height: 100%; opacity: .6; pointer-events: none; animation: beamIn .8s ease-out .25s backwards; }
.beam--l { left: 0; background: conic-gradient(from 118deg at 0 0, transparent, rgba(214, 226, 255, .16) 11deg, transparent 24deg); }
.beam--r { right: 0; background: conic-gradient(from 218deg at 100% 0, transparent, rgba(214, 226, 255, .16) 13deg, transparent 24deg); }
.hero-flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; animation: flash .4s ease-out .5s; }
.hero-grid { --al: center; display: grid; justify-items: center; gap: 20px; width: 100%; max-width: 1200px; margin-inline: auto; text-align: center; }
.stage-wrap { display: grid; justify-items: center; gap: 10px; justify-self: center; }
.stage { position: relative; display: grid; place-items: center; width: min(80vw, 340px); aspect-ratio: 1; animation: shake .25s linear .5s; }
.stage > * { grid-area: 1 / 1; }
.ring { width: 100%; height: 100%; pointer-events: none; animation: ringIn .8s var(--ease-out) .45s backwards; }
.ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring--text svg { animation: spin 40s linear infinite; }
.ring--seam svg { animation: spin 26s linear infinite reverse; }
.ring text { font: 700 12px var(--en); letter-spacing: .12em; fill: var(--chrome); }
.seam-line { fill: none; stroke: rgba(201, 211, 234, .3); stroke-width: 1; }
.stitch { fill: none; stroke: var(--seam); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: stitchIn .3s var(--ease-back) calc(.55s + var(--i) * 28ms) backwards; }
.shock { width: 66%; max-width: 320px; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; opacity: 0; pointer-events: none; animation: shock .7s var(--ease-out) .5s; }
.shock--red { border-color: var(--seam); animation-delay: .62s; }
.float { width: 66%; max-width: 320px; aspect-ratio: 1; animation: hover3d 8s ease-in-out 1.2s infinite; }
.slam { width: 100%; height: 100%; animation: crestSlam .75s var(--ease-out) backwards; }
.coin { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; perspective: 1000px; }
.coin:focus-visible { outline-offset: 8px; }
.coin-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease-back); }
.coin[aria-pressed=true] .coin-inner { transform: rotateY(180deg); }
.coin-face { position: absolute; inset: 0; overflow: hidden; overflow: clip; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.coin-back { transform: rotateY(180deg); display: grid; place-content: center; gap: 4px; padding: 16%; background: var(--night2); color: #fff; text-align: center; }
.coin-back::before { content: ''; position: absolute; inset: 5%; border: 2px dashed var(--seam); border-radius: 50%; }
.coin-back b { font: italic 800 13px var(--en); letter-spacing: .1em; color: var(--seam); }
.coin-back strong { font: 400 clamp(17px, 1.9vw, 24px)/1.35 var(--disp); }
.coin-back small { font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--chrome); }
.sheen { position: absolute; inset: 0; overflow: hidden; overflow: clip; border-radius: 50%; pointer-events: none; }
.sheen::after { content: ''; position: absolute; inset: -25%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .4) 50%, transparent 60%); transform: translateX(130%); animation: sweep 4.8s var(--ease-out) 1.2s infinite; }
.coin-hint { margin: 0; font: 600 12px var(--en); letter-spacing: .14em; color: var(--muted); }
.hero-copy { display: grid; justify-items: inherit; gap: 16px; max-width: 36em; }
.tag { display: inline-block; padding: 6px 14px; background: var(--seam-deep); color: #fff; font: italic 800 14px/1.3 var(--en); transform: skewX(-12deg); }
.tag > span { display: block; transform: skewX(12deg); }
.hero h1 { margin: 0; font: 400 clamp(40px, 6.2vw, 84px)/1.14 var(--disp); color: #fff; }
.h1-line { display: block; animation: cutIn .5s var(--ease-out) .3s backwards; }
.h1-line + .h1-line { animation-delay: .42s; }
.hot { position: relative; display: inline-block; }
.hot::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.02em; height: .09em; background: var(--seam); transform-origin: left; animation: barWipe .5s var(--ease-out) .75s backwards; }
.lead { margin: 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.9; }
.chips { display: flex; flex-wrap: wrap; justify-content: var(--al); gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(201, 211, 234, .3); color: #fff; font-size: 14px; }
.chip b { font: italic 700 13px var(--en); letter-spacing: .06em; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; justify-content: var(--al); gap: 12px; }
.cue { position: absolute; left: 50%; bottom: 12px; display: none; margin: 0; translate: -50% 0; font: 600 11px var(--en); letter-spacing: .3em; color: var(--muted); }
@media (max-width: 599px) { .ctas { flex-direction: column; justify-self: stretch; } .ctas .btn { width: 100%; min-width: 0; } }
@media (min-width: 1024px) {
  .hero { min-height: 680px; min-height: min(calc(100svh - var(--bugH) - 48px), 900px); padding: 40px; }
  .hero-grid { --al: flex-start; grid-template-columns: 5fr 6fr; align-items: center; justify-items: start; gap: 56px; text-align: left; }
  .stage { width: clamp(380px, 36vw, 480px); }
  .tower { scale: 1; top: 24px; }
  .tower--l { left: 8%; }
  .tower--r { right: 8%; }
  .beam { width: 72%; opacity: 1; mix-blend-mode: screen; }
  .hero-outline { font-size: 22vw; }
  .cue { display: block; }
}

/* ---------- ニュース速報ティッカー ---------- */
.ticker { display: flex; align-items: stretch; min-height: 48px; background: var(--night2); border-block: 1px solid var(--hair); overflow: hidden; overflow: clip; }
.ticker-label { flex: none; display: grid; place-items: center; padding: 0 14px; background: var(--seam-deep); color: #fff; font: italic 800 14px/1 var(--en); }
.ticker-viewport { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; overflow: clip; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 20px; padding-right: 20px; white-space: nowrap; color: #fff; font-weight: 700; font-size: 15px; }
.ticker-group .crest { width: 20px; flex: none; }
.ticker-group a { color: #fff; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker:has(:focus-visible) .ticker-track { animation: none; width: auto; }
.ticker:has(:focus-visible) .ticker-viewport { padding-block: 10px; }
.ticker:has(:focus-visible) .ticker-group { flex-wrap: wrap; white-space: normal; row-gap: 8px; }
.ticker:has(:focus-visible) .ticker-dup { display: none; }
.channels { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.channels a { flex: none; display: grid; place-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
@media (min-width: 1024px) { .channels { display: none; } }

/* ---------- セクション共通 ---------- */
.sec { position: relative; padding: 72px 16px; overflow-x: hidden; overflow-x: clip; }
.sec--alt { background: var(--night2); }
@media (min-width: 1024px) { .sec { padding: 128px 40px; } }
.wrap { max-width: 1200px; margin-inline: auto; }
.kicker { display: block; font: italic 800 14px/1.2 var(--en); letter-spacing: .08em; color: var(--seam); }
.sec h2 { margin: 8px 0 0; font: 400 clamp(28px, 4vw, 48px)/1.3 var(--disp); color: #fff; }
.stinger { position: relative; isolation: isolate; padding: 8px 0 24px; }
.stinger--crest::before { content: ''; position: absolute; right: -60px; top: 50%; z-index: -1; width: 240px; aspect-ratio: 1; margin-top: -120px; border-radius: 50%; clip-path: circle(48%); background: var(--crest) center / 100% 100% no-repeat; opacity: .06; animation: spin 120s linear infinite; pointer-events: none; }

/* ---------- 数字で見る（LEDボード） ---------- */
.led { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 32px; background: var(--hair); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; overflow: clip; }
.led::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.led-cell { padding: 18px 16px 20px; background: var(--night2); view-timeline: --cell block; }
.led-scan { height: 2px; margin-bottom: 14px; background: var(--seam); transform-origin: left; }
.led-big { display: flex; align-items: baseline; gap: 2px; font: italic 900 clamp(44px, 6.4vw, 80px)/1 var(--en); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .3); }
.led-big small { font-size: .4em; font-style: normal; }
.led-big .jp { font: 400 .62em/1 var(--disp); }
.led-num { --n: var(--to); counter-reset: n var(--n); }
.led-num::after { content: counter(n); }
.led-label { display: block; margin-top: 10px; font-size: 14px; line-height: 1.6; }
.led-en { display: block; font: 600 11px var(--en); letter-spacing: .12em; color: var(--muted); }
@media (min-width: 1024px) { .led { grid-template-columns: repeat(6, 1fr); } }

/* ---------- 目的（GAME PLAN） ---------- */
.plan { display: grid; gap: 32px; }
.outline-en { display: block; font: italic 900 clamp(64px, 9vw, 120px)/.9 var(--en); color: transparent; -webkit-text-stroke: 1px rgba(201, 211, 234, .45); }
.statement { margin: 0; font-size: 18px; line-height: 1.9; color: #fff; }
.keys { display: grid; gap: 16px; margin: 12px 0 0; padding: 0; list-style: none; }
.key { position: relative; overflow: hidden; overflow: clip; background: var(--night2); border-radius: 14px; }
.key-band { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--navy); color: #fff; font: italic 800 13px var(--en); letter-spacing: .08em; }
.key-no { padding: 2px 8px; background: var(--seam-deep); }
.key h3 { margin: 16px 16px 4px; font: 400 22px/1.4 var(--disp); color: #fff; }
.key p { margin: 0 16px 20px; }
.key::after, .ticket::after, .coach::after { content: ''; position: absolute; inset: -30%; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .14) 50%, transparent 58%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.offfield { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.offfield li { display: grid; place-items: center; min-height: 40px; padding: 0 14px; border: 2px dashed var(--seam); border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; }
.mt-l { margin-top: 40px; }
.mt-m { margin-top: 32px; }
@media (min-width: 768px) { .keys { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .plan { grid-template-columns: 5fr 7fr; gap: 64px; } .plan-head { position: sticky; top: calc(var(--bugH) + 32px); align-self: start; } }
@media (hover: hover) { .key:hover::after, .ticket:hover::after, .coach:hover::after { transform: translateX(120%); } }

/* ---------- THE CALL（WBC決勝） ---------- */
.call { display: grid; gap: 32px; align-items: center; margin-top: 24px; }
.pitch { position: relative; container-type: inline-size; aspect-ratio: 2 / 1; overflow: hidden; overflow: clip; border-radius: 16px; background: radial-gradient(ellipse at 80% 70%, rgba(26, 43, 95, .7), transparent 60%), var(--night); }
.pitch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { fill: none; stroke: rgba(201, 211, 234, .4); stroke-width: .3; }
.plate { fill: rgba(201, 211, 234, .5); }
.trail-clip { position: absolute; inset: 0; clip-path: inset(0 20.5% 0 0); animation: trailReveal 5s linear infinite; }
.trail { fill: none; stroke: var(--seam); stroke-width: .9; stroke-linecap: round; }
.pitch-x { position: absolute; left: 7.5cqw; top: 11.5cqw; transform: translateX(72cqw); animation: pitchX 5s linear infinite; }
.pitch-y { transform: translateY(22cqw); animation: pitchY 5s infinite; }
.pitch-ball { position: absolute; left: 0; top: 0; width: max(40px, 9cqw); translate: -50% -50%; animation: ballSpin 5s linear infinite; }
.hit-ring { position: absolute; left: 79.5cqw; top: 33.5cqw; width: 18cqw; aspect-ratio: 1; translate: -50% -50%; border: 3px solid #fff; border-radius: 50%; opacity: 0; pointer-events: none; animation: hitBurst 5s var(--ease-out) infinite; }
.hit-text { position: absolute; left: 46cqw; top: 31cqw; rotate: -8deg; font: italic 900 clamp(28px, 9cqw, 72px)/1 var(--en); color: #fff; animation: hitText 5s var(--ease-out) infinite; }
.quote { margin: 12px 0; font: 400 clamp(30px, 5vw, 60px)/1.3 var(--disp); color: #fff; }
.q { display: inline-block; color: var(--seam); animation: qPop 5s var(--ease-out) infinite; }
.call-close { margin: 20px 0 0; font-weight: 700; font-size: 20px; line-height: 1.6; color: #fff; }
@media (min-width: 1024px) { .call { grid-template-columns: 6fr 5fr; gap: 56px; } .pitch { order: -1; } }

/* ---------- 指導陣 ---------- */
.hc { display: grid; gap: 32px; margin-top: 24px; }
.ph { position: relative; overflow: hidden; overflow: clip; display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 16px; background: linear-gradient(180deg, rgba(201, 211, 234, .16), transparent 45%), var(--night2); color: var(--muted); font-size: 14px; text-align: center; }
.ph--sq { aspect-ratio: 1; }
.ph::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px); }
.ph::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .12) 50%, transparent 58%); transform: translateX(130%); animation: sweep 7s var(--ease-out) infinite; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hc { position: absolute; right: 8px; bottom: -8px; font: italic 900 160px/1 var(--en); color: transparent; -webkit-text-stroke: 1px rgba(201, 211, 234, .18); }
.l3 { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 10px; margin: -40px 12px 0; view-timeline: --l3 block; }
.l3 > .crest { flex: none; width: 44px; }
.l3-bars { display: grid; justify-items: start; text-align: left; }
.l3-red, .l3-white { transform-origin: left; }
.l3-red { padding: 3px 12px; background: var(--seam-deep); color: #fff; font: italic 800 14px/1.4 var(--en); }
.l3-white { padding: 6px 16px 4px; background: #fff; color: var(--night); }
.l3-name { display: block; overflow: hidden; overflow: clip; }
.l3-name > span { display: block; font: 400 clamp(22px, 3vw, 28px)/1.3 var(--disp); }
.l3-en { display: block; font: 700 12px var(--en); letter-spacing: .14em; color: var(--navy); }
.career { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.career li { display: grid; grid-template-columns: minmax(92px, auto) 1fr; align-items: center; gap: 16px; padding: 12px 18px; background: var(--night2); transform: skewX(-8deg); }
.career li > * { transform: skewX(8deg); }
.career b { font: italic 800 clamp(20px, 2.4vw, 28px)/1 var(--en); color: #fff; }
.order { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 16px -16px 0; padding: 8px 16px 16px; }
.order > * { scroll-snap-align: start; }
.coach { position: relative; overflow: hidden; overflow: clip; padding: 16px; border: 1px solid var(--hair); border-radius: 16px; background: var(--night2); transition: translate .3s var(--ease-out); }
.coach-no { position: absolute; top: 4px; right: 12px; z-index: 1; font: italic 900 72px/1 var(--en); color: transparent; -webkit-text-stroke: 1.5px rgba(201, 211, 234, .5); }
.coach h3 { margin: 6px 0 0; font: 400 20px/1.4 var(--disp); color: #fff; }
.coach .role { display: inline-block; margin-top: 12px; padding: 2px 10px; background: var(--seam-deep); color: #fff; font: 800 13px/1.4 'Zen Kaku Gothic New', sans-serif; }
.coach p { margin: 4px 0 0; font-size: 14px; }
.coach--more { display: grid; place-content: center; text-align: center; min-height: 200px; }
@media (hover: hover) { .coach:hover { translate: 0 -6px; } }
@media (min-width: 1024px) { .hc { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; } .order { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 16px 0 0; padding: 0; } }

/* ---------- ハイライト（Instagram） ---------- */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 32px -16px 0; padding: 14px 16px 20px; }
.tile { position: relative; flex: 0 0 min(72vw, 280px); overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; aspect-ratio: 9 / 16; padding: 12px; border-radius: 14px; scroll-snap-align: center; background: repeating-linear-gradient(135deg, rgba(201, 211, 234, .05) 0 2px, transparent 2px 14px), linear-gradient(180deg, var(--night2), var(--night)); color: #fff; text-decoration: none; transition: transform .35s var(--ease-out); }
.tile.has-img { background: var(--night2) var(--img) center / cover no-repeat; }
.tile.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 28, .55), transparent 35%, transparent 50%, rgba(5, 10, 28, .9)); }
.tile > * { position: relative; }
.tile::after { content: ''; position: absolute; inset: -30%; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .3) 50%, transparent 58%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.tile:focus-visible { transform: translateY(-6px); }
.tile:focus-visible::after { transform: translateX(120%); }
.tile > .crest { position: absolute; top: 12px; right: 12px; width: 22px; }
.tile-ph { align-self: center; margin: auto 0; font-size: 12px; color: var(--muted); }
.tile.has-img .tile-ph { visibility: hidden; }
.tile-title { display: block; margin-top: 6px; font-weight: 700; font-size: 15px; line-height: 1.5; }
.tile-meta { display: flex; align-items: center; gap: 6px; font: 600 13px var(--en); color: var(--chrome); }
.tile-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; padding-right: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; background: var(--seam-deep); color: #fff; font: italic 800 12px/1.4 var(--en); }
.date-chip { display: inline-block; padding: 2px 8px; border: 1px solid rgba(201, 211, 234, .4); background: rgba(5, 10, 28, .5); font: 700 12px/1.4 var(--en); }
.scorebug { padding: 4px 10px; background: #fff; color: var(--night); font: italic 900 18px/1 var(--en); }
@media (hover: hover) { .tile:hover { transform: translateY(-6px); } .tile:hover::after { transform: translateX(120%); } }
@media (min-width: 1024px) { .rail { margin-inline: 0; padding-inline: 0; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); } .tile { flex-basis: 240px; } .rail::after { content: ''; flex: 0 0 calc(15% - 16px); } }

/* ---------- 練習環境 ---------- */
.wx { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.wx-card { padding: 20px 16px; border: 1px solid var(--hair); border-radius: 16px; background: var(--night2); }
.wx-card svg { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wx-card .accent { stroke: var(--seam); }
.wx-card h3 { margin: 12px 0 2px; font-size: 14px; color: var(--muted); }
.wx-card p { margin: 0; font-weight: 700; font-size: 17px; color: #fff; }
.rain line { animation: rain .9s linear calc(var(--i) * .3s) infinite; }
.hand { transform-origin: 22px 22px; animation: spin 12s steps(12) infinite; }
.rainline { margin: 32px 0 0; font: 400 24px/1.4 var(--disp); color: #fff; }
@media (min-width: 1024px) { .wx { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 入団まで（ダイヤモンド） ---------- */
.road { display: grid; gap: 32px; margin-top: 32px; }
.diamond { position: relative; width: min(60vw, 320px); aspect-ratio: 1; margin: clamp(40px, 10vw, 72px) auto; rotate: 45deg; container-type: inline-size; }
.diamond::before { content: ''; position: absolute; inset: 0; border: 2px dashed rgba(201, 211, 234, .5); }
.mound { position: absolute; inset: 40%; border-radius: 50%; background: rgba(201, 211, 234, .12); }
.base { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; background: var(--chrome); }
.base--1 { left: 100%; top: 0; }
.base--2 { left: 0; top: 0; }
.base--3 { left: 0; top: 100%; }
.base--h { left: 100%; top: 100%; background: #fff; }
.base::after { content: ''; position: absolute; inset: -6px; border: 2px solid var(--seam); opacity: 0; animation: baseHit 8s ease-out var(--d) infinite; }
.runner { position: absolute; left: 0; top: 0; z-index: 2; width: 40px; margin: -20px 0 0 -20px; rotate: -45deg; translate: 100cqw 100cqw; animation: runBases 8s cubic-bezier(.45, 0, .55, 1) infinite; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; isolation: isolate; display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 16px; border: 1px solid rgba(201, 211, 234, .2); border-radius: 14px; background: var(--night); }
.step::before { content: ''; position: absolute; inset: -1px; z-index: -1; border: 2px solid var(--seam); border-radius: inherit; background: rgba(215, 25, 42, .16); opacity: 0; animation: stepLit 8s ease-out var(--d) infinite; }
.step-no { font: italic 900 32px/1 var(--en); color: #fff; }
.step h3 { margin: 0; font: 400 20px/1.4 var(--disp); color: #fff; }
.step p { margin: 4px 0 0; }
.step .btn { margin-top: 10px; min-height: 48px; }
.pack-title { margin: 40px 0 0; font: italic 800 14px/1.2 var(--en); letter-spacing: .08em; color: var(--seam); }
.pack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 0; padding: 0; list-style: none; }
.pack li { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--night); color: #fff; font-weight: 700; }
.pack svg { flex: none; width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gear { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.gear li { display: grid; place-items: center; min-height: 40px; padding: 0 14px; border: 1px solid rgba(201, 211, 234, .3); border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (min-width: 768px) { .pack { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .road { grid-template-columns: 5fr 7fr; align-items: center; gap: 56px; } .diamond { width: min(320px, 26vw); } }

/* ---------- 費用（チケット） ---------- */
.tickets { display: grid; gap: 16px; margin-top: 32px; }
.ticket { position: relative; overflow: hidden; overflow: clip; display: grid; grid-template-columns: 96px 1fr; min-height: 128px; border: 1px solid var(--hair); border-radius: 14px; background: var(--night2); view-timeline: --tk block; transition: transform .35s var(--ease-out); }
.ticket--trial { margin-top: 16px; max-width: 560px; min-height: 104px; }
.stub { position: relative; display: grid; place-items: center; border-right: 2px dashed rgba(201, 211, 234, .25); }
.stub::before, .stub::after { content: ''; position: absolute; right: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--night); }
.stub::before { top: -11px; }
.stub::after { bottom: -11px; }
.stamp { padding: 4px; border: 2px solid rgba(201, 211, 234, .4); border-radius: 50%; rotate: -12deg; }
.stamp .crest { width: 56px; }
.ticket-body { padding: 14px 18px; }
.ticket-top { font: 600 11px var(--en); letter-spacing: .14em; color: var(--muted); }
.ticket h3 { margin: 4px 0 0; font-size: 15px; color: #fff; }
.price { font: italic 800 36px/1.1 var(--en); color: #fff; }
.price small { font-size: 16px; }
.ticket--trial .price { font-size: 24px; }
.ticket-note { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.ticket:focus-within { transform: translateY(-4px); }
@media (hover: hover) { .ticket:hover { transform: translateY(-4px) rotate(-.5deg); } }
@media (min-width: 768px) { .tickets { grid-template-columns: repeat(2, 1fr); } }

/* ---------- NEXT BATTER ---------- */
.nb { position: relative; display: grid; place-items: center; padding: 72px 16px; overflow-x: hidden; overflow-x: clip; text-align: center; background: conic-gradient(from 160deg at 50% 0, transparent, rgba(255, 255, 255, .1) 20deg, transparent 40deg), var(--night); }
@media (min-width: 1024px) { .nb { min-height: 760px; min-height: min(90svh, 900px); padding: 112px 40px; } }
.nb-stage { position: relative; display: grid; place-items: center; width: min(76vw, 420px); aspect-ratio: 1; margin: 16px auto 0; }
.nb-stage > * { grid-area: 1 / 1; }
.nb .ring--text svg { animation-duration: 30s; }
.nb .ring text { font-size: 18px; }
.nb-crest { width: 68%; max-width: 300px; animation: heartbeat 1.6s ease-in-out infinite; }
.sonar { width: 68%; max-width: 300px; aspect-ratio: 1; border: 2px solid var(--chrome); border-radius: 50%; opacity: 0; pointer-events: none; animation: sonar 2.4s var(--ease-out) var(--sd, 0s) infinite; }
.sonar--2 { --sd: .8s; }
.sonar--3 { --sd: 1.6s; }
.nb h2 { margin: 8px 0 0; font: 400 clamp(36px, 6vw, 80px)/1.25 var(--disp); color: #fff; }
.nb-sub { margin: 8px 0 0; font-weight: 700; font-size: 18px; color: #fff; }
.l3--center { justify-content: center; margin: 24px auto 0; }
.roll { display: inline-block; width: 1.5em; height: 1em; overflow: hidden; overflow: clip; vertical-align: bottom; font: italic 900 40px/1 var(--en); }
.roll-col { display: flex; flex-direction: column; animation: roll 6s infinite; }
.roll-col > span { display: block; height: 1em; text-align: center; }
.kimi { font: normal 400 .9em/1.1 var(--disp); }
.nb-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 12px; font-size: 14px; }
.nb-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 599px) { .nb .btn--max { width: 100%; min-width: 0; } }

/* ---------- クレジット（フッター） ---------- */
.credits { padding: 72px 16px 40px; border-top: 1px solid var(--seam); text-align: center; }
.credits dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px 20px; max-width: 640px; margin: 0 auto; text-align: left; }
.credits dt { justify-self: end; font: 600 12px/2 var(--en); letter-spacing: .14em; color: var(--muted); }
.credits dd { margin: 0; font-weight: 700; font-size: 15px; color: #fff; }
.credits nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin-top: 32px; }
.credits a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
.credits dd a { min-height: 0; }
.end-link { display: inline-grid !important; place-items: center; width: 48px; height: 48px; margin: 40px auto 12px; perspective: 400px; }
.end-link .crest { width: 32px; transition: transform .8s var(--ease-out); }
.end-link:hover .crest, .end-link:focus-visible .crest { transform: rotateY(360deg); }
.credits small { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }
.sticky-line { position: sticky; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(5, 10, 28, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--hair); }
.sticky-line > .crest { flex: none; width: 28px; }
.sticky-line .btn { flex: 1; min-height: 48px; }
.sticky-line .ico { animation: nudge 6s ease-in-out 3s infinite; }
@media (min-width: 768px) { .sticky-line { display: none; } }

/* ---------- サブページ（サイトポリシー・404） ---------- */
.sub .bug-mark .crest { animation: none; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 96px; }
.doc h1 { margin: 8px 0 24px; font: 400 clamp(28px, 4vw, 40px)/1.35 var(--disp); color: #fff; }
.doc h2 { margin: 40px 0 8px; font: 400 22px/1.4 var(--disp); color: #fff; }
.doc li { margin: 4px 0; }

/* ---------- keyframes ---------- */
@keyframes bugFlip { 0%, 86% { transform: rotateY(0); } 96%, 100% { transform: rotateY(360deg); } }
@keyframes livePulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes floodOn { 0% { opacity: .12; } 30% { opacity: 1; } 45% { opacity: .35; } 60%, 100% { opacity: 1; } }
@keyframes beamIn { from { opacity: 0; } }
@keyframes flash { 15% { opacity: .18; } }
@keyframes shake { 25% { translate: -4px 2px; } 50% { translate: 3px -2px; } 75% { translate: -2px 1px; } }
@keyframes crestSlam { 0% { transform: scale(1.7) rotate(-14deg); filter: blur(8px) brightness(1.8); } 55% { transform: scale(.94) rotate(1.5deg); filter: blur(0) brightness(1.3); } 75% { transform: scale(1.03) rotate(-.4deg); filter: blur(0) brightness(1); } }
@keyframes shock { 0% { opacity: 0; transform: scale(.8); } 8% { opacity: .9; } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes ringIn { from { opacity: 0; transform: scale(.7) rotate(-90deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stitchIn { from { opacity: 0; transform: scale(0); } }
@keyframes sweep { 0% { transform: translateX(-130%); } 30%, 100% { transform: translateX(130%); } }
@keyframes hover3d { 0%, 100% { transform: perspective(900px); } 25% { transform: perspective(900px) rotateX(5deg) rotateY(-7deg) translateY(-4px); } 75% { transform: perspective(900px) rotateX(-4deg) rotateY(7deg) translateY(-8px); } }
@keyframes cutIn { from { transform: translateX(-8%) skewX(-12deg); } }
@keyframes barWipe { from { transform: scaleX(0); } }
@keyframes ticker { to { transform: translateX(var(--shift, -50%)); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes iris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes countUp { from { --n: var(--from, 0); } }
@keyframes textRise { from { transform: translateY(110%); } }
@keyframes badgeFlip { from { transform: perspective(600px) rotateY(-90deg); opacity: 0; } }
@keyframes pitchX { 0% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 30% { transform: translateX(72cqw); } 82% { opacity: 1; } 90%, 100% { transform: translateX(72cqw); opacity: 0; } }
@keyframes pitchY { 0% { transform: translateY(0) scale(.45); animation-timing-function: cubic-bezier(.75, 0, 1, .55); } 30%, 100% { transform: translateY(22cqw) scale(1); } }
@keyframes ballSpin { 30%, 100% { rotate: 720deg; } }
@keyframes trailReveal { 0% { clip-path: inset(0 92.5% 0 0); opacity: 1; } 30% { clip-path: inset(0 20.5% 0 0); } 82% { opacity: 1; } 90%, 100% { clip-path: inset(0 20.5% 0 0); opacity: 0; } }
@keyframes hitBurst { 0%, 29% { transform: scale(.2); opacity: 0; } 31% { transform: scale(1); opacity: 1; } 50%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes hitText { 0%, 29% { transform: scale(1.8); opacity: 0; } 33%, 82% { transform: scale(1); opacity: 1; } 90%, 100% { transform: scale(1); opacity: 0; } }
@keyframes qPop { 0%, 29%, 44%, 100% { transform: scale(1); } 32% { transform: scale(1.35); } }
@keyframes rain { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@keyframes runBases { 0%, 8% { translate: 100cqw 100cqw; } 25%, 33% { translate: 100cqw 0; } 50%, 58% { translate: 0 0; } 75%, 83% { translate: 0 100cqw; } 100% { translate: 100cqw 100cqw; } }
@keyframes baseHit { 0% { opacity: 1; transform: scale(1); } 25%, 100% { opacity: 0; transform: scale(2.2); } }
@keyframes stepLit { 0%, 22% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes stamp { 0% { transform: scale(2.2) rotate(-18deg); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } }
@keyframes tileFocus { 0%, 100% { scale: .9; } 50% { scale: 1; } }
@keyframes heartbeat { 14% { transform: scale(1.06); } 28% { transform: scale(.99); } 42% { transform: scale(1.04); } 60% { transform: none; } }
@keyframes sonar { 0% { transform: scale(.95); opacity: .5; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes roll { 0%, 50% { transform: translateY(0); animation-timing-function: cubic-bezier(.2, .7, .1, 1); } 88%, 100% { transform: translateY(-8em); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes progress { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes nudge { 0%, 90%, 100% { translate: 0 0; } 94% { translate: 0 -3px; } }

/* スクロール連動アニメーション（対応ブラウザだけの上乗せ。非対応でも内容はすべて表示） */
@supports (animation-timeline: view()) {
  .reveal { animation: riseIn linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  .stinger { animation: iris linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .led-num { animation: countUp linear both; animation-timeline: --cell; animation-range: entry 30% cover 45%; }
  .led-scan { animation: barWipe linear both; animation-timeline: --cell; animation-range: entry 10% entry 90%; }
  .l3-red { animation: barWipe linear both; animation-timeline: --l3; animation-range: entry 0% entry 50%; }
  .l3-white { animation: barWipe linear both; animation-timeline: --l3; animation-range: entry 20% entry 70%; }
  .l3-name > span { animation: textRise linear both; animation-timeline: --l3; animation-range: entry 40% entry 90%; }
  .l3 > .crest { animation: badgeFlip linear both; animation-timeline: --l3; animation-range: entry 50% entry 100%; }
  .stamp { animation: stamp linear both; animation-timeline: --tk; animation-range: entry 30% entry 100%; }
  .tile { animation: tileFocus linear both; animation-timeline: view(inline); }
  .draw { animation: draw linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .bug-progress .bar { opacity: 1; animation: progress linear both; animation-timeline: scroll(root); }
}

/* 動きを止める：OSの「視差効果を減らす」設定、またはヘッダーの一時停止ボタン */
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion=on]) *, html:not([data-motion=on]) *::before, html:not([data-motion=on]) *::after { animation: none !important; transition: none !important; }
}
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation: none !important; transition: none !important; }
html[data-motion=off] .ticker-viewport { padding-block: 10px; }
html[data-motion=off] .ticker-track { width: auto; }
html[data-motion=off] .ticker-group { flex-wrap: wrap; white-space: normal; row-gap: 8px; }
html[data-motion=off] .ticker-dup, html[data-motion=off] .bug-progress .bar { display: none; }
html[data-motion=off] .sonar { opacity: .14; }
html[data-motion=off] .sonar--2 { transform: scale(1.2); }
html[data-motion=off] .sonar--3 { transform: scale(1.4); }

/* スマホ・タブレット：ノッチ（安全領域）を避ける */
@media (max-width: 1023px) {
  .bug, .hero, .channels, .sec, .nb, .credits, .sticky-line, .doc { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .ticker { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
@media (min-width: 600px) and (max-width: 1023px) { .hc .ph { max-width: 420px; } }
