/* ============================================================
   YAOYOROA — components.css / 共有コンポーネント実体
   ------------------------------------------------------------
   契約: phase6_kit.md (E) クラス語彙の正準名をそのまま実装。
   確定デザイン: pattern-X-integrated-neoncity（夜のネオン未来都市）。
   色・余白・フォント・モーションは tokens.css の var(--token) 経由を原則。
   hero stage の精密な発光値のみハードコード例外（pattern-X の現行値を維持）。
   読み込み順: tokens.css -> base.css -> components.css
   状態は全インタラクティブ要素で
     default / hover / active / focus-visible / disabled を定義。
   ============================================================ */

/* ============================================================
   1. ブランドワードマーク（Chrome メタリック・header/footer 共用）
   ============================================================ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.brand-mark.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-orbitron);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.20em;
  line-height: 1;
  /* Chrome metallic gradient face */
  background: linear-gradient(180deg,
    #FFFFFF 0%, #EAF6FF 18%, #B9CFFF 40%, #8DBEFF 52%,
    #5B6CFF 64%, #9FB4FF 80%, #EAF6FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(5, 7, 15, .9))
    drop-shadow(0 0 8px rgba(91, 108, 255, .55))
    drop-shadow(0 0 14px rgba(45, 226, 230, .32));
}
/* reflective sheen sweep over the chrome faces */
.brand-mark.wordmark[data-t]::before {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 0;
  font: inherit;
  letter-spacing: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 48%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  mix-blend-mode: screen;
  opacity: .7;
}
.brand-kanji {
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--cyan-hi);
}
.brand-kanji b {
  color: var(--mag-hi);
  text-shadow: 0 0 10px rgba(255, 45, 149, .7);
}
/* header brand = シンボルロゴ（ネオンの「A」）＋ ワードマーク列のロックアップ */
.site-header .brand { flex-direction: row; align-items: center; gap: var(--space-2xs); }
.brand-logo { display: block; height: clamp(28px, 3.4vw, 36px); width: auto; flex: 0 0 auto; filter: drop-shadow(0 0 7px rgba(45, 226, 230, .40)); }
.brand-text { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.05; }

/* ============================================================
   2. HEADER — sticky HUD（Chrome ワードマーク + ナビ + CTA + hamburger）
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--nav-height);
  padding: var(--nav-pad-y) var(--nav-pad-x);
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--nav-border);
}
/* neon underline beneath the header bar */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), var(--mag), transparent);
  opacity: .55;
}

/* ---- nav list ---- */
.global-nav {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
  margin: 0;
  padding: 0;
}
.nav-link {
  position: relative;
  font-family: var(--font-chakra);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color var(--duration-fast) var(--ease);
}
/* hover/active underline — cyan->mag neon sweep */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--mag));
  box-shadow: 0 0 8px rgba(45, 226, 230, .8);
  transition: width var(--duration-fast) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }
.nav-link:active { color: var(--cyan-hi); }
.nav-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 2px; }
/* current page — underline lit */
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { width: 100%; }

/* the header CTA is a primary button — suppress the underline */
.nav-cta.btn::after,
.nav-link.nav-cta::after { display: none; }
/* ヘッダー内CTA（無料相談・AI活用診断）は2つ並ぶので一回りコンパクトに（余白・文字を詰めて横幅を確保） */
.nav-list .nav-cta.btn { padding: 9px 15px; font-size: var(--text-sm); gap: 6px; }
.nav-list .nav-cta.btn .arr { margin-left: 1px; }

/* ---- hamburger toggle (SP only) ---- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-chakra);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
  color: var(--cyan-hi);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: rgba(45, 226, 230, .06);
  border: 1px solid var(--hair-cyan);
  transition: background var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.nav-toggle:hover { background: rgba(45, 226, 230, .12); box-shadow: 0 0 16px rgba(45, 226, 230, .25); }
.nav-toggle:active { background: rgba(45, 226, 230, .18); }
.nav-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* three-bar icon: middle bar = the element bg, top/bottom = pseudo-elements */
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  flex: none;
  background: linear-gradient(transparent 5px, var(--cyan-hi) 5px, var(--cyan-hi) 7px, transparent 7px);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-hi);
  box-shadow: 0 0 6px rgba(45, 226, 230, .6);
  transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease);
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after  { bottom: 0; }
/* open state -> X (middle bar fades, top/bottom rotate) */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { bottom: 5px; transform: rotate(-45deg); }
.nav-toggle-label { line-height: 1; }

/* ============================================================
   3. BUTTONS — .btn / .btn-primary / .btn-ghost（5状態）
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--btn-font);
  font-weight: var(--btn-weight);
  font-size: var(--btn-size);
  letter-spacing: var(--btn-tracking);
  line-height: 1.2;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition:
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    background var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}
.btn .arr {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease);
}

/* ---- primary：朱/マゼンタ系グロウ + スイープ光沢 ---- */
.btn-primary {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--mag) 0%, var(--blue) 58%, var(--aka) 132%);
  border-color: rgba(255, 111, 182, .5);
  box-shadow:
    0 0 22px rgba(255, 45, 149, .42),
    var(--glow-soft),
    inset 0 0 12px rgba(255, 255, 255, .18);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg);
  transition: left var(--duration-base) var(--ease);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 34px rgba(255, 45, 149, .68),
    0 14px 38px rgba(5, 7, 15, .55),
    inset 0 0 14px rgba(255, 255, 255, .28);
}
.btn-primary:hover::before { left: 120%; }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 0 18px rgba(255, 45, 149, .5), inset 0 0 12px rgba(255, 255, 255, .2); }
.btn-primary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---- ghost：シアン罫の発光ゴーストボタン ---- */
.btn-ghost {
  color: var(--cyan-hi);
  background: rgba(45, 226, 230, .05);
  border: 1px solid var(--hair-cyan);
  box-shadow: inset 0 0 14px rgba(45, 226, 230, .08);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(45, 226, 230, .12);
  border-color: var(--cyan);
  color: var(--cyan-lit);
  box-shadow: 0 0 20px rgba(45, 226, 230, .3), inset 0 0 16px rgba(45, 226, 230, .14);
}
.btn-ghost:hover .arr { transform: translateX(4px); }
.btn-ghost:active { transform: translateY(0); background: rgba(45, 226, 230, .18); }
.btn-ghost:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; }

/* ---- diag：AI活用診断 用。無料相談(btn-primary=マゼンタ)と同格の存在感を、
   ブルー→シアンのネオン・グラデ塗りで（作りは btn-primary と統一：グロー＋内側ハイライト＋シャインスイープ）。 */
.btn-diag {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 145%);
  border-color: rgba(45, 226, 230, .55);
  box-shadow:
    0 0 22px rgba(45, 226, 230, .38),
    0 8px 26px rgba(5, 7, 15, .4),
    inset 0 0 12px rgba(255, 255, 255, .18);
}
.btn-diag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  transform: skewX(-18deg);
  transition: left var(--duration-base) var(--ease);
  pointer-events: none;
}
.btn-diag:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 34px rgba(45, 226, 230, .6),
    0 14px 38px rgba(5, 7, 15, .55),
    inset 0 0 14px rgba(255, 255, 255, .26);
}
.btn-diag:hover::before { left: 120%; }
.btn-diag:hover .arr { transform: translateX(4px); }
.btn-diag:active { transform: translateY(0); box-shadow: 0 0 18px rgba(45, 226, 230, .5); }
.btn-diag:focus-visible { outline: 2px solid var(--mag); outline-offset: 3px; }

/* ---- disabled（両系統共通）---- */
.btn:disabled,
.btn[aria-disabled="true"],
.btn[disabled] {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
  box-shadow: none;
  filter: grayscale(.35);
  pointer-events: none;
}

/* small / large size modifiers (optional) */
.btn--sm { padding: 10px 18px; font-size: var(--text-sm); }
.btn--lg { padding: 18px 32px; font-size: var(--text-lg); }

/* ============================================================
   4. SECTION — .eyebrow / .section-title / .lead
   ============================================================ */
.section-inner {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* eyebrow — neon HUD micro-label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--cyan-hi);
  text-shadow: 0 0 8px rgba(45, 226, 230, .55);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: clamp(20px, 4vw, 40px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: 0 0 8px var(--cyan);
  flex: 0 0 auto;
}
/* magenta eyebrow variant */
.eyebrow--mag { color: var(--mag-hi); text-shadow: 0 0 8px rgba(255, 45, 149, .55); }
.eyebrow--mag::before { background: linear-gradient(90deg, transparent, var(--mag)); box-shadow: 0 0 8px var(--mag); }

.section-title {
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: var(--text-3xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-normal);
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(5, 7, 15, .6);
}
.section-title .em-cyan { color: var(--cyan-hi); text-shadow: 0 0 14px rgba(45, 226, 230, .5); }
.section-title .em-mag  { color: var(--mag-hi);  text-shadow: 0 0 14px rgba(255, 45, 149, .5); }
.section-title .em-aka  { color: var(--mag-hi);  text-shadow: 0 0 14px rgba(255, 45, 149, .42); }

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--ink-soft);
  max-width: 90ch;   /* 60ch ×1.5 */
  margin-top: var(--space-sm);
}
.lead b { color: var(--ink); font-weight: 700; }
.lead .hl { color: var(--cyan-hi); font-weight: 500; }

/* section head grouping helper */
.section-head { margin-bottom: var(--space-xl); text-align: center; }   /* 既定で center 統一 */
.section-head .lead { margin-inline: auto; }
.section-head .eyebrow { justify-content: center; }
.section-head.is-center { text-align: center; }   /* 後方互換（既定が center のため実質 no-op） */
.section-head.is-center .lead { margin-inline: auto; }
.section-head.is-center .eyebrow { justify-content: center; }

/* gold hairline divider */
.rule-gold {
  border: 0;
  height: 1px;
  width: 64px;
  margin: var(--space-md) 0;
  background: linear-gradient(90deg, var(--kin), transparent);
  box-shadow: var(--glow-gold);
}
.section-head .rule-gold { margin-inline: auto; }

/* ============================================================
   5. CARDS — base + service / news / concept / role / branch
   ============================================================ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
  transition:
    transform var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease),
    border-color var(--duration-fast) var(--ease);
}
/* hover: lift (translateY only, NO rotate) + neon edge + glow */
.card:hover {
  transform: translateY(var(--card-lift));
  border-color: var(--hair-cyan);
  box-shadow: var(--card-shadow-hover);
}
/* a whole-card link keeps the focus ring on the card */
a.card:focus-visible,
.card a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card .card-title { font-size: var(--text-xl); font-weight: 900; line-height: 1.4; color: var(--ink); margin-bottom: var(--space-xs); }
.card p { color: var(--ink-soft); }

/* card action link (verb CTA) */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-top: var(--space-sm);
  font-family: var(--font-chakra);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--cyan-hi);
  transition: color var(--duration-fast) var(--ease);
}
.card-link .arr { transition: transform var(--duration-fast) var(--ease); }
.card-link:hover { color: var(--cyan-lit); }
.card:hover .card-link .arr,
.card-link:hover .arr { transform: translateX(4px); }
.card-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---- service card：番号/アイコン + タイトル + 説明 + 動詞リンク ---- */
.card-service .card-icon {
  /* 数字は Bebas、日本語ラベルはサイト標準の和文へ（generic sans-serif フォールバックを避け字面を統一） */
  font-family: "Bebas Neue", var(--font-body);
  font-size: var(--text-3xl);
  line-height: 1;
  color: var(--cyan-hi);
  text-shadow: 0 0 14px rgba(45, 226, 230, .5);
  margin-bottom: var(--space-sm);
}
/* 成果/価格の一行：金＋グローは「ノイズ」になるため廃止。
   新色を足さず、既存のシアン細罫言語（ghost ボタン/visual-slot と同系）に寄せた
   控えめな縦罫 + 本文サブ色で、“意味は際立つが全体に馴染む”スペックラインにする。 */
.card-service .card-price {
  align-self: flex-start;                    /* 内容幅に収め、行いっぱいに広げない */
  margin-top: auto;                          /* カード下端へ寄せ、グリッドで底を揃える */
  padding: 4px 0 4px 11px;
  border-left: 2px solid var(--hair-gold);   /* ゴールドの縦罫＝「成果/価格」の合図 */
  font-family: var(--font-mono);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-snug);
  color: var(--kin-lit);                     /* ゴールド #FFE6A6（on --bg で AA を満たす明るめ金） */
  text-shadow: 0 0 8px rgba(232, 195, 107, .7), 0 0 20px rgba(232, 195, 107, .45);   /* 金グローを二重に重ねて強調 */
}
.card-service:hover .card-icon { color: var(--cyan-lit); }

/* (B) 業務AI：番号(card-icon)とタイトル(card-title)を同じ行に並べる */
.card-service .ct-row { display: flex; align-items: baseline; gap: var(--space-xs); margin-bottom: var(--space-2xs); }
.card-service .ct-row .card-icon  { margin-bottom: 0; }
.card-service .ct-row .card-title { margin-bottom: 0; }

/* (C) 別事業サブ：内容の近いサービスを上辺アクセント色でグルーピング。
   build=シアン（開発・実装系） / talent=マゼンタ（人材系） / global=ゴールド（海外展開系）。
   .card は position:relative 済みのため ::before の上辺バーで色分けする（罫・影には干渉しない）。 */
.card-grid--compact .card.is-grp-build::before,
.card-grid--compact .card.is-grp-talent::before,
.card-grid--compact .card.is-grp-global::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;                 /* 上辺いっぱい */
  height: 3px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  pointer-events: none;
}
.card-grid--compact .card.is-grp-build::before  { background: var(--cyan); box-shadow: 0 0 10px rgba(45, 226, 230, .55); }
.card-grid--compact .card.is-grp-talent::before { background: var(--mag);  box-shadow: 0 0 10px rgba(255, 45, 149, .45); }
.card-grid--compact .card.is-grp-global::before { background: var(--kin);  box-shadow: 0 0 10px rgba(232, 195, 107, .45); }
/* カードタイトルのグループ色は index.html の section-services 配色ブロックで指定。
   インラインの位置ローテーション（nth-child）と同詳細度で衝突するため、配色は一箇所に集約。 */

/* ---- news card：time / category / title ---- */
.card-news .card-cat {
  display: inline-block;
  font-family: var(--font-chakra);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--mag-hi);
  padding: 3px 10px;
  border: 1px solid var(--hair-mag);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}
.card-news time {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-faint);
  margin-bottom: var(--space-2xs);
}
.card-news .card-title { font-size: var(--text-lg); }
.card-news:hover { border-color: var(--hair-mag); box-shadow: 0 14px 40px rgba(5, 7, 15, .55), var(--glow-mag); }

/* ---- concept card：漢字グリフ + 本文 ---- */
.card-concept { align-items: flex-start; }
.card-concept .card-glyph {
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  color: var(--aka-hi);
  text-shadow: 0 0 16px rgba(255, 59, 83, .6), 0 0 34px rgba(200, 16, 46, .3);
  margin-bottom: var(--space-sm);
}
.card-concept .card-glyph.is-cyan { color: var(--cyan-hi); text-shadow: 0 0 16px rgba(45, 226, 230, .6); }
.card-concept .card-glyph.is-gold { color: var(--kin-lit); text-shadow: var(--glow-gold); }

/* ---- role card（採用）：職種名/雇用形態/要点 ---- */
.card-role .card-emp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--cyan-hi);
  margin-bottom: var(--space-2xs);
}
.card-role .card-title { font-size: var(--text-xl); }
.card-role ul { list-style: none; margin-top: var(--space-sm); display: grid; gap: var(--space-2xs); }
.card-role li { position: relative; padding-left: 1.2em; color: var(--ink-soft); font-size: var(--text-sm); }
.card-role li::before { content: "›"; position: absolute; left: 0; color: var(--cyan); }

/* ---- branch card（拠点）：拠点名/住所/連絡 ---- */
.card-branch .card-title { font-size: var(--text-lg); }
.card-branch .card-addr,
.card-branch .card-tel {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-faint);
  margin-top: var(--space-3xs);
}
/* reader-branch — 経営者カードを視覚的に最優先（大きさ・発光強）。 */
.card-branch.reader-branch,
.card-branch.is-primary {
  border: 1px solid var(--hair-cyan);
  background:
    linear-gradient(180deg, rgba(45, 226, 230, .08), rgba(8, 12, 26, .9)),
    var(--card-bg);
  box-shadow: 0 8px 36px rgba(5, 7, 15, .55), var(--glow-cyan);
  transform: scale(1.015);
}
.card-branch.reader-branch .card-title,
.card-branch.is-primary .card-title {
  font-size: var(--text-2xl);
  color: var(--cyan-hi);
  text-shadow: 0 0 14px rgba(45, 226, 230, .5);
}
.card-branch.reader-branch::before,
.card-branch.is-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--mag));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}
.card-branch.reader-branch:hover,
.card-branch.is-primary:hover {
  transform: translateY(var(--card-lift)) scale(1.015);
  box-shadow: 0 16px 48px rgba(5, 7, 15, .6), 0 0 26px rgba(45, 226, 230, .55), 0 0 52px rgba(45, 226, 230, .22);
}

/* ---- news card grid wrapper（card-news 一覧用・最小レイアウト）---- */
.news-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: var(--space-xl);
}

/* ---- generic card grid（card-concept / card-role 等・auto-fit 最小レイアウト）---- */
.card-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid > .card { height: 100%; }
@media (min-width: 769px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid--3,
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }
}

/* ---- 補足メモ行（採用 open-roles 等の※注記・HUD mono の控えめテキスト）---- */
.role-note {
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

/* ============================================================
   6. FORM — field / label / input / select / textarea / is-error / consent
   ============================================================ */
.field { display: flex; flex-direction: column; gap: var(--space-2xs); margin-bottom: var(--space-md); }
.label {
  font-family: var(--font-chakra);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--label-color);
}
.label .req { color: var(--aka-hi); margin-left: .25em; text-shadow: 0 0 8px rgba(200, 16, 46, .5); }

.input,
.select,
.textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--field-text);
  background: var(--field-bg);
  border: var(--field-border);
  border-radius: var(--field-radius);
  padding: var(--field-pad-y) var(--field-pad-x);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.textarea { min-height: 9em; resize: vertical; line-height: var(--leading-normal); }
.input::placeholder,
.textarea::placeholder { color: var(--field-placeholder); }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan-hi) 50%),
    linear-gradient(135deg, var(--cyan-hi) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.select option { background: var(--bg-2); color: var(--ink); }

.input:hover,
.select:hover,
.textarea:hover { border: var(--field-border-hover); }
.input:focus,
.input:focus-visible,
.select:focus,
.select:focus-visible,
.textarea:focus,
.textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: var(--field-focus-ring);
  background: var(--bg-elev);
}
.input:disabled,
.select:disabled,
.textarea:disabled { opacity: .5; cursor: not-allowed; }

/* error state — JS adds .is-error + aria-invalid */
.is-error .input,
.is-error .select,
.is-error .textarea,
.input.is-error,
.select.is-error,
.textarea.is-error,
[aria-invalid="true"] {
  border-color: var(--field-error);
  box-shadow: var(--field-error-ring);
}
.field-error {
  font-family: var(--font-chakra);
  font-size: var(--text-xs);
  color: var(--field-error);
  margin-top: var(--space-3xs);
}

/* consent row — privacy agreement */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.consent input[type="checkbox"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: .15em;
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-xs);
  background: var(--field-bg);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.consent input[type="checkbox"]:hover { border-color: var(--hair-cyan); }
.consent input[type="checkbox"]:checked {
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: var(--glow-cyan);
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 5px; height: 9px;
  margin: 2px 0 0 6px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.consent a { color: var(--cyan-hi); text-decoration: underline; text-underline-offset: .2em; }

/* form layout helpers */
.form-row { display: grid; gap: var(--space-md); }
@media (min-width: 769px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}
.form-actions { margin-top: var(--space-lg); }

/* ============================================================
   7. TABLES — spec-table / price-table
   ============================================================ */
.spec-table {
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(11, 19, 34, .5);
}
.spec-table th,
.spec-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hair);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 34%;
  font-family: var(--font-chakra);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--ink-faint);
  background: rgba(16, 26, 48, .4);
}
.spec-table td { color: var(--ink-soft); }

/* price table — plans side by side, recommended column lit */
.price-table { width: 100%; }
.price-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.price-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
}
.price-plan:hover { transform: translateY(var(--card-lift)); border-color: var(--hair-cyan); box-shadow: var(--card-shadow-hover); }
.price-plan .plan-name {
  font-family: var(--font-chakra);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--ink-soft);
}
.price-plan .plan-price {
  font-family: var(--font-bebas);
  font-size: var(--text-4xl);
  line-height: 1;
  color: var(--cyan-hi);
  text-shadow: 0 0 14px rgba(45, 226, 230, .4);
  margin: var(--space-2xs) 0 var(--space-sm);
}
.price-plan .plan-price .unit { font-size: .4em; color: var(--ink-soft); letter-spacing: var(--tracking-wide); }
.price-plan ul { list-style: none; display: grid; gap: var(--space-2xs); margin-top: var(--space-sm); }
.price-plan li { position: relative; padding-left: 1.2em; font-size: var(--text-sm); color: var(--ink-soft); }
.price-plan li::before { content: "✦"; position: absolute; left: 0; color: var(--cyan); font-size: .8em; }
/* single highlighted plan — constrain width so one card doesn't stretch full-width */
.price-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 34rem; margin-inline: auto; }
/* stacked initial + monthly price lines inside one plan */
.price-plan .plan-price + .plan-price { margin-top: var(--space-2xs); }
/* recommended plan — neon-emphasised */
.price-plan.is-recommended {
  border-color: var(--mag);
  box-shadow: 0 8px 36px rgba(5, 7, 15, .55), var(--glow-mag);
}
.price-plan.is-recommended .plan-price { color: var(--mag-hi); text-shadow: 0 0 14px rgba(255, 45, 149, .5); }
.price-plan .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-chakra);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--white);
  background: linear-gradient(135deg, var(--mag), var(--blue));
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-mag);
}

/* ============================================================
   8. NAV HELPERS — crumbs / pager / nl-form / cta-band
   ============================================================ */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--ink-faint);
  list-style: none;
  margin: 0;
  padding: 0;
}
.crumbs a { color: var(--ink-faint); transition: color var(--duration-fast) var(--ease); }
.crumbs a:hover { color: var(--cyan-hi); }
.crumbs a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.crumbs li { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.crumbs li + li::before { content: "/"; color: var(--cyan); opacity: .6; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* pager — prev / numbers / next */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  margin-top: var(--space-2xl);
  list-style: none;
  padding: 0;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-xs);
  font-family: var(--font-chakra);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  border: 1px solid var(--hair);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.pager a:hover { color: var(--cyan-hi); border-color: var(--hair-cyan); box-shadow: 0 0 14px rgba(45, 226, 230, .2); }
.pager a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.pager [aria-current="page"] {
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.pager .is-disabled { opacity: .4; pointer-events: none; }

/* newsletter form — email + register button */
.nl-form { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.nl-form .input { flex: 1 1 220px; }
.nl-form .btn { flex: 0 0 auto; }

/* ---- CTA band — full-width neon-emphasised CTA strip ---- */
.cta-band {
  position: relative;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 45, 149, .12), transparent 60%),
    radial-gradient(80% 120% at 50% 100%, rgba(45, 226, 230, .1), transparent 60%),
    linear-gradient(180deg, var(--bg-3), var(--bg));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mag), var(--cyan), transparent);
  opacity: .7;
}
.cta-band .section-inner,
.cta-band .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.cta-band .section-title { text-shadow: 0 0 18px rgba(59, 91, 255, .4); }
.cta-band .lead { margin-inline: auto; text-align: center; }

/* ============================================================
   9. ACCORDION — acc / acc-item（accordion.js 連動：[hidden] 開閉）
   ============================================================ */
.acc {
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(11, 19, 34, .5);
}
.acc-item + .acc-item { border-top: 1px solid var(--hair); }
.acc-item [data-accordion-trigger] {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  text-align: left;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--ink);
  transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.acc-item [data-accordion-trigger]:hover { color: var(--cyan-hi); background: rgba(45, 226, 230, .04); }
.acc-item [data-accordion-trigger]:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
/* +/- indicator */
.acc-item [data-accordion-trigger]::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--cyan-hi);
  text-shadow: 0 0 8px rgba(45, 226, 230, .5);
  transition: transform var(--duration-fast) var(--ease);
}
.acc-item [data-accordion-trigger][aria-expanded="true"]::after { content: "−"; transform: rotate(180deg); }
.acc-item [data-accordion-trigger][aria-expanded="true"] { color: var(--cyan-hi); }
.acc-panel { padding: 0 var(--space-md) var(--space-md); color: var(--ink-soft); }

/* ============================================================
   10. STATS — stats / stat / stat-num（counter-anim.js 連動）
   ============================================================ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  flex: 1 1 160px;
}
.stat-num {
  font-family: var(--font-bebas);
  font-size: clamp(2.2rem, 1.6rem + 2.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: var(--tracking-wide);
  color: var(--cyan-hi);
  text-shadow: 0 0 16px rgba(45, 226, 230, .42), 0 0 36px rgba(45, 226, 230, .18);
}
.stat-num.is-mag  { color: var(--mag-hi); text-shadow: 0 0 16px rgba(255, 45, 149, .42), 0 0 36px rgba(255, 45, 149, .18); }
.stat-num.is-gold { color: var(--kin-lit); text-shadow: var(--glow-gold); }
.stat-num .unit { font-size: .5em; color: var(--ink-soft); letter-spacing: var(--tracking-wide); }
.stat-label {
  font-size: var(--text-sm);
  color: var(--ink-faint);
}
.stat-divider { width: 1px; align-self: stretch; background: var(--hair); }

/* ============================================================
   11. FOOTER — .site-footer
   ============================================================ */
.site-footer {
  position: relative;
  z-index: var(--z-content);
  background: linear-gradient(180deg, var(--bg-3), #04060C);
  border-top: 1px solid var(--hair);
  padding-block: var(--space-3xl) var(--space-xl);
  margin-top: var(--space-4xl);
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), var(--mag), transparent);
  opacity: .4;
}
.footer-inner {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1.2fr 1fr 1.2fr;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-2xs); align-items: flex-start; }
.footer-tagline {
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-widest);
  color: var(--cyan-hi);
  text-shadow: 0 0 10px rgba(45, 226, 230, .45);
  margin-top: var(--space-2xs);
}
.footer-nav-list { display: grid; gap: var(--space-2xs); margin: 0; padding: 0; }
.footer-nav-list a {
  font-family: var(--font-chakra);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  color: var(--ink-soft);
  transition: color var(--duration-fast) var(--ease);
}
.footer-nav-list a:hover { color: var(--cyan-hi); }
.footer-nav-list a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.footer-meta { display: grid; gap: var(--space-2xs); }
.footer-company,
.footer-contact,
.footer-copy { font-size: var(--text-xs); color: var(--ink-faint); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.footer-legal a { font-size: var(--text-xs); color: var(--ink-soft); transition: color var(--duration-fast) var(--ease); }
.footer-legal a:hover { color: var(--cyan-hi); }
.footer-legal a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
/* footer コンバージョン CTA 行（無料相談＋AI活用診断。モバイル固定バーと同じ対） */
.footer-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-block: var(--space-3xs) var(--space-2xs); }

/* ============================================================
   12. HERO STAGE（index 専用）— pattern-X 完全移植
   ------------------------------------------------------------
   変更点（pattern-X からの唯一の構造改変）:
     pattern-X の .stage は position:fixed + inset:0 で全画面固定だった。
     ここでは .hero-screen{min-height:100vh;position:relative;overflow:hidden}
     を新設し、その内側に .hero-stage を position:absolute;inset:0 で
     スコープする。これで下のコンテンツは hero 画面の下に普通にスクロールする
     （背景は hero 画面の中だけに閉じ込められ、固定貼り付きをやめる）。
   それ以外（発光値・サイズ・レイヤ z 順・H1 clamp・列幅・.line nowrap・
   最小中央 scrim 等）は pattern-X の現行値をそのまま維持する。
   精密発光のためここだけハードコード値を許容（FRONTEND_PREVIEW.md §4 例外）。
   ============================================================ */

/* hero 画面の外枠：100vh 級・相対配置・はみ出し隠し */
.hero-screen {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

/* 背面の都市演出層：fixed をやめ、hero-screen 内に absolute でスコープ */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: var(--z-stage);
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

/* ---- z0 BASE: layered night, multi-source pools ---- */
.hero-stage .atmo {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 38% at 50% 2%, rgba(126,146,255,.10) 0%, rgba(45,226,230,.05) 40%, transparent 72%),
    radial-gradient(120% 60% at 50% 100%, rgba(45,226,230,.23) 0%, rgba(45,226,230,0) 47%),
    radial-gradient(90% 60% at 16% 84%, rgba(255,45,149,.21) 0%, rgba(255,45,149,0) 51%),
    radial-gradient(90% 64% at 84% 80%, rgba(59,91,255,.25) 0%, rgba(59,91,255,0) 53%),
    radial-gradient(80% 56% at 50% 8%, rgba(138,79,255,.20) 0%, rgba(138,79,255,0) 57%),
    linear-gradient(180deg, #080B18 0%, #0A0E1C 30%, #0C1226 56%, #0D1430 76%, #090D1C 100%);
}
/* ---- starfield high in the sky ---- */
.hero-stage .stars {
  position: absolute; left: 0; right: 0; top: 0; height: 50%; pointer-events: none;
  background-image:
    radial-gradient(1.3px 1.3px at 12% 16%, rgba(234,242,255,.9), transparent),
    radial-gradient(1px 1px at 27% 8%, rgba(141,244,246,.8), transparent),
    radial-gradient(1.5px 1.5px at 47% 13%, rgba(234,242,255,.85), transparent),
    radial-gradient(1px 1px at 63% 6%, rgba(255,102,181,.7), transparent),
    radial-gradient(1.3px 1.3px at 79% 14%, rgba(234,242,255,.9), transparent),
    radial-gradient(1px 1px at 89% 30%, rgba(141,244,246,.7), transparent),
    radial-gradient(1.1px 1.1px at 7% 38%, rgba(234,242,255,.6), transparent),
    radial-gradient(1.4px 1.4px at 36% 44%, rgba(232,195,107,.6), transparent),
    radial-gradient(1px 1px at 70% 5%, rgba(234,242,255,.8), transparent),
    radial-gradient(1.1px 1.1px at 92% 8%, rgba(232,195,107,.7), transparent),
    radial-gradient(1px 1px at 20% 6%, rgba(234,242,255,.7), transparent),
    radial-gradient(1.1px 1.1px at 55% 40%, rgba(141,244,246,.5), transparent);
  opacity: .62;
  animation: heroTwinkle var(--duration-ambient) var(--breathe) infinite;
}
@keyframes heroTwinkle { 0%, 100% { opacity: .42; } 50% { opacity: .68; } }

/* ---- z1 SUN: banded magenta->gold disk rising at horizon ---- */
.hero-stage .sun {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(54vw, 480px);
  height: min(54vw, 480px);
  border-radius: 50%;
  opacity: .68;
  background: linear-gradient(180deg,
    #FFE9A8 0%, #F6C76A 16%, #FF8F4D 34%,
    #FF4DA6 56%, #FF2D95 74%, #C8377F 100%);
  box-shadow:
    0 0 44px 9px rgba(255,45,149,.23),
    0 0 100px 30px rgba(255,77,166,.13),
    0 0 170px 64px rgba(138,79,255,.08);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%,
    transparent 42%, #000 46%, transparent 48.5%, #000 52.5%,
    transparent 55%, #000 59.5%, transparent 62.5%, #000 67%,
    transparent 70.5%, #000 75.5%, transparent 79.5%, #000 85%,
    transparent 89.5%, #000 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 40%,
    transparent 42%, #000 46%, transparent 48.5%, #000 52.5%,
    transparent 55%, #000 59.5%, transparent 62.5%, #000 67%,
    transparent 70.5%, #000 75.5%, transparent 79.5%, #000 85%,
    transparent 89.5%, #000 100%);
  animation: sunbreathe var(--duration-ambient) var(--breathe) infinite;
  z-index: 1;
}
@keyframes sunbreathe { 0%, 100% { filter: saturate(.94) brightness(.96); } 50% { filter: saturate(1.04) brightness(1.02); } }
.hero-stage .sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255,233,168,.35);
  -webkit-mask-image: inherit; mask-image: inherit;
}

/* ---- z2 SKYLINE: distant silhouette + lit windows ---- */
.hero-stage .skyline {
  position: absolute; left: 0; right: 0; top: 34%; height: 24%; opacity: .5; z-index: 2;
  filter: brightness(.72) contrast(.84) saturate(.66) blur(1px);
}
.hero-stage .skyline svg { display: block; width: 100%; height: 100%; }

/* ---- z3 CITY: high-rises boxing the frame ---- */
.hero-stage .city {
  position: absolute; left: 0; right: 0; top: 0; bottom: 36%; z-index: 3; opacity: .86;
  filter: brightness(1.0) saturate(.98);
}
.hero-stage .city svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- z4 TRAILS: long-exposure light trails on the deck ---- */
.hero-stage .road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 4;
  perspective: 46vmin; perspective-origin: 50% 0%; pointer-events: none;
}
.hero-stage .deck {
  position: absolute; left: 50%; bottom: 0; width: 240%; height: 130%;
  transform: translateX(-50%) rotateX(72deg); transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(10,16,36,0) 0%, rgba(8,12,26,.45) 40%, #060912 100%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 100%, #fff 60%, transparent 100%);
          mask-image: radial-gradient(120% 100% at 50% 100%, #fff 60%, transparent 100%);
}
.hero-stage .deck::before {
  content: ""; position: absolute; inset: 0; mix-blend-mode: screen;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(45,226,230,.11), transparent 70%),
    radial-gradient(60% 50% at 30% 14%, rgba(91,108,255,.08), transparent 70%),
    radial-gradient(60% 50% at 72% 18%, rgba(255,45,149,.07), transparent 70%);
}
.hero-stage .lanes {
  position: absolute; left: 50%; bottom: 0; width: 240%; height: 130%;
  transform: translateX(-50%) rotateX(72deg); transform-origin: 50% 100%;
  background: repeating-linear-gradient(to right, transparent 0 calc(20% - 1px), rgba(234,242,255,.10) calc(20% - 1px) 20%);
  -webkit-mask-image: linear-gradient(to top, #fff 0%, rgba(255,255,255,.2) 70%, transparent 100%);
          mask-image: linear-gradient(to top, #fff 0%, rgba(255,255,255,.2) 70%, transparent 100%);
}
.hero-stage .horizon-glow {
  position: absolute; left: 0; right: 0; bottom: 40%; height: 8%; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(91,108,255,.17) 40%, rgba(45,226,230,.12) 60%, transparent);
  filter: blur(12px);
}
.hero-stage .trails { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 4; pointer-events: none; opacity: .6; }
.hero-stage .streak { position: absolute; height: 2px; border-radius: 2px; left: -40%; width: 60%; opacity: 0; will-change: transform, opacity; }
.hero-stage .streak::after { content: ""; position: absolute; inset: 0; border-radius: inherit; filter: blur(4px); transform: scaleY(3.2); background: inherit; opacity: .28; }
.hero-stage .run-r { animation: runR linear infinite; }
@keyframes runR { 0% { transform: translateX(0) scaleX(.5); opacity: 0; } 8% { opacity: .5; } 70% { opacity: .42; } 100% { transform: translateX(240%) scaleX(1.25); opacity: 0; } }
.hero-stage .run-l { left: auto; right: -40%; animation: runL linear infinite; }
@keyframes runL { 0% { transform: translateX(0) scaleX(.5); opacity: 0; } 8% { opacity: .5; } 70% { opacity: .42; } 100% { transform: translateX(-240%) scaleX(1.25); opacity: 0; } }
.hero-stage .t-white { background: linear-gradient(90deg, transparent, rgba(251,253,255,.25) 30%, var(--white) 92%, #fff 100%); box-shadow: 0 0 6px rgba(251,253,255,.34); }
.hero-stage .t-red   { background: linear-gradient(90deg, transparent, rgba(200,16,46,.22) 30%, var(--aka) 80%, var(--aka-hi) 100%); box-shadow: 0 0 6px rgba(255,59,83,.34); }
.hero-stage .t-cyan  { background: linear-gradient(90deg, transparent, rgba(45,226,230,.22) 30%, var(--cyan) 84%, var(--cyan-hi) 100%); box-shadow: 0 0 6px rgba(45,226,230,.34); }
.hero-stage .t-blue  { background: linear-gradient(90deg, transparent, rgba(91,108,255,.22) 30%, var(--blue-2) 84%, var(--blue-hi) 100%); box-shadow: 0 0 6px rgba(91,108,255,.34); }
.hero-stage .t-mag   { background: linear-gradient(90deg, transparent, rgba(255,45,149,.22) 30%, var(--mag) 84%, var(--mag-hi) 100%); box-shadow: 0 0 6px rgba(255,45,149,.34); }
.hero-stage .rail {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; opacity: .5;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--blue) 50%, var(--mag) 80%, transparent);
  box-shadow: 0 0 12px rgba(91,108,255,.35);
}
.hero-stage .rail.upper {
  bottom: 32%; height: 2px; opacity: .28;
  background: linear-gradient(90deg, transparent, var(--blue) 30%, var(--cyan) 70%, transparent);
}

/* ---- z5 BOARDS (giant LED) + SIGNS (dense neon) ---- */
.hero-stage .boards { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hero-stage .board {
  position: absolute; border-radius: 3px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-bebas); color: var(--white); text-align: center;
  border: 1px solid rgba(234,242,255,.16);
  animation: flicker 11s steps(1) infinite, neonFlare 5.5s ease-in-out infinite;
}
.hero-stage .board::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px);
  mix-blend-mode: multiply; opacity: .6;
}
@keyframes flicker { 0%, 95%, 100% { opacity: 1; } 96% { opacity: .84; } 97% { opacity: 1; } 98% { opacity: .78; } 99% { opacity: 1; } }
/* 定期的なネオン発光フレア（電脳感）— 大半は地味、周期的にサージ */
@keyframes neonFlare {
  0%, 44%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.6) saturate(1.3); }
  56% { filter: brightness(1.12) saturate(1.05); }
  62% { filter: brightness(1.45) saturate(1.2); }
  68% { filter: brightness(1) saturate(1); }
}
/* 各ボードの発光フレアを時間差にして電脳感を出す */
.hero-stage .b-left  { animation-delay: .3s; }
.hero-stage .b-robo  { animation-delay: 1.8s; }
.hero-stage .b-jp    { animation-delay: .9s; }
.hero-stage .b-gold  { animation-delay: 2.7s; }
.hero-stage .b-chi   { animation-delay: 1.3s; }
.hero-stage .b-center{ animation-delay: 2.1s; }
.hero-stage .b-left {
  left: clamp(8px,4vw,70px); top: 6%; width: clamp(48px,9vw,104px); height: 32%; opacity: .46;
  background: linear-gradient(160deg, rgba(255,45,149,.13), rgba(138,79,255,.08));
  box-shadow: 0 0 12px rgba(255,45,149,.15), 0 0 30px rgba(255,45,149,.06), inset 0 0 12px rgba(255,45,149,.09);
  flex-direction: column; gap: 6px; line-height: .92; font-size: clamp(18px,3vw,36px);
  color: var(--mag-hi); text-shadow: 0 0 7px rgba(255,45,149,.4);
}
.hero-stage .b-left .sm { font-family: var(--font-mono); font-size: .26em; letter-spacing: .3em; color: var(--ink-soft); text-shadow: none; }
.hero-stage .b-robo {
  left: clamp(2px,1vw,18px); top: 27%; width: clamp(28px,4.6vw,52px); height: 22%; opacity: .42;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, rgba(45,226,230,.11), rgba(59,91,255,.07));
  box-shadow: 0 0 10px rgba(45,226,230,.13), inset 0 0 9px rgba(45,226,230,.08);
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(14px,2.2vw,26px); letter-spacing: .18em;
  color: var(--cyan-hi); text-shadow: 0 0 6px rgba(45,226,230,.4);
}
.hero-stage .b-center {
  left: 50%; transform: translateX(-50%); top: 3.5%;
  width: clamp(180px,35vw,430px); height: 21%;
  background: linear-gradient(135deg, rgba(45,226,230,.22), rgba(59,91,255,.20) 60%, rgba(255,45,149,.14));
  box-shadow: 0 0 36px rgba(45,226,230,.30), 0 0 70px rgba(59,91,255,.12), inset 0 0 28px rgba(45,226,230,.16);
  justify-content: flex-start;   /* LED 電光掲示板: テキストが横に流れる */
}
/* b-center を電光掲示板化 — mono の文言が横スクロール（二重化でシームレスループ） */
.hero-stage .b-center .b-led {
  display: flex; align-items: center; flex-wrap: nowrap;
  height: 100%; width: max-content;
  animation: bcScroll 34s linear infinite; will-change: transform;
}
.hero-stage .b-center .run {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(15px,2.4vw,28px); letter-spacing: .14em; line-height: 1;
  color: #EAFCFF; text-shadow: 0 0 10px rgba(45,226,230,.9), 0 0 24px rgba(59,91,255,.5);
}
@keyframes bcScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-stage .b-jp {
  right: clamp(8px,4vw,64px); top: 5%; width: clamp(46px,8vw,90px); height: 40%;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, rgba(200,16,46,.32), rgba(11,17,36,.6));
  border: 1px solid rgba(255,59,83,.46);
  box-shadow: 0 0 30px rgba(200,16,46,.42), 0 0 66px rgba(200,16,46,.16), inset 0 0 20px rgba(200,16,46,.26);
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(20px,3.6vw,42px); letter-spacing: .12em;
  color: #FFE7EA; text-shadow: 0 0 12px rgba(255,59,83,.8), 0 0 28px rgba(200,16,46,.5);
}
.hero-stage .b-jp .ah { color: var(--kin); text-shadow: 0 0 16px rgba(232,195,107,.9); }
.hero-stage .b-gold {
  right: clamp(2px,1.5vw,20px); top: 34%; width: clamp(34px,5.4vw,64px); height: 15%; opacity: .42;
  background: linear-gradient(160deg, rgba(232,195,107,.10), rgba(200,16,46,.05));
  box-shadow: 0 0 10px rgba(232,195,107,.13), inset 0 0 9px rgba(232,195,107,.08);
  flex-direction: column; line-height: .9;
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(17px,2.6vw,31px); color: #FFF3D6; text-shadow: 0 0 6px rgba(232,195,107,.42);
}
.hero-stage .b-gold .sm { font-family: var(--font-bebas); font-weight: 400; font-size: .5em; letter-spacing: .2em; color: var(--kin); text-shadow: 0 0 8px rgba(232,195,107,.6); }
.hero-stage .b-chi {
  left: clamp(54px,13vw,180px); top: 54%; width: clamp(34px,5.2vw,62px); height: 22%; opacity: .42;
  writing-mode: vertical-rl;
  background: linear-gradient(180deg, rgba(45,226,230,.10), rgba(138,79,255,.07));
  border: 1px solid rgba(45,226,230,.20);
  box-shadow: 0 0 11px rgba(45,226,230,.14), 0 0 26px rgba(138,79,255,.06), inset 0 0 9px rgba(45,226,230,.08);
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(20px,3.2vw,40px); letter-spacing: .12em;
  color: #DFFCFF; text-shadow: 0 0 7px rgba(45,226,230,.42), 0 0 18px rgba(138,79,255,.2);
}

/* dense neon signs woven between the boards */
.hero-stage .signs { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .5; }
.hero-stage .sign { position: absolute; font-family: var(--font-bebas); letter-spacing: .06em; line-height: .92; white-space: nowrap; user-select: none; animation: neonFlare 6.5s ease-in-out infinite; }
.hero-stage .sign.v { writing-mode: vertical-rl; font-family: var(--font-body); font-weight: 900; letter-spacing: .12em; line-height: 1.05; }
.hero-stage .n-cyan   { color: var(--cyan-lit); text-shadow: 0 0 5px var(--cyan), 0 0 12px rgba(45,226,230,.6), 0 0 22px rgba(45,226,230,.35); }
.hero-stage .n-mag    { color: var(--mag-lit);  text-shadow: 0 0 5px var(--mag), 0 0 12px rgba(255,45,149,.6), 0 0 22px rgba(255,45,149,.35); }
.hero-stage .n-blue   { color: #C9D4FF; text-shadow: 0 0 5px var(--blue), 0 0 12px rgba(59,91,255,.6), 0 0 22px rgba(59,91,255,.35); }
.hero-stage .n-violet { color: #DCC9FF; text-shadow: 0 0 5px var(--violet), 0 0 12px rgba(138,79,255,.6), 0 0 22px rgba(138,79,255,.35); }
.hero-stage .n-shu    { color: #FFD2D9; text-shadow: 0 0 5px var(--aka-lit), 0 0 12px rgba(200,16,46,.6), 0 0 22px rgba(200,16,46,.4); }
.hero-stage .n-gold   { color: var(--kin-lit); text-shadow: 0 0 5px var(--kin), 0 0 12px rgba(232,195,107,.6), 0 0 20px rgba(232,195,107,.35); }
.hero-stage .flick { animation: flick 8s infinite steps(1), neonFlare 6.5s ease-in-out infinite; }
.hero-stage .flick.d2 { animation-delay: 2.4s; animation-duration: 9.5s; }
.hero-stage .flick.d3 { animation-delay: 4.3s; animation-duration: 8.7s; }
@keyframes flick { 0%, 100% { opacity: 1; } 55% { opacity: 1; } 56% { opacity: .6; } 57% { opacity: 1; } 80% { opacity: 1; } 81% { opacity: .72; } 82% { opacity: 1; } }
.hero-stage .g1 { top: 12%; left: 15%; font-size: clamp(15px,2.4vw,31px); font-family: var(--font-body); font-weight: 900; }
.hero-stage .g2 { top: 20%; left: 12%; height: 22%; font-size: clamp(12px,1.7vw,22px); opacity: .78; }
.hero-stage .g3 { top: 52%; left: 3.5%; font-size: clamp(13px,1.8vw,23px); font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; opacity: .72; }
.hero-stage .g4 { top: 11%; right: 16%; font-size: clamp(14px,2.2vw,28px); }
.hero-stage .g5 { top: 22%; right: 13%; height: 20%; font-size: clamp(12px,1.7vw,22px); opacity: .78; }
.hero-stage .g6 { top: 54%; right: 6%; font-size: clamp(13px,1.8vw,23px); font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; opacity: .72; }
.hero-stage .g7 { top: 32%; left: 22%; font-size: clamp(12px,1.6vw,20px); font-family: var(--font-body); font-weight: 700; opacity: .7; }
/* 看板グループのフレアを時間差に（電脳感の散らし） */
.hero-stage .g2 { animation-delay: 1.5s; }
.hero-stage .g3 { animation-delay: 2.7s; }
.hero-stage .g4 { animation-delay: .9s; }
.hero-stage .g5 { animation-delay: 2.1s; }
.hero-stage .g6 { animation-delay: 3.3s; }
.hero-stage .g7 { animation-delay: 1.1s; }

/* ---- z6 TICKER: scrolling electric-blue band ---- */
.hero-stage .ticker {
  position: absolute; left: 0; right: 0; top: 21%; height: clamp(16px,2.4vw,28px); z-index: 6; opacity: .4;
  background: linear-gradient(90deg, rgba(59,91,255,0), rgba(59,91,255,.07) 12%, rgba(59,91,255,.07) 88%, rgba(59,91,255,0));
  border-top: 1px solid rgba(126,146,255,.14); border-bottom: 1px solid rgba(126,146,255,.14);
  overflow: hidden; display: flex; align-items: center; box-shadow: 0 0 10px rgba(59,91,255,.10); pointer-events: none;
}
.hero-stage .ticker .run {
  font-family: var(--font-mono); font-size: clamp(9px,1.3vw,13px);
  letter-spacing: .26em; color: var(--blue-hi); white-space: nowrap; text-shadow: 0 0 4px rgba(59,91,255,.34);
  padding-left: 100%; animation: scroll 60s linear infinite;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---- z7 MOTES: drifting soul particles ---- */
.hero-stage .motes { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: .7; }
.hero-stage .mote {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--cyan-lit); box-shadow: 0 0 6px var(--cyan), 0 0 12px rgba(45,226,230,.55);
  animation: rise 9s linear infinite; opacity: 0;
}
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 14% { opacity: .7; } 86% { opacity: .35; } 100% { transform: translateY(-70vh) scale(1.1); opacity: 0; } }

/* ---- z8 GLITCH sweep + CRT scanlines + vignette ---- */
.hero-stage .glitchbar {
  position: absolute; left: 0; right: 0; height: 2px; top: -10%; z-index: 8; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(45,226,230,.4), rgba(255,45,149,.4), transparent);
  opacity: .28; animation: sweep 16s linear infinite;
}
@keyframes sweep { 0% { top: -4%; } 100% { top: 104%; } }
.hero-stage .scan {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.14) 2px 3px);
  mix-blend-mode: multiply; opacity: .38;
}
.hero-stage .vignette {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(124% 94% at 50% 44%, transparent 52%, rgba(5,7,15,.42) 80%, rgba(5,7,15,.78) 100%);
}

/* ============================================================
   13. HERO 前面コンテンツ — .hero / .tagline / .lead(.line) / glitch / cta-row
   pattern-X の現行値を維持（H1 clamp / 列幅 / .line nowrap / 中央 scrim）。
   ============================================================ */
.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 7vh, 80px) clamp(18px, 5vw, 72px) clamp(24px, 4vh, 48px);
  max-width: clamp(680px, 92vw, 900px);
  margin: 0 auto;
}

/* ---- tagline（Orbitron・発光スイープ）---- */
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-orbitron);
  font-weight: 700;
  font-size: clamp(18px, 3.4vw, 34px);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2.8vh, 28px);
  animation: tagReveal var(--duration-slow) cubic-bezier(.2, .7, .2, 1) both;
}
/* H1 直下に置く版（上に余白を取り、下は控えめに） */
.tagline--below { margin-top: clamp(14px, 2.4vh, 24px); margin-bottom: clamp(20px, 3.2vh, 32px); }
.tagline::before {
  content: ""; width: clamp(34px, 5vw, 64px); height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 10px var(--cyan); flex: 0 0 auto;
}
.tagline .blink { width: 9px; height: 9px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 14px var(--mag); animation: blink 1.6s steps(1) infinite; flex: 0 0 auto; }
.tag-txt {
  background: linear-gradient(100deg, var(--cyan-hi) 0%, #FFFFFF 22%, var(--mag-hi) 48%, var(--cyan-hi) 74%, #FFFFFF 100%);
  background-size: 240% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 10px rgba(45,226,230,.55)) drop-shadow(0 0 20px rgba(255,45,149,.30));
  animation: tagSheen 4.8s linear infinite;
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@keyframes tagSheen { to { background-position: 240% center; } }
@keyframes tagReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---- colossal lead H1 with minimal centered scrim ---- */
.lead-wrap { position: relative; margin-bottom: clamp(22px, 3.6vh, 38px); }
/* very soft CENTERED legibility wash — minimal so it never reads as a dark blob */
.lead-wrap::before {
  content: ""; position: absolute; left: -12%; right: -12%; top: -22%; bottom: -22%; z-index: -1;
  background: radial-gradient(80% 115% at 50% 50%, rgba(5,7,15,.30) 0%, rgba(5,7,15,.13) 58%, transparent 84%);
  filter: blur(30px);
}
/* neon underline sweep */
.lead-wrap::after {
  content: ""; position: absolute; left: -2%; bottom: -7%; height: 2px; width: 0; z-index: 1;
  background: linear-gradient(90deg, var(--cyan), var(--mag), transparent);
  box-shadow: 0 0 14px rgba(45,226,230,.8), 0 0 28px rgba(255,45,149,.4);
  animation: leadUnderline 1.0s 1.05s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes leadUnderline { 0% { width: 0; opacity: 0; } 100% { width: 62%; opacity: 1; } }

/* the colossal hero headline — H1 clamp + per-line nowrap (pattern-X 現行値).
   .hero-lead をヒーロー H1 専用クラスにする（セクション .lead と衝突させない）。
   後方互換: .hero 内に直接 .lead を置いた場合も拾う。 */
.hero-lead,
.hero .hero-lead,
.hero > .lead-wrap > .lead {
  position: relative;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(46px, 10.5vw, 104px);
  line-height: .98;
  letter-spacing: .004em;
  color: var(--ink);
  max-width: none;
  margin-top: 0;
}
.hero-lead .line,
.hero > .lead-wrap > .lead .line {
  display: block; position: relative; white-space: nowrap; opacity: 0;
  text-shadow:
    0 0 2px rgba(243,236,255,.98),
    0 0 14px rgba(255,77,166,.5),
    0 0 36px rgba(255,45,149,.3),
    0 0 66px rgba(59,91,255,.24),
    0 2px 30px rgba(5,7,15,.99);
  animation: lineIn .8s cubic-bezier(.2,.8,.2,1) both, neonBreath 3.6s ease-in-out infinite;
}
.hero-lead .line:nth-child(1) { animation-delay: .15s, 1.0s; }
.hero-lead .line:nth-child(2) { animation-delay: .40s, 1.18s; }
.hero-lead .line:nth-child(3) { animation-delay: .65s, 1.34s; }
@keyframes lineIn { 0% { opacity: 0; transform: translateY(18px); } 50% { opacity: 1; } 58% { opacity: .7; } 66% { opacity: 1; } 100% { opacity: 1; transform: translateY(0); } }
@keyframes neonBreath { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.1) saturate(1.06); } }
/* single brand red 朱 line + cyan line accents */
.hero-lead .w-aka {
  color: #FFE3E8;
  text-shadow: 0 0 3px rgba(255,227,232,.95), 0 0 20px rgba(200,16,46,.92), 0 0 54px rgba(226,51,76,.55), 0 2px 28px rgba(5,7,15,.94);
}
.hero-lead .w-cyan {
  color: var(--cyan-hi);
  text-shadow: 0 0 3px rgba(127,242,244,.95), 0 0 24px rgba(45,226,230,.8), 0 0 60px rgba(45,226,230,.45), 0 2px 28px rgba(5,7,15,.94);
}
/* tasteful RGB glitch split — restrained, message-first */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-t); position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; will-change: transform, clip-path;
}
.glitch::before { color: var(--cyan); text-shadow: 0 0 16px var(--cyan); animation: glx 6.5s steps(1) infinite; }
.glitch::after  { color: var(--mag);  text-shadow: 0 0 16px var(--mag);  animation: glx2 6.5s steps(1) infinite; }
@keyframes glx { 0%, 90%, 100% { opacity: 0; transform: none; clip-path: inset(0); } 91% { opacity: .7; transform: translate(-2px,-1px); clip-path: inset(0 0 64% 0); } 94% { opacity: .7; transform: translate(2px,1px); clip-path: inset(54% 0 14% 0); } 96% { opacity: 0; transform: none; clip-path: inset(0); } }
@keyframes glx2 { 0%, 90%, 100% { opacity: 0; transform: none; clip-path: inset(0); } 91% { opacity: .65; transform: translate(2px,1px); clip-path: inset(0 0 70% 0); } 94% { opacity: .65; transform: translate(-2px,-1px); clip-path: inset(46% 0 26% 0); } 96% { opacity: 0; transform: none; clip-path: inset(0); } }
/* gentle scanline band over the type block */
.hero-lead::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 0; bottom: 0; pointer-events: none;
  mix-blend-mode: overlay; opacity: .32;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(45,226,230,.14) 3px 4px);
}

/* hero sub-lead copy */
.hero .lead,
.hero-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: clamp(22px, 3.6vh, 36px);
  font-weight: 400;
}
.hero .lead b,
.hero-sub b { color: var(--ink); font-weight: 700; }
.hero .lead .hl,
.hero-sub .hl { color: var(--cyan-hi); font-weight: 500; }

/* hero CTA row */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
/* PRICE の価格直後に置いた CTA 行は中央寄せ（.price-table の後続 sibling を狙う） */
.section-inner > .price-table ~ .cta-row { justify-content: center; }

/* ============================================================
   14. SLIVER — manifesto + trust numbers（hero 直下の信頼帯）
   ============================================================ */
.sliver {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(5,7,15,.58), rgba(5,7,15,.86));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sliver::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--mag), var(--cyan), transparent); opacity: .6;
}
.sliver-in {
  max-width: clamp(680px, 92vw, 900px); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 3vw, 28px);
  padding: 16px clamp(18px, 5vw, 72px);
}
.manifesto { display: flex; align-items: center; gap: 14px; flex: none; }
.manifesto .glyph {
  font-family: var(--font-mincho); font-weight: 900; font-size: 1.5em;
  color: var(--aka-hi); text-shadow: 0 0 14px rgba(255,59,83,.7), 0 0 30px rgba(200,16,46,.4); line-height: 1;
}
.manifesto .line {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(15px, 1.9vw, 20px);
  color: var(--ink); letter-spacing: .02em; text-shadow: 0 0 10px rgba(59,91,255,.4);
}
.manifesto .line em { font-style: normal; color: var(--cyan-hi); text-shadow: 0 0 12px rgba(45,226,230,.6); }
/* sliver trust numbers reuse the .stats / .stat / .stat-num vocabulary */
.sliver .stats { margin-left: auto; }

/* ============================================================
   15. RESPONSIVE — header / hero / cards (375 / 768 / 1200+)
   ============================================================ */

/* tablet & down: nav collapses, hamburger shows */
@media (max-width: 768px) {
  .global-nav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    z-index: var(--z-overlay);
    display: block;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(7,10,20,.98), rgba(7,10,20,.96));
    -webkit-backdrop-filter: var(--nav-blur);
    backdrop-filter: var(--nav-blur);
    border-bottom: 1px solid var(--hair);
    transition: max-height var(--duration-base) var(--ease);
  }
  .global-nav.is-open { max-height: 80vh; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm) var(--gutter) var(--space-lg);
  }
  .nav-list li { border-bottom: 1px solid var(--hair); }
  .nav-link { display: block; padding: var(--space-md) 0; font-size: var(--text-lg); }
  .nav-link::after { display: none; }
  .nav-list .nav-cta.btn { margin-top: var(--space-md); }
  .nav-toggle { display: inline-flex; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* mobile: hero scales down, CTA stacks, sliver wraps, heavy stage decor culled */
@media (max-width: 680px) {
  .hero { min-height: calc(100vh - var(--nav-height)); justify-content: center; padding-top: clamp(22px, 7vh, 44px); }
  .hero-lead { font-size: clamp(38px, 12vw, 56px); line-height: 1.02; }
  .hero-lead .line { white-space: normal; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; width: 100%; }
  .sliver-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sliver .stats { margin-left: 0; gap: 14px; }
  .manifesto { flex-wrap: wrap; }

  /* SP: cull the heavy stage decorations (keep the core scene readable) */
  .hero-stage .b-center { width: 60vw; font-size: 7vw; }
  .hero-stage .b-robo,
  .hero-stage .b-gold,
  .hero-stage .b-chi,
  .hero-stage .g2,
  .hero-stage .g3,
  .hero-stage .g5,
  .hero-stage .g6,
  .hero-stage .g7 { display: none; }
  .hero-stage .sun { width: 84vw; height: 84vw; top: 42%; }

  .stats { gap: var(--space-md); }
  .price-grid { grid-template-columns: 1fr; }
}

/* desktop wide */
@media (min-width: 1200px) {
  .footer-inner { gap: var(--space-3xl); }
}

/* ============================================================
   16. PREFERS-REDUCED-MOTION — 過剰アニメ抑制（hero stage / components）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero-stage .stars,
  .hero-stage .sun,
  .hero-stage .ticker .run,
  .hero-stage .glitchbar,
  .hero-stage .mote,
  .hero-stage .board,
  .hero-stage .b-center .b-led,
  .hero-stage .streak,
  .hero-stage .run-r,
  .hero-stage .run-l,
  .hero-stage .flick,
  .hero-stage .sign,
  .tagline .blink,
  .tagline,
  .tag-txt,
  .glitch::before,
  .glitch::after { animation: none !important; }

  .hero-lead .line { opacity: 1 !important; transform: none !important; animation: none !important; filter: none !important; }
  .lead-wrap::after { animation: none !important; width: 60% !important; opacity: 1 !important; }
  .hero-stage .ticker .run { padding-left: 0; }
  .hero-stage .streak { opacity: .7 !important; transform: none !important; }

  /* component hovers keep the visual change but drop the motion */
  .btn:hover,
  .card:hover,
  .price-plan:hover,
  .nav-toggle:hover { transform: none !important; }
  .btn-primary::before { transition: none !important; }
}

/* ============================================================
   17. PAGE LAYOUT HELPERS — minimal additions (index 等のセクション内補助)
   ------------------------------------------------------------
   Small layout-only helpers the index page needs but that the
   phase6_kit (E) vocabulary did not enumerate. No new colours/fonts —
   all spacing via tokens. Kept minimal and clearly scoped.
     .section-cta : section 末尾の CTA 行（grid/本文との間隔）
     .prep / .reps: PREP 論理ブロック・代表サービス補足の本文ラッパ（prose 幅）
     .hero-note   : hero 下端の控えめ注記（弱色・小）
   ============================================================ */
.section-cta { margin-top: var(--space-xl); text-align: center; }
.prep,
.reps { margin-top: var(--space-lg); }
.prep p + p,
.reps p + p { margin-top: var(--space-md); }
.hero-note {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--ink-faint);
  letter-spacing: var(--tracking-wide);
}

/* ============================================================
   18. VISUAL SLOT — 可視プレースホルダ枠（画像未挿入の“枠＋説明”）
   ------------------------------------------------------------
   役割: 実画像が入る予定の「空き枠」。実 <img src> はまだ入れない。
   一目で「ここに画像が入る／何の画像か」が分かるよう、ダーク地 +
   ネオンの破線 + 二重罫 + 淡いグロウ + 角のフレーム/カメラ風装飾で
   neon-city に馴染ませた工事中（枠）の質感を作る。
   構成: <figure class="visual-slot vs-16x9"> 内に
     .vs-ico   幾何グリフ（aria-hidden）
     .vs-tag   mono の小ラベル（例 "VISUAL · 16:9"・cyan）
     .vs-title 何の画像か（太め・AA）
     .vs-desc  1行アイデア（--ink-soft・AA）
   アスペクト比は .vs-16x9 / .vs-4x3 / .vs-1x1 / .vs-3x4 / .vs-21x9。
   強弱は .visual-slot--feature（主役・大きめ発光）。
   色は全て var() 経由（新色なし）。Phase 6-2 が IMAGE-SLOT マーカーで
   後から実画像を流し込む前提のプレースホルダ。
   ============================================================ */
.visual-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  width: 100%;
  min-height: 180px;                 /* aspect-ratio が潰れても確保する保険 */
  padding: clamp(20px, 3vw, 40px);
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* 二重罫（外: ヘアライン / 内: シアン破線）+ 落ち着いたダーク地 */
  border: 1px solid var(--hair-strong);
  background:
    linear-gradient(180deg, rgba(11, 19, 34, .72), rgba(8, 12, 26, .9)),
    var(--bg-2);
  box-shadow:
    inset 0 0 0 1px rgba(7, 10, 20, .6),     /* 二重罫の谷（外罫と内破線の間） */
    inset 0 0 40px rgba(45, 226, 230, .05),  /* 内側の淡いシアングロウ */
    var(--card-shadow);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}
/* 内側のネオン破線罫（::before）— 画像が入る“窓”を示す */
.visual-slot::before {
  content: "";
  position: absolute;
  inset: clamp(8px, 1.2vw, 14px);
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px dashed var(--hair-cyan);
  pointer-events: none;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
/* 角のフレーム/カメラ風装飾（::after）— 4 隅の L 字コーナークロップ記号 */
.visual-slot::after {
  content: "";
  position: absolute;
  inset: clamp(8px, 1.2vw, 14px);
  border-radius: 2px;
  pointer-events: none;
  /* 4 隅だけに L 字が残るよう、辺の中央をマスクで抜く */
  border: 0;
  background:
    /* 上辺・下辺の角だけ残す（左右端から内側へ伸びる短い罫） */
    linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px) top left / 50% 2px no-repeat,
    linear-gradient(-90deg, var(--cyan) 0 18px, transparent 18px) top right / 50% 2px no-repeat,
    linear-gradient(90deg, var(--cyan) 0 18px, transparent 18px) bottom left / 50% 2px no-repeat,
    linear-gradient(-90deg, var(--cyan) 0 18px, transparent 18px) bottom right / 50% 2px no-repeat,
    /* 左辺・右辺の角だけ残す（上下端から内側へ伸びる短い罫） */
    linear-gradient(180deg, var(--cyan) 0 18px, transparent 18px) top left / 2px 50% no-repeat,
    linear-gradient(180deg, var(--cyan) 0 18px, transparent 18px) top right / 2px 50% no-repeat,
    linear-gradient(0deg, var(--cyan) 0 18px, transparent 18px) bottom left / 2px 50% no-repeat,
    linear-gradient(0deg, var(--cyan) 0 18px, transparent 18px) bottom right / 2px 50% no-repeat;
  filter: drop-shadow(0 0 4px rgba(45, 226, 230, .5));
  opacity: .8;
}
/* hover: 罫線がわずかに発光（transition のみ・reduced-motion 不要） */
.visual-slot:hover {
  border-color: var(--hair-cyan);
  box-shadow:
    inset 0 0 0 1px rgba(7, 10, 20, .6),
    inset 0 0 56px rgba(45, 226, 230, .1),
    0 0 22px rgba(45, 226, 230, .22),
    var(--card-shadow);
}
.visual-slot:hover::before { border-color: var(--cyan); box-shadow: 0 0 14px rgba(45, 226, 230, .25); }
.visual-slot:hover::after  { opacity: 1; }

/* ---- 内部要素（縦中央寄せ・全て AA を満たす配色）---- */
.visual-slot > * { position: relative; z-index: 1; }

/* 幾何グリフ（カメラ/フレーム記号・装飾なので aria-hidden 前提） */
.vs-ico {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1;
  color: var(--cyan-hi);
  text-shadow: 0 0 12px rgba(45, 226, 230, .45);
  margin-bottom: var(--space-3xs);
}

/* mono の小ラベル（"VISUAL · 16:9" 等）— cyan HUD タグ */
.vs-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--cyan-hi);                       /* on dark ≈ AA 以上 */
  text-shadow: 0 0 8px rgba(45, 226, 230, .4);
  padding: 3px 10px;
  border: 1px solid var(--hair-cyan);
  border-radius: var(--radius-pill);
  background: rgba(45, 226, 230, .06);
}

/* 何の画像か（太め・本文 primary 配色で確実に AA） */
.vs-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--ink);
  max-width: 32ch;
  text-shadow: 0 2px 16px rgba(5, 7, 15, .6);
}

/* 1 行アイデア（サブコピー・--ink-soft で AA） */
.vs-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--ink-soft);
  max-width: 40ch;
}

/* ---- アスペクト比バリアント（min-height 保険で潰れない）---- */
.vs-16x9 { aspect-ratio: 16 / 9; }
.vs-4x3  { aspect-ratio: 4 / 3; }
.vs-1x1  { aspect-ratio: 1 / 1; }
.vs-3x4  { aspect-ratio: 3 / 4;  min-height: 280px; }
.vs-21x9 { aspect-ratio: 21 / 9; min-height: 160px; }

/* ---- feature 強弱（主役・大きめ発光 + マゼンタ寄りの二色罫）---- */
.visual-slot--feature {
  border-color: var(--hair-cyan);
  background:
    linear-gradient(180deg, rgba(45, 226, 230, .06), rgba(8, 12, 26, .92)),
    var(--bg-panel);
  box-shadow:
    inset 0 0 0 1px rgba(7, 10, 20, .6),
    inset 0 0 64px rgba(45, 226, 230, .1),
    0 8px 36px rgba(5, 7, 15, .55),
    var(--glow-cyan);
}
.visual-slot--feature::before { border-color: var(--cyan); box-shadow: 0 0 12px rgba(45, 226, 230, .2); }
.visual-slot--feature::after {
  /* feature はコーナーをマゼンタに寄せて主役感を出す */
  background:
    linear-gradient(90deg, var(--mag) 0 22px, transparent 22px) top left / 50% 2px no-repeat,
    linear-gradient(-90deg, var(--mag) 0 22px, transparent 22px) top right / 50% 2px no-repeat,
    linear-gradient(90deg, var(--mag) 0 22px, transparent 22px) bottom left / 50% 2px no-repeat,
    linear-gradient(-90deg, var(--mag) 0 22px, transparent 22px) bottom right / 50% 2px no-repeat,
    linear-gradient(180deg, var(--mag) 0 22px, transparent 22px) top left / 2px 50% no-repeat,
    linear-gradient(180deg, var(--mag) 0 22px, transparent 22px) top right / 2px 50% no-repeat,
    linear-gradient(0deg, var(--mag) 0 22px, transparent 22px) bottom left / 2px 50% no-repeat,
    linear-gradient(0deg, var(--mag) 0 22px, transparent 22px) bottom right / 2px 50% no-repeat;
  filter: drop-shadow(0 0 5px rgba(255, 45, 149, .55));
  opacity: .9;
}
.visual-slot--feature .vs-ico    { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); color: var(--cyan-lit); }
.visual-slot--feature .vs-title  { font-size: var(--text-2xl); }
.visual-slot--feature .vs-desc   { font-size: var(--text-base); }
.visual-slot--feature:hover {
  border-color: var(--cyan);
  box-shadow:
    inset 0 0 0 1px rgba(7, 10, 20, .6),
    inset 0 0 72px rgba(45, 226, 230, .14),
    0 14px 44px rgba(5, 7, 15, .6),
    0 0 30px rgba(45, 226, 230, .35);
}

/* ---- SP: feature 見出しを 1 段落とし、3x4 の最小高を緩和 ---- */
@media (max-width: 520px) {
  .visual-slot--feature .vs-title { font-size: var(--text-xl); }
  .vs-3x4 { min-height: 240px; }
}

/* ============================================================
   18b. VISUAL SLOT — SAMPLE 画像入り状態（.has-sample）
   ------------------------------------------------------------
   役割: Phase 6-2 で実画像が入る前の「サンプル可視化」状態。
   .visual-slot 内に <img class="vs-sample">（または <svg>）を置き、
   .has-sample を付けると：
     - 画像が枠いっぱい（object-fit:cover）に表示される
     - 旧プレースホルダ要素（.vs-ico / .vs-desc）は非表示
     - 右上に mono の「SAMPLE」ネオンバッジ（.vs-badge）
     - 下部に半透明グラデの字幕（.vs-cap=.vs-title）で「何の画像か」
   画像なしの従来枠（.vs-ico / .vs-tag / .vs-title / .vs-desc）は
   そのまま機能する（後方互換）。色は全て var() 経由（新色なし）。
   ============================================================ */

/* 画像本体: 枠いっぱい（aspect-ratio バリアントはそのまま効く） */
.vs-sample {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* 角の内破線（::before）が見えるよう、画像をわずかに内側へ収める */
  border-radius: calc(var(--radius-lg) - 6px);
}

/* has-sample: 画像が窓いっぱいに広がるよう padding/flex を解除し、
   .vs-sample を背面レイヤとして敷き、バッジ/字幕だけ前面に重ねる */
.visual-slot.has-sample {
  display: block;                 /* flex 中央寄せを解除（画像を敷く） */
  padding: 0;                     /* 余白ゼロで枠いっぱい */
  border-color: transparent;      /* 外枠（実線ヘアライン）を消す */
  background: none;               /* 二重罫グラデ地も消す（画像が覆う） */
  box-shadow: var(--card-shadow); /* 枠は無し・落ち影だけで浮きを防ぐ */
}
/* has-sample では装飾フレームを出さない（内側破線 ::before / 四隅Lコーナー ::after） */
.visual-slot.has-sample::before,
.visual-slot.has-sample::after {
  display: none;
}
/* hover 時の枠発光も無効化（枠が無いため） */
.visual-slot.has-sample:hover {
  border-color: transparent;
  box-shadow: var(--card-shadow);
}

/* has-sample 状態では旧プレースホルダの説明系を隠す
   ＋ SAMPLE バッジ・下部字幕キャプションも非表示（画像だけをクリーンに表示） */
.visual-slot.has-sample .vs-ico,
.visual-slot.has-sample .vs-tag,
.visual-slot.has-sample .vs-desc,
.visual-slot.has-sample .vs-cap,
.visual-slot.has-sample .vs-badge {
  display: none;
}

/* .vs-sample は他の重ね要素の下に敷く（position:relative の z-index:1 を打ち消す） */
.visual-slot.has-sample .vs-sample {
  position: absolute;
  inset: 0;                       /* 枠を消したぶん、フチまでクリーンに敷く */
  width: 100%;
  height: 100%;
  object-fit: cover;              /* スロットいっぱいに敷き詰める */
  transform: scale(1);            /* 拡大クロップを解除し、16:9 サンプルを全面表示（端の要素を切らない） */
  transform-origin: center;
  border-radius: var(--radius-lg);/* スロット外周の角丸に合わせる */
  z-index: 0;                     /* バッジ/字幕より背面 */
}

/* 主役ヒーロー画像は本文カラムより広げて大きく見せる（transform 不使用＝data-anim の入場アニメと非干渉） */
.section-inner > .visual-slot--feature.vs-16x9.has-sample {
  width: min(94vw, 1360px);
  max-width: none;
  margin-left: calc(50% - min(47vw, 680px));
  margin-right: calc(50% - min(47vw, 680px));
}
@media (max-width: 720px) {
  .section-inner > .visual-slot--feature.vs-16x9.has-sample {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* 右上の SAMPLE バッジ（mono・ネオン）— AA: cyan-lit on 暗ガラス地 */
.vs-badge {
  position: absolute;
  top: clamp(10px, 1.4vw, 16px);
  right: clamp(10px, 1.4vw, 16px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--cyan-lit);                       /* on 暗ガラス ≈ AA 以上 */
  text-shadow: 0 0 8px rgba(45, 226, 230, .55);
  padding: 3px 10px;
  border: 1px solid var(--hair-cyan);
  border-radius: var(--radius-pill);
  background: rgba(7, 10, 20, .62);             /* 暗ガラスで画像上でも読める */
  backdrop-filter: blur(3px);
  box-shadow: 0 0 12px rgba(45, 226, 230, .28);
}

/* 下部の字幕（半透明グラデ）に vs-title を載せる — 何の画像か一目で */
.visual-slot.has-sample .vs-cap,
.vs-cap {
  position: absolute;
  left: clamp(8px, 1.2vw, 14px);
  right: clamp(8px, 1.2vw, 14px);
  bottom: clamp(8px, 1.2vw, 14px);
  z-index: 2;
  margin: 0;
  max-width: none;                              /* 旧 vs-title の 32ch 制限を解除 */
  padding: clamp(10px, 1.6vw, 16px) clamp(12px, 1.8vw, 18px) clamp(9px, 1.4vw, 14px);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  color: var(--ink);                            /* on 黒グラデ ≈ AAA */
  text-shadow: 0 2px 12px rgba(5, 7, 15, .9);
  border-bottom-left-radius: calc(var(--radius-lg) - 7px);
  border-bottom-right-radius: calc(var(--radius-lg) - 7px);
  /* 下から立ち上がる黒グラデ（上は透明）で AA を担保 */
  background: linear-gradient(
    0deg,
    rgba(5, 7, 15, .92) 0%,
    rgba(5, 7, 15, .78) 42%,
    rgba(5, 7, 15, 0) 100%
  );
  /* 字幕上端に細いシアン罫（HUD 風） */
  border-top: 1px solid var(--hair-cyan);
}

/* hover: 画像入りでも軽く発光（::before のシアン罫が締まる） */
.visual-slot.has-sample:hover .vs-cap { border-top-color: var(--cyan); }
.visual-slot.has-sample:hover .vs-badge {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(45, 226, 230, .4);
}

/* feature 強弱: バッジ/字幕罫をマゼンタ寄りに（主役感） */
.visual-slot--feature.has-sample .vs-badge {
  color: var(--mag-lit);
  border-color: var(--hair-mag);
  text-shadow: 0 0 8px rgba(255, 45, 149, .55);
  box-shadow: 0 0 12px rgba(255, 45, 149, .28);
}
.visual-slot--feature.has-sample .vs-cap { border-top-color: var(--hair-mag); }
.visual-slot--feature.has-sample:hover .vs-cap { border-top-color: var(--mag); }

/* SP: 字幕とバッジを一段小さく（横スクロール/潰れ防止） */
@media (max-width: 520px) {
  .visual-slot.has-sample .vs-cap { font-size: var(--text-sm); }
  .vs-badge { font-size: 0.62rem; padding: 2px 8px; }
}

/* ============================================================
   19. MINOR ADDITIONS — 後方互換の微調整（既存ルール非破壊）
   ------------------------------------------------------------
   既存セレクタの上書きは footer 極小ラベルの可読性向上のみ。
   その他は新規 modifier / utility / token の追加で、既定挙動は不変。
   色・余白・フォント・行長はすべて var() 経由（tokens.css 不変）。
   ============================================================ */

/* ---- 19.1 footer 極小 mono ラベルの可読性向上 ----
   会社名/連絡先など footer の極小ラベルを視認しやすく。
   color を --ink-faint -> --ink-soft（コントラスト UP）、
   size を --text-xs -> --text-sm、letter-spacing をわずかに緩める。
   ※ footer 内のみ。.crumbs（パンくず）は対象外で現状維持。
   ※ .footer-copy はコピーライト微細表示のため現状の控えめ配色を保持。 */
.site-footer .footer-company,
.site-footer .footer-contact {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  letter-spacing: var(--tracking-normal);
}

/* ---- 19.2 section-head 左寄せ modifier ----
   既定の中央寄せ（.section-head）は不変。利用は各ページ側の任意。
   eyebrow / lead / rule-gold の中央起点を左起点に戻す。 */
.section-head--left { text-align: left; }
.section-head--left .lead { margin-inline: 0; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-head--left .rule-gold { margin-inline: 0; }

/* ---- 19.3 和文リード行長トークン ----
   英文基準の 90ch は和文では長すぎるため、和文向けの行長目安を定義。
   --measure-lead は components.css ローカル定義（tokens.css は不変）。
   .lead の max-width をこのトークンに寄せる（既存 90ch の是正）。
   ※ hero 専用 .hero-lead / .hero .lead は対象外（独自 max-width を維持）。 */
:root { --measure-lead: 42em; }
.lead { max-width: var(--measure-lead); }

/* ---- 19.4 非対称グリッド用ユーティリティ（bento）----
   既存 .card-grid--2/--3/--4 は不変。--bento は 1 枚を span 2 にできる
   非対称グリッド。PC で 3 列、先頭セルを横 2 マス占有させる用途等に。
   子要素に .is-span-2 を付けると 2 カラム占有（SP では 1 列に畳む）。 */
.card-grid--bento { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
@media (min-width: 769px) {
  .card-grid--bento { grid-template-columns: repeat(3, 1fr); }
  .card-grid--bento > .is-span-2 { grid-column: span 2; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid--bento { grid-template-columns: repeat(2, 1fr); }
  .card-grid--bento > .is-span-2 { grid-column: span 2; }
}
@media (max-width: 520px) {
  .card-grid--bento { grid-template-columns: 1fr; }
  .card-grid--bento > .is-span-2 { grid-column: auto; }
}

/* ---- 19.3 mono ラベル一回り拡大（可読性）----
   パンくず・VISUALタグ等の極小 mono ラベルを 1 段大きく（xs→sm）。
   .eyebrow は既に base、hero-stage の装飾ラベルは FV の一部のため対象外。 */
.crumbs { font-size: var(--text-sm); }
.vs-tag { font-size: var(--text-sm); }

/* ---- 20. グローバルナビ: サービス メガメニュー（ドロップダウン）----
   デスクトップ: hover / focus-within で展開。モバイル(<=768px): 縦パネル内に展開表示。 */
.nav-has-sub { position: relative; }
.nav-sub::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 16px; }
.nav-sub {
  position: absolute; top: calc(100% + 10px); left: 0; right: auto; transform: translateY(6px);
  width: min(680px, 92vw);
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, rgba(11,17,32,.98), rgba(7,10,20,.98));
  border: 1px solid var(--hair-cyan); border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 24px 64px rgba(5,7,15,.6), inset 0 0 24px rgba(45,226,230,.05);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease);
  z-index: 200;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
/* hover bridge directly under the trigger: keeps the hover chain unbroken while the
   cursor travels from the "サービス" link down to the dropdown (covers the header
   bottom-padding dead zone + the 10px gap). Only active while the menu is open, so it
   never blocks clicks on the page below when closed. */
.nav-has-sub > .nav-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
  pointer-events: none;
}
.nav-has-sub:hover > .nav-link::before,
.nav-has-sub:focus-within > .nav-link::before { pointer-events: auto; }
.nav-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.nav-sub-col { display: flex; flex-direction: column; gap: 7px; }
.nav-sub-head { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wider); color: var(--cyan-hi); margin-bottom: 4px; }
.nav-sub a { font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-soft); padding: 3px 0; transition: color var(--duration-fast) var(--ease); }
.nav-sub a:hover { color: var(--cyan-hi); }
.nav-sub a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.nav-sub-foot { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--hair); }
.nav-sub-foot a { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--cyan-hi); padding: 8px 14px; border: 1px solid var(--hair-cyan); border-radius: var(--radius-pill); background: rgba(45, 226, 230, .06); transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease); }
.nav-sub-foot a:hover { background: rgba(45, 226, 230, .14); border-color: var(--cyan); color: var(--cyan-lit); box-shadow: 0 0 14px rgba(45, 226, 230, .22); }

@media (max-width: 768px) {
  .nav-sub {
    position: static; transform: none; width: auto; opacity: 1; visibility: visible; pointer-events: auto;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    padding: var(--space-sm) 0 var(--space-md) var(--space-md);
  }
  .nav-sub::before { display: none; }
  .nav-has-sub > .nav-link::before { display: none; }
  .nav-sub-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .nav-sub a { font-size: var(--text-base); padding: 6px 0; }
  .nav-sub-foot { flex-direction: column; gap: var(--space-2xs); }
  .global-nav.is-open { overflow-y: auto; }
}

/* ---- 21. ISSUE 共通根（Human-First反転）：services 等で使用（旧 index 局所から移設）---- */
.issue-root { max-width: 56ch; margin: var(--space-xl) auto 0; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, .95rem + 1vw, 1.6rem); line-height: 1.6; color: var(--ink); }
.issue-root b { color: var(--aka-hi); }
.issue-root .em-cyan { color: var(--cyan-hi); text-shadow: 0 0 12px rgba(45,226,230,.4); }

/* ---- 22. em-aka を優しいネオン系へ（全体）：tokens.css 不変のまま :root で上書き ----
   旧 #FF3B53（強い赤）→ #FF6B6B（柔らかいネオン・レッド）。
   em-aka 文字強調・field-error・CTA hi が一括で優しくなる（CTA基色 --aka #C8102E は据え置き）。 */
:root { --aka-hi: #FF6B6B; --aka-lit: #FF6B6B; }

/* ---- 23. 導入の流れ（intro-flow 週次タイムライン）：services 等で使用（旧 index 局所より移設）---- */
.intro-flow { margin-top: var(--space-xl); }
.intro-flow-h { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--ink); margin-bottom: var(--space-lg); }
.if-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
.if-steps li { background: linear-gradient(180deg, rgba(13,19,34,.6), rgba(8,12,26,.6)); border: 1px solid var(--hair); border-left: 3px solid var(--cyan); border-radius: 12px; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-3xs); }
.if-steps .if-w { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: var(--tracking-wider); color: var(--cyan-hi); }
.if-steps b { font-size: var(--text-lg); color: var(--ink); }
.if-steps li > span:last-child { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.6; }
.if-deliver { margin: var(--space-lg) auto 0; max-width: 64ch; text-align: center; color: var(--ink-soft); line-height: 1.8; }
.if-deliver b { color: var(--cyan-hi); margin-right: .5em; }
@media (max-width: 760px) { .if-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .if-steps { grid-template-columns: 1fr; } }

/* ============================================================
   モバイル: 見出し（H1/H2/H3・タイトルクラス）をできるだけ 1 行に。
   横方向の隙間（左右ガター・字間）を最小化し、見出しの表示幅を最大化する。
   ※ white-space:nowrap は横スクロール（はみ出し）を生むため使わない＝折返しは許容。
   ============================================================ */
@media (max-width: 520px) {
  /* セクション左右ガターを縮小（既定 clamp(18px,5vw,72px) → 約11–14px） */
  .section-inner { padding-inline: clamp(11px, 3.2vw, 14px); }
  /* 見出しの字間を詰めて横のアキを最小化（和文は palt 併用で更に詰まる） */
  .section-title,
  .section-subtitle,
  .card-title,
  h1, h2, h3 { letter-spacing: -0.02em; }
}

/* ============================================================
   マスコット「ヨロ」= 生きたAIアバター（Tier 0 演出）
   静止画 yoro-mascot.png を「ホログラム投影された生きているAI」に見せる。
   呼吸/浮遊・走査線/掃引・フリッカー・投影ベース光・HUD/波形・パーティクル(JS)・視線3Dパララックス(JS)。
   モーションは prefers-reduced-motion: reduce で全停止。
   ============================================================ */
.yoro-figure { perspective: 900px; }              /* 視線パララックスの 3D 奥行き（JS が figure を傾ける） */
.yoro-av { isolation: isolate; }                  /* screen ブレンドを枠内に閉じる */
.yoro-av .vs-cap { z-index: 5; }                  /* 字幕を演出レイヤーより前面へ */

/* 立ち上がる投影ベースの光（下からのグロー） */
.yoro-av::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px; width: 78%; height: 26%;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 100%, rgba(45, 226, 230, .45), rgba(45, 226, 230, 0) 70%);
  filter: blur(2px); pointer-events: none; z-index: 1;
  animation: yoroBase 3.6s ease-in-out infinite;
}

/* キャラ本体：呼吸（上下＋微スケール）＋ホログラム調の発色 */
.yoro-av .vs-sample {
  transform-origin: 50% 60%;
  animation: yoroFloat 5.2s ease-in-out infinite;
  filter: saturate(1.08) contrast(1.03) drop-shadow(0 0 10px rgba(45, 226, 230, .25));
}
/* has-sample は <img>（replaced 要素）に width/height:auto を当てるため、画像は intrinsic
   サイズ（137px）で表示され枠より小さくなる。アバターは枠の内側いっぱいに満たす。
   （filter/animation は上の (0,2,0) ルールに残し、is-speaking/glitch の上書きを壊さない） */
.visual-slot.yoro-av.has-sample .vs-sample {
  inset: clamp(8px, 1.2vw, 14px);
  width: calc(100% - clamp(16px, 2.4vw, 28px));
  height: calc(100% - clamp(16px, 2.4vw, 28px));
  object-fit: cover;
  object-position: center top;
}

/* 走査線＋上下に流れる掃引バンド（ホログラム） */
.yoro-scan {
  position: absolute; inset: clamp(8px, 1.2vw, 14px);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none; z-index: 3; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(45, 226, 230, .06) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen; opacity: .5;
  animation: yoroFlicker 4.5s steps(60) infinite;
}
.yoro-scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 28%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(134, 242, 244, .18), transparent);
  animation: yoroSweep 3.8s linear infinite;
}

/* HUD：ONLINE ステータス＋波形 */
.yoro-hud {
  position: absolute; top: 10px; left: 10px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--cyan-hi); text-shadow: 0 0 8px rgba(45, 226, 230, .6);
  padding: 3px 8px; border: 1px solid var(--hair-cyan);
  border-radius: var(--radius-pill); background: rgba(5, 7, 15, .45);
}
.yoro-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: yoroPulse 1.6s ease-in-out infinite; }
.yoro-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.yoro-wave i { width: 2px; height: 30%; background: var(--cyan-hi); border-radius: 1px; box-shadow: 0 0 6px rgba(45, 226, 230, .6); animation: yoroWave 1.1s ease-in-out infinite; }
.yoro-wave i:nth-child(2) { animation-delay: .12s; }
.yoro-wave i:nth-child(3) { animation-delay: .24s; }
.yoro-wave i:nth-child(4) { animation-delay: .36s; }
.yoro-wave i:nth-child(5) { animation-delay: .48s; }

/* 喋っている間：波形を速く大きく＋発色をマゼンタ寄りに（生命感UP） */
.yoro-av.is-speaking .yoro-wave i { animation-duration: .5s; }
.yoro-av.is-speaking .vs-sample { filter: saturate(1.16) contrast(1.05) drop-shadow(0 0 14px rgba(255, 45, 149, .35)); }

/* ソウルパーティクル canvas（JS 描画） */
.yoro-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* たまのグリッチ（JS が .is-glitch を一瞬付与） */
.yoro-av.is-glitch .vs-sample { animation: yoroFloat 5.2s ease-in-out infinite, yoroGlitch .3s steps(2) 1; }

@keyframes yoroFloat   { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-2.5%) scale(1.012); } }
@keyframes yoroBase    { 0%,100% { opacity: .5; width: 78%; } 50% { opacity: .85; width: 84%; } }
@keyframes yoroSweep   { 0% { top: -30%; } 100% { top: 100%; } }
@keyframes yoroFlicker { 0%,46%,100% { opacity: .5; } 48% { opacity: .32; } 49% { opacity: .55; } 92% { opacity: .5; } 93% { opacity: .38; } 94% { opacity: .52; } }
@keyframes yoroPulse   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@keyframes yoroWave    { 0%,100% { height: 25%; } 50% { height: 95%; } }
@keyframes yoroGlitch  {
  0%   { transform: translate(0,0); }
  30%  { transform: translate(-2px,0); filter: saturate(1.08) drop-shadow(2px 0 0 rgba(255,45,149,.7)) drop-shadow(-2px 0 0 rgba(45,226,230,.7)); }
  60%  { transform: translate(2px,0);  filter: saturate(1.08) drop-shadow(-2px 0 0 rgba(255,45,149,.7)) drop-shadow(2px 0 0 rgba(45,226,230,.7)); }
  100% { transform: translate(0,0); }
}

@media (prefers-reduced-motion: reduce) {
  .yoro-av::after, .yoro-av .vs-sample, .yoro-scan, .yoro-scan::before,
  .yoro-dot, .yoro-wave i { animation: none !important; }
}

/* トークシンク：JS が armed したときのみ吹き出しを順次表示（JS 無効時は既定表示） */
[data-yoro-chat].yoro-chat-armed .yoro-bubble { opacity: 0; transform: translateX(-10px); transition: opacity .45s var(--ease, ease), transform .45s var(--ease, ease); }
[data-yoro-chat].yoro-chat-armed .yoro-bubble.is-shown { opacity: 1; transform: none; }

/* ============================================================
   Tier 3: 会話AIアバター — チャットUI（ヨロに話しかける）
   入力→ヨロが返答。本番は window.YORO_CHAT_ENDPOINT 経由で Claude API、
   未設定時は mascot.js のローカル応答（プレビュー）で動作。
   ============================================================ */
.yoro-chat-form {
  display: flex; gap: var(--space-2xs); margin-top: var(--space-md);
  max-width: 520px;
}
.yoro-chat-input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--ink); background: var(--bg-elev);
  border: 1px solid var(--hair-strong); border-radius: var(--radius-pill);
  padding: 10px 16px; transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.yoro-chat-input::placeholder { color: var(--ink-faint); }
.yoro-chat-input:focus-visible {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 226, 230, .18), 0 0 14px rgba(45, 226, 230, .2);
}
.yoro-chat-send {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-chakra); font-size: var(--text-sm); font-weight: 600;
  color: #05070F; background: var(--cyan); border: none; cursor: pointer;
  border-radius: var(--radius-pill); padding: 10px 18px;
  box-shadow: 0 0 14px rgba(45, 226, 230, .35);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.yoro-chat-send:hover { background: var(--cyan-hi); box-shadow: 0 0 20px rgba(45, 226, 230, .5); }
.yoro-chat-send:active { transform: translateY(1px); }
.yoro-chat-send:disabled { opacity: .5; cursor: default; box-shadow: none; }

/* ユーザー発話（右寄せ・マゼンタ寄り） */
.yoro-bubble--user {
  margin-left: auto; text-align: left;
  background: rgba(255, 45, 149, .12); border-color: var(--hair-mag);
  color: var(--ink);
}
.yoro-bubble--user::before { display: none; }

/* 入力中（…のタイピングインジケータ） */
.yoro-typing { display: inline-flex; gap: 5px; align-items: center; }
.yoro-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-hi);
  box-shadow: 0 0 6px rgba(45, 226, 230, .6); animation: yoroTyping 1s ease-in-out infinite;
}
.yoro-typing span:nth-child(2) { animation-delay: .15s; }
.yoro-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes yoroTyping { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .yoro-typing span { animation: none; } }

/* ============================================================
   YORO 右下チャットボット・ウィジェット（土台）
   ランチャー（ヨロアイコン）＋ 起動時の吹き出しポップ ＋ チャットパネル。
   ============================================================ */
.yoro-bot {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px);
  z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.yoro-bot > * { pointer-events: auto; }

/* ランチャー（円形のヨロアイコン） */
.yoro-launch {
  position: relative; width: clamp(56px, 8vw, 72px); height: clamp(56px, 8vw, 72px);
  border-radius: 50%; border: 2px solid var(--cyan); background: var(--bg-2);
  padding: 0; overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 24px rgba(5, 7, 15, .5), 0 0 18px rgba(45, 226, 230, .45);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.yoro-launch:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 28px rgba(5, 7, 15, .55), 0 0 26px rgba(45, 226, 230, .6); }
.yoro-launch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.yoro-launch-ava { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.yoro-launch-dot { position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; border: 2px solid var(--bg); box-shadow: 0 0 8px rgba(74, 222, 128, .85); }
.yoro-launch::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cyan); animation: yoroRing 2.6s ease-out infinite; pointer-events: none; }
@keyframes yoroRing { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.yoro-bot.is-open .yoro-launch::after { display: none; }

/* 起動時の吹き出しポップ（右下から） */
.yoro-bot-pops { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(78vw, 300px); }
.yoro-pop {
  position: relative; background: rgba(11, 19, 34, .96); border: 1px solid var(--hair-cyan);
  border-radius: 14px 14px 4px 14px; padding: 10px 14px;
  font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--ink);
  box-shadow: 0 6px 20px rgba(5, 7, 15, .5), 0 0 14px rgba(45, 226, 230, .12);
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.yoro-pop.is-shown { opacity: 1; transform: none; }
/* リンク付きポップ（再訪→AI活用診断への誘導。ポップ自体がCTA） */
a.yoro-pop { display: block; text-decoration: none; cursor: pointer; }
.yoro-pop--cta { border-color: rgba(255, 111, 182, .5); }
.yoro-pop--cta:hover { border-color: rgba(255, 111, 182, .85); box-shadow: 0 6px 20px rgba(5, 7, 15, .5), 0 0 18px rgba(255, 45, 149, .35); }

/* チャットパネル */
.yoro-panel {
  width: min(94vw, 440px); max-height: min(82vh, 660px);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 19, 34, .98), rgba(8, 12, 26, .98));
  border: 1px solid var(--hair-cyan); border-radius: 18px;
  box-shadow: 0 16px 48px rgba(5, 7, 15, .6), 0 0 28px rgba(45, 226, 230, .18);
  transform-origin: bottom right;
}
.yoro-panel[hidden] { display: none; }
.yoro-bot.is-open .yoro-panel { animation: yoroPanelIn .25s var(--ease); }
@keyframes yoroPanelIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.yoro-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--hair); background: rgba(45, 226, 230, .05); }
.yoro-panel-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center top; border: 1px solid var(--hair-cyan); }
.yoro-panel-name { font-family: var(--font-chakra); font-weight: 700; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.yoro-panel-name small { font-family: var(--font-mono); font-size: 10px; color: var(--cyan-hi); letter-spacing: .08em; font-weight: 500; }
.yoro-panel-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: transparent; color: var(--ink-soft); font-size: 18px; line-height: 1; cursor: pointer; transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.yoro-panel-close:hover { color: var(--ink); border-color: var(--hair-strong); }
.yoro-panel-log { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.yoro-panel-log .yoro-bubble { max-width: 100%; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.yoro-panel-log .yoro-bubble.is-shown { opacity: 1; transform: none; }
.yoro-panel .yoro-chat-form { margin: 0; padding: 10px 12px 12px; border-top: 1px solid var(--hair); max-width: none; }
.yoro-chat-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.yoro-sample-btn:focus-visible { outline: 2px solid var(--kin); outline-offset: 2px; }

/* AIプリセールス：無料サンプル導線＋連絡先取得フォーム */
.yoro-cta-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.yoro-sample-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: var(--radius-pill); border: 1px solid var(--kin); background: linear-gradient(180deg, rgba(232, 195, 107, .16), rgba(232, 195, 107, .06)); color: var(--kin-lit); font-family: var(--font-chakra); font-weight: 700; font-size: var(--text-sm); cursor: pointer; transition: box-shadow var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.yoro-sample-btn:hover { box-shadow: var(--glow-gold); }
.yoro-consult-link { font-size: var(--text-xs); color: var(--ink-soft); white-space: nowrap; }
.yoro-consult-link:hover { color: var(--cyan-hi); }
.yoro-lead-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--hair-cyan); background: rgba(45, 226, 230, .04); }
.yoro-lead-form[hidden] { display: none; }
.yoro-lead-note { margin: 0 0 2px; font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.6; }
.yoro-lead-note b { color: var(--kin-lit); }
.yoro-lead-in { width: 100%; }
.yoro-lead-send { width: 100%; justify-content: center; }
.yoro-lead-privacy { margin: 0; font-size: 11px; color: var(--ink-faint); text-align: center; }
.yoro-lead-privacy a { color: var(--cyan-hi); }

/* リッチ出力：回答バブル下の CTA チップ（フォーム/相談/料金/電話） */
/* 最適サービス カード：課題に効くサービスを1つ、大きな導線で前面に（営業＝提案） */
.yoro-svc-card { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 6px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(45, 226, 230, .5); background: linear-gradient(150deg, rgba(45, 226, 230, .12), rgba(90, 120, 255, .1)); box-shadow: 0 6px 22px rgba(5, 7, 15, .45), 0 0 16px rgba(45, 226, 230, .14); text-decoration: none; cursor: pointer; transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.yoro-svc-card:hover { border-color: var(--cyan); box-shadow: 0 8px 28px rgba(5, 7, 15, .55), 0 0 24px rgba(45, 226, 230, .35); transform: translateY(-1px); }
.yoro-svc-lab { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--cyan-hi); text-transform: uppercase; }
.yoro-svc-name { font-family: var(--font-chakra); font-weight: 700; font-size: var(--text-lg); line-height: 1.25; color: var(--white); }
.yoro-svc-sum { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--ink-soft); }
.yoro-svc-go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; padding: 8px 16px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--mag) 0%, var(--blue) 62%); color: var(--white); font-family: var(--font-chakra); font-weight: 700; font-size: var(--text-sm); line-height: 1.2; }
.yoro-svc-card:hover .yoro-svc-go .arr { transform: translateX(4px); }
.yoro-svc-go .arr { transition: transform var(--duration-fast) var(--ease); }
.yoro-cta-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.yoro-cta-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--hair-cyan); background: rgba(45, 226, 230, .08); color: var(--cyan-hi); font-family: var(--font-chakra); font-weight: 700; font-size: var(--text-sm); line-height: 1.2; cursor: pointer; text-decoration: none; transition: box-shadow var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease); }
.yoro-cta-chip:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
/* プリセールス：無料相談を強調するプライマリCTAチップ */
.yoro-cta-chip--primary { background: linear-gradient(135deg, var(--mag) 0%, var(--blue) 62%); color: var(--white); border-color: rgba(255, 111, 182, .5); }
.yoro-cta-chip--primary:hover { border-color: rgba(255, 111, 182, .8); box-shadow: 0 0 18px rgba(255, 45, 149, .5); }
/* プリセールスの選択式チップ（悩みを選ぶ）＋見出し */
.yoro-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px var(--space-2xs); }
.yoro-quick-lab { width: 100%; margin: var(--space-2xs) 0 4px; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); color: var(--ink-faint); }
.yoro-chip { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--radius-pill); border: 1px solid var(--hair); background: rgba(255, 255, 255, .03); color: var(--ink-soft); font-family: var(--font-body); font-size: var(--text-sm); line-height: 1.2; cursor: pointer; text-align: left; transition: border-color var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease); }
.yoro-chip:hover { border-color: var(--hair-cyan); color: var(--cyan-hi); background: rgba(45, 226, 230, .07); }

/* ============================================================
   サービス診断（困りごと→推奨サービス）: [data-diagnosis] / diagnosis.js
   ============================================================ */
.diag { margin-top: var(--space-lg); }
.diag-box { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--card-bg); padding: clamp(18px, 3vw, 32px); }
.diag-in { animation: diagIn .3s var(--ease); }
@keyframes diagIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.diag-step { font-size: var(--text-xs); letter-spacing: var(--tracking-wider); color: var(--cyan-hi); margin: 0; }
.diag-q { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: var(--leading-snug); color: var(--ink); margin: var(--space-2xs) 0 var(--space-md); }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-sm); }
.diag-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: var(--space-md); border: 1px solid var(--hair); border-radius: var(--radius-md); background: transparent; color: var(--ink); cursor: pointer; transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.diag-tile:hover { border-color: var(--hair-cyan); box-shadow: var(--glow-cyan); }
.diag-tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.diag-ico { font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--cyan-hi); line-height: 1; }
.diag-tile-label { font-size: var(--text-sm); font-weight: 700; text-align: center; }
.diag-list { display: flex; flex-direction: column; gap: var(--space-2xs); }
.diag-choice { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); text-align: left; padding: var(--space-md); border: 1px solid var(--hair); border-radius: var(--radius-md); background: transparent; color: var(--ink); font-size: var(--text-base); cursor: pointer; transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.diag-choice:hover { border-color: var(--hair-cyan); box-shadow: var(--glow-cyan); }
.diag-choice:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.diag-choice .arr { color: var(--cyan-hi); }
.diag-result { border: 1px solid var(--hair-cyan); border-radius: var(--radius-md); padding: var(--space-lg); background: rgba(45, 226, 230, .05); }
.diag-result-name { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); color: var(--cyan-hi); text-shadow: var(--glow-cyan); margin: 0; }
.diag-result-why { color: var(--ink-soft); margin-top: var(--space-2xs); }
.diag-result-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.diag-note { font-size: var(--text-sm); color: var(--ink-faint); margin-top: var(--space-md); }
.diag-back { margin-top: var(--space-md); background: none; border: 0; color: var(--ink-soft); font-size: var(--text-sm); cursor: pointer; padding: 4px 0; }
.diag-back:hover { color: var(--cyan-hi); }
.diag-back:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .yoro-launch::after { animation: none; display: none; }
  .yoro-bot.is-open .yoro-panel { animation: none; }
  .yoro-pop, .yoro-panel-log .yoro-bubble { transition: none; }
}

/* ============================================================
   Tier 2: 奥行き（多層パララックス＋ネオン都市背景＋擬似切り抜き）
   ・.yoro-citybg = 背景の「またたく都市の灯り」(JS canvas, シネマグラフ代替)
   ・.vs-sample に mix-blend-mode:screen で暗背景を抜き、都市の上にホログラム投影
   ・各レイヤーは JS が別速度で平行移動（深度パララックス）
   ============================================================ */
.yoro-av--depth .yoro-citybg {
  position: absolute; inset: clamp(8px, 1.2vw, 14px); z-index: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none; will-change: transform;
}
.yoro-av--depth .vs-sample { z-index: 1; mix-blend-mode: screen; will-change: transform; }
.yoro-av--depth .yoro-particles { will-change: transform; }


/* ============================================================
   サンプル導入事例（cases）: .cs-*
   ============================================================ */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); }
.cs-card { border: 1px solid var(--hair); border-radius: var(--radius-lg); background: var(--card-bg); padding: var(--space-lg); transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.cs-card:hover { border-color: var(--hair-cyan); box-shadow: var(--glow-cyan); }
.cs-badge { display: inline-block; padding: 2px 10px; border-radius: 3px; border: 1px solid var(--hair-cyan); color: var(--cyan-hi); font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-wider); }
.cs-org { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-faint); margin: var(--space-2xs) 0 0; }
.cs-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); line-height: var(--leading-snug); color: var(--ink); margin: var(--space-2xs) 0 var(--space-md); }
.cs-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2xs) var(--space-sm); margin: 0; }
.cs-dl dt { font-size: var(--text-xs); font-weight: 700; color: var(--cyan-hi); letter-spacing: var(--tracking-wide); white-space: nowrap; padding-top: 2px; }
.cs-dl dd { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; }
.cs-dl dd a { color: var(--cyan-hi); }


/* ============================================================
   card-grid のカードをネオン枠に（cyan → magenta → gold 巡回・ネオ東京）
   白系のぼんやり枠をやめ、はっきりしたネオンの縁取り＋控えめな発光。
   team-grid など個別指定は各ページ側の指定が優先。
   ============================================================ */
.card-grid > .card { transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease); }
.card-grid > .card:nth-child(3n+1) { border-color: var(--cyan); box-shadow: 0 0 10px rgba(45, 226, 230, .16), var(--card-shadow); }
.card-grid > .card:nth-child(3n+2) { border-color: var(--mag);  box-shadow: 0 0 10px rgba(255, 45, 149, .15), var(--card-shadow); }
.card-grid > .card:nth-child(3n)   { border-color: var(--kin);  box-shadow: 0 0 10px rgba(232, 195, 107, .15), var(--card-shadow); }
.card-grid > .card:nth-child(3n+1):hover { border-color: var(--cyan); box-shadow: var(--glow-cyan), var(--card-shadow); }
.card-grid > .card:nth-child(3n+2):hover { border-color: var(--mag);  box-shadow: var(--glow-mag),  var(--card-shadow); }
.card-grid > .card:nth-child(3n):hover   { border-color: var(--kin);  box-shadow: var(--glow-gold), var(--card-shadow); }


/* ============================================================
   ヨロ 進化（群B）：引用元チップ / 1枚プラン
   ============================================================ */
.yoro-cites { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .1rem 0 .5rem; }
.yoro-cites-lab { font-size: 10px; color: var(--ink-faint); letter-spacing: .08em; }
.yoro-cite { font-size: 11px; color: var(--cyan-hi); border: 1px solid rgba(45,226,230,.35); border-radius: var(--radius-pill); padding: 1px 8px; text-decoration: none; background: rgba(45,226,230,.06); }
a.yoro-cite:hover { border-color: var(--cyan); background: rgba(45,226,230,.14); }

.yoro-plan-btn { border: 1px solid rgba(232,195,107,.5); background: rgba(232,195,107,.08); color: var(--kin, #E8C36B); border-radius: var(--radius-pill); padding: .45rem .9rem; font-size: var(--text-sm); cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.yoro-plan-btn:hover { border-color: var(--kin, #E8C36B); box-shadow: var(--glow-gold); }

.yoro-plan { border: 1px solid var(--kin, #E8C36B); border-radius: var(--radius-md); padding: .75rem .85rem; margin: .4rem 0; background: rgba(20,16,6,.55); box-shadow: var(--glow-gold); }
.yoro-plan-body { white-space: pre-wrap; font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); max-height: 260px; overflow: auto; }
.yoro-plan-print { margin-top: .5rem; width: 100%; border: 1px solid var(--kin, #E8C36B); background: transparent; color: var(--kin, #E8C36B); border-radius: var(--radius-pill); padding: .4rem; font-size: var(--text-sm); cursor: pointer; }
.yoro-plan-print:hover { background: rgba(232,195,107,.12); }


/* ============================================================
   群D 発見エンジン：要約box / 業種×課題LP / 比較 / 用語集
   ============================================================ */
.page-summary { border-left: 3px solid var(--cyan); background: rgba(45,226,230,.06); padding: var(--space-sm) var(--space-md); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--ink); font-size: var(--text-base, 1rem); margin: var(--space-md) 0; }

.lp-cta-top, .lp-cta-band { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.lp-cta-band { justify-content: center; }
.lp-cta-band .btn, .lp-cta-top .btn { min-width: 180px; justify-content: center; }

.lp-pains { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.lp-pains li { position: relative; padding: var(--space-md) var(--space-lg) var(--space-md) 2.4em; border: 1px solid var(--hair); border-radius: var(--radius-md); background: rgba(7,12,22,.5); color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--leading-normal); }
.lp-pains li::before { content: '!'; position: absolute; left: 1em; top: var(--space-md); color: var(--mag); font-weight: 800; }

.lp-steps { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); } }
.lp-step { border: 1px solid var(--hair); border-radius: var(--radius-md); padding: var(--space-lg); background: rgba(7,12,22,.5); }
.lp-step-n { color: var(--cyan-hi); font-size: var(--text-xs); letter-spacing: var(--tracking-wide); }
.lp-step-t { font-size: var(--text-lg, 1.15rem); margin: .3em 0; color: var(--ink); }
.lp-step-b { color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--leading-normal); }

.lp-est { display: grid; gap: var(--space-sm); }
@media (min-width: 720px) { .lp-est { grid-template-columns: repeat(3, 1fr); } }
.lp-est > div { border: 1px solid var(--hair); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); background: rgba(7,12,22,.5); }
.lp-est i { display: block; color: var(--ink-faint); font-size: var(--text-xs); font-style: normal; margin-bottom: .3em; }
.lp-est span { color: var(--kin, #E8C36B); font-weight: 600; font-size: var(--text-sm); line-height: var(--leading-normal); }
.lp-est-note { color: var(--ink-faint); font-size: var(--text-xs); margin-top: var(--space-sm); }

.lp-faq { display: grid; gap: var(--space-sm); }
.lp-faq-item { border: 1px solid var(--hair); border-radius: var(--radius-md); background: rgba(7,12,22,.5); padding: 0 var(--space-lg); }
.lp-faq-item summary { cursor: pointer; padding: var(--space-md) 0; font-weight: 600; color: var(--ink); list-style: none; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::before { content: 'Q '; color: var(--cyan); font-family: var(--font-mono, monospace); }
.lp-faq-item[open] summary { color: var(--cyan-hi); }
.lp-faq-a { color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--leading-normal); padding: 0 0 var(--space-md); }

.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--hair); border-radius: var(--radius-md); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--text-sm); }
.cmp-table th, .cmp-table td { padding: var(--space-md); text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.cmp-table thead th { color: var(--ink-faint); font-size: var(--text-xs); background: rgba(7,12,22,.6); position: sticky; top: 0; }
.cmp-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.cmp-table td { color: var(--ink-soft); }
.cmp-table .cmp-us { color: var(--cyan-hi); background: rgba(45,226,230,.06); border-left: 1px solid rgba(45,226,230,.25); }
.cmp-notfit { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.cmp-notfit li { border: 1px dashed var(--hair); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); color: var(--ink-soft); font-size: var(--text-sm); }

.gloss-list { display: grid; gap: var(--space-md); }
@media (min-width: 760px) { .gloss-list { grid-template-columns: repeat(2, 1fr); } }
.gloss-term { border: 1px solid var(--hair); border-radius: var(--radius-md); padding: var(--space-lg); background: rgba(7,12,22,.5); scroll-margin-top: 96px; }
.gloss-term-h { font-size: var(--text-lg, 1.15rem); color: var(--ink); display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; }
.gloss-term-h small { color: var(--ink-faint); font-size: var(--text-xs); }
.gloss-short { color: var(--cyan-hi); font-size: var(--text-sm); font-weight: 600; margin: .4em 0; }
.gloss-body { color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--leading-normal); }
.gloss-link { display: inline-block; margin-top: var(--space-sm); color: var(--cyan-hi); font-size: var(--text-sm); text-decoration: none; border-bottom: 1px solid rgba(45,226,230,.3); }
.gloss-death .card-link { margin-top: var(--space-sm); }


/* ============================================================
   群E 信頼の可視化：リスク低減バッジ / 導入プロセス / 稼働ステータス
   ============================================================ */
.trust-badges { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
@media (min-width: 720px) { .trust-badges { grid-template-columns: repeat(2, 1fr); } }
.trust-badges li { border: 1px solid var(--hair); border-left: 3px solid var(--cyan); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); background: rgba(7,12,22,.5); }
.trust-badges b { display: block; color: var(--cyan-hi); font-size: var(--text-base, 1rem); margin-bottom: .2em; }
.trust-badges span { color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--leading-normal); }

.trust-steps { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.trust-steps li { display: flex; align-items: flex-start; gap: var(--space-md); border: 1px solid var(--hair); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); background: rgba(7,12,22,.5); }
.trust-steps .ts-n { color: var(--cyan); font-size: var(--text-sm); font-weight: 700; min-width: 2em; }
.trust-steps b { color: var(--ink); }
.trust-steps p { color: var(--ink-soft); font-size: var(--text-sm); margin-top: .2em; line-height: var(--leading-normal); }
.trust-steps em { margin-left: auto; font-style: normal; font-size: var(--text-xs); white-space: nowrap; border-radius: var(--radius-pill); padding: .2rem .7rem; align-self: center; }
.trust-steps .ts-free { color: var(--cyan-hi); border: 1px solid rgba(45,226,230,.4); }
.trust-steps .ts-paid { color: var(--kin, #E8C36B); border: 1px solid rgba(232,195,107,.5); }

.trust-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: var(--space-xl); padding: var(--space-sm) var(--space-lg); border: 1px solid var(--hair); border-radius: var(--radius-pill); background: rgba(7,12,22,.5); font-size: var(--text-sm); color: var(--ink-soft); }
.trust-status .st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: stPulse 2s ease-in-out infinite; }
.trust-status .st-live { color: var(--cyan-hi); }
.trust-status .st-sep { color: var(--ink-faint); }
@keyframes stPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .trust-status .st-dot { animation: none; } }

/* Honest Case バッジ（cases・LP の想定シナリオ明示） */
.honest-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-xs); color: var(--kin, #E8C36B); border: 1px solid rgba(232,195,107,.5); border-radius: var(--radius-pill); padding: .2rem .7rem; background: rgba(232,195,107,.06); }
.honest-note { border: 1px dashed rgba(232,195,107,.5); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); background: rgba(232,195,107,.05); color: var(--ink-soft); font-size: var(--text-sm); line-height: var(--leading-normal); }
.honest-note b { color: var(--kin, #E8C36B); }


/* 群F：再訪パーソナライズ バナー */
.pz-bar { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 auto var(--space-md); width: fit-content; max-width: 100%; padding: .5rem .9rem; border: 1px solid rgba(45,226,230,.35); border-radius: var(--radius-pill); background: rgba(45,226,230,.06); font-size: var(--text-sm); color: var(--ink-soft); }
.pz-bar .pz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pz-bar .pz-msg { flex: 1; min-width: 180px; }
.pz-bar .pz-cta { color: var(--cyan-hi); text-decoration: none; font-weight: 600; white-space: nowrap; }
.pz-bar .pz-x { background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 .2rem; }
.pz-bar .pz-x:hover { color: var(--cyan-hi); }


/* =====================================================
   RESULT VIZ (service pages) — 3 conclusion points as diagrams
   slot1 rv-flow: before -> after chips
   slot2 rv-bars: now vs after comparison bars (qualitative)
   slot3 rv-core: single-kanji value emblem (gold)
   ===================================================== */
.result-viz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.rv-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.rv-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: .18em;
  color: var(--ink-faint);
}

/* slot 1: before -> after transformation */
.rv-flow {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.rv-chip {
  font-family: var(--font-chakra);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: .5em .9em;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.rv-chip.is-before { color: var(--ink-faint); border: 1px dashed var(--hair-strong); }
.rv-chip.is-after {
  color: var(--cyan-lit);
  border: 1px solid var(--hair-cyan);
  background: rgba(45, 226, 230, .08);
  box-shadow: var(--glow-cyan);
}
.rv-arr { color: var(--cyan); font-weight: 700; }

/* slot 2: now vs after comparison bars */
.rv-bars {
  min-height: 96px;
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2xs);
}
.rv-row {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  align-items: center;
  gap: var(--space-2xs);
}
.rv-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-faint);
  text-align: left;
}
.rv-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(234, 242, 255, .07);
  overflow: hidden;
}
.rv-bar {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 999px;
}
.rv-bar.is-before { background: var(--ink-faint); opacity: .55; }
.rv-bar.is-after {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-hi));
  box-shadow: var(--glow-cyan);
}
.rv-cap {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-soft);
  margin-top: var(--space-3xs);
}

/* slot 3: single-kanji value emblem */
.rv-core { min-height: 96px; display: flex; align-items: center; justify-content: center; }
.rv-glyph {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--hair-gold);
  font-family: var(--font-mincho);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--kin-lit);
  text-shadow: var(--glow-gold);
}

.rv-title { font-size: var(--text-base); font-weight: 700; line-height: 1.5; }

/* bars grow when the panel scrolls into view (scroll-anim.js adds .is-visible) */
.rv-panel .rv-bar { transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .25s; }
.rv-panel.is-visible .rv-bar { transform: scaleX(1); }

@media (max-width: 640px) {
  .result-viz { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-panel .rv-bar { transition: none; transform: none; }
}

/* cta-band: sub-copy promoted from p.lead to h2 (larger, one step under section-title) */
.cta-band .cta-lead {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  max-width: 40ch;
  margin-top: var(--space-sm);
  margin-inline: auto;
}

/* =====================================================
   WHAT-WE-DO readability fix (service pages)
   was: 4 narrow columns, huge number stacked over title
   -> titles wrapped into 2-3 lines and read poorly.
   now: 2 wide columns; the number sits left of the text
   like a numbered list, one card = one readable row.
   ===================================================== */
@media (min-width: 1025px) {
  .WHAT-WE-DO .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}
.WHAT-WE-DO .card-service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--space-md);
  row-gap: var(--space-2xs);
  align-content: start;
}
.WHAT-WE-DO .card-service .card-icon {
  grid-row: 1 / span 2;
  align-self: start;
  font-size: var(--text-2xl);
  margin-bottom: 0;
  padding-top: .12em;   /* optical alignment with the title cap line */
}
.WHAT-WE-DO .card-service .card-title {
  margin-bottom: 0;
  line-height: 1.45;
}
.WHAT-WE-DO .card-service p {
  margin: 0;
  color: var(--ink-soft);
  line-height: var(--leading-normal);
}
@media (min-width: 521px) and (max-width: 768px) {
  /* stop auto-fit from squeezing the horizontal cards into 3 narrow columns */
  .WHAT-WE-DO .card-grid--4 { grid-template-columns: 1fr; }
}

/* =====================================================
   RELATED minimal (service pages)
   one item = service title + a single hook line;
   hairline-top editorial rows instead of text-heavy cards
   ===================================================== */
.related-min {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.rm-item {
  display: block;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hair);
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease);
}
.rm-item:hover { border-top-color: var(--hair-cyan); }
.rm-item:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.rm-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  transition: color var(--duration-fast) var(--ease);
}
.rm-title .arr { color: var(--cyan); transition: transform var(--duration-fast) var(--ease); }
.rm-item:hover .rm-title { color: var(--cyan-lit); }
.rm-item:hover .rm-title .arr { transform: translateX(4px); }
.rm-copy {
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
  color: var(--ink-faint);
  line-height: var(--leading-normal);
}

/* =====================================================
   MOBILE TYPOGRAPHY
   (a) headings wrap balanced everywhere — no orphan chars
       like a lone 「か。」 on its own line
   (b) <=640px: display sizes track the viewport (vw) so
       one sentence (12-17 chars) ~= one line on a phone;
       font families stay as designed (mincho keeps its 格)
   ===================================================== */
h1, h2, h3, .section-title, .cta-band .cta-lead { text-wrap: balance; }

@media (max-width: 640px) {
  h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); letter-spacing: 0; line-height: 1.35; }
  h2, .section-title { font-size: clamp(1.2rem, 5.2vw, 1.6rem); letter-spacing: 0; line-height: 1.42; }
  h3 { font-size: clamp(1.1rem, 4.8vw, 1.45rem); line-height: 1.5; }
  .cta-band .cta-lead { font-size: clamp(1.1rem, 5vw, 1.4rem); }
  .lead { font-size: var(--text-base); }
}
