/* spacedeck.app の共通スタイル。
   元は index.html と ja/index.html の <style> に同じものが2つ入っていた（差は見出しの寸法3つだけ）。
   直す場所を1つにするため、ここに集めた。日本語だけの違いは末尾に置いてある。
   deploy.sh が stamp-site-css.py を通して ?v=... の印を付けるので、
   直したあとに読む側が古いものを使い続けることはない。 */

  :root {
    --void: #08071a;
    --void-2: #0d0b26;
    --nebula: #14113a;
    --panel: #171442;
    --panel-2: #1c1852;
    --line: rgba(190, 184, 255, 0.20);
    --line-strong: rgba(190, 184, 255, 0.42);

    --peri: #d6d2f0;
    --peri-bright: #dedbf6;
    --orbit: #6d63b8;
    --ink: #ecebfa;
    --mute: #e6e3f5;
    --faint: #b0abd0;

    --gold: #f5c56b;
    --gold-deep: #dfa43d;
    /* 第2アクセント。チェック・状態・機能ラベルだけに使う（金は買う色に残す） */
    --cyan: #7fe3dd;
    --cyan-glow: rgba(127, 227, 221, 0.75);
    --cyan-line: rgba(127, 227, 221, 0.40);
    /* 比較表の下地 */
    --zebra: rgba(255, 255, 255, 0.025);
    --capbg: #12102c;
    --capbg-2: #171436;
    --sdcol: rgba(245, 197, 107, 0.08);
    --sdcol-2: rgba(245, 197, 107, 0.11);

    --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
      "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
      Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

    --maxw: 1140px;
    --fs-hero: clamp(2.7rem, 6.2vw, 5.2rem);
    --fs-h2: clamp(2rem, 4vw, 3.15rem);
    --fs-h3: 1.32rem;
    --fs-body: 1.0625rem;
    --fs-label: 0.8125rem;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    margin: 0;
    background: var(--void);
    color: var(--mute);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  a { color: inherit; text-decoration: none; }

  ::selection { background: rgba(245,197,107,0.3); color: #fff; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

  /* ---------- global cosmic background ---------- */
  #stars {
    position: fixed; inset: 0; z-index: 0;
    width: 100%; height: 100%;
    pointer-events: none;
  }
  .bgwash {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(90% 60% at 78% 8%, rgba(43,36,104,0.5), transparent 55%),
      radial-gradient(70% 60% at 8% 0%, rgba(28,24,82,0.42), transparent 52%),
      linear-gradient(180deg, var(--void-2), var(--void) 60%);
  }
  .shell { position: relative; z-index: 1; }

  .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

  h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
  }

  .label {
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .gold { color: var(--gold); }

  /* ---------- NAV ---------- */
  #nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(8,7,26,0.82), rgba(8,7,26,0.3));
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
  }
  #nav.scrolled { border-bottom-color: var(--line); }
  .nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 12px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
  }
  @media (max-width: 560px) {
    .brand { font-size: 1.6rem; gap: 11px; }
    .brand .mark { width: 44px; height: 44px; }
  }
  .brand {
    display: flex; align-items: center; gap: 16px; white-space: nowrap; flex: 0 0 auto;
    font-family: var(--font-display); font-weight: 700; font-size: 2.24rem;
    letter-spacing: -0.01em; color: var(--ink);
  }
  .brand .mark { width: 60px; height: 60px; flex: 0 0 auto; display: block; border-radius: 14px; }
  /* グローバルナビのロゴだけ10%小さくする（フッターのロゴは元の大きさのまま） */
  #nav .brand { font-size: 2.016rem; gap: 14px; }
  #nav .brand .mark { width: 54px; height: 54px; }
  .nav-links { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
  .nav-links a.navlink {
    font-size: 0.92rem; color: var(--mute);
    padding: 8px 13px; border-radius: 8px;
    /* ⛔ グローバルナビの文字を折らない。折れると日本語が1文字ずつ縦に割れる。
       幅が足りないときは、字を折るのではなく間隔と文字を詰めて収める */
    white-space: nowrap; flex: 0 0 auto;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .nav-links a.navlink:hover { color: var(--peri-bright); background: rgba(150,142,220,0.08); }
  .nav-links a.navlink.active { color: var(--peri-bright); background: rgba(150,142,220,0.12); }
  .lang-switch { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--mute); padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; flex: 0 0 auto; transition: color 0.2s ease, border-color 0.2s ease; }
  .lang-switch:hover { color: var(--peri-bright); border-color: var(--line-strong); }
  /* 収まりが厳しくなる幅では、字を折らずに間隔と文字を詰める。
     それでも入らない狭さになったらリンクを隠す（縦書きにはしない） */
  @media (max-width: 1180px) {
    .nav-inner { padding: 12px 18px; gap: 14px; }
    .nav-links { gap: 2px; }
    .nav-links a.navlink { font-size: 0.85rem; padding: 8px 8px; }
    #nav .brand { font-size: 1.5rem; gap: 10px; }
    #nav .brand .mark { width: 42px; height: 42px; }
  }
  @media (max-width: 940px) {
    .nav-links a.navlink { font-size: 0.8rem; padding: 7px 6px; }
  }
  @media (max-width: 820px) { .nav-links a.navlink { display: none; } }
  /* 狭い画面では、字を折る代わりにロゴとボタンを詰めて収める。
     折り返しを止めているので、詰めないと外へはみ出して横スクロールが出る */
  @media (max-width: 480px) {
    .nav-inner { padding: 10px 12px; gap: 8px; }
    #nav .brand { font-size: 1.24rem; gap: 8px; }
    #nav .brand .mark { width: 34px; height: 34px; }
    #nav .btn { font-size: 0.86rem; padding: 9px 14px; }
    .lang-switch { font-size: 0.72rem; padding: 6px 9px; letter-spacing: 0.06em; }
  }
  @media (max-width: 380px) {
    #nav .brand { font-size: 1.06rem; gap: 6px; }
    #nav .brand .mark { width: 28px; height: 28px; }
    #nav .btn { font-size: 0.8rem; padding: 8px 11px; }
    .lang-switch { font-size: 0.68rem; padding: 5px 7px; letter-spacing: 0.04em; }
  }


  .btn {
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
    border-radius: 999px; padding: 10px 20px; cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
    display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  }
  .btn-gold { background: linear-gradient(135deg, #ffd67e, var(--gold-deep)); color: #2a1c00; box-shadow: 0 8px 30px -8px rgba(245,197,107,0.55); }
  .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(245,197,107,0.7); }
  .btn-ghost { background: rgba(150,142,220,0.06); border-color: var(--line-strong); color: var(--peri-bright); }
  .btn-ghost:hover { background: rgba(150,142,220,0.14); transform: translateY(-2px); }
  .btn-lg { padding: 14px 26px; font-size: 1.02rem; }
  /* 狭い画面では、本文のボタンの文字を折り返して枠に収める。
     折らないと、長い誘い文句のボタン（比較ページへの案内など）が画面からはみ出して
     ページ全体が横に動く。上のナビのボタンだけは折らない
     （日本語が1文字ずつ縦に割れるため）。
     ⛔ この指定は .btn の定義より後ろに置くこと。前に置くと後ろの nowrap に負けて効かない */
  @media (max-width: 480px) {
    .btn { white-space: normal; text-align: center; max-width: 100%; }
    #nav .btn { white-space: nowrap; }
  }

  .arrowlink {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
    color: var(--peri-bright); margin-top: 18px;
    transition: gap 0.2s ease, color 0.2s ease;
  }
  .arrowlink:hover { gap: 12px; color: var(--cyan); }
  .arrowlink .ar { transition: transform 0.2s ease; }

  /* ---------- VIEW ROUTING ---------- */
  .view { display: none; }
  .view.active { display: block; }

  /* ---------- generic section ---------- */
  section { position: relative; }
  .band { padding: 104px 0; }
  .band.tight { padding: 72px 0; }
  /* 見出しの下にすぐ中身が来るページは、上の余白を詰める（間が空きすぎる） */
  .page-hero + .band { padding-top: 44px; }
  .sec-head { max-width: 680px; margin-bottom: 52px; }
  /* 日本語の見出しを文節で折り返す（対応していないブラウザでは今までどおり）。
     付けないと「ブラウザがずっと苦手／だった、3つのこと。」のように語の途中で切れる */
  h1, h2, h3, .sec-head p, .hero .lede, .page-hero .lede { word-break: auto-phrase; }
  /* 見出しの手動改行は、幅の足りないスマホだけ。PCでは1行に流す */
  @media (min-width: 861px) { .spbr { display: none; } }
  .sec-head .label { display: block; margin-bottom: 16px; }
  .sec-head h2 { font-size: var(--fs-h2); line-height: 1.06; margin-bottom: 18px; }
  .sec-head p { font-size: 1.1rem; color: var(--mute); max-width: 40em; }
  .divide { border-top: 1px solid var(--line); }

  /* ---------- page hero (sub pages) ---------- */
  .page-hero { padding: 176px 0 34px; }
  .page-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
    padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: rgba(150,142,220,0.05);
  }
  .page-hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 1px var(--cyan-glow); }
  .page-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.04; margin-bottom: 22px; max-width: 15ch; }
  .page-hero h1 .grad {
    background: linear-gradient(120deg, #ffffff 0%, var(--peri) 55%, var(--orbit) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }
  .page-hero .lede { font-size: 1.2rem; line-height: 1.6; color: var(--mute); max-width: 40em; }
  .page-hero .lede b { color: var(--peri-bright); font-weight: 600; }

  /* ---------- HOME HERO ---------- */
  /* 高さは中身で決める。決め打ちで伸ばすと、見出しの上下に何も無い帯が数百px出る */
  .hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
  .hero-veil {
    position: absolute; inset: 0; z-index: 2;
    background: radial-gradient(75% 90% at 26% 50%, rgba(8,7,26,0.82) 0%, rgba(8,7,26,0.4) 38%, transparent 66%);
    pointer-events: none;
  }
  @media (max-width: 860px) { .hero-veil { background: linear-gradient(180deg, rgba(8,7,26,0.2), rgba(8,7,26,0.7)); } }
  .hero-content { position: relative; z-index: 3; width: 100%; padding-top: 150px; padding-bottom: 80px; }
  /* スクリーンショットを大きく見せるため、見出しの段は少し細くする */
  .hero-content .col { flex: 0 0 auto; max-width: 560px; }
  .hero .eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
    padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(150,142,220,0.05);
  }
  .hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 1px var(--cyan-glow); }
  .hero h1 { font-size: var(--fs-hero); line-height: 1.02; margin-bottom: 24px; }
  .hero h1 .grad {
    background: linear-gradient(120deg, #ffffff 0%, var(--peri) 55%, var(--orbit) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  }
  .hero .lede { font-size: 1.18rem; line-height: 1.6; color: var(--mute); max-width: 34em; margin-bottom: 34px; }
  .hero .lede b { color: var(--peri-bright); font-weight: 600; }
  .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  /* 区画の締めに単独で置くCTAは中央に。見出しの下に左寄せで残ると迷子に見える */
  .cta-row.center { justify-content: center; }
  .cta-note { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--faint); letter-spacing: 0.02em; }

  /* ---------- SpaceDeck window mock ---------- */
  /* 見出しの段とスクリーンショットの段。左端はナビ（最大1140px）の内側に揃え、
     右に残った幅はぜんぶスクリーンショットに回す */
  .hero-row {
    display: flex; align-items: center;
    gap: clamp(40px, 5%, 90px);
    padding-left: max(28px, calc(50% - 570px));
    padding-right: clamp(20px, 3%, 64px);
    perspective: 2100px;
  }
  /* 実際のSpaceDeckの画面（スクリーンショット）。作り物のモックではなく実物を出す */
  .deck-shot {
    display: block; width: 100%;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 44px 96px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(150,142,220,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
    /* 実物のスクリーンショットは中身を読ませたいので、傾きは浅くする */
    transform: perspective(2100px) rotateY(-4deg) rotateX(1.2deg);
    animation: dwFloat 8s ease-in-out infinite;
  }
  .deck-shot img { display: block; width: 100%; height: auto; }
  @keyframes dwFloat {
    0%, 100% { transform: perspective(2100px) rotateY(-4deg) rotateX(1.2deg) translateY(0); }
    50% { transform: perspective(2100px) rotateY(-4deg) rotateX(1.2deg) translateY(-13px); }
  }

  /* 吹き出しはスクリーンショットを基準に置く。画面の高さを基準にすると、
     縦に長い窓では見出しの遥か上や下に飛んでいってしまう */
  .deck-col { position: relative; flex: 1 1 auto; min-width: 0; max-width: 1000px; }
  .dw-callout {
    position: absolute; z-index: 3; pointer-events: none;
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.05em;
    color: var(--peri-bright); background: rgba(13,11,38,0.88);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 13px;
    box-shadow: 0 12px 34px -14px rgba(0,0,0,0.8);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
  }
  .dw-callout .cdot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px 1px var(--cyan-glow); flex: 0 0 auto; }
  @media (max-width: 1200px) { .dw-callout { display: none; } }
  /* 幅が足りない画面では、潰さずに横スクロールで見せる */
  @media (max-width: 1140px) {
    #view-compare .compare table { table-layout: auto; min-width: 1020px; }
    #view-compare .compare th, #view-compare .compare td { overflow-wrap: normal; }
  }

  /* skeleton line */
  .sk { display: block; height: 7px; border-radius: 4px; background: rgba(222,219,246,0.42); }
  .sk.dim { background: rgba(156,152,196,0.26); height: 6px; }

  /* claude chat */
  .cl-chat { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
  .cl-b { border-radius: 12px; padding: 11px 13px; width: 82%; display: flex; flex-direction: column; gap: 7px; }
  .cl-b.user { width: 54%; margin-left: auto; background: rgba(217,119,87,0.16); border: 1px solid rgba(217,119,87,0.32); }
  .cl-b.ai { background: rgba(150,142,220,0.08); border: 1px solid var(--line); }
  .cl-tag { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }

  /* slack channel */
  .sl-msg { display: flex; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
  .sl-msg:first-child { border-top: none; }
  .sl-av { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; }
  .sl-body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 3px; }

  /* notion doc */
  .no-doc { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
  .no-title { height: 13px; width: 55%; border-radius: 5px; background: rgba(236,235,250,0.75); }
  .no-check { display: flex; align-items: center; gap: 9px; }
  .no-box { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line-strong); flex: 0 0 auto; }
  .no-box.done { background: rgba(245,197,107,0.7); border-color: transparent; }

  /* figma canvas */
  .fg-canvas { position: relative; height: 168px; border-radius: 10px; background: rgba(8,7,26,0.7); border: 1px solid var(--line); overflow: hidden; }
  .fg-shape { position: absolute; border: 1.5px solid #8b5cf6; background: rgba(139,92,246,0.14); }
  .fg-frame { border-color: rgba(222,219,246,0.5); background: rgba(222,219,246,0.05); }
  .fg-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(245,197,107,0.8); }

  /* spotify tracks */
  .sp-track { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-top: 1px solid var(--line); }
  .sp-track:first-child { border-top: none; }
  .sp-num { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--faint); width: 14px; text-align: right; flex: 0 0 auto; }
  .sp-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; width: 14px; flex: 0 0 auto; }
  .sp-eq i { width: 3px; background: #1db954; border-radius: 1px; animation: eq 0.9s ease-in-out infinite; }
  .sp-eq i:nth-child(1) { height: 60%; } .sp-eq i:nth-child(2) { height: 100%; animation-delay: 0.2s; } .sp-eq i:nth-child(3) { height: 40%; animation-delay: 0.45s; }
  @keyframes eq { 50% { transform: scaleY(0.4); } }
  @media (prefers-reduced-motion: reduce) { .sp-eq i { animation: none; } }

  /* calendar week */
  .ca-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; height: 172px; }
  .ca-day { border: 1px solid var(--line); border-radius: 8px; background: rgba(8,7,26,0.5); position: relative; padding: 22px 4px 4px; }
  .ca-day .d { position: absolute; top: 5px; left: 7px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--faint); }
  .ca-ev { border-radius: 5px; padding: 3px 5px; margin-bottom: 4px; font-size: 0; height: 22px; }
  .ca-ev.a { background: rgba(66,133,244,0.35); border-left: 3px solid #4285f4; }
  .ca-ev.b { background: rgba(245,197,107,0.25); border-left: 3px solid var(--gold); }
  .ca-ev.c { background: rgba(109,99,184,0.35); border-left: 3px solid var(--orbit); }

  /* linear issues */
  .li-issue { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
  .li-issue:first-child { border-top: none; }
  .li-st { width: 11px; height: 11px; border-radius: 50%; border: 2px solid; flex: 0 0 auto; }
  .li-id { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--faint); flex: 0 0 auto; }

  /* ---------- app wall ---------- */
  .appwall { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
  .aw-tile {
    width: 54px; height: 54px; border-radius: 14px;
    display: grid; place-items: center; background: #fff; overflow: hidden;
    box-shadow: 0 6px 18px -6px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.2s ease;
  }
  .aw-tile:hover { transform: translateY(-4px) scale(1.06); }
  .aw-tile img { width: 34px; height: 34px; display: block; }
  .aw-any {
    width: auto; padding: 0 20px; height: 58px; border-radius: 15px;
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px dashed var(--line-strong); color: var(--peri-bright);
    font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
    background: rgba(150,142,220,0.04); box-shadow: none;
  }
  .aw-any .plus { color: var(--gold); font-size: 1.1rem; }

  /* ---------- comparison ---------- */
  .compare { border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; background: linear-gradient(180deg, rgba(13,11,38,0.6), rgba(8,7,26,0.6)); }
  .compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
  /* 他社比較のページだけ、横スクロールさせずその場で全部見せる。列が多いので入れ物を広げ、
     table-layout:fixed で幅を等分する（狭い画面のときだけ、下の指定で横スクロールに戻す） */
  #view-compare .compare table { table-layout: fixed; min-width: 0; }
  #view-compare .compare col.item { width: 15%; }
  #view-compare .band > .wrap { max-width: min(1560px, 100%); }
  /* すでに終わった製品の列。比較には残すが、選択肢ではないと分かるように落とす */
  .compare th.gone, .compare td.gone { color: var(--faint); }
  .compare th.gone { text-decoration: line-through; }
  .compare td.gone { opacity: 0.75; }
  .compare th, .compare td { padding: 14px 14px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); font-size: 0.9rem; line-height: 1.6; overflow-wrap: anywhere; }
  .compare thead th { border-top: none; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding-top: 18px; padding-bottom: 12px; }
  .compare thead th.sd { color: var(--cyan); }
  .compare td.cap { color: var(--ink); }
  .compare td.no { color: var(--faint); }
  .compare td.semi { color: var(--mute); }
  .compare td.yes { color: var(--cyan); font-weight: 600; }
  #view-compare .compare tbody tr:hover td { background: rgba(150,142,220,0.06); }
  /* 行を追いやすくする縞 */
  #view-compare .compare tbody tr:nth-child(odd) td { background: var(--zebra); }
  /* 項目名の列は固定して、横に目を走らせても迷子にならないようにする */
  #view-compare .compare td.cap, .compare thead th:first-child {
    position: sticky; left: 0; z-index: 2;
    background: var(--capbg); color: var(--ink); font-weight: 600;
    box-shadow: 1px 0 0 var(--line-strong);
  }
  #view-compare .compare tbody tr:nth-child(odd) td.cap { background: var(--capbg-2); }
  /* SpaceDeckの列は上から下まで通して強調する（見出しだけでは列が追えない） */
  #view-compare .compare thead th:nth-child(2), .compare tbody td:nth-child(2) {
    background: var(--sdcol);
    box-shadow: inset 1px 0 0 rgba(245,197,107,0.35), inset -1px 0 0 rgba(245,197,107,0.35);
  }
  #view-compare .compare tbody tr:nth-child(odd) td:nth-child(2) { background: var(--sdcol-2); }
  /* ひと目で読み取れるようにする記号 */
  /* 製品名の見出しは中央に、アイコンと一緒に出す */
  #view-compare .compare thead th { text-align: center; vertical-align: bottom; }
  #view-compare .compare thead th:first-child { text-align: left; }
  #view-compare .compare .vend { display: flex; flex-direction: column; align-items: center; gap: 7px; }
  #view-compare .compare .vend img { width: 30px; height: 30px; border-radius: 8px; display: block; }
  #view-compare .compare .vend .mono {
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    border: 1px solid var(--line-strong); color: var(--faint);
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
  }
  #view-compare .compare .mk { display: inline-block; width: 1.15em; margin-right: 4px; font-weight: 700; }
  #view-compare .compare .mk.ok { color: var(--cyan); }
  #view-compare .compare .mk.part { color: var(--gold-deep); }
  #view-compare .compare .mk.non { color: var(--faint); }
  #view-compare .compare td.yes .mk.ok { color: var(--gold); }

  /* ---------- telemetry ---------- */
  .telemetry { border-top: 1px solid var(--line); background: rgba(8,7,26,0.4); backdrop-filter: blur(6px); }
  .telemetry .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; padding-top: 20px; padding-bottom: 20px; }
  .telemetry .cell { display: flex; flex-direction: column; gap: 3px; }
  .telemetry .cell .k { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
  .telemetry .cell .v { color: var(--peri-bright); font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }

  /* ---------- manifesto ---------- */
  .manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .manifesto .wrap { padding: 62px 28px; }
  /* 段の幅は入れ物いっぱいまで使う。狭くすると右側だけが大きく空いて座りが悪い */
  .manifesto p { font-family: var(--font-display); font-size: clamp(1.5rem, 3.3vw, 2.3rem); line-height: 1.32; letter-spacing: -0.015em; color: var(--ink); font-weight: 600; }
  .manifesto p em { font-style: italic; color: var(--peri-bright); }
  .manifesto p .mtd { color: var(--faint); }

  /* ---------- お問い合わせフォーム ---------- */
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  @media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
  .contact-form { display: grid; gap: 18px; max-width: 640px; }
  .field { display: grid; gap: 7px; }
  .field label { font-size: 14px; font-weight: 600; color: var(--ink); }
  .field .req { color: var(--gold); margin-left: 4px; }
  .field .hint { font-size: 13px; color: var(--faint); }
  /* 入力欄は16px。15px以下だと iOS Safari が触った瞬間に画面を勝手に拡大する */
  .field input, .field select, .field textarea {
    width: 100%; font-size: 16px; font-family: inherit; line-height: 1.6;
    padding: 12px 14px; border-radius: 10px; color: var(--ink);
    background: rgba(8,7,26,0.6); border: 1px solid var(--line-strong);
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .field textarea { resize: vertical; min-height: 150px; }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--orbit); outline-offset: 1px; border-color: transparent; background: rgba(8,7,26,0.85);
  }
  .field input::placeholder, .field textarea::placeholder { color: rgba(156,152,196,0.6); }
  .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
  .field.invalid input, .field.invalid textarea { border-color: #ff6a7f; }
  .field .err { font-size: 13px; color: #ff8797; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .hp input { font-size: 16px; }
  .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .contact-actions .btn[disabled] { opacity: 0.55; pointer-events: none; }
  .contact-note { font-size: 13px; line-height: 1.7; color: var(--faint); }
  .contact-note a { color: var(--peri-bright); }
  .form-error { font-size: 14px; color: #ff8797; }
  .contact-done { border: 1px solid var(--line-strong); border-radius: 16px; padding: 28px 26px; background: linear-gradient(180deg, var(--panel), var(--void-2)); max-width: 640px; }
  .contact-done h3 { font-size: 20px; margin: 0 0 10px; }
  .contact-done p { font-size: 15px; line-height: 1.8; color: var(--mute); margin: 0 0 8px; }
  .contact-aside { border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; background: var(--void-2); }
  .contact-aside h3 { font-size: 16px; margin: 0 0 12px; }
  .contact-aside p { font-size: 14px; line-height: 1.8; color: var(--mute); margin: 0 0 14px; }
  .contact-aside a { color: var(--peri-bright); }

  /* ---------- 対応アプリ一覧 ---------- */
  .applist-group { margin-bottom: 38px; }
  .applist-group h3 { font-size: 19px; margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; }
  .applist-group h3 .n { font-family: var(--font-mono); font-size: 13px; color: var(--faint); font-weight: 400; }
  .applist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .applist li {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 16px 9px 11px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--void-2);
    font-size: 15px; color: var(--mute); line-height: 1.4;
  }
  .applist li img { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; background: #fff; }
  .applist-any {
    margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 16px; padding: 26px 24px;
    background: linear-gradient(180deg, var(--panel), var(--void-2));
  }
  .applist-any h3 { font-size: 20px; margin: 0 0 10px; }
  .applist-any p { font-size: 15px; line-height: 1.8; color: var(--mute); margin: 0 0 8px; max-width: 60em; }

  /* ---------- サイトマップ ---------- */
  .sm-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
  @media (max-width: 900px) { .sm-groups { grid-template-columns: 1fr; } }
  .sm-group {
    position: relative; border: 1px solid rgba(190,184,255,0.22); border-radius: 20px;
    padding: 28px 26px 14px; background: linear-gradient(180deg, #221d5a, #181444);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .sm-group .idx {
    position: absolute; top: 22px; right: 24px;
    font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600;
    color: var(--peri); opacity: 0.4;
  }
  .sm-group h3 { font-size: 1.2rem; margin: 10px 0 6px; }
  .sm-group .note { font-size: 14px; line-height: 1.8; color: var(--faint); margin: 0 0 14px; max-width: 34em; }
  .sm-list { list-style: none; margin: 0; padding: 0; }
  .sm-list > li > a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 14px;
    padding: 14px 0; border-top: 1px solid var(--line); transition: color 0.2s ease;
  }
  .sm-list > li:first-child > a { border-top: none; }
  .sm-name { font-size: 16px; font-weight: 600; color: var(--ink); }
  .sm-desc { grid-column: 1 / -1; font-size: 13px; line-height: 1.75; color: var(--faint); }
  .sm-list > li > a .ar { color: var(--faint); transition: transform 0.2s ease, color 0.2s ease; }
  .sm-list > li > a:hover .sm-name { color: var(--cyan); }
  .sm-list > li > a:hover .ar { color: var(--cyan); transform: translateX(4px); }
  .sm-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; margin: -4px 0 0; }
  .sm-subrow { list-style: none; }
  .sm-sub a {
    font-size: 13px; padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--peri); transition: border-color 0.2s ease, color 0.2s ease;
  }
  .sm-sub a:hover { border-color: var(--cyan); color: var(--cyan); }
  .sm-foot { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
  .sm-foot a { color: var(--peri-bright); font-size: 14px; }
  .sm-foot a:hover { color: var(--cyan); }

  /* ---------- 名前の由来 ---------- */
  /* 大きな言葉を左に、文章を右に。1段だと右側が大きく空いて座りが悪い */
  .story { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 60px; align-items: start; }
  @media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 18px; } }
  .story-body { max-width: 42em; }
  .story .word {
    font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
    font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 0;
  }
  .story .word .grad {
    background: linear-gradient(120deg, var(--peri-bright), var(--orbit) 70%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .story p { font-size: 1.14rem; line-height: 2; color: var(--mute); margin: 0 0 26px; }
  .story p.lead { font-size: 1.3rem; line-height: 1.95; color: var(--ink); }
  .story p b { color: var(--peri-bright); font-weight: 600; }
  .logomark {
    width: 168px; height: 168px; display: block; margin-bottom: 22px;
    box-shadow: 0 26px 60px -22px rgba(0,0,0,0.85);
  }
  @media (max-width: 860px) { .logomark { width: 128px; height: 128px; border-radius: 30px; } }
  /* 三拍。1行ずつ積んで、最後の一語がいちばん明るくなるようにする */
  .beat { display: block; margin: 36px 0 26px; }
  .beat span {
    display: block; font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.55; letter-spacing: 0.01em;
  }
  .beat span:nth-child(1) { color: var(--faint); }
  .beat span:nth-child(2) { color: var(--peri); }
  .beat span:nth-child(3) { color: var(--peri-bright); }

  /* ---------- 法務ページ（項目名｜内容の表） ---------- */
  .legal { max-width: 60em; }
  .legal .intro { font-size: 1.06rem; line-height: 1.95; color: var(--mute); margin: 0 0 34px; }
  .legal-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--void-2); }
  .legal-row { display: grid; grid-template-columns: 16em minmax(0, 1fr); border-top: 1px solid var(--line); }
  .legal-row:first-child { border-top: none; }
  @media (max-width: 760px) { .legal-row { grid-template-columns: 1fr; } }
  .legal-row dt {
    padding: 20px 22px; font-size: 15px; font-weight: 600; color: var(--ink);
    background: rgba(255,255,255,0.022);
  }
  .legal-row dd { padding: 20px 24px; margin: 0; font-size: 15px; line-height: 1.95; color: var(--mute); }
  @media (max-width: 760px) { .legal-row dd { padding-top: 0; } }
  .legal-row dd p { margin: 0 0 10px; }
  .legal-row dd p:last-child { margin-bottom: 0; }
  .legal-row dd ul { list-style: none; margin: 0 0 10px; padding: 0; }
  .legal-row dd li { padding-left: 1.1em; position: relative; margin-bottom: 6px; }
  .legal-row dd li::before { content: "・"; position: absolute; left: 0; color: var(--faint); }
  .legal-row dd a { color: var(--peri-bright); }
  .legal-row dd a:hover { color: var(--cyan); }
  .legal-updated { margin-top: 20px; font-size: 13px; color: var(--faint); }

  /* ---------- よくある質問 ---------- */
  .faq-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 56px; }
  .faq-jump a {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 17px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--void-2); color: var(--peri); font-size: 14px; font-weight: 500;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
  }
  .faq-jump a:hover { border-color: var(--cyan-line); color: var(--cyan); background: var(--capbg); }
  .faq-jump a .gi { width: 17px; height: 17px; opacity: .85; }

  .faq-group { margin-bottom: 68px; scroll-margin-top: 110px; }
  .faq-group:last-of-type { margin-bottom: 0; }
  .faq-group > .idx {
    display: block; font-family: var(--font-mono); font-size: 32px; font-weight: 600;
    color: var(--peri); opacity: 0.42; letter-spacing: -0.02em; line-height: 1; margin-bottom: 14px;
  }
  .faq-group > h2 {
    display: flex; align-items: center; gap: 12px;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem); letter-spacing: -0.02em; margin: 0 0 8px;
  }
  .faq-group > h2 .gi { width: 24px; height: 24px; color: var(--cyan); }
  .faq-group > .note { font-size: 15px; color: var(--faint); margin: 0 0 26px; max-width: 46em; }

  .faq-list { border-top: 1px solid var(--line); }
  .faq-item {
    display: grid; grid-template-columns: 2.4em minmax(0, 1fr);
    gap: 0 18px; padding: 26px 0; border-bottom: 1px solid var(--line);
  }
  @media (max-width: 640px) { .faq-item { grid-template-columns: 1fr; gap: 0; } }
  .faq-item .q-mark {
    font-family: var(--font-mono); font-size: 19px; font-weight: 600; color: var(--cyan);
    line-height: 1.45; opacity: .8;
  }
  @media (max-width: 640px) { .faq-item .q-mark { display: none; } }
  .faq-item h3 { font-size: 1.06rem; line-height: 1.55; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink); }
  .faq-item .a { grid-column: 2; }
  @media (max-width: 640px) { .faq-item .a { grid-column: 1; } }
  .faq-item .a p { margin: 0 0 10px; font-size: 15px; line-height: 1.95; color: var(--mute); }
  .faq-item .a p:last-child { margin-bottom: 0; }
  .faq-item .a ul { list-style: none; margin: 0 0 10px; padding: 0; }
  .faq-item .a li { position: relative; padding-left: 1.1em; margin-bottom: 6px; font-size: 15px; line-height: 1.9; color: var(--mute); }
  .faq-item .a li::before { content: "・"; position: absolute; left: 0; color: var(--faint); }
  .faq-item .a a { color: var(--peri-bright); }
  .faq-item .a a:hover { color: var(--cyan); }

  .faq-tail {
    margin-top: 72px; padding: 38px 36px; border: 1px solid var(--line-strong); border-radius: 20px;
    background: linear-gradient(140deg, var(--capbg), var(--capbg-2));
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  }
  .faq-tail h3 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
  .faq-tail p { margin: 0; font-size: 15px; color: var(--mute); max-width: 40em; }

  /* ---------- 条文のページ ---------- */
  .legal-doc { max-width: 52em; }
  .legal-doc .intro { font-size: 1.06rem; line-height: 1.95; color: var(--mute); margin: 0 0 12px; }
  .legal-doc section { margin-top: 46px; }
  .legal-doc h2 {
    display: flex; align-items: baseline; gap: 14px;
    font-size: 1.28rem; letter-spacing: -0.02em; margin: 0 0 16px;
  }
  .legal-doc h2 .n { font-family: var(--font-mono); font-size: 15px; color: var(--peri); opacity: .5; }
  .legal-doc p { font-size: 15px; line-height: 1.95; color: var(--mute); margin: 0 0 12px; }
  .legal-doc ol { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: cl; }
  .legal-doc ol > li {
    counter-increment: cl; position: relative; padding-left: 2.2em; margin-bottom: 10px;
    font-size: 15px; line-height: 1.95; color: var(--mute);
  }
  .legal-doc ol > li::before {
    content: counter(cl) "."; position: absolute; left: 0; top: 0;
    font-family: var(--font-mono); font-size: 14px; color: var(--faint);
  }
  .legal-doc ul { margin: 6px 0 12px; padding: 0; list-style: none; }
  .legal-doc ul li { position: relative; padding-left: 1.1em; margin-bottom: 6px; font-size: 15px; line-height: 1.9; color: var(--mute); }
  .legal-doc ul li::before { content: "・"; position: absolute; left: 0; color: var(--faint); }
  .legal-doc a { color: var(--peri-bright); }
  .legal-doc a:hover { color: var(--cyan); }

  /* ---------- 見つからないページ ---------- */
  .nf { text-align: center; padding: 30px 0 20px; }
  .nf .code {
    font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 7rem); font-weight: 600;
    color: var(--peri); opacity: .28; line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px;
  }
  .nf p { font-size: 1.02rem; line-height: 1.95; color: var(--mute); max-width: 36em; margin: 0 auto 30px; }
  .nf-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

  /* ---------- flagship trio ---------- */
  .flagship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 900px) { .flagship-grid { grid-template-columns: 1fr; } }
  .flag {
    /* 縦に積んで、リンクを下端へ寄せる。文章の長さが違っても3枚のリンクの高さが揃う */
    display: flex; flex-direction: column;
    position: relative; border: 1px solid rgba(190,184,255,0.28); border-radius: 20px; padding: 32px 28px 30px;
    background: linear-gradient(180deg, #241f5e, #191545);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 44px rgba(0,0,0,0.40);
    overflow: hidden; transition: border-color 0.3s ease, transform 0.3s ease;
  }
  .flag:hover { border-color: var(--line-strong); transform: translateY(-4px); }
  /* カードの通し番号。小さすぎて読めなかったので、大きく・はっきり出す */
  .flag .idx { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; letter-spacing: 0.06em;
    color: var(--peri); opacity: 0.5; position: absolute; top: 20px; right: 24px; }
  .flag p { flex: 1 1 auto; }
  .flag .arrowlink { margin-top: 26px; justify-content: center; align-self: stretch; font-size: 0.94rem; }
  .flag .glyph { width: 46px; height: 46px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(150,142,220,0.07); }
  .flag h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
  .flag p { font-size: 1rem; color: var(--mute); }
  .flag.hero-flag { border-color: rgba(245,197,107,0.28); }
  .flag.hero-flag .glyph { border-color: rgba(245,197,107,0.4); background: rgba(245,197,107,0.08); }

  /* ---------- deck grid ---------- */
  .deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
  @media (max-width: 900px) { .deck { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 580px) { .deck { grid-template-columns: 1fr; } }
  .cell-feat { background: linear-gradient(180deg, var(--void-2), var(--void)); padding: 30px 26px 32px; transition: background 0.3s ease; }
  .cell-feat:hover { background: linear-gradient(180deg, var(--panel), var(--void-2)); }
  .cell-feat .fglyph {
    width: 40px; height: 40px; margin-bottom: 16px; display: grid; place-items: center;
    border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(150,142,220,0.07);
    color: var(--peri-bright);
  }
  .cell-feat .coord { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--faint); margin-bottom: 16px; }
  .cell-feat .coord .kbd { color: var(--peri-bright); }
  .cell-feat h3 { font-size: 1.12rem; margin-bottom: 9px; letter-spacing: -0.01em; }
  .cell-feat p { font-size: 0.96rem; color: var(--mute); line-height: 1.55; }

  /* ---------- split rows ---------- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
  /* 格子の子は既定で「中身より狭くならない」ため、狭い画面で列が縮まず画面からはみ出す。
     縮んでよいことを明示する（これが無いと 320px 幅でページ全体が横に動く） */
  .split > * { min-width: 0; }
  .split.flip .split-visual { order: -1; }
  @media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } .split.flip .split-visual { order: 0; } }
  .split .label { display: block; margin-bottom: 14px; }
  .split h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; margin-bottom: 16px; }
  .split p { font-size: 1.06rem; color: var(--mute); }
  .split p + p { margin-top: 14px; }
  .split p b { color: var(--peri-bright); font-weight: 600; }

  /* ---------- visuals ---------- */
  .panel-card { border: 1px solid var(--line-strong); border-radius: 16px; background: linear-gradient(180deg, var(--panel), var(--void-2)); box-shadow: 0 30px 70px -34px rgba(0,0,0,0.8); overflow: hidden; }

  /* ---------- feature diagrams ---------- */
  .feat-vis { margin: -22px 0 22px; padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .fv-col { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--void-2); }
  .fv-cap { margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
  .fv-node, .fv-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--peri-bright); font-size: 0.8125rem; background: var(--void-2); }
  .fv-row + .fv-row, .fv-node + .fv-node { margin-top: 7px; }
  .fv-node strong, .fv-row strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fv-app { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--font-display); font-size: 0.8125rem; font-weight: 700; color: var(--ink); border: 1px solid var(--line-strong); background: var(--panel); }
  .fv-app.gold { color: var(--gold); border-color: var(--gold); background: var(--panel); }
  .fv-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--void-2); background: var(--gold); }
  .fv-arrow { display: grid; place-items: center; min-height: 28px; color: var(--gold); font-family: var(--font-mono); font-size: 1rem; }
  .fv-key { margin-left: auto; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--peri-bright); font-family: var(--font-mono); font-size: 0.8125rem; white-space: nowrap; }
  .fv-line { flex: 1; min-width: 0; }
  .fv-line b, .fv-line span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fv-line b { color: var(--ink); font-size: 0.8125rem; }
  .fv-line span { margin-top: 2px; color: var(--faint); font-size: 0.8125rem; }
  .fv-track { height: 5px; margin-top: 9px; border-radius: 999px; overflow: hidden; background: var(--line); }
  .fv-track i { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--gold); }
  .fv-status { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--mute); font-family: var(--font-mono); font-size: 0.8125rem; }
  .fv-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--cyan); }
  .fv-palette { grid-column: span 2; }
  .fv-search { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: var(--void-2); font-size: 0.8125rem; }
  .fv-dock { display: flex; flex-direction: column; justify-content: space-between; }
  .fv-clock { color: var(--gold); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
  .fv-toggle { margin-left: auto; width: 34px; height: 19px; padding: 3px; border-radius: 999px; background: var(--cyan); }
  .fv-toggle::after { content: ""; display: block; width: 13px; height: 13px; margin-left: auto; border-radius: 50%; background: var(--void-2); }
  .fv-cloud { min-height: 100%; display: grid; place-items: center; text-align: center; color: var(--gold); font-family: var(--font-display); font-weight: 600; }
  .fv-cloud span { display: block; margin-top: 4px; color: var(--faint); font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.06em; }
  .fv-term { grid-column: span 2; font-family: var(--font-mono); }
  .fv-code { color: var(--peri); font-size: 0.8125rem; line-height: 1.75; }
  .fv-code .prompt { color: var(--cyan); }
  .fv-code .ok { color: var(--mute); }
  @media (max-width: 700px) {
    .feat-vis { grid-template-columns: 1fr; padding: 14px; margin-top: -28px; }
    .fv-arrow { transform: rotate(90deg); }
    .fv-palette, .fv-term { grid-column: auto; }
  }


  .spaces-vis { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
  .space-card { display: flex; align-items: center; gap: 14px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(10,9,32,0.5); }
  .space-badge { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }
  .space-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .space-meta .sm-name { color: var(--ink); font-weight: 600; font-family: var(--font-display); font-size: 0.98rem; }
  .space-meta .sm-sub { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--faint); }
  /* 狭い画面では、名前とアドレスを詰めて「…」で切る。切らないと右端の
     ISOLATED の札の下に文字が潜り込んで重なる */
  .space-meta .sm-name, .space-meta .sm-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .space-chip { margin-left: auto; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--peri); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; flex: 0 0 auto; }
  .space-chip.sep { color: var(--cyan); border-color: var(--cyan-line); }
  /* 狭い画面では ISOLATED の札を次の行へ送り、名前とアドレスに幅を渡す
     （同じ行に置くと文字が1〜2字まで詰められて読めなくなる） */
  @media (max-width: 480px) {
    .space-card { flex-wrap: wrap; row-gap: 8px; }
    .space-meta { flex: 1 1 150px; }
    .space-chip { margin-left: 54px; }
  }

  /* terminal / code window */
  .term { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #0a0920; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); }
  .term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: rgba(150,142,220,0.04); }
  .term-bar .tb { width: 11px; height: 11px; border-radius: 50%; background: #322c58; }
  .term-bar .tb.g { background: var(--gold); }
  .term-bar .title { margin-left: 10px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--faint); letter-spacing: 0.05em; }
  .term-body { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.75; padding: 20px; color: var(--peri); overflow-x: auto; }
  .term-body .p { color: var(--cyan); }
  .term-body .c { color: var(--peri-bright); }
  .term-body .o { color: var(--faint); }
  .term-body .k { color: #8fb8ff; }
  .term-body .s { color: #7fd6a8; }
  .term-body .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--peri-bright); vertical-align: text-bottom; animation: blink 1.1s step-end infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  /* export destinations */
  .dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 24px; }
  @media (max-width: 520px) { .dest-grid { grid-template-columns: repeat(2, 1fr); } }
  .dest { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10,9,32,0.5); }
  .dest .di { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; }
  .dest .dn { color: var(--ink); font-weight: 600; font-size: 0.92rem; }

  /* checklist */
  .checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
  @media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }
  .checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--mute); }
  .checklist li .tick { color: var(--cyan); font-family: var(--font-mono); flex: 0 0 auto; margin-top: 1px; }
  .checklist li b { color: var(--peri-bright); font-weight: 600; }

  /* spec / requirements */
  .spec { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
  .spec .row { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 22px; border-top: 1px solid var(--line); }
  .spec .row:first-child { border-top: none; }
  @media (max-width: 560px) { .spec .row { grid-template-columns: 1fr; gap: 4px; } }
  .spec .rk { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
  .spec .rv { color: var(--ink); }
  .spec .rv .small { color: var(--mute); font-size: 0.95rem; }

  /* pricing / comparison */
  .price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
  .price-card { border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; background: linear-gradient(180deg, var(--panel), var(--void-2)); display: flex; flex-direction: column; }
  .price-card.featured { border-color: rgba(245,197,107,0.4); background: radial-gradient(120% 90% at 50% -10%, rgba(245,197,107,0.10), transparent 55%), linear-gradient(180deg, var(--panel), var(--void-2)); }
  .price-card h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--ink); }
  .price-card .amount { font-family: var(--font-display); font-size: 2.1rem; color: var(--peri-bright); line-height: 1.1; margin: 10px 0 2px; }
  .price-card .amount .per { font-size: 0.9rem; color: var(--faint); font-family: var(--font-mono); letter-spacing: .06em; }
  .price-card .note { color: var(--mute); font-size: 0.95rem; margin: 6px 0 18px; }
  .price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
  .price-card li { display: flex; gap: 10px; color: var(--mute); font-size: 0.98rem; }
  .price-card li .tick { color: var(--cyan); font-family: var(--font-mono); flex: 0 0 auto; }
  .price-card .foot { margin-top: auto; }

  .cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
  .cmp { width: 100%; border-collapse: collapse; min-width: 620px; }
  .cmp th, .cmp td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 0.97rem; }
  .cmp thead th { border-top: none; font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
  .cmp td:first-child { color: var(--ink); font-weight: 600; }
  .cmp td { color: var(--mute); }
  .cmp tr.us td { background: rgba(245,197,107,0.06); }
  .cmp tr.us td:first-child { color: var(--gold); }

  /* download card */
  .dl-card {
    border: 1px solid rgba(245,197,107,0.28); border-radius: 24px; padding: 48px 40px;
    background: radial-gradient(120% 90% at 50% -10%, rgba(245,197,107,0.12), transparent 55%), linear-gradient(180deg, var(--panel), var(--void-2));
    text-align: center; position: relative; overflow: hidden;
  }
  .dl-card .planet { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin: 0 auto 26px; box-shadow: 0 0 26px 5px rgba(245,197,107,0.75), 0 0 0 1px rgba(245,197,107,0.4); }
  .dl-card h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
  .dl-card p { color: var(--mute); max-width: 32em; margin: 0 auto 30px; }
  .dl-card .cta-row { justify-content: center; }
  .dl-card .meta { margin-top: 20px; }

  /* pill row */
  .pillrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
  .pill { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.05em; color: var(--peri); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: rgba(150,142,220,0.05); }

  /* cross-link cards at page bottom */
  .next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 780px) { .next-grid { grid-template-columns: 1fr; } }
  .next-card { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: linear-gradient(180deg, var(--panel), var(--void-2)); transition: border-color 0.25s ease, transform 0.25s ease; }
  .next-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
  .next-card .nk { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
  .next-card h4 { font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -0.01em; }
  .next-card p { font-size: 0.94rem; color: var(--mute); margin: 0; }

  /* final CTA */
  .final { position: relative; overflow: hidden; text-align: center; padding: 120px 0; }
  .final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 30%, rgba(109,99,184,0.24), transparent 62%); pointer-events: none; }
  .final .planet { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); margin: 0 auto 30px; box-shadow: 0 0 26px 5px rgba(245,197,107,0.75), 0 0 0 1px rgba(245,197,107,0.4); }
  .final h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 20px; position: relative; }
  .final p { font-size: 1.12rem; color: var(--mute); max-width: 30em; margin: 0 auto 34px; position: relative; }
  .final .cta-row { justify-content: center; position: relative; }

  /* footer */
  footer { border-top: 1px solid var(--line); padding: 52px 0 60px; position: relative; z-index: 1; }
  .foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
  .foot-brand { max-width: 300px; }
  .foot-brand .brand { margin-bottom: 12px; }
  .foot-brand p { font-size: 0.92rem; color: var(--faint); }
  .foot-cols { display: flex; flex-wrap: wrap; gap: 48px; }
  .foot-col h5 { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 600; }
  .foot-col a { display: block; font-size: 0.94rem; color: var(--mute); padding: 5px 0; transition: color 0.2s ease; }
  .foot-col a:hover { color: var(--peri-bright); }
  .foot-base { max-width: var(--maxw); margin: 36px auto 0; padding: 20px 28px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
  .foot-base .m { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--faint); letter-spacing: 0.04em; }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .deck-shot, .term-body .cursor { animation: none; }
  }

  @media (max-width: 560px) {
    .hero h1 { font-size: 2.2rem; line-height: 1.08; }
    .hero .lede { font-size: 1.05rem; }
    .hero .eyebrow, .page-hero .eyebrow { font-size: 0.8125rem; letter-spacing: 0.12em; }
    .hero-row { padding: 0 16px; }
    .band { padding: 76px 0; }
    .page-hero { padding: 128px 0 24px; }
  }
  @media (max-width: 1200px) {
    .hero-row { flex-direction: column; align-items: stretch; gap: 34px; padding: 0 24px; perspective: 1200px; }
    .hero-content { padding-bottom: 40px; }
    .hero-content .col { max-width: none; }
    .deck-col { max-width: 760px; width: 100%; align-self: center; }
    .deck-shot { transform: perspective(1200px) rotateX(2deg) rotateY(-3deg); animation-name: dwFloatFlat; }
    @keyframes dwFloatFlat { 0%,100% { transform: perspective(1200px) rotateX(2deg) rotateY(-3deg) translateY(0); } 50% { transform: perspective(1200px) rotateX(2deg) rotateY(-3deg) translateY(-10px); } }
  }
  @media (max-width: 480px) {
    .dw-ws { display: none; }
    .dw-body { grid-template-columns: 52px 1fr; min-height: 300px; }
  }

    .dl-news{margin-top:26px;padding:22px 24px;border-radius:16px;background:var(--panel);border:1px solid rgba(184,179,232,.14)}
    .dl-news h3{margin:0 0 8px;font-size:18px;color:var(--peri-bright)}
    .dl-news p{margin:0 0 14px;color:var(--mute);font-size:15px;line-height:1.7}
    .dl-news-form{display:flex;gap:10px;flex-wrap:wrap}
    .dl-news-form input[type=email]{flex:1;min-width:240px;padding:12px 14px;border-radius:10px;border:1px solid rgba(184,179,232,.25);background:rgba(8,7,26,.6);color:var(--ink);font-size:15px}
    .dl-news-form input[type=email]:focus{outline:2px solid var(--orbit);outline-offset:1px}
    .dl-news-done{color:var(--peri-bright)!important}

/* ここから下は日本語のページだけに効く。
   日本語は1文字の幅が広く、英語と同じ大きさだと見出しが行を跨いで崩れるため、
   見出しの寸法だけ小さくする。ほかは英語と同じものを使う。 */
html[lang="ja"] {
  --fs-hero: clamp(2.4rem, 4.2vw, 3.6rem);
  --fs-h2: clamp(1.8rem, 3.4vw, 2.7rem);
}
html[lang="ja"] .page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  max-width: none;
}
