/* =====================================================================
   Bayste LLC. — デザインスタイル
   このファイルはデザイン(見た目)を定義します。掲載内容の更新は
   data/site-data.json 側で行い、このファイルは制作会社が管理します。

   構成
     0. トークン / ベース
     1. 全画面レイヤー(スキャンライン・遷移ワイプ・カーソル)
     2. 演出の部品(出現・グリッチ・HUD コーナー・見出し)
     3. ボタン
     4. エントリー
     5. ヘッダー / モバイルメニュー
     6. ヒーロー
     7. セクション(カード・サービス・実績・About・プロセス・CTA)
     8. サブページ
     9. お問い合わせフォーム
    10. フッター
    11. プレイヤー
    12. レスポンシブ
    13. 動きを減らす設定
   ===================================================================== */

/* ---------- 0. トークン / ベース ---------- */

:root {
  --bg: #080a07;
  --panel: #0d100c;
  --ink: #f4f4f0;
  --dim: #c9cbc4;
  --muted: #a5a7a1;
  --faint: #5c5e59;
  --blue: #2d49c9;
  --lblue: #8fa8ff;
  --neon: #5b7cff;
  --cyan: #3df0ff;
  --magenta: #ff2a6d;
  --line: rgba(255, 255, 255, 0.14);
  --line-mid: rgba(255, 255, 255, 0.25);
  --line-strong: rgba(255, 255, 255, 0.35);
  --glow: 0 0 18px rgba(91, 124, 255, 0.45);
  --grotesk: 'Space Grotesk', sans-serif;
  --jp: 'Noto Sans JP', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --gutter: clamp(18px, 5vw, 64px);
  --notch: 10px;
  --player-h: 58px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--jp);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--lblue); }
::selection { background: var(--blue); color: var(--ink); }
input[type="range"] { accent-color: var(--neon); }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.985); } to { opacity: 1; transform: translate(-50%, -52%) scale(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 240, 255, 0.55); } 60% { box-shadow: 0 0 0 6px rgba(61, 240, 255, 0); } }

/* 背景キャンバス / レイヤー */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
#app, .site-footer { position: relative; z-index: 1; }

/* ---------- 1. 全画面レイヤー ---------- */

/* 走査線 + ビネット(静止画なのでスクロールしても再描画されない) */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.38) 100%);
}

/* ページ遷移のスキャンワイプ */
#fx-wipe { position: fixed; inset: 0; z-index: 115; pointer-events: none; overflow: hidden; }
#fx-wipe::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan) 18%, var(--neon) 50%, var(--cyan) 82%, transparent);
  box-shadow: 0 0 22px 3px rgba(91, 124, 255, 0.65);
}
#fx-wipe::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to bottom, rgba(91, 124, 255, 0.12), rgba(8, 10, 7, 0) 40%);
}
#fx-wipe.run::before { animation: wipe-line 0.7s var(--ease-io) both; }
#fx-wipe.run::after { animation: wipe-veil 0.7s ease-out both; }
@keyframes wipe-line {
  0% { transform: translateY(0); opacity: 0; }
  8%, 90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes wipe-veil {
  0% { opacity: 1; clip-path: inset(0 0 100% 0); }
  55% { opacity: 0.7; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(0 0 0 0); }
}

/* カーソルリング(マウス環境のみ JS が生成) */
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 1px solid rgba(143, 168, 255, 0.55); opacity: 0;
  transition: opacity 0.25s, width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.cursor-ring::before, .cursor-ring::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--lblue); }
.cursor-ring::before { width: 2px; height: 2px; margin: -1px 0 0 -1px; }
.cursor-ring::after { width: 6px; height: 1px; margin: -0.5px 0 0 calc(50% - 1px); opacity: 0.6; }
.cursor-ring.on { opacity: 1; }
.cursor-ring.hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--neon); background: rgba(91, 124, 255, 0.06); box-shadow: 0 0 16px rgba(91, 124, 255, 0.35); }
.cursor-ring.down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* ---------- 2. 演出の部品 ---------- */

/* 出現(JS が .is-in を付ける)
   - 待機中は opacity だけで隠す(clip-path や scale で隠すと
     IntersectionObserver が「面積ゼロ」と判定し、出現しなくなるため)
   - animation の fill を backwards にして、再生後は効果を残さない
     (= ホバー時の transform / transition と干渉しない) */
[data-reveal]:not(.is-in) { opacity: 0; }
[data-reveal].is-in { animation: rv-up 0.85s var(--ease) var(--d, 0ms) backwards; }
[data-reveal="fade"].is-in { animation-name: rv-fade; }
[data-reveal="clip"].is-in { animation: rv-clip 1.05s var(--ease-io) var(--d, 0ms) backwards; }
[data-reveal="line"].is-in { animation: rv-line 1.2s var(--ease-io) var(--d, 0ms) backwards; transform-origin: 0 50%; }
[data-reveal="type"].is-in { animation: rv-clip 0.75s steps(var(--n, 16), end) var(--d, 0ms) backwards; }
@keyframes rv-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rv-clip { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -1px 0 0); } }
@keyframes rv-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fx-instant [data-reveal] { animation: none !important; }

/* グリッチ(シアン / マゼンタの色ずれ) */
[data-glitch] { position: relative; }
[data-glitch]::before, [data-glitch]::after {
  content: attr(data-glitch);
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.is-glitching { animation: g-shake 0.38s steps(2) both; }
.is-glitching::before { opacity: 0.85; color: var(--cyan); animation: g-a 0.38s steps(2) both; }
.is-glitching::after { opacity: 0.85; color: var(--magenta); animation: g-b 0.38s steps(2) both; }
@keyframes g-shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
}
@keyframes g-a {
  0% { clip-path: inset(12% 0 64% 0); transform: translate(-4px, 0); }
  25% { clip-path: inset(58% 0 18% 0); transform: translate(3px, 0); }
  50% { clip-path: inset(30% 0 46% 0); transform: translate(-2px, 0); }
  75% { clip-path: inset(78% 0 4% 0); transform: translate(4px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes g-b {
  0% { clip-path: inset(66% 0 10% 0); transform: translate(4px, 0); }
  25% { clip-path: inset(8% 0 72% 0); transform: translate(-3px, 0); }
  50% { clip-path: inset(44% 0 30% 0); transform: translate(2px, 0); }
  75% { clip-path: inset(2% 0 84% 0); transform: translate(-4px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}

/* HUD コーナー(要素の四隅に L 字) */
.corners {
  position: absolute; inset: var(--ci, 0); pointer-events: none;
  --c: rgba(143, 168, 255, 0.75); --l: 14px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px var(--l);
  background-repeat: no-repeat;
}

/* 見出し部品 */
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; color: var(--lblue);
  display: inline-flex; align-items: center; gap: 8px;
}
.k-sig { width: 14px; height: 14px; flex: none; display: inline-block; }
.k-live::after {
  content: ''; width: 7px; height: 12px; margin-left: 2px; flex: none;
  background: var(--lblue); opacity: 0.85; animation: blink 1.05s steps(1) infinite;
}
.sec-rule {
  display: block; flex: 1 0 100%; height: 1px; margin-top: 6px; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--neon), rgba(91, 124, 255, 0.18) 38%, rgba(255, 255, 255, 0.06));
}
.sec-rule::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 88%, var(--cyan) 97%, transparent);
  animation: packet 5s linear infinite;
}
@keyframes packet { to { transform: translateX(100%); } }

/* ---------- 3. ボタン(切り欠き形状 + 光の走査) ---------- */

.btn {
  font-family: var(--grotesk); font-size: 12px; letter-spacing: 0.16em;
  padding: 15px 26px; cursor: pointer; min-height: 44px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  position: relative; isolation: isolate; overflow: hidden; border: none;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  transition: background-color 0.3s, color 0.3s, letter-spacing 0.4s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(61, 240, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-130%);
}
.btn-solid { background: var(--ink); color: var(--bg); font-weight: 500; }
.btn-ghost { background: var(--line-strong); color: var(--ink); }
.btn-ghost::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; background: var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
}
.btn-lg { font-size: 13px; padding: 18px 32px; --notch: 12px; }
@media (hover: hover) {
  .btn:hover { letter-spacing: 0.2em; }
  .btn:hover::after { transform: translateX(130%); transition: transform 0.75s var(--ease); }
  .btn-solid:hover { background: #fff; color: var(--bg); }
  .btn-ghost:hover { background: var(--neon); color: #fff; text-shadow: 0 0 12px rgba(91, 124, 255, 0.9); }
}

/* ---------- 4. エントリー ---------- */

.entry {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; transition: opacity 0.6s ease; overflow: hidden;
}
.entry.fade { opacity: 0; }
.entry[hidden] { display: none; }
.entry-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(91, 124, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 124, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.entry-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 24px; text-align: center; }
.entry-logo { position: relative; width: min(420px, 74vw); display: grid; place-items: center; margin: 7% 0 4%; }
.entry-logo img { width: 100%; position: relative; animation: fadeUp 1s 0.15s var(--ease) both; }
.entry-ring {
  position: absolute; left: 50%; top: 50%; width: 112%; aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0.85;
  animation: ring-in 1.6s var(--ease) both;
}
.entry-boot {
  margin: 0; min-height: 4.8em; min-width: min(300px, 80vw);
  font: 10.5px/1.6 var(--mono); letter-spacing: 0.06em; color: var(--lblue);
  text-align: left; white-space: pre; opacity: 0.85;
}
.entry-note { margin: 0; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; animation: fadeUp 0.8s 0.9s var(--ease) both; }
.entry-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: fadeUp 0.8s 1.05s var(--ease) both; }
.entry-hint { font-family: var(--mono); font-size: 10px; color: var(--faint); animation: fadeUp 0.8s 1.2s var(--ease) both; }

/* ---------- 5. ヘッダー / モバイルメニュー ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 4vw, 44px);
  padding-top: max(20px, env(safe-area-inset-top));
  transition: padding 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px;
  background: rgba(8, 10, 7, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
/* スクロール進捗ライン */
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--neon) 60%, var(--cyan));
  box-shadow: 0 0 10px rgba(91, 124, 255, 0.75);
  transform-origin: 0 50%; transform: scaleX(var(--prog, 0));
  opacity: 0; transition: opacity 0.35s;
}
.site-header.scrolled::after { opacity: 1; }

.brand { display: inline-block; font-family: var(--grotesk); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.main-nav { display: flex; gap: 30px; align-items: center; font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.14em; }
.main-nav a { position: relative; color: var(--muted); padding: 6px 0; transition: color 0.25s; }
.main-nav a::before, .main-nav a::after {
  position: absolute; top: 50%; margin-top: -0.65em; font-family: var(--mono); color: var(--neon);
  opacity: 0; transition: opacity 0.25s, transform 0.3s var(--ease);
}
.main-nav a::before { content: '['; left: -11px; transform: translateX(5px); }
.main-nav a::after { content: ']'; right: -11px; transform: translateX(-5px); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::before, .main-nav a.active::after { opacity: 1; transform: none; }
@media (hover: hover) {
  .main-nav a:hover { color: var(--ink); }
  .main-nav a:hover::before, .main-nav a:hover::after { opacity: 1; transform: none; }
}

.sound-btn {
  font-family: var(--grotesk); font-size: 10.5px; letter-spacing: 0.12em;
  padding: 8px 14px; border-radius: 16px; cursor: pointer; min-height: 34px;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; color: var(--muted); border: 1px solid var(--line-mid);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.sound-btn.on { color: var(--ink); border-color: var(--neon); box-shadow: 0 0 14px -4px rgba(91, 124, 255, 0.8); }
.sb-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.sb-eq i { width: 2px; height: 3px; background: currentColor; opacity: 0.7; }
.is-playing .sound-btn.on .sb-eq i { background: var(--cyan); opacity: 1; animation: sbeq 0.9s ease-in-out infinite; }
.is-playing .sound-btn.on .sb-eq i:nth-child(2) { animation-delay: -0.3s; }
.is-playing .sound-btn.on .sb-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes sbeq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

.mobile-controls { display: none; gap: 10px; align-items: center; }
.menu-btn {
  background: none; border: 1px solid var(--line-mid); color: var(--ink);
  width: 44px; height: 40px; cursor: pointer; display: grid; place-content: center; gap: 4px;
}
.menu-btn span { display: block; width: 16px; height: 1px; background: currentColor; transition: transform 0.3s var(--ease), width 0.3s; }
.menu-btn span:nth-child(2) { width: 10px; justify-self: end; }
@media (hover: hover) { .menu-btn:hover span:nth-child(2) { width: 16px; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150; counter-reset: mm; overflow: hidden;
  background: rgba(8, 10, 7, 0.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px; gap: 6px;
}
.mobile-menu::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(91, 124, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 124, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mobile-menu[hidden] { display: none; }
.mm-ring { position: absolute; right: -32vw; bottom: -18vh; width: 92vw; aspect-ratio: 1; opacity: 0.3; pointer-events: none; }
.mm-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 18px; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-mid); color: var(--ink); font-size: 22px; cursor: pointer;
}
.mm-label { position: relative; font: 10px var(--mono); letter-spacing: 0.24em; color: var(--lblue); margin-bottom: 14px; }
.mobile-menu a {
  position: relative; counter-increment: mm; display: flex; align-items: baseline; gap: 14px;
  font-family: var(--grotesk); font-size: clamp(28px, 8.5vw, 38px); font-weight: 700; letter-spacing: 0.04em;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a::before { content: counter(mm, decimal-leading-zero); font: 11px var(--mono); letter-spacing: 0.2em; color: var(--lblue); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu:not([hidden]) a, .mobile-menu:not([hidden]) .mm-label, .mobile-menu:not([hidden]) .mm-status { animation: mm-in 0.55s var(--ease) both; }
.mobile-menu a:nth-of-type(1) { animation-delay: 0.05s; }
.mobile-menu a:nth-of-type(2) { animation-delay: 0.1s; }
.mobile-menu a:nth-of-type(3) { animation-delay: 0.15s; }
.mobile-menu a:nth-of-type(4) { animation-delay: 0.2s; }
.mobile-menu a:nth-of-type(5) { animation-delay: 0.25s; }
.mobile-menu .mm-status { animation-delay: 0.35s; }
@keyframes mm-in { from { opacity: 0; transform: translateX(-24px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 -10% 0 0); } }
.mm-status, .f-status {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font: 10px var(--mono); letter-spacing: 0.18em; color: var(--muted);
}
.mm-status { margin-top: 28px; }
.mm-status i, .f-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse-dot 2s ease-out infinite; }

/* ---------- 6. ヒーロー ---------- */

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hero-ring {
  position: absolute; left: 50%; top: 43%; width: min(68vmin, 640px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0.9;
  animation: ring-in 1.8s var(--ease) 0.15s both;
}
@keyframes ring-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.86) rotate(-24deg); }
  to { opacity: 0.9; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.hero-art {
  position: absolute; left: 50%; top: 43%; transform: translate(-50%, -52%);
  width: min(86%, 1180px); max-height: 52svh; object-fit: contain; pointer-events: none;
  animation: heroIn 1.6s ease both;
}

/* HUD フレーム + テレメトリ */
.hero-hud {
  position: absolute; top: 84px; bottom: 28%; left: var(--gutter); right: var(--gutter);
  pointer-events: none; font: 10px/1.7 var(--mono); letter-spacing: 0.18em; color: var(--muted);
  animation: fadeUp 1.2s 0.3s var(--ease) both;
}
.hero-hud .corners { --c: rgba(143, 168, 255, 0.5); --l: 22px; }
.hud-tl, .hud-tr { position: absolute; top: 14px; display: flex; flex-direction: column; gap: 2px; }
.hud-tl { left: 16px; }
.hud-tr { right: 16px; text-align: right; align-items: flex-end; }
.hud-tr b { color: var(--ink); font-weight: 400; }
.hud-live { display: inline-flex; align-items: center; gap: 7px; color: var(--lblue); }
.hud-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse-dot 2s ease-out infinite; }
.hud-meter { position: absolute; right: 16px; bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hud-meter b { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.hud-meter i { width: 3px; height: 100%; background: rgba(255, 255, 255, 0.14); transition: background-color 0.12s; }
.hud-meter i.on { background: var(--neon); box-shadow: 0 0 6px rgba(91, 124, 255, 0.8); }
.hud-meter i.on:nth-child(n + 12) { background: var(--cyan); }

/* リズム線の周波数ラベル(線は背景キャンバスの高さ46%) */
.hero-freq {
  position: absolute; left: 0; right: 0; top: 46%; height: 0; pointer-events: none;
  font: 9.5px var(--mono); letter-spacing: 0.16em; color: var(--lblue); opacity: 0.75;
  animation: fadeUp 1s 1.1s var(--ease) both;
}
.hero-freq span { position: absolute; bottom: 10px; transform: translateX(-50%); white-space: nowrap; }
.hero-freq span:nth-child(1) { left: 10%; }
.hero-freq span:nth-child(2) { left: 90%; }
.hero-freq span::after {
  content: ''; position: absolute; left: 50%; top: calc(100% + 4px); width: 1px; height: 6px; background: currentColor;
}

.hero-foot {
  position: relative; margin-top: auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end; gap: 22px;
  padding: 0 var(--gutter) calc(clamp(28px, 4vw, 52px) + var(--player-h) + env(safe-area-inset-bottom));
}
.hero-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hero-copy h1 {
  margin: 0; font-family: var(--grotesk); font-weight: 700; font-size: clamp(30px, 5.2vw, 64px);
  letter-spacing: 0.01em; line-height: 1.02; text-shadow: 0 0 34px rgba(91, 124, 255, 0.25);
}
.hero-lead { margin: 0; font-size: clamp(13px, 1.4vw, 16px); color: var(--dim); letter-spacing: 0.04em; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; flex: none; min-width: min(240px, 100%); animation: fadeUp 1s 1.15s var(--ease) both; }
.hero-ctas .btn { padding: 15px 22px; letter-spacing: 0.14em; }

.hero-cue {
  position: absolute; left: 50%; bottom: calc(14px + var(--player-h) + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; padding: 4px 8px; cursor: pointer; color: var(--muted);
  animation: fadeUp 1s 1.4s var(--ease) both;
}
.hero-cue span { width: 20px; height: 48px; display: block; }
.hero-cue em { font: normal 9px var(--mono); letter-spacing: 0.3em; }

/* ---------- 7. セクション ---------- */

.section {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  max-width: 1280px; margin: 0 auto; box-sizing: border-box; scroll-margin-top: 70px;
}
.section.first { padding-top: clamp(64px, 9vw, 130px); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(26px, 3vw, 44px); }
.sec-title-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.h2 { margin: 0; font-family: var(--grotesk); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: 0.01em; line-height: 1.08; }
.mini-link { font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); transition: color 0.25s, letter-spacing 0.35s var(--ease); }
@media (hover: hover) { .mini-link:hover { color: var(--lblue); letter-spacing: 0.2em; } }
.note { margin: 18px 0 0; font-size: 12px; color: var(--muted); }

/* 楽曲カード */
.feat-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.track-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); background: rgba(13, 16, 12, 0.6);
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.45s var(--ease);
}
.track-card.feat-main { flex: 2 1 min(420px, 100%); min-height: 340px; }
.track-card.feat-sub { flex: 1 1 min(280px, 100%); min-height: 280px; }
.track-card.is-playing { border-color: var(--neon); box-shadow: 0 0 0 1px rgba(91, 124, 255, 0.3), 0 0 36px -8px rgba(91, 124, 255, 0.65); }
.tc-media { position: relative; flex: 1; min-height: 200px; overflow: hidden; background: var(--panel); isolation: isolate; }
.tc-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%;
  box-sizing: border-box; opacity: 0.72; pointer-events: none;
  transition: transform 0.7s var(--ease), opacity 0.4s, filter 0.4s;
}
.tc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.7s var(--ease); }
.tc-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent 44%, rgba(61, 240, 255, 0.12) 49%, rgba(61, 240, 255, 0.55) 50%, transparent 51.5%);
}
.tc-media .corners { --ci: 10px; opacity: 0; transform: scale(1.06); transition: opacity 0.35s, transform 0.5s var(--ease); }
.tc-tag { position: absolute; left: 16px; top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); text-shadow: 0 1px 4px rgba(8, 10, 7, 0.8); }
.tc-idx { position: absolute; right: 16px; top: 14px; font: 10px var(--mono); letter-spacing: 0.16em; color: var(--faint); }
.tc-eq { position: absolute; left: 16px; bottom: 14px; width: 32px; height: 24px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.track-card.is-playing .tc-eq { opacity: 1; }
.track-card.is-playing .tc-media .corners { opacity: 1; transform: none; }
.track-card.is-playing .tc-scan { opacity: 1; animation: scan 2.6s linear infinite; }
.track-card.is-playing .tc-idx { color: var(--cyan); }
@keyframes scan { from { transform: translateY(-55%); } to { transform: translateY(55%); } }
@media (hover: hover) {
  .track-card:hover { border-color: rgba(91, 124, 255, 0.55); transform: translateY(-3px); box-shadow: 0 14px 40px -14px rgba(45, 73, 201, 0.6); }
  .track-card:hover .tc-media .corners { opacity: 1; transform: none; }
  .track-card:hover .tc-scan { opacity: 1; animation: scan 1.1s var(--ease-io) both; }
  .track-card:hover .tc-cover { transform: scale(1.05); opacity: 0.92; filter: drop-shadow(0 0 14px rgba(91, 124, 255, 0.45)); }
  .track-card:hover .tc-photo { transform: scale(1.05); }
}
.round-btn {
  position: absolute; right: 14px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 13px; color: var(--ink);
  background: rgba(8, 10, 7, 0.55); border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease);
}
.round-btn.active { border-color: var(--neon); animation: pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(91, 124, 255, 0.6); } 100% { box-shadow: 0 0 0 14px rgba(91, 124, 255, 0); } }
.queue-btn { right: 68px; font-size: 14px; color: var(--muted); border-color: var(--line-mid); }
.queue-btn.queued { color: var(--lblue); border-color: var(--neon); }
@media (hover: hover) {
  .round-btn:hover { border-color: var(--neon); background: rgba(45, 73, 201, 0.25); transform: scale(1.06); }
  .queue-btn:hover { color: var(--ink); }
}
.tc-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.tc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-title { font-family: var(--grotesk); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s; }
.tc-title.active { color: var(--lblue); text-shadow: 0 0 14px rgba(91, 124, 255, 0.5); }
.tc-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-dur { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }

/* Works ページ */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); grid-auto-flow: dense; gap: 14px; }
.track-card.w-card { min-height: 280px; }
.track-card.w-card.big { min-height: 340px; grid-row: span 2; }
.w-card .tc-media { min-height: 0; }
.w-card .tc-meta { padding: 13px 15px; }
.w-card .tc-title { font-size: 15.5px; }
.w-card .tc-sub { letter-spacing: 0.12em; }
.w-card .tc-tag { left: 14px; top: 12px; letter-spacing: 0.16em; }
.works-empty { grid-column: 1 / -1; margin: 0; padding: 48px 0; text-align: center; font: 11px var(--mono); letter-spacing: 0.2em; color: var(--muted); border: 1px dashed var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 34px); }
.fbtn {
  font-family: var(--grotesk); font-size: 10.5px; letter-spacing: 0.12em; padding: 9px 14px;
  cursor: pointer; min-height: 38px; background: none; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.fbtn.on { background: rgba(45, 73, 201, 0.18); color: var(--ink); border-color: var(--neon); box-shadow: inset 0 -2px 0 var(--cyan), 0 0 16px -6px rgba(91, 124, 255, 0.9); }
@media (hover: hover) { .fbtn:hover { border-color: var(--neon); color: var(--ink); } }

/* 上辺に光るアクセントを持つ行(サービス・実績・柱・詳細) */
.svc, .svc-row, .proj-row, .pillar, .dcell { position: relative; }
.svc::before, .svc-row::before, .proj-row::before, .pillar::before, .dcell::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--neon));
  box-shadow: 0 0 10px rgba(91, 124, 255, 0.8);
  transition: width 1.1s var(--ease-io) calc(var(--d, 0ms) + 300ms);
}
.is-in.svc::before, .is-in.svc-row::before, .is-in.proj-row::before, .is-in.pillar::before, .is-in.dcell::before { width: 56px; }
@media (hover: hover) {
  .svc:hover::before, .svc-row:hover::before, .proj-row:hover::before, .pillar:hover::before, .dcell:hover::before { width: 100%; transition-duration: 0.6s; transition-delay: 0s; }
}

/* サービス */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.svc { border-top: 1px solid var(--line); padding: 22px 0 26px; display: flex; flex-direction: column; gap: 8px; }
.svc-head { display: flex; align-items: baseline; gap: 14px; }
.svc-no { font-family: var(--mono); font-size: 12px; color: var(--lblue); }
.svc-en { font-family: var(--grotesk); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; }
.svc-ja { font-size: 12px; color: var(--muted); }
.svc p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--dim); text-wrap: pretty; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.svc .mini-link { margin-top: 4px; align-self: flex-start; }

/* Services ページ */
.svc-row { border-top: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px) 0; display: flex; flex-wrap: wrap; gap: 16px clamp(24px, 4vw, 56px); }
.svc-row-head { flex: none; display: flex; align-items: baseline; gap: 16px; width: min(340px, 100%); }
.svc-big-no { font-family: var(--grotesk); font-weight: 700; font-size: clamp(28px, 3vw, 40px); color: var(--lblue); opacity: 0.85; text-shadow: 0 0 22px rgba(91, 124, 255, 0.45); }
.svc-row-en { font-family: var(--grotesk); font-weight: 700; font-size: clamp(19px, 2vw, 24px); letter-spacing: 0.02em; }
.svc-row-ja { font-size: 13px; color: var(--muted); }
.svc-row-body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.svc-row-body p { margin: 0; font-size: 14px; line-height: 2; color: var(--dim); text-wrap: pretty; }
.svc-row-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.svc-consult {
  font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.14em; color: var(--muted);
  margin-top: 2px; align-self: flex-start; border: 1px solid var(--line-mid);
  padding: 10px 16px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
@media (hover: hover) { .svc-consult:hover { border-color: var(--neon); color: var(--lblue); box-shadow: 0 0 18px -6px rgba(91, 124, 255, 0.9); } }

/* 実績 */
.proj-list { display: flex; flex-direction: column; }
.proj-row {
  border-top: 1px solid var(--line); padding: 26px 0; display: flex; flex-wrap: wrap; gap: 14px 32px;
  align-items: baseline; color: var(--ink);
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.09), transparent 55%) no-repeat;
  background-size: 0% 100%;
  transition: background-size 0.6s var(--ease);
}
.proj-row.lg { padding: 30px 0; }
.proj-year { font-family: var(--mono); font-size: 12px; color: var(--lblue); flex: none; width: 52px; transition: color 0.3s; }
.proj-main { flex: 1 1 340px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.proj-name { font-size: 17px; font-weight: 700; letter-spacing: 0.02em; text-wrap: pretty; }
.proj-row.lg .proj-name { font-size: 19px; }
.proj-sub { font-size: 12px; color: var(--muted); }
.proj-row .mini-link { flex: none; }
@media (hover: hover) {
  .proj-row:hover { background-size: 100% 100%; color: var(--ink); }
  .proj-row:hover .proj-year { color: var(--cyan); }
  .proj-row:hover .mini-link { color: var(--lblue); letter-spacing: 0.2em; }
}

/* About(Home) */
.about-wrap { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.about-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.about-copy p { margin: 0; font-size: 16px; line-height: 2.1; color: var(--dim); max-width: 34em; text-wrap: pretty; }
.profile {
  flex: 1 1 260px; margin: 0; align-self: flex-end; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px;
  font-size: 13px; line-height: 1.8; padding: 18px 20px; border-left: 1px solid rgba(91, 124, 255, 0.4);
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.06), transparent 70%);
}
.profile dt, .profile-lg dt { color: var(--muted); font-family: var(--mono); font-size: 0.86em; letter-spacing: 0.06em; }
.profile dt::before, .profile-lg dt::before { content: '› '; color: var(--neon); }
.profile dd { margin: 0; }

/* プロセス(線を描画 → パケットが流れ → 工程が点灯) */
.process-line svg { width: 100%; height: 56px; display: block; overflow: visible; }
.pl-base { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.85; transition: stroke-dashoffset 2.2s var(--ease-io) 0.2s; }
.process-line.is-in .pl-base { stroke-dashoffset: 0; }
.pl-packet {
  stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 97;
  filter: drop-shadow(0 0 4px var(--cyan)); opacity: 0; transition: opacity 0.5s 2.2s;
  animation: packet-run 3.6s linear infinite;
}
.process-line.is-in .pl-packet { opacity: 1; }
@keyframes packet-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; margin-top: 10px; }
.step {
  display: flex; flex-direction: column; gap: 5px; border-left: 1px solid var(--line); padding-left: 14px;
  opacity: 0.3; transition: opacity 0.6s, border-color 0.6s; transition-delay: calc(var(--i, 0) * 0.22s + 0.5s);
}
.process-line.is-in .step { opacity: 1; border-left-color: rgba(91, 124, 255, 0.65); }
.step-no { font-family: var(--mono); font-size: 11px; color: var(--lblue); }
.step-en { font-family: var(--grotesk); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }
.step-ja { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* CTA(遠近グリッド + HUD リング) */
.section.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line);
}
.cta-grid {
  position: absolute; left: -40%; right: -40%; bottom: 0; height: 130%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 124, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 124, 255, 0.34) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(520px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0 22%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0 22%, transparent 88%);
  animation: grid-run 2.6s linear infinite;
}
@keyframes grid-run { to { background-position: 0 56px, 0 0; } }
.cta-ring { position: absolute; right: -6%; top: 50%; width: min(460px, 70vw); aspect-ratio: 1; transform: translateY(-50%); opacity: 0.32; z-index: -1; pointer-events: none; }
.cta-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.cta-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cta-copy .h2 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; }
.cta-copy p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--dim); max-width: 36em; }

/* ---------- 8. サブページ ---------- */

.page {
  padding: calc(86px + clamp(20px, 4vw, 44px)) var(--gutter) clamp(56px, 7vw, 100px);
  max-width: 1280px; margin: 0 auto; box-sizing: border-box; min-height: 80svh;
}
.page-detail { max-width: 1000px; }
.page-about { max-width: 1100px; }
.page-contact { max-width: 760px; }
.page-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(22px, 3vw, 38px); }
.page-head .sec-rule { margin-top: 10px; flex: none; }
.h1 { margin: 0; font-family: var(--grotesk); font-weight: 700; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; }
.page-intro { margin: 6px 0 0; font-size: 13px; line-height: 1.8; color: var(--muted); }

/* 実績詳細 */
.detail-head { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 28px; }
.detail-head .kicker { letter-spacing: 0.2em; }
.detail-head .h1 { font-size: clamp(24px, 3.6vw, 44px); line-height: 1.2; text-wrap: pretty; }
.detail-client { font-size: 13px; color: var(--muted); }
.detail-visual { position: relative; height: clamp(190px, 30vw, 320px); overflow: hidden; background: var(--panel); border: 1px solid var(--line); margin-bottom: 30px; }
.detail-visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 45%, rgba(61, 240, 255, 0.16) 50%, transparent 55%);
  animation: scan 4.5s linear infinite;
}
.detail-visual .corners { --ci: 12px; }
.dv-img { position: absolute; left: -20%; top: -40%; width: 180%; opacity: 0.4; filter: grayscale(1); }
.dv-cap { position: absolute; left: 16px; bottom: 12px; right: 170px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.dv-play {
  position: absolute; right: 16px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 10px;
  background: rgba(8, 10, 7, 0.65); border: 1px solid rgba(255, 255, 255, 0.4); color: var(--ink);
  padding: 11px 18px; cursor: pointer; font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.14em; min-height: 44px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.dv-play.active { border-color: var(--neon); box-shadow: var(--glow); }
@media (hover: hover) { .dv-play:hover { border-color: var(--neon); box-shadow: var(--glow); } }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 26px clamp(24px, 4vw, 56px); }
.dcell { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.dcell .kicker { letter-spacing: 0.2em; }
.dcell p { margin: 0; font-size: 14px; line-height: 2; color: var(--dim); text-wrap: pretty; }
.credits { margin: 30px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.9; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* About ページ */
.lede { margin: clamp(24px, 3vw, 40px) 0 0; font-size: clamp(17px, 2vw, 22px); line-height: 2.2; color: var(--ink); max-width: 30em; text-wrap: pretty; }
.about-body { margin: 20px 0 0; font-size: 15px; line-height: 2.2; color: var(--dim); max-width: 38em; text-wrap: pretty; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 64px); }
.pillar { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pillar .kicker { letter-spacing: 0.2em; }
.pillar p { margin: 0; font-size: 14px; line-height: 2; color: var(--dim); text-wrap: pretty; }
.profile-lg {
  margin: clamp(32px, 5vw, 64px) 0 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px;
  font-size: 14px; line-height: 1.9; border-top: 1px solid var(--line); padding-top: 24px; max-width: 560px;
}
.profile-lg dd { margin: 0; }

/* ---------- 9. お問い合わせフォーム ---------- */

.contact-intro { margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: var(--muted); }
.step-dots { display: flex; gap: 6px; margin: 26px 0 30px; }
.sdot { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.12); transform: skewX(-30deg); position: relative; overflow: hidden; transition: background-color 0.4s, box-shadow 0.4s; }
.sdot.on { background: linear-gradient(90deg, var(--blue), var(--neon)); box-shadow: 0 0 10px rgba(91, 124, 255, 0.55); }
.sdot.cur::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(61, 240, 255, 0.95), transparent);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.step-title { font-family: var(--grotesk); font-weight: 700; font-size: 20px; }
.step-count { font-family: var(--mono); font-size: 11px; color: var(--lblue); letter-spacing: 0.12em; }
.step-in .fields, .step-in .summary-wrap, .step-in .step-head { animation: step-in 0.55s var(--ease) both; }
.step-in .step-head { animation-duration: 0.4s; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.fields { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.gap10 { gap: 10px; }
.field > label, .f-label { font-size: 13px; color: var(--dim); }
.f-hint { font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.req { color: var(--lblue); }
.txt {
  background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--ink);
  padding: 13px 14px; font-size: 16px; font-family: var(--jp); border-radius: 0; caret-color: var(--cyan);
  min-width: 0; width: 100%; box-sizing: border-box;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.txt:focus { border-color: var(--neon); outline: none; background: #0f1310; box-shadow: 0 0 0 1px rgba(91, 124, 255, 0.35), 0 0 22px -6px rgba(91, 124, 255, 0.7); }
textarea.txt { resize: vertical; }
.txt.narrow { max-width: 420px; }
input[type="file"] { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--jp); font-size: 12.5px; padding: 10px 16px; cursor: pointer; min-height: 44px;
  background: none; color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.chip.on { background: rgba(45, 73, 201, 0.18); color: var(--ink); border-color: var(--neon); box-shadow: 0 0 16px -6px rgba(91, 124, 255, 0.95); animation: lock-on 0.35s var(--ease); }
.chip.on::before { content: ''; width: 5px; height: 5px; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
@keyframes lock-on { 0% { transform: scale(0.96); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@media (hover: hover) { .chip:hover { border-color: var(--neon); color: var(--ink); } }
.row2 { display: flex; flex-wrap: wrap; gap: 16px; }
.row2 > .field { flex: 1 1 220px; }
.row2 > .field.sm { flex: 1 1 140px; }
.row2 > .field.xs { flex: 1 1 120px; }
.field.maxw { max-width: 320px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { margin: 18px 0 0; font-size: 13px; color: var(--lblue); border-left: 2px solid var(--neon); padding-left: 12px; animation: g-shake 0.3s steps(2); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.back-btn {
  font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.12em; padding: 14px 20px;
  background: none; color: var(--muted); border: 1px solid var(--line-mid); cursor: pointer; min-height: 44px;
  transition: border-color 0.25s, color 0.25s;
}
.back-btn.hide { visibility: hidden; }
.next-btn {
  font-family: var(--grotesk); font-size: 12px; letter-spacing: 0.14em; padding: 14px 28px;
  background: var(--ink); color: var(--bg); border: none; cursor: pointer; font-weight: 500; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  transition: background-color 0.25s, letter-spacing 0.35s var(--ease);
}
.btn-loader { width: 18px; height: 18px; display: inline-block; }
.next-btn:disabled, .back-btn:disabled { opacity: 0.55; cursor: not-allowed; }
@media (hover: hover) {
  .back-btn:hover:not(:disabled) { border-color: var(--neon); color: var(--ink); }
  .next-btn:hover:not(:disabled) { background: #fff; letter-spacing: 0.2em; }
}
.summary-wrap { position: relative; }
.summary-wrap .corners { --ci: -1px; }
.summary { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 14px; line-height: 1.9; border: 1px solid var(--line); padding: 22px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.summary dd.pre { white-space: pre-wrap; }
.done-box { position: relative; margin-top: 30px; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; background: linear-gradient(160deg, rgba(91, 124, 255, 0.08), transparent 60%); }
.done-box .corners { --ci: -1px; --l: 20px; }
.done-check { width: 84px; height: 84px; margin: -6px 0 0 -10px; }
.done-box h2 { margin: 0; font-family: var(--grotesk); font-weight: 700; font-size: 24px; }
.done-box p { margin: 0; font-size: 14px; line-height: 2; color: var(--dim); }
.done-box .mini-link { align-self: flex-start; }
.ink { color: var(--ink); }

/* ---------- 10. フッター ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) calc(var(--player-h) + 32px + env(safe-area-inset-bottom));
  max-width: 1280px; margin: 0 auto; box-sizing: border-box;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px;
  font-size: 12px; color: var(--muted);
}
.f-left { display: flex; flex-direction: column; gap: 8px; }
.f-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--grotesk); font-size: 11px; letter-spacing: 0.12em; }
.f-links a { color: var(--muted); padding: 6px 0; transition: color 0.25s; }
.f-links a:hover { color: var(--lblue); }

/* ---------- 11. プレイヤー ---------- */

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(10, 12, 9, 0.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px clamp(12px, 3vw, 28px) calc(8px + env(safe-area-inset-bottom));
}
/* 上辺の発光(音量で強まる) */
.player::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--neon) 20%, var(--cyan) 50%, var(--neon) 80%, transparent);
  opacity: calc(0.25 + var(--lvl, 0) * 2);
  box-shadow: 0 0 calc(4px + var(--lvl, 0) * 40px) rgba(91, 124, 255, 0.85);
}
.player[hidden] { display: none; }
.pl-panel { max-height: 40svh; overflow-y: auto; overscroll-behavior: contain; border-bottom: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 8px; }
.pl-panel[hidden] { display: none; }
.pl-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: none; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 8px; cursor: pointer; color: var(--ink); min-height: 44px;
}
.pl-row:hover { background: rgba(255, 255, 255, 0.05); }
.pl-row.cur { background: linear-gradient(90deg, rgba(45, 73, 201, 0.22), rgba(45, 73, 201, 0.06)); box-shadow: inset 2px 0 0 var(--neon); }
.pl-mark { font-family: var(--mono); font-size: 10px; width: 24px; flex: none; color: var(--lblue); }
.pl-name { flex: 1; font-size: 12.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name.playing { color: var(--lblue); }
.pl-genre { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); flex: none; }
.pl-dur { font-family: var(--mono); font-size: 10px; color: var(--muted); flex: none; width: 38px; text-align: right; }
.player-bar { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 16px); }
.transport { display: flex; align-items: center; gap: 4px; flex: none; }
.t-btn { background: none; border: none; color: var(--muted); font-size: 15px; cursor: pointer; width: 34px; height: 40px; transition: color 0.2s; }
.t-btn:hover { color: var(--ink); }
.play-main {
  background: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  color: var(--ink); font-size: 13px; cursor: pointer; width: 42px; height: 42px;
  display: grid; place-items: center; transition: border-color 0.25s;
}
.play-main:hover { border-color: var(--neon); }
.player.is-playing .play-main { border-color: var(--neon); box-shadow: 0 0 calc(6px + var(--lvl, 0) * 26px) rgba(91, 124, 255, 0.6); }
#wave { width: 52px; height: 26px; flex: none; }
.now { display: flex; flex-direction: column; min-width: 0; flex: none; max-width: 26vw; }
.now-title { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--lblue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-progress { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 16px); flex: 1; min-width: 0; }
.time { font-family: var(--mono); font-size: 10px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }

/* スライダー(シーク / 音量) */
#seek, #vol { -webkit-appearance: none; appearance: none; background: transparent; height: 22px; margin: 0; cursor: pointer; }
#seek { flex: 1; min-width: 60px; }
#vol { width: 74px; }
#seek::-webkit-slider-runnable-track, #vol::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(90deg, var(--neon) var(--p, 0%), rgba(255, 255, 255, 0.18) var(--p, 0%));
}
#seek::-webkit-slider-thumb, #vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 9px; height: 9px; margin-top: -3.5px; border: none;
  background: var(--ink); transform: rotate(45deg); box-shadow: 0 0 10px var(--neon);
}
#seek::-moz-range-track, #vol::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.18); }
#seek::-moz-range-progress, #vol::-moz-range-progress { height: 2px; background: var(--neon); }
#seek::-moz-range-thumb, #vol::-moz-range-thumb { width: 9px; height: 9px; border: none; border-radius: 0; background: var(--ink); transform: rotate(45deg); box-shadow: 0 0 10px var(--neon); }

.vol-wrap { display: flex; align-items: center; gap: 8px; flex: none; }
.mute-btn { background: none; border: none; color: var(--muted); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; cursor: pointer; padding: 0 4px; height: 40px; }
.mute-btn:hover { color: var(--ink); }
.list-btn {
  background: none; border: 1px solid var(--line-mid); color: var(--muted); min-height: 36px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; cursor: pointer; padding: 8px 10px; flex: none;
  transition: color 0.25s, border-color 0.25s;
}
.list-btn:hover, .list-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--neon); }

/* ---------- 12. レスポンシブ ---------- */

/* タブレット以下 */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .mobile-controls { display: flex; }
  .vol-wrap { display: none; }
  .hud-geo { display: none; }
}

/* スマートフォン */
@media (max-width: 640px) {
  :root { --player-h: 96px; --notch: 8px; }

  .site-header { padding-left: var(--gutter); padding-right: var(--gutter); }
  .sound-btn { padding: 8px 12px; }

  /* ヒーロー: ロゴを上寄せし、下部のコピー/ボタンと重ならないように */
  .hero-ring { top: 38%; width: min(84vw, 360px); }
  .hero-art { top: 38%; width: 90%; max-height: 34svh; }
  .hero-hud { top: 72px; bottom: 44%; font-size: 9px; letter-spacing: 0.12em; }
  .hero-hud .corners { --l: 16px; }
  .hud-tl, .hud-tr { top: 10px; }
  .hud-tl { left: 12px; }
  .hud-tr { right: 12px; }
  .hud-meter { right: 12px; bottom: 10px; }
  .hud-meter i { width: 2px; }
  .hero-freq { font-size: 8.5px; }
  .hero-foot { gap: 18px; }
  .hero-copy { width: 100%; }
  .hero-ctas { width: 100%; min-width: 0; }
  .hero-ctas .btn { padding: 14px 18px; }
  .hero-cue { display: none; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section.first { padding-top: 64px; }
  .sec-head { align-items: flex-start; }

  /* カード */
  .track-card.feat-main { min-height: 280px; }
  .track-card.feat-sub { min-height: 240px; }
  .track-card.w-card, .track-card.w-card.big { min-height: 250px; grid-row: auto; }
  .tc-meta { padding: 12px 14px; }

  /* フィルターは横スクロールの1列に */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1) 20px; padding: 2px var(--gutter) 6px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 32px), transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .fbtn { flex: none; scroll-snap-align: start; }

  .proj-row { gap: 8px 16px; padding: 22px 0; }
  .proj-row.lg { padding: 24px 0; }
  .proj-year { width: auto; }
  .proj-main { flex-basis: 100%; }

  .profile { padding: 14px 16px; }
  .cta-wrap .btn-lg { width: 100%; }
  .cta-ring { right: -30%; width: 90vw; }

  .dv-cap { right: 16px; bottom: 64px; }

  /* 確認画面は見出しを上・値を下の1列に */
  .summary { grid-template-columns: 1fr; gap: 2px; padding: 18px; }
  .summary dt { font-size: 12px; margin-top: 10px; }
  .summary dt:first-of-type { margin-top: 0; }
  .form-nav .next-btn { flex: 1; }

  .site-footer { flex-direction: column; align-items: flex-start; }

  /* プレイヤーは2段: [操作 / 曲名 / LIST] + [シークバー] */
  .player-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'tr now list' 'prog prog prog'; column-gap: 10px; row-gap: 2px; }
  .transport { grid-area: tr; }
  .now { grid-area: now; max-width: none; }
  .list-btn { grid-area: list; }
  .pl-progress { grid-area: prog; gap: 10px; }
  #wave { display: none; }
  #seek { height: 28px; }
  #seek::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -5px; }
  .t-btn { width: 36px; height: 44px; }
}

/* 横向きスマートフォンなど、高さが低い画面 */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-hud, .hero-cue, .hero-freq { display: none; }
  .hero-art { top: 36%; max-height: 40svh; }
  .hero-ring { top: 36%; width: min(52vmin, 300px); }
  .hero-foot { padding-bottom: 20px; }
}

/* 大画面 */
@media (min-width: 1600px) {
  .hero-hud { font-size: 11px; }
}

/* ---------- 13. 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: 0.001ms !important; transition-delay: 0s !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .cursor-ring, #fx-wipe { display: none; }
}
.fx-reduced [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
