/* ============================================================
   Groover Inc. F案 — 「FORTRESS RUN / 要塞強襲」
   - 宇宙空間の巨大球形メガストラクチャ(オリジナル要塞)へ接近し、
     赤道トレンチ(溝)へ突入。サービス6篇 = トレンチ6区画。
     各区画で 進入 → 障害物(ピンク発光タレット)出現 →
     グリーンレーザー2本で撃破 → 爆発+シェイク → ゲート通過、
     のシークエンスをスクロール駆動で繰り返す
   - Company = 要塞中枢の空洞でコアを旋回
     Contact = コア爆発 → 白転 → 外殻消失 → 星空へ脱出
   - ゾーン間はフラッシュカット(白転の三角波)で接続
   - 色: WebGL 世界 = オレンジ #EE7700(要塞・爆発) /
         蛍光グリーン #2BFF7E(自機レーザー) /
         蛍光ピンク #FF2E86(敵・障害物)
         DOM テキスト/UI = E案準拠の白ベース(#F4EFE9 / #FFFFFF)
   - 映画/コックピット言語: レターボックス / SECTOR HUD /
     ターゲットリティクル / 速度計 / 字幕スタイル
   - コピー(rev5)は A-E 案と共通
   ============================================================ */
:root {
  --bg: #050308;
  --bg-deep: #020104;
  --ink: #F4EFE9;
  --ink-sub: #A89C90;
  --accent: #FFFFFF;
  --accent-o: #EE7700;
  --line: rgba(242, 239, 247, .14);
  --line-strong: rgba(242, 239, 247, .32);
  --hud: rgba(244, 239, 233, .5);
  --hud-dim: rgba(244, 239, 233, .28);
  --font-jp: "YakuHanJP", "Gen Interface JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Space Grotesk", sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--accent); color: var(--bg-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.pc-br { display: inline; }

/* ====== イントロの黒幕 ====== */
#introVeil {
  position: fixed; inset: 0; z-index: 60; background: var(--bg-deep);
  pointer-events: none; transition: opacity 1.1s ease-out .15s;
}
body.ready #introVeil { opacity: 0; }
body.static #introVeil { display: none; }

/* ====== カット用フラッシュ(ゾーン遷移・スクラブ制御) ====== */
#cutFlash {
  position: fixed; inset: 0; z-index: 42; pointer-events: none;
  background: #FFF6EC; opacity: 0;
}
/* ====== 爆発用フラッシュ(時間ベース) ====== */
#boomFlash {
  position: fixed; inset: 0; z-index: 42; pointer-events: none;
  background: #FFFFFF; opacity: 0;
}
body.static #cutFlash, body.static #boomFlash { display: none; }

/* ====== WebGL キャンバス(固定背景レイヤー) ====== */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease-out;
}
body.gl-on #gl { opacity: 1; }
body.static #gl { transition: none; }
/* 字幕可読性の保険(下部グラデ + 薄ビネット) */
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(2, 1, 4, .68) 0%, transparent 32%),
    radial-gradient(ellipse 140% 100% at 50% 40%, transparent 52%, rgba(2, 1, 4, .55) 100%);
}

/* ====== WebGL 不可時の静的フォールバック(2D 要塞+トレンチ線) ====== */
.no-gl { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; overflow: hidden; }
.no-gl.show { display: block; }
.no-gl .stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(242,239,247,.8), transparent 60%),
    radial-gradient(1px 1px at 68% 14%, rgba(242,239,247,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 38%, rgba(255,179,107,.7), transparent 60%),
    radial-gradient(1px 1px at 34% 64%, rgba(242,239,247,.5), transparent 60%),
    radial-gradient(1px 1px at 56% 82%, rgba(43,255,126,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 76%, rgba(242,239,247,.5), transparent 60%),
    radial-gradient(1px 1px at 8% 88%, rgba(242,239,247,.55), transparent 60%);
}
.no-gl .fortress {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 64vmin; height: 64vmin; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, rgba(238,119,0,.18), transparent 52%),
    radial-gradient(circle, #15101E 0%, #0A0712 68%, #060410 100%);
  box-shadow: 0 0 90px rgba(238, 119, 0, .22), inset -14px -20px 70px rgba(0,0,0,.8);
}
.no-gl .fortress::before {
  content: ""; position: absolute; left: -4%; right: -4%; top: 48.5%; height: 3%;
  background: linear-gradient(90deg, transparent, rgba(238,119,0,.85), rgba(238,119,0,.85), transparent);
  box-shadow: 0 0 24px rgba(238, 119, 0, .8);
}
.no-gl .fortress::after {
  content: ""; position: absolute; inset: 7%;
  border-radius: 50%; border: 1px dashed rgba(242, 239, 247, .14);
}

/* ====== SECTOR HUD(右下・現在区画の表示) ====== */
.shot-hud {
  position: fixed; right: 34px; bottom: 18px;
  z-index: 30; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-en);
}
.shot-hud .sh-rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-o); box-shadow: 0 0 10px rgba(238, 119, 0, .9);
  animation: rec-blink 2.1s steps(1) infinite;
}
@keyframes rec-blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }
.shot-hud .sh-cut {
  font-size: .6875rem; font-weight: 700; letter-spacing: .22em; color: var(--ink);
}
.shot-hud .sh-name {
  font-size: .6875rem; font-weight: 500; letter-spacing: .22em; color: var(--hud);
  border-left: 1px solid var(--line-strong); padding-left: 12px;
}

/* ====== 速度計(左下) ====== */
.spd-hud {
  position: fixed; left: 34px; bottom: 18px;
  z-index: 30; pointer-events: none;
  font-family: var(--font-en); display: flex; align-items: baseline; gap: 10px;
}
.spd-hud .sp-label { font-size: .5625rem; font-weight: 600; letter-spacing: .26em; color: var(--hud-dim); }
.spd-hud .sp-val {
  font-size: 1rem; font-weight: 700; letter-spacing: .08em; color: var(--hud);
  min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums;
}
.spd-hud .sp-unit { font-size: .5625rem; font-weight: 600; letter-spacing: .2em; color: var(--hud-dim); }

/* ====== ミッション進行ゲージ(左端の縦ライン) ====== */
.tl-gauge {
  position: fixed; left: 34px; top: 50%; transform: translateY(-50%);
  height: 46vh; width: 1px; background: var(--line); z-index: 30; pointer-events: none;
}
.tl-gauge .fill {
  position: absolute; left: 0; top: 0; width: 1px; height: 0%;
  background: var(--accent); box-shadow: 0 0 8px rgba(255, 255, 255, .7);
}
.tl-gauge .cap {
  position: absolute; left: -22px; top: -30px;
  font-family: var(--font-en); font-size: .5625rem; font-weight: 600;
  letter-spacing: .2em; color: var(--hud-dim); white-space: nowrap;
}

/* ====== ターゲットリティクル(中央・撃破シークエンス時のみ) ====== */
.reticle {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 110px; height: 110px; z-index: 28; pointer-events: none;
  opacity: 0; transition: opacity .3s;
  color: rgba(244, 239, 233, .75);
}
.reticle.show { opacity: 1; }
.reticle.lock { color: #FFFFFF; }
.reticle .rc {
  position: absolute; width: 22px; height: 22px;
  border-color: currentColor; border-style: solid; border-width: 0;
  filter: drop-shadow(0 0 6px currentColor);
  transition: inset .25s var(--ease-expo);
}
.reticle .rc.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.reticle .rc.tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.reticle .rc.bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.reticle .rc.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.reticle.lock .rc.tl { left: 12px; top: 12px; }
.reticle.lock .rc.tr { right: 12px; top: 12px; }
.reticle.lock .rc.bl { left: 12px; bottom: 12px; }
.reticle.lock .rc.br { right: 12px; bottom: 12px; }
.reticle .rx {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px;
}
.reticle .rx::before, .reticle .rx::after {
  content: ""; position: absolute; background: currentColor;
  filter: drop-shadow(0 0 4px currentColor);
}
.reticle .rx::before { left: 50%; top: -3px; bottom: -3px; width: 1px; transform: translateX(-50%); }
.reticle .rx::after { top: 50%; left: -3px; right: -3px; height: 1px; transform: translateY(-50%); }
.reticle .rtag {
  position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%);
  font-family: var(--font-en); font-size: .5625rem; font-weight: 700;
  letter-spacing: .3em; white-space: nowrap; color: currentColor;
  text-shadow: 0 0 8px currentColor;
}
.reticle.lock .rtag { animation: lock-blink .42s steps(1) infinite; }
@keyframes lock-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
body.static .reticle { display: none; }

/* ====== ヘッダー ====== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(5, 3, 8, .66);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 44px;
}
.logo img { height: 28px; width: auto; display: block; }
.gnav { display: flex; align-items: center; justify-content: flex-end; gap: 34px; }
.gnav .nav-link {
  font-family: var(--font-en); font-weight: 600; font-size: .78125rem;
  letter-spacing: .18em; position: relative; padding: 4px 0;
  background: none; border: none; color: inherit; cursor: pointer;
  /* button(SERVICE) と a で天地が揃うよう描画箱を統一 */
  display: inline-flex; align-items: center; line-height: 1; margin: 0;
  appearance: none; -webkit-appearance: none;
}
.gnav .nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease-expo);
}
.gnav .nav-link:hover::after { transform: scaleX(1); transform-origin: left center; }

/* SERVICE プルダウン */
.nav-item { position: relative; display: flex; align-items: center; line-height: 1; }
.nav-sub-toggle .caret {
  display: inline-block; margin-left: 8px; font-size: .625rem;
  transition: transform .35s var(--ease-expo);
}
.nav-item.open .nav-sub-toggle .caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: calc(100% + 16px); right: -16px;
  min-width: 280px;
  background: rgba(5, 3, 8, .92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease-expo), visibility .3s;
}
.nav-item.open .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a {
  display: block; padding: 11px 22px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink); transition: background .25s, color .25s;
}
.nav-sub a:hover { background: rgba(238, 119, 0, .14); color: var(--accent-o); }

/* SP ハンバーガー */
.menu-toggle {
  display: none; position: relative; z-index: 70;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ink); transition: transform .35s var(--ease-expo);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(20deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-20deg); }

/* ブラケット型ボタン(照準器言語) */
.btn-bracket {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .12em; color: var(--ink);
  transition: color .35s;
}
.btn-bracket::before, .btn-bracket::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12px;
  border: 1px solid var(--accent); transition: width .5s var(--ease-expo), background-color .35s;
}
.btn-bracket::before { left: 0; border-right: none; }
.btn-bracket::after { right: 0; border-left: none; }
.btn-bracket:hover::before, .btn-bracket:hover::after { width: 51%; }
.btn-bracket > span { position: relative; z-index: 1; }
.btn-bracket .bg {
  position: absolute; inset: 0; background: rgba(255, 255, 255, .12);
  opacity: 0; transition: opacity .4s;
}
.btn-bracket:hover .bg { opacity: 1; }
.btn-cta { font-size: .9375rem; padding: 19px 52px; }
.btn-cta .arr { margin-left: 14px; color: var(--accent); transition: transform .4s var(--ease-expo); }
.btn-cta:hover .arr { transform: translateX(6px); }

/* ====== コンテンツ共通 ====== */
main { position: relative; z-index: 2; }

/* セクションタグ(HUD ブラケット) */
.sec-tag {
  display: inline-flex; align-items: baseline; gap: 12px;
}
.sec-tag .br { font-family: var(--font-en); font-weight: 500; color: var(--ink-sub); font-size: .8125rem; }
.sec-tag .en {
  font-family: var(--font-en); font-weight: 600; font-size: .75rem;
  letter-spacing: .3em; color: var(--ink);
}
.sec-tag .jp { font-size: .75rem; color: var(--ink-sub); letter-spacing: .12em; }

/* reveal 初期状態(JS 無効・static 時は表示) */
.reveal { opacity: 0; transform: translateY(30px); }
body.static .reveal, body.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* ====== Hero(要塞遠景・中央) ====== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  position: relative; text-align: center;
}
.hero-en {
  font-family: var(--font-en); font-weight: 600; font-size: .8125rem;
  letter-spacing: .34em; color: var(--ink-sub); margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.75rem);
  font-weight: 800; line-height: 1.16; letter-spacing: .015em;
  text-shadow: 0 4px 60px rgba(2, 1, 4, .85);
}
.hero h1 .l { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero h1 .l > span { display: inline-block; }
.accent-txt { color: var(--accent); }
.hero .lead {
  margin-top: 34px; font-size: 1.0625rem; font-weight: 500;
  color: var(--ink-sub); line-height: 2.2;
  text-shadow: 0 2px 18px rgba(2, 1, 4, .95);
}
.scroll-sign {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  font-family: var(--font-en); font-size: .625rem; font-weight: 600;
  letter-spacing: .3em; color: var(--hud);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-sign .ss-bar {
  width: 1px; height: 44px; background: var(--line-strong);
  position: relative; overflow: hidden;
}
.scroll-sign .ss-bar::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 1px; height: 40%; background: var(--accent);
  animation: ss-drop 2s var(--ease-expo) infinite;
}
@keyframes ss-drop { 0% { top: -40%; } 60%, 100% { top: 110%; } }

/* ====== About(降下・1行ずつ中央) ====== */
.about { position: relative; padding: 16vh 0 10vh; }
.about .sec-tag-wrap { text-align: center; margin-bottom: 6vh; }
.ac-catch {
  min-height: 64vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; text-align: center;
}
.ac-catch .big {
  font-size: clamp(2.125rem, 5.2vw, 3.875rem);
  font-weight: 800; line-height: 1.5; letter-spacing: .02em;
  text-shadow: 0 4px 40px rgba(2, 1, 4, .95);
}
.ac-catch .big .nw { display: inline-block; }
.ac-catch .sign {
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  font-weight: 700; color: var(--ink-sub); letter-spacing: .06em;
}

/* ====== Services 導入(突入直前) ====== */
.svc-intro { padding: 14vh 0 36vh; text-align: center; }
.svc-intro .headline {
  margin-top: 30px;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 800; letter-spacing: .03em; line-height: 1.4;
  text-shadow: 0 3px 30px rgba(2, 1, 4, .95);
}
.svc-intro .sub { margin-top: 20px; color: var(--ink-sub); font-weight: 500; }
.svc-intro .range {
  margin: 34px auto 0; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--font-en); font-size: .6875rem; font-weight: 600;
  letter-spacing: .26em; color: #fff;
}
.svc-intro .range::before, .svc-intro .range::after {
  content: ""; width: 90px; height: 1px;
}
.svc-intro .range::before { background: linear-gradient(270deg, var(--accent), transparent); }
.svc-intro .range::after { background: linear-gradient(90deg, var(--accent), transparent); }

/* ====== Services(トレンチ・ラン6区画 / 字幕 sticky) ====== */
.svc-panel { min-height: 175vh; position: relative; }
/* capture 時はスクラブ余白が不要(超長ページは fullPage 撮影でタイル分割が起きる) */
body.static .svc-panel { min-height: 100vh; }
.svc-sub {
  position: sticky; top: 56%;
  text-align: center; max-width: 780px; padding-inline: 20px;
  margin-inline: auto;
  padding-top: 40px; padding-bottom: 40px;
}
.svc-sub .meta {
  font-family: var(--font-en); font-size: .6875rem; font-weight: 600;
  letter-spacing: .3em; color: var(--hud);
}
.svc-sub .meta .no { color: #fff; }
.svc-sub h3 {
  margin-top: 16px;
  font-size: clamp(1.9375rem, 4.4vw, 3.125rem);
  font-weight: 800; line-height: 1.35; letter-spacing: .02em;
  text-shadow: 0 4px 36px rgba(2, 1, 4, 1);
}
.svc-sub .copy {
  margin-top: 16px; font-size: .9990rem; font-weight: 500;
  color: var(--ink-sub); line-height: 2.1;
  text-shadow: 0 2px 20px rgba(2, 1, 4, 1);
}
.svc-sub .more { margin-top: 26px; }
.svc-sub .more .btn-bracket {
  font-size: .8125rem; padding: 12px 30px; pointer-events: auto;
}
.svc-sub .more .btn-bracket .arr {
  margin-left: 12px; color: var(--accent-o);
  transition: transform .4s var(--ease-expo);
}
.svc-sub .more .btn-bracket:hover .arr { transform: translateX(4px); }

/* ====== Contact(中枢でコア旋回 → 爆発 → 脱出) ====== */
.contact {
  min-height: 230vh;
  display: flex; align-items: center;
  text-align: center; padding: 18vh 0 14vh;
}
body.static .contact { min-height: 100vh; }
.contact .inner { width: 100%; }
.contact .sec-tag { margin-inline: auto; }
.contact .headline {
  margin-top: 34px;
  font-size: clamp(2.25rem, 5.4vw, 4rem);
  font-weight: 800; letter-spacing: .02em; line-height: 1.4;
  text-shadow: 0 4px 50px rgba(2, 1, 4, .95);
}
.contact .body { margin-top: 24px; color: var(--ink-sub); font-weight: 500; text-shadow: 0 2px 20px rgba(2, 1, 4, .95); }
.contact .cta-wrap { margin-top: 48px; }

/* ====== Topics(中枢接近中の受信ログ) ====== */
.topics { padding: 24vh 0 18vh; text-align: center; }
.topics .headline {
  margin-top: 30px;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800; letter-spacing: .03em; line-height: 1.4;
  text-shadow: 0 3px 30px rgba(2, 1, 4, .95);
}
.topics-list {
  list-style: none; margin: 7vh auto 0; max-width: 880px;
  border-top: 1px solid var(--line-strong); text-align: left;
}
.topics-list li { border-bottom: 1px solid var(--line-strong); }
.topics-list a {
  display: flex; align-items: baseline; gap: 22px;
  padding: 25px 10px;
  background: rgba(2, 1, 4, .42);
  transition: background .3s, padding-left .35s var(--ease-expo);
}
.topics-list a:hover { background: rgba(238, 119, 0, .12); padding-left: 24px; }
.topics-list .t-date {
  font-family: var(--font-en); font-weight: 600; font-size: .75rem;
  letter-spacing: .14em; color: var(--hud); white-space: nowrap;
}
.topics-list .t-cat {
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; line-height: 1;
  color: var(--accent-o); border: 1px solid rgba(238, 119, 0, .55);
  padding: 5px 12px; white-space: nowrap; align-self: center;
}
.topics-list .t-title {
  flex: 1; font-size: .9990rem; font-weight: 600; line-height: 1.7;
  text-shadow: 0 2px 16px rgba(2, 1, 4, 1);
}
.topics-list .t-arr { font-family: var(--font-en); color: var(--accent-o); }
.topics-more { margin-top: 46px; }
.topics-more .btn-bracket { font-size: .8125rem; padding: 12px 34px; }
.topics-more .btn-bracket .arr {
  margin-left: 12px; color: var(--accent-o);
  transition: transform .4s var(--ease-expo);
}
.topics-more .btn-bracket:hover .arr { transform: translateX(4px); }

/* ====== フッター ====== */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(2, 1, 4, .72);
  backdrop-filter: blur(8px);
  padding: 64px 0 36px;
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer .addr { margin-top: 20px; font-size: .8125rem; color: var(--ink-sub); line-height: 2.1; }
.footer-nav { display: flex; gap: 28px; align-items: flex-start; }
.footer-nav > a,
.footer-nav .nav-sub-toggle {
  font-family: var(--font-en); font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; color: var(--ink); transition: color .3s;
  background: none; border: none; cursor: pointer; padding: 0;
}
.footer-nav > a:hover,
.footer-nav .nav-sub-toggle:hover { color: var(--accent-o); }
.footer-svc-col { display: flex; flex-direction: column; gap: 12px; }
.footer-svc-head {
  font-family: var(--font-en); font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; color: var(--ink);
}
.footer-svc-col a {
  font-size: .6875rem; letter-spacing: .04em; font-weight: 500;
  color: var(--ink-sub); transition: color .3s;
}
.footer-svc-col a:hover { color: var(--accent-o); }
.footer-bottom {
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom .reg, .footer-bottom .copy { font-size: .6875rem; color: var(--ink-sub); letter-spacing: .06em; }

/* ====== SP ====== */
@media (max-width: 768px) {
  .header-inner { padding: 14px 18px; }
  .logo img { height: 22px; }
  .menu-toggle { display: block; }
  /* backdrop-filter は containing block を作り fixed の gnav が
     ヘッダー内に閉じ込められるため SP では header 側を無効化する */
  .header.scrolled { backdrop-filter: none; background: rgba(5, 3, 8, .92); }
  .gnav {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(2, 1, 4, .96);
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .gnav.open { opacity: 1; visibility: visible; }
  .gnav .nav-link { font-size: 1rem; }
  .nav-item { display: flex; flex-direction: column; align-items: center; }
  .nav-sub {
    position: static; min-width: 0; border: none; background: none;
    backdrop-filter: none; padding: 6px 0 0;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .nav-item.open .nav-sub { display: block; }
  .nav-sub a { padding: 9px 14px; text-align: center; font-size: .875rem; color: var(--ink-sub); }
  .tl-gauge { display: none; }
  .spd-hud { display: none; }
  .shot-hud { right: 16px; bottom: 12px; gap: 8px; }
  .shot-hud .sh-cut { font-size: .5625rem; }
  .shot-hud .sh-name { font-size: .5625rem; padding-left: 8px; }
  .reticle { width: 84px; height: 84px; }
  .pc-br { display: none; }
  .hero h1 { font-size: clamp(2.875rem, 13.4vw, 3.5rem); }
  .hero .lead { font-size: .9375rem; padding-inline: 24px; }
  .ac-catch .big { font-size: 1.875rem; padding-inline: 20px; }
  .ac-catch .sign { font-size: 1rem; }
  .svc-intro { padding-bottom: 28vh; }
  .svc-intro .headline { font-size: 1.875rem; }
  .svc-intro .sub { font-size: .875rem; padding-inline: 20px; }
  .svc-panel { min-height: 165vh; }
  .svc-sub { top: 54%; }
  .svc-sub h3 { font-size: 1.75rem; }
  .svc-sub .copy { font-size: .875rem; }
  .contact { min-height: 190vh; }
  .contact .headline { font-size: 1.9375rem; }
  .contact .body { font-size: .875rem; padding-inline: 16px; }
  .topics { padding: 18vh 0 14vh; }
  .topics .headline { font-size: 1.625rem; }
  .topics-list a { flex-wrap: wrap; gap: 10px 14px; padding: 20px 6px; }
  .topics-list .t-arr { margin-left: auto; }
  .topics-list .t-title { order: 2; flex-basis: 100%; font-size: .9375rem; }
  .btn-cta { font-size: .875rem; padding: 16px 38px; }
  .footer-grid { flex-direction: column; }
  .footer-nav { flex-wrap: wrap; gap: 14px 22px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ====== 狭幅(<=390px): サービス名の折り返しを抑え 1 行に収める ====== */
@media (max-width: 390px) {
  .svc-sub h3 {
    font-size: clamp(1.05rem, 5.4vw, 1.5rem);
    letter-spacing: 0; line-height: 1.3; white-space: nowrap;
  }
}

/* ====== reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  .shot-hud .sh-rec { animation: none; }
  .scroll-sign .ss-bar::after { animation: none; }
  html { scroll-behavior: auto; }
}
