/* ============================================================
   NODAX Co., Ltd. — SIGNAL NOIR (統合版)
   「静かな夜に、信号だけが正確に流れている」
   全ビジュアルはCSS/SVG。写真ゼロ。
   ============================================================ */

/* ------------------------------------------------------------
   0. Reset
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100svh; }
img, svg, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, dl, dd, figure { margin: 0; }
table { border-collapse: collapse; }
:target { scroll-margin-top: 90px; }

/* ------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------ */
:root {
  /* 夜面 */
  --bg: #060A14;
  --bg-deep: #04070F;
  --surface: #0C1424;
  --glass: rgba(255, 255, 255, .045);
  --line: rgba(158, 180, 220, .14);
  --line-strong: rgba(158, 180, 220, .25);
  --ink: #EAF0FA;
  --ink-2: #A7B4CE;
  --ink-3: #7A89A6;
  --tick: rgba(158, 180, 220, .3);

  /* 3領域カラー（光） */
  --elec: #FFB547; --elec-deep: #E08A00;
  --fire: #FF5A3C; --fire-deep: #E03A20;
  --net:  #38D6F5; --net-deep:  #14A8CC;
  --aurora: #4C63E6; /* 背景光層専用。UI要素に使用禁止 */

  /* ライト面（インク版のみ使用可） */
  --paper: #F4F7FC;
  --paper-ink: #0B1526;
  --elec-ink: #B45309;
  --fire-ink: #C9330F;
  --net-ink:  #0E7490;
  --cta-ink:  #1A1200; /* 琥珀CTA上の文字 */

  /* 書体 */
  --font-en:   "Space Grotesk", "Noto Sans JP", sans-serif;
  --font-jp:   "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* 造形 */
  --radius: 22px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 72.5rem;
}

/* ------------------------------------------------------------
   2. Base
   ------------------------------------------------------------ */
html {
  background: var(--bg);
  color-scheme: dark;
}
body {
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.95;
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: break-word;
}
::selection { background: rgba(56, 214, 245, .28); color: #F2FBFF; }

:focus-visible {
  outline: 2px solid var(--net);
  outline-offset: 2px;
  border-radius: 4px;
}
.section--light :focus-visible,
.site-header[data-theme="light"] :focus-visible {
  outline-color: var(--net-ink);
}

/* スキップリンク */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: .7em 1.3em;
  background: var(--net);
  color: #062B36;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-300%);
  transition: transform .3s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-feature-settings: "palt";
  text-wrap: balance;
  color: var(--ink);
}
.display {
  font-family: var(--font-en);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.04;
  font-weight: 720;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.display--sub { font-size: clamp(2.1rem, 5vw, 4rem); }

.h1-jp, .hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.4;
  font-weight: 600;
}
h2, .h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 680;
}
h3, .h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 34em;
}
.prose { display: grid; gap: 1em; max-width: 34em; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: color .3s, text-decoration-color .3s;
}
.prose a:hover { color: var(--net); text-decoration-color: var(--net); }
.section--light .prose a:hover { color: var(--net-ink); text-decoration-color: var(--net-ink); }

/* 計器ラベル（mono） */
.mono-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--accent, var(--elec)), transparent);
}
.eyebrow--plain::before { display: none; }

/* グラデ文字（display級とCTA帯h2の1〜2箇所限定・本文使用禁止） */
.grad-text,
.display__word--elec,
.display__word--fire,
.display__word--net {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.grad-text { background-image: linear-gradient(120deg, #FFD08A 0%, var(--elec) 45%, var(--elec-deep) 100%); }
.display__word--elec { background-image: linear-gradient(180deg, #FFD08A 0%, var(--elec) 55%, var(--elec-deep) 100%); }
.display__word--fire { background-image: linear-gradient(180deg, #FF9678 0%, var(--fire) 55%, var(--fire-deep) 100%); }
.display__word--net  { background-image: linear-gradient(180deg, #9FE9FB 0%, var(--net) 55%, var(--net-deep) 100%); }
.display__x {
  font-weight: 400;
  color: transparent;
  -webkit-text-stroke: 1px rgba(158, 180, 220, .35);
}
@supports not (-webkit-background-clip: text) {
  .grad-text { color: var(--elec); -webkit-text-fill-color: currentColor; }
  .display__word--elec { color: var(--elec); -webkit-text-fill-color: currentColor; }
  .display__word--fire { color: var(--fire); -webkit-text-fill-color: currentColor; }
  .display__word--net  { color: var(--net);  -webkit-text-fill-color: currentColor; }
}
@supports not (-webkit-text-stroke: 1px #000) {
  .display__x { color: var(--ink-3); }
}

/* ------------------------------------------------------------
   4. アクセント割当（領域色の一括切替）
   ------------------------------------------------------------ */
.accent-elec, .card--elec, .tag--elec {
  --accent: var(--elec);
  --accent-deep: var(--elec-deep);
  --accent-ink: var(--elec-ink);
  --accent-glow: rgba(255, 181, 71, .22);
}
.accent-fire, .card--fire, .tag--fire {
  --accent: var(--fire);
  --accent-deep: var(--fire-deep);
  --accent-ink: var(--fire-ink);
  --accent-glow: rgba(255, 90, 60, .22);
}
.accent-net, .card--net, .tag--net {
  --accent: var(--net);
  --accent-deep: var(--net-deep);
  --accent-ink: var(--net-ink);
  --accent-glow: rgba(56, 214, 245, .22);
}

/* ------------------------------------------------------------
   5. レイアウト
   ------------------------------------------------------------ */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.container--wide   { --container: 85rem; }
.container--narrow { --container: 46rem; }

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.section--dark {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ライト面（同じ図面の表裏）— 蛍光3色の文字使用禁止・インク版のみ */
.section--light {
  --ink: #0B1526;
  --ink-2: #3A4A66;
  --ink-3: #51617E;
  --line: rgba(11, 21, 38, .12);
  --line-strong: rgba(11, 21, 38, .25);
  --glass: rgba(11, 21, 38, .035);
  --surface: #FFFFFF;
  --tick: rgba(11, 21, 38, .28);
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(11, 21, 38, .12);
  border-bottom: 1px solid rgba(11, 21, 38, .12);
  color-scheme: light;
}
.section--light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  rgba(11, 21, 38, .045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(11, 21, 38, .045) 0 1px, transparent 1px 64px);
}
.section--light > .container { position: relative; z-index: 1; }
.section > .container { position: relative; z-index: 1; } /* 絶対配置の回路SVGが本文に被らないように */

.section-head {
  display: grid;
  gap: .9rem;
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}
.vstack { display: grid; gap: 1rem; }
.hr { border: 0; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------
   6. 背景レシピ（ダーク面6層）
      L1=html背景ベタ / L2=.bg-aurora / L3=.bg-grid /
      L4=回路SVG(.circuit) / L5=グレイン(body::after) / L6=.bg-vignette
   ------------------------------------------------------------ */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 46% at 12% 10%, rgba(56, 214, 245, .16), transparent 70%),
    radial-gradient(46% 52% at 88% 42%, rgba(76, 99, 230, .14), transparent 70%),
    radial-gradient(50% 42% at 45% 96%, rgba(255, 181, 71, .07), transparent 70%);
  filter: blur(90px);
  animation: ndx-drift 60s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  rgba(158, 180, 220, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(158, 180, 220, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg,  rgba(158, 180, 220, .09) 0 1px, transparent 1px 256px),
    repeating-linear-gradient(90deg, rgba(158, 180, 220, .09) 0 1px, transparent 1px 256px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 32%, #000 42%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 32%, #000 42%, transparent 100%);
}
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 110% at 50% 42%, transparent 55%, rgba(4, 7, 15, .6) 100%);
}
/* L5 グレイン（全面・最前面寄り・操作透過） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes ndx-drift {
  from { transform: translate3d(-2%, -1.5%, 0); }
  to   { transform: translate3d(2%, 2%, 0); }
}

/* 回路ライン（L4・ヒーローと3領域セクションのみ） */
.circuit { pointer-events: none; }
.circuit__wire {
  fill: none;
  stroke: rgba(158, 180, 220, .12);
  stroke-width: 1;
}
.circuit__signal {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 10 220;
  animation: ndx-signal 10s linear infinite;
}
.circuit__node { fill: rgba(158, 180, 220, .38); }
@keyframes ndx-signal {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -230; }
}
.hero__circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .85;
}

/* ------------------------------------------------------------
   7. ヘッダー / ナビ
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--header-h);
  background: rgba(8, 12, 24, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 10, 20, .84);
  box-shadow: 0 14px 36px -20px rgba(0, 0, 0, .65);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(7, 10, 20, .95); }
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  width: min(100% - 40px, 85rem);
  margin-inline: auto;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .05em;
  color: var(--ink);
  text-decoration: none;
}
.nav__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--elec);
  box-shadow: 0 0 10px rgba(255, 181, 71, .8);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0px, .6vw, 6px);
  margin-left: auto;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: .72em .65em;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
/* hover=両端ティック付き寸法線が中央から伸びる */
.nav__link::after {
  content: "";
  position: absolute;
  left: .65em; right: .65em;
  bottom: 5px;
  height: 6px;
  border-left: 1px solid var(--net);
  border-right: 1px solid var(--net);
  background: linear-gradient(to top, var(--net) 0, var(--net) 1px, transparent 1px);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}
.nav__link:hover::after,
.nav__link:focus-visible::after { opacity: .85; transform: scaleX(1); }
/* 現在ページ=文字下2px領域色バー（is-active か aria-current="page"） */
.nav__link.is-active,
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link.is-active::before,
.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: .65em; right: .65em;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent, var(--elec));
}
.nav__cta { flex: 0 0 auto; }

/* ライトセクション通過時（JSが data-theme="light" を付与） */
.site-header[data-theme="light"] {
  background: rgba(244, 247, 252, .74);
  border-bottom-color: rgba(11, 21, 38, .12);
}
.site-header[data-theme="light"] .nav__brand { color: var(--paper-ink); }
.site-header[data-theme="light"] .nav__link { color: #3A4A66; }
.site-header[data-theme="light"] .nav__link:hover,
.site-header[data-theme="light"] .nav__link.is-active,
.site-header[data-theme="light"] .nav__link[aria-current="page"] { color: var(--paper-ink); }
.site-header[data-theme="light"] .nav__link::after {
  border-color: var(--net-ink);
  background: linear-gradient(to top, var(--net-ink) 0, var(--net-ink) 1px, transparent 1px);
}
.site-header[data-theme="light"] .nav-toggle span { background: var(--paper-ink); }

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-right: -8px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
body.nav-open .site-header[data-theme="light"] {
  background: rgba(8, 12, 24, .62);
  border-bottom-color: var(--line);
}
body.nav-open .site-header[data-theme="light"] .nav__brand { color: var(--ink); }
body.nav-open .site-header[data-theme="light"] .nav-toggle span { background: var(--ink); }

/* 全画面オーバーレイ（モバイルナビ） */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 16px) clamp(24px, 7vw, 48px) 90px;
  background: rgba(5, 8, 17, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
  overflow-y: auto;
  overflow-x: hidden;
  justify-content: flex-start;
}
.nav-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 15% 15%, rgba(56, 214, 245, .14), transparent 70%),
    radial-gradient(45% 50% at 85% 55%, rgba(76, 99, 230, .16), transparent 70%),
    radial-gradient(45% 40% at 40% 100%, rgba(255, 181, 71, .08), transparent 70%);
  filter: blur(70px);
}
body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity .45s var(--ease);
}
body.nav-open { overflow: hidden; }
.nav-overlay__nav {
  position: relative;
  display: grid;
  gap: 2px;
  margin-block: auto; /* flex-start+autoマージンで「収まる時は中央/超える時はスクロール可」の安全センタリング */
}
.nav-overlay__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-height: 48px;
  padding: .5em 0;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.nav-overlay__link:hover { color: var(--net); padding-left: 6px; }
.nav-overlay__no {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.nav-overlay__link--cta { color: var(--elec); border-bottom: 0; }
.nav-overlay__link--cta:hover { color: #FFD08A; }
.nav-overlay__foot {
  position: relative;
  margin-top: 2.2rem;
  display: grid;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .04em;
}
.nav-overlay__foot a {
  color: var(--ink-2);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  transition: color .3s;
}
.nav-overlay__foot a:hover { color: var(--net); }

/* ------------------------------------------------------------
   8. モバイル固定CTAバー
   ------------------------------------------------------------ */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); /* 項目数に自動追従（電話なし=2項目） */
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(8, 12, 24, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.mobile-cta__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s;
}
.mobile-cta__item + .mobile-cta__item { border-left: 1px solid var(--line); }
.mobile-cta__item svg { width: 21px; height: 21px; }
.mobile-cta__item:hover { color: var(--ink); }
.mobile-cta__item--form { color: var(--elec); }
.mobile-cta__item--form:hover { color: #FFD08A; }

/* ------------------------------------------------------------
   9. ボタン / リンク
   ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .9em 1.9em;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn--sm { padding: .55em 1.35em; font-size: .85rem; }

/* 主CTA=琥珀グラデピル */
.btn--primary {
  background-image: linear-gradient(135deg, #FFD08A 0%, var(--elec) 45%, var(--elec-deep) 100%);
  color: var(--cta-ink);
  box-shadow: 0 10px 26px -12px rgba(255, 181, 71, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(255, 181, 71, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
}
/* hover時sheen一回 */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 34%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}
.btn--primary:hover::after { animation: ndx-sheen .9s var(--ease) 1 forwards; }
@keyframes ndx-sheen {
  to { transform: translateX(460%) skewX(-18deg); }
}

/* 副CTA=ガラスゴースト */
.btn--ghost {
  background: var(--glass);
  border-color: var(--line-strong);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(158, 180, 220, .45);
  background: rgba(255, 255, 255, .07);
}
.section--light .btn--ghost {
  background: #FFFFFF;
  border-color: rgba(11, 21, 38, .2);
  color: var(--paper-ink);
}
.section--light .btn--ghost:hover { border-color: rgba(11, 21, 38, .4); background: #FFFFFF; }

/* 琥珀グラデ地（bento CTAセル等）の上に置くボタン */
.btn--onwarm {
  background: rgba(26, 18, 0, .1);
  border-color: rgba(26, 18, 0, .4);
  color: var(--cta-ink);
}
.btn--onwarm:hover { transform: translateY(-2px); background: rgba(26, 18, 0, .16); }

.btn__arrow { width: 16px; height: 16px; flex: 0 0 auto; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* 矢印リンク（詳しく見る→） */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.arrow-link:hover { color: var(--net); }
.arrow-link:hover svg { transform: translateX(4px); }
.section--light .arrow-link:hover { color: var(--net-ink); }

/* 下線 左→右 wipe リンク（フッター等） */
.wipe-link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .4s var(--ease), color .3s var(--ease);
  padding-bottom: 2px;
}
.wipe-link:hover { background-size: 100% 1px; }

/* ------------------------------------------------------------
   10. ガラス / チップ / タグ
   ------------------------------------------------------------ */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .45em 1.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
}
.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--net);
  box-shadow: 0 0 8px rgba(56, 214, 245, .8);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .3em .95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tag--elec, .tag--fire, .tag--net { color: var(--accent); border-color: var(--accent-glow); }
.section--light .tag--elec { color: var(--elec-ink); border-color: rgba(180, 83, 9, .35); }
.section--light .tag--fire { color: var(--fire-ink); border-color: rgba(201, 51, 15, .35); }
.section--light .tag--net  { color: var(--net-ink);  border-color: rgba(14, 116, 144, .35); }

/* ------------------------------------------------------------
   11. カード（3領域カード＝製図ディテール統合）
   ------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.section--light .card {
  background: var(--surface);
  border-color: rgba(11, 21, 38, .1);
  box-shadow: 0 12px 32px -22px rgba(11, 21, 38, .25);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 領域カード: 上辺2px信号バー + 四隅コーナーティック */
.card--domain { padding-top: clamp(1.9rem, 3.4vw, 2.6rem); }
.card--domain::after {
  content: "";
  position: absolute;
  top: 0;
  left: 26px; right: 26px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--net)), transparent);
}
.card--domain::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick)),
    linear-gradient(var(--tick), var(--tick)), linear-gradient(var(--tick), var(--tick));
  background-repeat: no-repeat;
  background-size: 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px, 8px 1px, 1px 8px;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}
.card--domain:hover {
  transform: translateY(-4px);
  border-color: var(--accent-glow, var(--line-strong));
  box-shadow:
    0 20px 46px -18px rgba(0, 0, 0, .55),
    0 0 0 1px var(--accent-glow, transparent),
    0 0 34px -10px var(--accent-glow, transparent);
}
.card__no {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.card__icon {
  width: 46px; height: 46px;
  margin: 1rem 0 1.1rem;
  color: var(--accent, var(--ink-2));
}
.card__icon svg { width: 100%; height: 100%; }
.card__en {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent, var(--ink-3));
  margin-bottom: .3em;
}
.section--light .card__en { color: var(--accent-ink, var(--ink-3)); }
.card__title { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.card__list {
  margin: 1.15rem 0 1.5rem;
  display: grid;
  gap: .5em;
  font-size: .92rem;
  color: var(--ink-2);
}
.card__list li {
  display: flex;
  align-items: baseline;
  gap: .7em;
}
.card__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 1px;
  background: var(--accent, var(--ink-3));
  opacity: .7;
  transform: translateY(-.3em);
}

/* ------------------------------------------------------------
   12. bento グリッド
   ------------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento__cell {
  position: relative;
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.bento__cell--3  { grid-column: span 3; }
.bento__cell--4  { grid-column: span 4; }
.bento__cell--6  { grid-column: span 6; }
.bento__cell--8  { grid-column: span 8; }
.bento__cell--12 { grid-column: span 12; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.bento__cell--center {
  display: grid;
  place-content: center;
  text-align: center;
}
.bento__cell:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .5);
}
.section--light .bento__cell { box-shadow: 0 10px 28px -22px rgba(11, 21, 38, .25); }

/* CTAセル（琥珀→朱の斜めグラデ地） */
.bento__cell--cta {
  background-image: linear-gradient(135deg, var(--elec) 0%, #FF7A50 60%, var(--fire-deep) 100%);
  border-color: transparent;
  color: var(--cta-ink);
}
.bento__cell--cta h2, .bento__cell--cta h3, .bento__cell--cta p { color: var(--cta-ink); }
.bento__cell--cta .mono-label { color: rgba(26, 18, 0, .65); }
.bento__cell--cta:hover { box-shadow: 0 20px 44px -18px rgba(224, 138, 0, .55); }

/* 図解セル（建物断面SVG等） */
.bento__cell--figure { display: grid; align-content: space-between; gap: 1rem; }
.figure-svg { width: 100%; height: auto; }

/* 統計（data-count） */
.stat { display: grid; gap: .3rem; align-content: center; }
.stat__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.stat__unit {
  font-family: var(--font-jp);
  font-size: .42em;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: .18em;
}
.stat__note { font-size: .84rem; color: var(--ink-2); }

/* 取引先グリッド（mono表記+細罫区切り） */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.partner-grid--3 { grid-template-columns: repeat(3, 1fr); column-gap: 24px; }
.partner-grid__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: .8em .2em;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.partner-grid__idx {
  font-size: .65rem;
  letter-spacing: .12em;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   13. フロー（一気通貫タイムライン）
   ------------------------------------------------------------ */
.flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  counter-reset: none;
}
.flow__step {
  position: relative;
  padding: 30px 18px 0 0;
}
.flow__step::before {
  content: "";
  position: absolute;
  top: 3px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent, var(--net));
  background: var(--bg);
  box-shadow: 0 0 10px var(--accent-glow, rgba(56, 214, 245, .3));
}
.section--light .flow__step::before {
  background: var(--paper);
  border-color: var(--accent-ink, var(--net-ink));
  box-shadow: none;
}
.flow__step::after {
  content: "";
  position: absolute;
  top: 8px; left: 18px; right: 4px;
  height: 1px;
  background: var(--line);
}
.flow__step:last-child::after { display: none; }
.flow__num {
  display: block;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.flow__title {
  display: block;
  margin-top: .15em;
  font-weight: 600;
  color: var(--ink);
}
.flow__desc {
  display: block;
  margin-top: .2em;
  font-size: .84rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* ------------------------------------------------------------
   14. 製図ディテール（寸法線 / タイトルブロック / 線描画）
   ------------------------------------------------------------ */
/* 寸法線: 両端縦ティック付き1px線 + mono注記 */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.dim__line {
  position: relative;
  flex: 1 1 auto;
  min-width: 48px;
  height: 9px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.dim__line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 4px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.dim__note { flex: 0 0 auto; }
/* セクション到達時にライン描画（.dim--draw + JSで .is-visible 付与） */
.js .dim--draw .dim__line::before {
  transform: scaleX(0);
  transform-origin: 50% 50%;
}
.js .dim--draw.is-visible .dim__line::before {
  transform: scaleX(1);
  transition: transform 1.2s var(--ease) .1s;
}

/* 図面タイトルブロック（ヒーロー右下・640px以下非表示・aria-hidden） */
.titleblock {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(16px, 4vw, 44px);
  z-index: 2;
  min-width: 250px;
  border: 1px solid rgba(158, 180, 220, .25);
  background: rgba(6, 10, 20, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.titleblock__row {
  display: grid;
  grid-template-columns: 92px 1fr;
}
.titleblock__row + .titleblock__row { border-top: 1px solid var(--line); }
.titleblock__row dt {
  padding: .5em .8em;
  border-right: 1px solid var(--line);
  color: var(--ink-3);
}
.titleblock__row dd { padding: .5em .8em; color: var(--ink-2); }

/* SVGライン描画（path等に pathLength="1" data-draw を付け、
   親に class="draw reveal 不要・draw単体でJSが監視" ） */
.js .draw [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js .draw.is-visible [data-draw] {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s var(--ease) .15s;
}

/* ------------------------------------------------------------
   15. ヒーロー / ページヘッダ
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 110px;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero .display { margin: 1.1rem 0 1.3rem; }
.hero__title { margin-bottom: 1rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.4rem;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2.2rem;
}

/* 下層ページ用ヘッダ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 6.5rem)) 0 clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .display { margin: .9rem 0 1rem; }

/* ------------------------------------------------------------
   16. CTA帯（全ページ末尾）
   ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 18% 22%, rgba(56, 214, 245, .18), transparent 70%),
    radial-gradient(46% 60% at 82% 45%, rgba(76, 99, 230, .22), transparent 70%),
    radial-gradient(50% 45% at 50% 100%, rgba(255, 181, 71, .12), transparent 70%);
  filter: blur(70px);
  animation: ndx-drift 60s ease-in-out infinite alternate;
}
.cta-band > .container { position: relative; z-index: 1; }
.bento__cell .cta-band__tel { font-size: clamp(1.5rem, 3.2vw, 2.6rem); } /* カード内では中間幅で切れないよう縮小 */
.eyebrow--center { justify-content: center; }
.mt-10 { margin-top: 2.5rem; }
.cta-band__tel {
  display: inline-block;
  margin: 1.1rem 0 .2rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}
.cta-band__tel:hover { color: var(--net); }
/* メールアドレスは桁数が多いため、小画面でも折り返さず収まるサイズに */
.cta-band__mail { font-size: clamp(1.15rem, 4.2vw, 2.6rem); letter-spacing: .02em; }
.bento__cell .cta-band__mail { font-size: clamp(1.05rem, 2.6vw, 1.9rem); }
.cta-band__note { font-size: .85rem; color: var(--ink-3); }
.cta-band__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.9rem;
}

/* ------------------------------------------------------------
   17. テーブル（works=図面調）
   ------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.section--light .table-wrap { background: #FFFFFF; }
.table {
  width: 100%;
  min-width: 560px;
  font-size: .93rem;
}
.table th {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
  padding: 1em 1.2em;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.table td {
  padding: .95em 1.2em;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.table td:first-child { color: var(--ink); font-weight: 500; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) td { background: rgba(158, 180, 220, .04); }
.section--light .table tbody tr:nth-child(even) td { background: rgba(11, 21, 38, .028); }
.table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* 定義リスト（会社概要等） */
.dl { border-top: 1px solid var(--line); }
.dl > div {
  display: grid;
  grid-template-columns: clamp(110px, 22%, 180px) 1fr;
  gap: 16px;
  padding: 1.05em 0;
  border-bottom: 1px solid var(--line);
}
.dl dt {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: .4em;
}
.dl dd { color: var(--ink); }
.dl dd small { display: block; color: var(--ink-2); font-size: .85em; }

/* ------------------------------------------------------------
   18. フォーム（contact）
   ------------------------------------------------------------ */
.form { display: grid; gap: 1.4rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form-field { display: grid; gap: .5rem; }
.form-field label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.req {
  display: inline-block;
  margin-left: .6em;
  padding: .05em .55em;
  border: 1px solid rgba(255, 90, 60, .45);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--fire);
  vertical-align: .15em;
}
.section--light .req { color: var(--fire-ink); border-color: rgba(201, 51, 15, .4); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .85em 1.05em;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  line-height: 1.6;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.form-field textarea { min-height: 10em; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-3); }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--net);
  box-shadow: 0 0 0 3px rgba(56, 214, 245, .18);
  background: rgba(255, 255, 255, .06);
}
.section--light .form-field input,
.section--light .form-field textarea,
.section--light .form-field select { background: #FFFFFF; }
.section--light .form-field input:focus,
.section--light .form-field textarea:focus,
.section--light .form-field select:focus {
  border-color: var(--net-ink);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, .16);
}
.form-note { font-size: .84rem; color: var(--ink-3); }

/* ------------------------------------------------------------
   19. フッター
   ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(28px, 4vw, 48px);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .05em;
  color: var(--ink);
}
.footer-tag {
  margin-top: .8em;
  color: var(--ink-2);
  font-size: .9rem;
  max-width: 20em;
}
.footer-mono {
  margin-top: 1.1em;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  line-height: 2;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1em;
}
.footer-links { display: grid; gap: .35em; }
.footer-links a {
  display: inline-block;
  padding: .18em 0;
  color: var(--ink-2);
  font-size: .88rem;
}
.footer-links a:hover { color: var(--ink); }
.footer-dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: .34em 0;
}
.footer-dl dt {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: .5em;
}
.footer-dl dd { color: var(--ink-2); font-size: .88rem; }
.footer-dl dd a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color .3s;
}
.footer-dl dd a:hover { color: var(--net); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-3);
}
.footer-bottom .footer-mono { margin-top: 0; }

/* ------------------------------------------------------------
   20. スクロールreveal（.js ゲート）
   ------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
html:not(.js) .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* ------------------------------------------------------------
   21. レスポンシブ
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav__cta { margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .bento .bento__cell { grid-column: span 6; }
  .bento .bento__cell--8, .bento .bento__cell--12 { grid-column: span 12; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .bento .bento__cell,
  .bento .bento__cell--3,
  .bento .bento__cell--6,
  .bento .bento__cell--8,
  .bento .bento__cell--12 { grid-column: 1 / -1; grid-row: auto; }
  .flow {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 0;
  }
  .flow__step {
    padding: 0 0 1.6rem 28px;
  }
  .flow__step::before { top: 6px; left: 0; }
  .flow__step::after {
    top: 20px; left: 4px; right: auto; bottom: 2px;
    width: 1px; height: auto;
  }
  .partner-grid--3 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .table { min-width: 520px; }
  .hero { padding-bottom: 90px; }
}

@media (max-width: 640px) {
  .titleblock { display: none; }
  .nav__cta { display: none; }
  .nav-toggle { margin-left: auto; } /* CTA非表示時もハンバーガーを右端に維持 */
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 40px, var(--container)); }
  .hero__actions, .cta-band__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn, .cta-band__actions .btn, .form .btn { width: 100%; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; padding: .85em 0; }
  .dl dt { padding-top: 0; }
  .partner-grid, .partner-grid--3 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   22. prefers-reduced-motion（全ループ停止）
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .bg-aurora,
  .cta-band::before,
  .nav-overlay::before { animation: none; }
  .circuit__signal {
    animation: none;
    stroke-dasharray: none;
    opacity: .3; /* パルス→静的半透明ハイライト */
  }
  .btn--primary:hover::after { animation: none; }
  .js .reveal {
    transform: none;
    transition: opacity .3s linear;
    transition-delay: 0s;
  }
  .js .draw [data-draw] {
    stroke-dashoffset: 0;
    transition: none;
  }
  .js .dim--draw .dim__line::before {
    transform: none;
    transition: none;
  }
  .btn, .card, .bento__cell, .arrow-link svg, .btn__arrow { transition-duration: .01s; }
  .btn--primary:hover, .btn--ghost:hover, .card--domain:hover, .bento__cell:hover { transform: none; }
}

/* ------------------------------------------------------------
   23. スクロール挙動・横はみ出し防止（末尾固定）
   ------------------------------------------------------------ */
html { scroll-padding-top: calc(var(--header-h) + 16px); }
section[id], [id] { scroll-margin-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html, body { overflow-x: clip; }
