/* =========================================================================
   RECMILL — rm.css（2026-11 全面刷新の共通スタイル）

   決まりごと（オーナーのデザインルール 2026-11-08 に対応）
   1. 地は2種類だけ。映像で見せる章は「夜」、言葉で説明する章は「紙」。
      章ごとに data-ground="night|paper" を付け、色はすべてここから引く。
   2. 文字の始まり線は1本。.wrap の左端（＝12段組みの1列目の頭）から始める。
      字下げするときは、格子の列の頭（.grid の列）に合わせる。中央寄せはしない。
   3. 文字の大きさは5段階（hero / display / h2 / lead・本文 / small・label）。
      どの章も「大きな一言」と「小さな文字と余白」を対にする。
   4. 日本語の改行は、tools/phrase_wrap.py が文節に入れた <wbr> でだけ折り返す
      （word-break: keep-all）。iPhone の Safari でも同じに効く。
   5. 製品の色は、その製品の札・タイルでだけ使う。会社の色（青）と混ぜない。
   ========================================================================= */

:root {
  /* 色は、ブランドキット v2（brand-tokens.css、2026-11-17）の値に合わせた */
  /* 夜 */
  --night: #04070b;
  --night-2: #0d1118;
  --night-ink: #eef2f4;
  --night-dim: rgba(238, 242, 244, .58);
  --night-faint: rgba(238, 242, 244, .5);   /* キットに無い段。46% では小さな文字のコントラストが 4.23 で足りないので 50%（4.81） */
  --night-line: rgba(238, 242, 244, .14);
  /* 紙（ブランドキットの Paper / Ink） */
  --paper: #fffdf8;
  --paper-2: #f7f5ef;   /* Mist */
  --ink: #101216;
  --ink-dim: #343942;   /* Ink Soft */
  --ink-faint: #6b7079;
  --paper-line: rgba(16, 18, 22, .12);
  /* 会社の色 */
  --blue: #1557ff;
  --blue-night: #4d8dff;   /* Blue Night */
  --cyan: #8bd8d2;
  /* 製品の色（その製品の札とタイルだけで使う） */
  --tenzoh: #0e9c8f;
  --urauchi: #b8503a;
  --cadroh: #2e6db4;
  --scamill: #ffc23d;

  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;

  /* 格子 */
  --gutter: clamp(20px, 5.2vw, 96px);
  --maxw: 1360px;
  --gap: clamp(12px, 1.8vw, 28px);

  /* 文字の大きさ（2026-11-09 から「一語ポスター」、大きさは黄金比 φ = 1.618 の段）
     オーナーが3案（黄金比・サイドヘッド・文が主役）から「黄金比で」と選んだ。
       本文 16px → 一文 42px（φ²）→ 数字・動詞 110px（φ⁴）→ 一語 178px（φ⁵）。スマホは1段ずつ下げる
     比を一定にすると、どの段の差も同じ強さで感じられる（大きさの差は比で感じる）。
     一語（.mega）は、この上限か、文字の幅の合計 --n（tools/fit_mega.py が書く）から決まる列の幅いっぱいの、
     小さいほうになる。末尾の「一語ポスター」の節を参照 */
  --mega-cap: clamp(6.875rem, 12.4vw, 11.125rem);   /* 一語：110 → 178px（φ⁴ → φ⁵） */
  --t-num: clamp(4.25rem, 7.6vw, 6.875rem);         /* 数字・列の中の動詞：68 → 110px（φ³ → φ⁴） */
  --t-statement: clamp(1.625rem, 2.9vw, 2.625rem);  /* 一文：26 → 42px（φ → φ²） */
  --t-hero: var(--t-statement);
  --t-display: var(--t-statement);
  --t-h2: var(--t-statement);
  --t-h3: 1rem;
  --t-lead: 1rem;
  --t-body: 1rem;   /* 日本語の本文は、スマホで16px以上が読みやすさの目安 */
  --t-small: .8125rem;
  --t-label: .6875rem;

  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 地 ---------- */
[data-ground="night"] {
  --bg: var(--night);
  --fg: var(--night-ink);
  --fg-dim: var(--night-dim);
  --fg-faint: var(--night-faint);
  --line: var(--night-line);
  --accent: var(--blue-night);
  --card: rgba(255, 255, 255, .04);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}
[data-ground="paper"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-dim: var(--ink-dim);
  --fg-faint: var(--ink-faint);
  --line: var(--paper-line);
  --accent: var(--blue);
  --card: #fff;
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}
[data-ground="paper-2"] {
  --bg: var(--paper-2);
  --fg: var(--ink);
  --fg-dim: var(--ink-dim);
  --fg-faint: var(--ink-faint);
  --line: var(--paper-line);
  --accent: var(--blue);
  --card: var(--paper);
  background: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* hanging-punctuation（行末の句読点のぶら下げ）は使わない。Safari では大きな見出しの「。」が
     文字1つ分（約37px）枠の外へ出て、スマホで横にずれる（2026-11-08 に WebKit で確かめた） */
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--night-ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.95;
  letter-spacing: .04em;
  font-kerning: normal;
  text-autospace: normal;   /* 和文と英数字のあいだを少し空ける（本文に半角スペースは入れない） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent, var(--blue)); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--gutter); top: 8px; z-index: 100;
  padding: .5em 1em; background: var(--paper); color: var(--ink);
  transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- 格子と始まり線 ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
/* 列の指定（パソコン）。スマホでは全部1列目から */
.c-1-6 { grid-column: 1 / span 6; }
.c-1-5 { grid-column: 1 / span 5; }
.c-1-7 { grid-column: 1 / span 7; }
.c-1-8 { grid-column: 1 / span 8; }
.c-1-10 { grid-column: 1 / span 10; }
.c-1-12 { grid-column: 1 / -1; }
.c-6-12 { grid-column: 6 / -1; }
.c-7-12 { grid-column: 7 / -1; }
.c-8-12 { grid-column: 8 / -1; }
@media (max-width: 899px) {
  [class*="c-"] { grid-column: 1 / -1; }
}

/* ---------- 文字組み ---------- */
h1, h2, h3, h4, p, li, dt, dd, figcaption, [data-wb] {
  word-break: keep-all;          /* tools/phrase_wrap.py が入れた <wbr> の所でだけ折り返す */
  overflow-wrap: anywhere;       /* 1文節が幅より長いときだけの保険 */
  line-break: strict;
}
h1, h2, h3, .t-hero, .t-display, .t-h2 {
  font-feature-settings: "palt" 1;   /* 見出しだけ詰める */
  text-wrap: balance;
}
/* 本文には text-wrap: pretty を使わない（2026-11-09）。日本語の段落に長い英語の並び（肩書きなど）が混ざると、
   WebKit（Safari と同じ描画系）が表示の途中で落ちた（news-faro-meeting.html・幅390px で再現、3回とも）。
   pretty は最後の行を整えるだけの指定なので外す。見出しの balance は関係しないので残す */
p, li, dd, figcaption { line-break: strict; }
.nw { white-space: nowrap; }
br.lg { display: none; }
@media (min-width: 900px) { br.lg { display: inline; } }

/* 以前の見出しの段（t-hero・t-display・t-h2）は、どれも「一文」の大きさにそろえた（2026-11-09） */
.t-hero, .t-display, .t-h2 {
  font-size: var(--t-statement);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
}
.t-h3 {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .03em;
}
.t-lead {
  font-size: var(--t-lead);
  line-height: 2;
  letter-spacing: .05em;
  color: var(--fg-dim);
  max-width: 36em;
}
.t-body { color: var(--fg-dim); max-width: 36em; }
.t-small {
  font-size: var(--t-small);
  line-height: 1.85;
  letter-spacing: .06em;
  color: var(--fg-faint);
}
.label {
  display: block;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.label b { color: var(--accent); font-weight: 700; margin-right: 1.2em; letter-spacing: .12em; }
.accent { color: var(--accent); }

/* ---------- 英語版 ----------
   和文向けの字間（.04em）と行間（1.95）は英文には広すぎるので詰める。<wbr> は入れない */
html[lang="en"] body { letter-spacing: 0; line-height: 1.7; }
html[lang="en"] .t-lead { letter-spacing: 0; line-height: 1.7; }
html[lang="en"] .t-small, html[lang="en"] figcaption { letter-spacing: .01em; line-height: 1.65; }
html[lang="en"] .t-hero { letter-spacing: -.035em; line-height: 1; }
html[lang="en"] .t-display { letter-spacing: -.03em; line-height: 1.04; }
html[lang="en"] .t-h2 { letter-spacing: -.015em; line-height: 1.2; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px;
  font-size: .9375rem; font-weight: 700; letter-spacing: .08em;
  text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn::after { content: "→"; font-weight: 400; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
/* 塗りのボタンは夜でも紙でも会社の青。夜の明るい青では白い文字との差が足りない */
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: #0f45d1; }
.btn--line { border: 1px solid var(--line); color: var(--fg); }
.btn--line:hover { border-color: var(--fg); }
.btn--down::after { content: "↓"; }
.btn--down:hover::after { transform: translateY(3px); }
.btn--ext::after { content: "↗"; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.more {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px;
  justify-self: start; width: fit-content;
  font-size: var(--t-small); font-weight: 700; letter-spacing: .1em;
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.more::after { content: "→"; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px); }
.more--ext::after { content: "↗"; }

/* ---------- ヘッダー ---------- */
.rm-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--night-ink);
  transition: background .35s, color .35s, box-shadow .35s;
}
.rm-header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.rm-logo { display: block; flex: none; }
.rm-logo img { width: 128px; height: auto; filter: brightness(0) invert(1); transition: filter .35s; }
.rm-nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.rm-nav a, .rm-lang a {
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em;
  text-decoration: none; opacity: .86; padding: 10px 0;
}
.rm-nav a:hover, .rm-nav a[aria-current="page"], .rm-nav a[aria-current="true"] { opacity: 1; box-shadow: inset 0 -1px 0 currentColor; }
.rm-header__end { display: flex; align-items: center; gap: 20px; }
.rm-lang { display: flex; gap: 10px; font-size: .75rem; }
.rm-lang a { opacity: .6; }
.rm-lang a.is-current { opacity: 1; }
.rm-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.2em;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-decoration: none;
}
.rm-menu-btn {
  display: none; width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.rm-menu-btn span[aria-hidden] {
  position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.rm-menu-btn span[aria-hidden]:nth-child(1) { top: 19px; }
.rm-menu-btn span[aria-hidden]:nth-child(2) { top: 27px; }
.rm-menu-btn[aria-expanded="true"] span[aria-hidden]:nth-child(1) { top: 23px; transform: rotate(45deg); }
.rm-menu-btn[aria-expanded="true"] span[aria-hidden]:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* 下にある章が紙のとき（rm.js が data-on を付ける） */
.rm-header.is-solid[data-on="night"] { background: rgba(4, 7, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.rm-header.is-solid[data-on="paper"] { background: rgba(255, 253, 248, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--paper-line); }
.rm-header[data-on="paper"] { color: var(--ink); }
.rm-header[data-on="paper"] .rm-logo img { filter: none; }  /* 紙の地では standard 版のまま（ブランドキット v2 の 3.4。夜の地では小さいので白1色） */

.rm-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--night); color: var(--night-ink);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.rm-menu[hidden] { display: none; }
.rm-menu a { text-decoration: none; }
.rm-menu__main a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--night-line);
  font-size: 1.5rem; font-weight: 700; letter-spacing: .02em;
}
.rm-menu__main a small { font-size: .6875rem; letter-spacing: .2em; color: var(--night-faint); font-weight: 600; }
.rm-menu__sub { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; color: var(--night-dim); }
.rm-menu__sub a { padding: 10px 0; }
.rm-menu .btn { align-self: flex-start; }
body.menu-open { overflow: hidden; }
body.menu-open .rm-header { color: var(--night-ink); background: transparent; box-shadow: none; }
body.menu-open .rm-header .rm-logo img { filter: brightness(0) invert(1); }

@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .rm-nav, .rm-header__end .rm-cta, .rm-header__end .rm-lang { display: none; }
  .rm-menu-btn { display: block; }
  .rm-header__end { margin-left: auto; }
  .rm-logo img { width: 112px; }
}

/* ---------- 章 ---------- */
.chapter { position: relative; padding-block: clamp(96px, 15vw, 220px); }
.chapter + .chapter[data-ground="paper"], .chapter + .chapter[data-ground="paper-2"] { border-top: 0; }
.chapter__head { display: grid; gap: clamp(20px, 2.4vw, 36px); align-content: start; margin-bottom: clamp(48px, 7vw, 112px); }
.chapter__head .t-display { max-width: 14em; }

/* ---------- 現れる動き（reduced-motion では最初から全部見せる） ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 映像 ---------- */
.media { position: relative; overflow: hidden; border-radius: 4px; background: var(--night-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--paper { background: #fff; }
.media__note {
  position: absolute; right: 12px; bottom: 10px;
  font-size: .625rem; letter-spacing: .1em; line-height: 1.4;
  color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.media--paper .media__note { color: var(--ink-faint); text-shadow: none; }
figcaption { margin-top: 12px; font-size: var(--t-small); line-height: 1.8; letter-spacing: .06em; color: var(--fg-faint); }

/* ---------- 用語の解説カード ---------- */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
.term {
  padding: 22px 24px 24px;
  border-top: 2px solid var(--accent);
  background: var(--card);
}
.term dfn { display: block; font-style: normal; font-weight: 700; font-size: 1.0625rem; letter-spacing: .04em; line-height: 1.5; }
.term dfn small { margin-left: .6em; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; color: var(--fg-faint); }
.term p { margin-top: 8px; font-size: .875rem; line-height: 1.9; color: var(--fg-dim); }
.term__tag { display: block; font-size: .625rem; font-weight: 700; letter-spacing: .24em; color: var(--accent); margin-bottom: 10px; }

/* ---------- 数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px var(--gap); }
@media (max-width: 599px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat__num {
  display: block; font-family: "Inter", sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: .42em; letter-spacing: 0; margin-left: .12em; font-weight: 700; }
.stat__label { display: block; margin-top: 12px; font-size: var(--t-small); line-height: 1.7; color: var(--fg-dim); }
.source { margin-top: 28px; font-size: .75rem; line-height: 1.9; letter-spacing: .04em; color: var(--fg-faint); }
.source a { text-underline-offset: 3px; }

/* ---------- YouTube（押してから読み込む） ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.yt button {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.yt button:hover img { transform: scale(1.03); }
.yt__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: rgba(4, 7, 11, .72); backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .3s var(--ease), background .3s;
}
.yt__play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.yt button:hover .yt__play { transform: scale(1.08); background: var(--blue); }
.yt__time {
  position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 3px;
  background: rgba(0, 0, 0, .78); color: #fff; font-size: .75rem; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { margin-top: 18px; display: grid; gap: 6px; }
.video-meta .t-h3 a { text-decoration: none; }

/* ---------- 比較スライダー ---------- */
.compare { position: relative; --pos: 50%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #ccc; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.compare__bar::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: 10px 12px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: .625rem; letter-spacing: .2em; white-space: nowrap; box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare__tag {
  position: absolute; top: 14px; padding: 4px 10px; border-radius: 3px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; pointer-events: none;
  background: rgba(4, 7, 11, .7); color: #fff;
}
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; }

/* ---------- 製品の札とタイル ---------- */
.kind {
  display: inline-flex; align-items: center; gap: .5em; justify-self: start; width: fit-content;
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em; line-height: 1;
  padding: 6px 10px; border-radius: 3px;
}
.kind--service { background: transparent; color: var(--fg-dim); box-shadow: inset 0 0 0 1px var(--line); }
/* 製品の札：会社のページでは「色の丸＋製品名」（ブランドキット v2 の 4.6：製品の色は製品の中だけ。会社の資料では小さな印に）。
   製品のページ（冒頭が .page-hero--product）の中だけ、製品の色で塗る（2026-11-17 オーナーが選んだ） */
.kind--product { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.kind--product::before { content: ""; flex: none; width: .75em; height: .75em; border-radius: 50%; background: var(--p, var(--fg-dim)); }
body:has(.page-hero--product) .kind--product { background: var(--p, var(--ink)); color: #fff; box-shadow: none; }
body:has(.page-hero--product) .kind--product::before { display: none; }
body:has(.page-hero--product) .kind--product[data-p="scamill"] { color: var(--ink); }

[data-p="tenzoh"] { --p: var(--tenzoh); }
[data-p="urauchi"] { --p: var(--urauchi); }
[data-p="cadroh"] { --p: var(--cadroh); }
[data-p="scamill"] { --p: var(--scamill); }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 899px) { .products { grid-template-columns: 1fr; } }
.product {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  background: var(--card); color: var(--ink); text-decoration: none;
  border-radius: 8px; overflow: hidden;   /* キット：カードは 8–16px */
  box-shadow: 0 0 0 1px var(--paper-line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.product:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--paper-line), 0 18px 48px -18px rgba(16, 18, 22, .28); }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--p); z-index: 2; }
.product__shot { aspect-ratio: 16 / 9; overflow: hidden; background: #0d1118; }
.product__shot img, .product__shot video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* 縦長の画面録画は、枠の高さに合わせて中央に置く（絶対配置にして % の高さを確定させる） */
.product__shot--phone { position: relative; background: #16171a; }
.product__shot--phone video, .product__shot--phone img {
  position: absolute; top: 5%; left: 50%; height: 90%; width: auto; aspect-ratio: 720 / 1564;
  transform: translateX(-50%); object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 4px #2b2c31;
}
.product__shot--logo { display: grid; place-items: center; background: var(--night-2); }  /* 製品の色の大きな面にしない（キット 4.6）。上端の4pxの帯で CADROH の色を示す */
.product__shot--logo img { width: 58%; height: auto; object-fit: contain; }
.product__body { padding: 26px 28px 30px; display: grid; gap: 10px; align-content: start; }
.product__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.product__name strong { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.product__name span { font-size: var(--t-small); color: var(--ink-faint); letter-spacing: .08em; }
.product__copy { font-size: 1.0625rem; font-weight: 700; line-height: 1.7; }
.product__desc { font-size: .875rem; color: var(--ink-dim); line-height: 1.9; }
.product__status { font-size: .75rem; letter-spacing: .08em; color: var(--ink-faint); }
.product__status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--p); margin-right: .7em; vertical-align: .08em; }
.product__by { font-size: .625rem; letter-spacing: .24em; color: var(--ink-faint); text-transform: uppercase; }

/* ---------- お知らせの並び ---------- */
.news-rows { border-top: 1px solid var(--line); }
.news-rows a {
  display: grid; grid-template-columns: 8.5em 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.news-rows time { font-size: var(--t-small); letter-spacing: .08em; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.news-rows span { font-size: .9375rem; line-height: 1.8; }
.news-rows a::after { content: "→"; color: var(--fg-faint); transition: transform .25s var(--ease); }
.news-rows a:hover::after { transform: translateX(4px); color: var(--fg); }
@media (max-width: 599px) {
  .news-rows a { grid-template-columns: 1fr; gap: 2px; }
  .news-rows a::after { display: none; }
}

/* ---------- フッター ---------- */
.rm-footer { padding-block: clamp(72px, 9vw, 120px) 40px; font-size: var(--t-small); }
.rm-footer .grid { row-gap: 40px; }
.rm-footer__brand img { width: 150px; height: auto; }  /* night 版の SVG（ガラス面はアイスブルー、文字と陰影は白）。ブランドキット v2 の 3.4 */
.rm-footer__brand p { margin-top: 18px; color: var(--fg-faint); line-height: 1.9; }
.rm-footer__brand .tagline { margin-top: 22px; color: var(--fg); font-weight: 700; letter-spacing: .12em; }
.rm-footer h2 { font-size: .6875rem; font-weight: 700; letter-spacing: .24em; color: var(--fg-faint); margin-bottom: 14px; text-transform: uppercase; }
.rm-footer li a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--fg-dim); }
.rm-footer li a:hover { color: var(--fg); }
.rm-footer__yt {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 6px;
  background: rgba(255, 255, 255, .06); text-decoration: none;
}
.rm-footer__yt::before { content: ""; flex: none; width: 34px; height: 24px; border-radius: 6px; background: #ff0033 no-repeat center / 10px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23fff'/%3E%3C/svg%3E"); }
.rm-footer__yt b { display: block; font-size: .875rem; }
.rm-footer__yt span { display: block; font-size: .6875rem; color: var(--fg-faint); letter-spacing: .06em; }
.rm-footer__base {
  margin-top: clamp(56px, 7vw, 96px); padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  color: var(--fg-faint); font-size: .75rem; letter-spacing: .06em;
}
.rm-footer__base nav { display: flex; gap: 20px; }
.rm-footer__base a { text-decoration: none; padding: 6px 0; }
.c-f-brand { grid-column: 1 / span 4; }
.c-f-1 { grid-column: 5 / span 2; }
.c-f-2 { grid-column: 7 / span 2; }
.c-f-3 { grid-column: 9 / span 2; }
.c-f-4 { grid-column: 11 / span 2; }
@media (max-width: 1099px) {
  .c-f-brand { grid-column: 1 / -1; }
  .c-f-1 { grid-column: 1 / span 3; } .c-f-2 { grid-column: 4 / span 3; }
  .c-f-3 { grid-column: 7 / span 3; } .c-f-4 { grid-column: 10 / span 3; }
}
@media (max-width: 699px) {
  .c-f-1, .c-f-3 { grid-column: 1 / span 6; }
  .c-f-2, .c-f-4 { grid-column: 7 / span 6; }
}

/* =========================================================================
   下層ページの部品（2026-11、service.html から使い始めた）
   ========================================================================= */

/* ---------- 下層ページの冒頭 ---------- */
.page-hero { position: relative; min-height: min(86svh, 820px); display: grid; align-items: end; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, .82) 0%, rgba(4, 7, 11, .35) 55%, rgba(4, 7, 11, .1) 100%),
    linear-gradient(0deg, rgba(4, 7, 11, .9) 0%, rgba(4, 7, 11, 0) 50%);
}
.page-hero__body { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 72px) clamp(56px, 8vh, 104px); display: grid; gap: clamp(18px, 2.2vw, 30px); }
.page-hero__body .t-display { max-width: 12em; }
.page-hero__note { font-size: .6875rem; letter-spacing: .1em; color: var(--night-faint); }

/* ---------- パンくず（文字は構造化データの BreadcrumbList と完全に一致させる） ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .75rem; letter-spacing: .06em; color: var(--fg-faint); }
.crumbs a { text-decoration: none; color: var(--fg-dim); }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .5; }

/* ---------- 困りごとから選ぶ ---------- */
.finder { border-top: 1px solid var(--line); }
.finder a {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline;
  padding: clamp(22px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .3s;
}
.finder a:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.finder__q { grid-column: 1 / span 6; font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.5; }
.finder__a { grid-column: 7 / span 2; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.finder__a::before { content: "→ "; }
.finder__d { grid-column: 9 / -1; font-size: .875rem; color: var(--fg-dim); line-height: 1.85; }
@media (max-width: 899px) {
  .finder__q, .finder__a, .finder__d { grid-column: 1 / -1; }
  .finder__a { margin-top: 8px; }
  .finder__d { margin-top: 4px; }
}

/* ---------- サービスの行 ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.svc__head { grid-column: 1 / span 5; display: grid; gap: 14px; align-content: start; }
.svc__body { grid-column: 6 / -1; display: grid; gap: 22px; align-content: start; }
.svc__num { font-family: "Inter", sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.svc__verb { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.1; font-feature-settings: "palt" 1; }
.svc__act { font-size: .75rem; letter-spacing: .12em; color: var(--fg-faint); }
.svc__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc__list li { display: grid; grid-template-columns: minmax(8em, 30%) 1fr; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.8; }
.svc__list b { font-weight: 700; }
.svc__list span { color: var(--fg-dim); }
.svc__meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.svc__spec { display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* ---------- 札（タグ）の決まり（2026-11-08 オーナー指示「札のデザインに意味を持たせ、差別化を」）
   サービス   枠線だけ（.kind--service）        私たちが引き受ける仕事
   プロダクト 製品の色で塗る（.kind--product）  お客様が自分で使える道具
   機材       黒い丸型＋アイコン＋▾（.tag--gear）私たちが使う機器。押すと説明とメーカーのページ
   仕様       箱なし・左に細い線（.tag--spec）  納品の形式や日数。押せない情報
   どのページでもこの4種類だけを使い、新しい見た目の札を増やさない。 ---------- */
.tag { display: inline-flex; align-items: center; gap: .5em; line-height: 1.2; }
.tag--spec { padding-left: 10px; border-left: 2px solid var(--line); font-size: .8125rem; letter-spacing: .04em; color: var(--fg-dim); }
.tag--spec i { font-style: normal; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; color: var(--fg-faint); }

/* 機材の札は押せるボタン。説明の箱（.gear-panels の中）は札の並びのすぐ下に開く。
   rm.js が最初に全部閉じる。JS が動かない環境では、説明が最初から全部見える */
.gear-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag--gear {
  padding: 7px 12px 7px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--fg); color: var(--bg); font: inherit;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; line-height: 1.2;
  transition: background .2s, color .2s;
}
.tag--gear svg { width: 15px; height: 15px; flex: none; }
button.tag--gear::after { content: "▾"; font-size: .75em; opacity: .7; transition: transform .25s var(--ease); }
.tag--gear[aria-expanded="true"] { background: var(--accent); color: #fff; }
.tag--gear[aria-expanded="true"]::after { transform: rotate(180deg); }
.gear-panels { display: grid; gap: 10px; }
.gear-panels:not(:has(.gear__pop:not([hidden]))) { display: none; }
.gear__pop {
  padding: 16px 18px; border-radius: 6px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 14px 32px -18px rgba(0, 0, 0, .4);
  display: grid; gap: 6px; max-width: 36em;
}
.gear__pop[hidden] { display: none; }
.gear__pop b { font-size: .9375rem; }
.gear__type { font-size: .75rem; color: var(--fg-faint); letter-spacing: .04em; }
.gear__pop p { font-size: .875rem; color: var(--fg-dim); line-height: 1.85; }
.gear__pop a { justify-self: start; font-size: .8125rem; font-weight: 700; text-underline-offset: 3px; }

.tag-legend { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.tag-legend div { display: flex; align-items: center; gap: 10px; }
.tag-legend dd { font-size: .8125rem; color: var(--fg-dim); }
.tag-legend .tag--gear { cursor: default; }
.tag-legend .tag--gear::after { content: "▾"; font-size: .75em; opacity: .7; }
/* リンクの下に一言を置く（横に並べると、一言の始まりが始まり線から外れる） */
.svc__foot { display: grid; justify-items: start; gap: 6px; }
.svc__foot small { display: block; font-size: .8125rem; color: var(--fg-faint); }
.svc .media { aspect-ratio: 16 / 9; }
@media (max-width: 899px) {
  .svc__head, .svc__body { grid-column: 1 / -1; }
  .svc__list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- 組み合わせの例 ---------- */
.combos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 899px) { .combos { grid-template-columns: 1fr; } }
.combo { padding: 24px 24px 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 4px; display: grid; gap: 12px; align-content: start; }
.combo__route { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.combo__route span { font-size: .75rem; font-weight: 700; letter-spacing: .06em; padding: 4px 9px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.combo__route i { font-style: normal; color: var(--fg-faint); font-size: .75rem; }
.combo h3 { font-size: 1.0625rem; line-height: 1.55; }
.combo p { font-size: .875rem; color: var(--fg-dim); line-height: 1.85; }

/* ---------- 進め方 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: st; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.steps li::before { counter-increment: st; content: "0" counter(st); font-family: "Inter", sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
.steps b { font-size: 1.125rem; line-height: 1.5; }
.steps p { font-size: .875rem; color: var(--fg-dim); line-height: 1.85; }

/* ---------- 製品の小さな一覧 ---------- */
.prod-rows { border-top: 1px solid var(--line); }
.prod-rows a {
  display: grid; grid-template-columns: 44px repeat(11, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative;
}
.prod-rows img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 6px; }
.prod-rows strong { grid-column: 2 / span 3; font-size: 1.125rem; letter-spacing: .02em; }
.prod-rows .kind { grid-column: 5 / span 3; }
.prod-rows .prod-rows__copy { grid-column: 8 / -1; font-size: .875rem; color: var(--fg-dim); }
.prod-rows a::after { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 2px; background: var(--p); }
@media (max-width: 899px) {
  .prod-rows a { grid-template-columns: 44px 1fr; row-gap: 6px; }
  .prod-rows strong, .prod-rows .kind, .prod-rows .prod-rows__copy { grid-column: 2 / -1; }
}

/* ---------- 実績の表 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 899px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font-size: .75rem; letter-spacing: .08em; color: var(--fg-faint); }
.facts dd { margin-top: 6px; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.facts dd > small { display: block; margin-top: 6px; font-size: .75rem; font-weight: 400; letter-spacing: .04em; color: var(--fg-dim); }

/* ---------- パートナー ---------- */
.partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 899px) { .partners { grid-template-columns: 1fr 1fr; } }
.partner { display: grid; gap: 10px; align-content: start; padding: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 4px; text-decoration: none; }
.partner__logo { height: 44px; display: flex; align-items: center; }
.partner__logo img { max-height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.partner__logo--text { font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: .08em; font-size: 1.125rem; }
.partner b { font-size: .9375rem; line-height: 1.5; }
.partner span { font-size: .8125rem; color: var(--fg-dim); line-height: 1.7; }

/* ---------- よくある質問 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 28px; gap: 16px; align-items: baseline;
  padding: 22px 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; justify-self: end; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 44px 24px 0; color: var(--fg-dim); font-size: .9375rem; line-height: 1.95; }

/* ---------- 問い合わせフォーム ---------- */
/* 項目は1列に並べる（2列にすると右の列の項目名が、文字の始まり線から外れる） */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }  /* 長い選択肢を選んだときに、欄が文字の幅まで広がらないように */
.form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.form .full { grid-column: 1 / -1; }
.form label > span { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  font: inherit; font-size: 1rem; letter-spacing: .02em;
}
.form textarea { min-height: 160px; resize: vertical; }
.form select { min-width: 0; text-overflow: ellipsis; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .privacy { display: flex; align-items: center; gap: 10px; }
.form .privacy input { width: 20px; height: 20px; accent-color: var(--accent); }
.form .privacy span { font-weight: 400; }
.form button { justify-self: start; border: 0; cursor: pointer; }
.form-note { font-size: .8125rem; color: var(--fg-faint); line-height: 1.8; }
.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-info dt { font-size: .75rem; letter-spacing: .1em; color: var(--fg-faint); }
.contact-info dd { margin-top: 4px; font-size: 1rem; line-height: 1.8; }
.contact-info dd a { text-decoration: none; }
.contact-info .tel { font-family: "Inter", sans-serif; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; }

/* =========================================================================
   詳細ページの部品（2026-11、survey.html から使い始めた。transform・analyze でも使う）
   ========================================================================= */

/* ---------- 冒頭が動画のとき ----------
   下に最初の絵（picture）を敷き、動画は再生が始まってから見せる（rm.js が is-playing を付ける）。
   自動再生が止められたとき・動きを減らす設定のときは、最初の絵のまま */
.page-hero__poster { position: absolute; inset: 0; }
.page-hero__poster img { width: 100%; height: 100%; object-fit: cover; }
video.page-hero__media { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
video.page-hero__media.is-playing, .no-js video.page-hero__media { opacity: 1; }
.page-hero .svc__spec { margin-top: 4px; }

/* ---------- しくみの図（3つの手順を図で見せる） ---------- */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); counter-reset: how; }
@media (max-width: 899px) { .how { grid-template-columns: 1fr; } }
.how > li { display: grid; gap: 12px; align-content: start; }
.how__fig { aspect-ratio: 3 / 2; border-radius: 4px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.how__fig svg { width: 100%; height: 100%; color: var(--fg-dim); }
.how__fig .ac { color: var(--accent); }
.how__fig text { font: 700 9px/1 "Inter", "Noto Sans JP", sans-serif; letter-spacing: .08em; fill: var(--fg-faint); }
.how > li > b::before { counter-increment: how; content: "0" counter(how) "　"; font-family: "Inter", sans-serif; font-size: .75rem; letter-spacing: .2em; color: var(--accent); }
.how > li > b { font-size: 1.125rem; line-height: 1.5; padding-top: 6px; }
.how > li > p { font-size: .9375rem; color: var(--fg-dim); line-height: 1.9; }
.gear-block { margin-top: 44px; display: grid; gap: 14px; }

/* ---------- 「こんなときに」の一覧（2列。行頭の短い線は、文字の始まり線の上に置く） ---------- */
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 599px) { .uses { grid-template-columns: 1fr; } }
.uses li { position: relative; padding: 18px 0 16px; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 700; line-height: 1.7; }
.uses li::before { content: ""; position: absolute; left: 0; top: -1px; width: 28px; height: 2px; background: var(--accent); }

/* ---------- 納めるもの（左に種類、右に形式） ---------- */
.spec-table { border-bottom: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.spec-table dt { grid-column: 1 / span 4; font-weight: 700; line-height: 1.6; }
.spec-table dt small { display: block; margin-top: 4px; font-size: .75rem; font-weight: 400; letter-spacing: .04em; color: var(--fg-faint); }
.spec-table dd { grid-column: 5 / -1; display: grid; gap: 10px; justify-items: start; }
.spec-table .fmt { font-family: "Inter", sans-serif; font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 800; letter-spacing: .02em; line-height: 1.25; }
.spec-table dd p { font-size: .875rem; color: var(--fg-dim); line-height: 1.85; }
@media (max-width: 599px) { .spec-table dt, .spec-table dd { grid-column: 1 / -1; } }

/* ---------- 次の一歩（このあとに続くサービスへ） ---------- */
.next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 899px) { .next-steps { grid-template-columns: 1fr; } }
.next-steps a { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.next-steps .media { aspect-ratio: 16 / 9; }
.next-steps b { font-size: 1.25rem; line-height: 1.4; }
.next-steps b::after { content: " →"; color: var(--accent); transition: margin .25s var(--ease); }
.next-steps a:hover b::after { margin-left: 6px; }
.next-steps span { font-size: .875rem; color: var(--fg-dim); line-height: 1.85; }

/* ---------- 写真と文を左右に（スマホでは縦） ---------- */
.split { align-items: start; row-gap: 28px; }
.split figure { display: grid; gap: 10px; }
.split figcaption { font-size: .75rem; letter-spacing: .04em; color: var(--fg-faint); line-height: 1.8; }
@media (max-width: 899px) { .split > * { grid-column: 1 / -1; } }
/* survey などで使う間隔 */
.split > [class*="c-8"] { display: grid; gap: 14px; align-content: start; justify-items: start; }
.under-wide { aspect-ratio: 1920 / 796; }
.split.under-video, .split.uses-video { margin-top: clamp(48px, 6vw, 88px); }
.under-video + .facts { margin-top: clamp(56px, 7vw, 104px); }
.terms.survey-terms { margin-top: clamp(48px, 6vw, 80px); }
.survey-terms + .why__foot { margin-top: 20px; }
.next-steps + .why__foot { margin-top: clamp(32px, 4vw, 48px); }
/* スマホでは連絡先の下にフォームが続くので、間を空ける */
@media (max-width: 899px) { .grid > .contact-info { margin-bottom: 40px; } }
/* スマホの冒頭は文字が画面の幅いっぱいに重なるので、陰を全体に濃くする */
@media (max-width: 720px) {
  .page-hero__shade { background: linear-gradient(0deg, rgba(4, 7, 11, .94) 0%, rgba(4, 7, 11, .62) 55%, rgba(4, 7, 11, .4) 100%); }
}
/* iPhone の Safari では、長い選択肢を選ぶと文字が選択欄の枠の外まで描かれ、ページが横にはみ出す。
   選択欄を包む label で切り落とし、選択欄の枠の光（focus）は内側に描く */
.form label:has(select) { overflow: clip; }
.form select:focus { outline-offset: -2px; }
/* 手順の図と同じ並びで、番号を付けない版（モデルの細かさの段階など） */
.how--plain > li > b::before { content: none; }
.how--plain > li > b small { display: block; margin-bottom: 4px; font-family: "Inter", sans-serif; font-size: .6875rem; font-weight: 700; letter-spacing: .2em; color: var(--accent); }
/* 縦長の画面写真などを、切らずに収める */
.media--contain img { object-fit: contain; }
/* 関連するプロダクトを1つだけ紹介する箱（製品の行＋説明＋リンク） */
.product-callout { display: grid; gap: 18px; align-content: start; }
/* 冒頭の中身が、長いボタンなどに押し広げられて画面の外へ出ないように */
.page-hero__body { grid-template-columns: minmax(0, 1fr); }
/* 仕様の札の項目名（納品・Formats など）は折り返さない */
.tag--spec i { flex: none; }
/* 色の目盛り（ヒートマップの青→赤） */
.ramp { margin-top: 28px; display: flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .06em; color: var(--fg-dim); }
.ramp i { width: min(320px, 50vw); height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2563eb, #22d3ee 35%, #facc15 65%, #dc2626); }
.ramp + .why__foot { margin-top: 10px; }
/* 受託開発の対応領域（ことばの札と同じ箱を使う） */
.terms.dev-areas { margin-top: clamp(40px, 5vw, 64px); }
.chapter__head .svc__meta { margin-top: 4px; }
/* 業界の一覧は少し大きく */
.industry-list li { font-size: clamp(1.05rem, 1.6vw, 1.375rem); }
@media (min-width: 900px) { .industry-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }  /* 3列＝格子の4列ずつ。列の頭が格子の線に乗る */
.dev-areas + .why__foot { margin-top: 20px; }

/* ---------- プロダクトの一覧（products.html） ---------- */
/* 冒頭：4つの製品の画面を田の字に並べる */
.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #000; }
.hero-mosaic > img, .hero-mosaic > span { width: 100%; height: 100%; min-height: 0; }
.hero-mosaic > img:last-child { object-position: center 35%; }
.hero-mosaic .product__shot--logo img { width: 46%; height: auto; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 9px; font-family: "Inter", sans-serif; font-size: .875rem; font-weight: 700; letter-spacing: .08em; }
.hero-chips li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--p); }
/* 困りごとから製品を選ぶ欄：矢印の代わりに製品の色の四角 */
.finder--products .finder__a { color: var(--fg); }
.finder--products .finder__a::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--p); margin-right: 9px; vertical-align: .02em; }
/* サービスとプロダクトの違い */
.kind-card { padding: 28px; background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 4px; display: grid; gap: 12px; align-content: start; justify-items: start; }

/* ---------- 製品ページ（tenzoh/ urauchi/ cadroh/） ----------
   冒頭は「左に文、右に実際の画面」。画面を全面に敷くと製品が見出しの下に隠れるため。
   上端の細い帯と背景のにじみは製品の色（data-p）。札の決まりは「プロダクト＝製品の色で塗る」 */
.page-hero--product { align-items: center; background: radial-gradient(60% 80% at 82% 45%, color-mix(in srgb, var(--p) 20%, transparent), transparent 70%), var(--bg); }
.page-hero--product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--p); z-index: 3; }
.product-hero { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 64px) clamp(56px, 8vh, 96px); align-items: center; row-gap: 44px; }
.product-hero__text { display: grid; gap: clamp(16px, 2vw, 24px); justify-items: start; align-content: center; }
.product-hero__text .t-display { font-size: clamp(2.4rem, 5vw, 4.6rem); }
.product-hero__shot { display: grid; gap: 10px; }
.product-hero__shot img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .85); }
.product-hero__shot figcaption { font-size: .6875rem; letter-spacing: .1em; color: var(--night-faint); }
@media (max-width: 899px) { .product-hero > * { grid-column: 1 / -1; } }
.product-id { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.product-id img { height: clamp(40px, 4.4vw, 56px); width: auto; }
.product-id .by { font-family: "Inter", sans-serif; font-size: .6875rem; font-weight: 700; letter-spacing: .24em; color: var(--fg-faint); }
.status { display: inline-flex; align-items: center; gap: .6em; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p, var(--accent)); }
/* 機能の行（画面と説明を左右に。1行ごとに左右を入れ替える） */
.feature { align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.feature figure { margin: 0; }
.feature__text { display: grid; gap: 14px; justify-items: start; align-content: center; }
.checks { display: grid; gap: 6px; }
.checks li { font-size: .875rem; line-height: 1.8; color: var(--fg-dim); }
.checks li::before { content: "✓"; margin-right: .55em; font-weight: 700; color: var(--accent); }
@media (max-width: 899px) { .feature--rev .feature__text { order: 2; } }
.terms.pillars { margin-top: clamp(8px, 2vw, 24px); }
@media (min-width: 900px) { .terms.pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }  /* 6つの柱は 3×2 に */
/* 縦長のスマホ画面を、横長の枠の中に切らずに置く */
.media--phone { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #16171a; }
.media--phone img { width: auto; height: 92%; object-fit: contain; border-radius: 10px; }
/* 6つの手順は 3×2（見出しだけの手順） */
@media (min-width: 900px) { .steps--six { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } }
.process-note { margin-top: clamp(32px, 4vw, 48px); max-width: 44em; color: var(--fg-dim); }
/* 製品ページの冒頭に、画面写真の代わりに説明図を置くとき（CADROH） */
.product-hero__shot--diagram svg { width: 100%; height: auto; display: block; }
.quality-fig { display: grid; gap: 10px; margin: 0; }
.quality-fig svg { width: 100%; height: auto; border-radius: 6px; }
.quality-fig figcaption { font-size: .6875rem; letter-spacing: .06em; color: var(--fg-faint); line-height: 1.8; }
/* 3列の比べる表（左に項目、真ん中に他の方法、右に自社の製品）。列の頭は格子の線（1・5・9列目） */
.compare-rows { border-bottom: 1px solid var(--line); }
.compare-rows > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.compare-rows dt { grid-column: 1 / span 4; font-weight: 700; line-height: 1.7; }
.compare-rows dd { grid-column: span 4; font-size: .9375rem; line-height: 1.8; }
.compare-rows .is-them { color: var(--fg-faint); }
.compare-rows .is-us { font-weight: 700; }
.compare-rows .is-us::before { content: "✓"; margin-right: .5em; color: var(--accent); }
.compare-rows__head dt, .compare-rows__head dd { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; color: var(--fg-faint); }
.compare-rows__head dd[data-p] { color: var(--p); }
@media (max-width: 599px) { .compare-rows dt, .compare-rows dd { grid-column: 1 / -1; } .compare-rows__head { display: none !important; } }
/* 札の箱のすぐ下の注記は、少し離す */
.terms + .why__foot { margin-top: 20px; }

/* ---------- 事例（cases.html） ---------- */
.case-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
@media (max-width: 1099px) { .case-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .case-cards { grid-template-columns: 1fr; } }
.case-card { display: grid; gap: 12px; align-content: start; scroll-margin-top: var(--header-h); }
.case-card .media { aspect-ratio: 16 / 9; }
.case-card h3 span { margin-left: .6em; font-size: .75rem; font-weight: 400; letter-spacing: .06em; color: var(--fg-faint); }
.case-card p { font-size: .875rem; line-height: 1.9; color: var(--fg-dim); }
/* 狭い欄の中の数字は縦に積む（2列にすると2列目が格子の線から外れる） */
.facts--two { grid-template-columns: 1fr; gap: 14px; width: 100%; }
@media (max-width: 899px) { .facts--two { grid-template-columns: 1fr; } }
#manufacturing, #food, #infrastructure, #construction, #commercial { scroll-margin-top: var(--header-h); }
.case-cards + .why__foot { margin-top: 24px; }

/* ---------- 用語集（glossary.html） ---------- */
.page-hero--short { min-height: min(72svh, 680px); }
.term-index { display: flex; flex-wrap: wrap; gap: 8px 10px; max-width: 60em; }
.term-index a { display: inline-block; padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); font-size: .8125rem; font-weight: 700; text-decoration: none; color: var(--fg); }
.term-index a:hover { background: rgba(255, 255, 255, .1); }
.glossary-terms .term { scroll-margin-top: calc(var(--header-h) + 16px); }
.glossary-terms .term:target { box-shadow: 0 0 0 2px var(--accent); }
.term__rel { display: inline-block; margin-top: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--accent); }
.term__rel::after { content: " →"; }

/* ---------- 会社情報（about.html） ---------- */
.portrait { margin: 0; display: grid; gap: 10px; align-content: start; }
.portrait img { width: 100%; max-width: 360px; height: auto; border-radius: 4px; }
.portrait figcaption { font-size: .75rem; letter-spacing: .06em; color: var(--fg-faint); }
.message { display: grid; gap: 18px; align-content: start; }
.message .t-body { max-width: 40em; }
.message__sign { font-size: .9375rem; font-weight: 700; line-height: 1.8; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 4px; background: var(--card); }

/* ---------- 冒頭の大きな映像を持たないページ（お問い合わせ・送信完了） ---------- */
.chapter--first { padding-top: calc(var(--header-h) + clamp(56px, 7vw, 96px)); }
.chapter--first .crumbs { margin-bottom: 8px; }
.chapter--first .contact-info { gap: 18px; }
.thanks-more { margin-top: clamp(40px, 5vw, 72px); }
.thanks-more .checks a { color: var(--fg); }
.steps + .why__foot { margin-top: clamp(28px, 3vw, 40px); }

/* ---------- お知らせの記事（news-*.html） ----------
   文の読みやすさを優先して紙の地に。本文は .prose（記事ごとに style 属性を持たせない） */
.article__body { display: grid; gap: 16px; align-content: start; }
.article__date { font-family: "Inter", sans-serif; font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--fg-faint); }
.article h1 { line-height: 1.45; }
.prose { margin-top: 12px; display: grid; gap: 1.1em; font-size: 1rem; line-height: 2; color: var(--fg-dim); }
.prose h2 { margin-top: 1.4em; font-size: 1.25rem; line-height: 1.6; color: var(--fg); }
.prose h3 { margin-top: 1em; font-size: 1.0625rem; line-height: 1.6; color: var(--fg); }
.prose strong { color: var(--fg); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: 6px; }
.prose ul li::before { content: "・"; color: var(--fg-faint); }
.prose ol { counter-reset: pr; }
.prose ol li::before { counter-increment: pr; content: counter(pr) ". "; font-weight: 700; color: var(--fg-faint); }
.prose img { width: 100%; max-width: 720px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.prose div { display: grid; gap: 8px; }
.article__back { margin-top: 24px; }

/* ---------- お知らせの一覧（news.html）。中身は tools/build_news_html.py が書く ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.news-row:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.news-row time { grid-column: 1 / span 2; font-family: "Inter", sans-serif; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; color: var(--fg-faint); }
.news-row span { grid-column: 3 / span 9; font-size: 1rem; line-height: 1.8; }
.news-row i { grid-column: 12; justify-self: end; font-style: normal; color: var(--accent); }
@media (max-width: 599px) { .news-row { grid-template-columns: 1fr auto; row-gap: 4px; } .news-row time { grid-column: 1; } .news-row span { grid-column: 1; } .news-row i { grid-column: 2; grid-row: 1 / span 2; align-self: center; } }

/* ---------- 文書のページ（privacy・security） ----------
   読みやすさを優先して、紙の地の1つの章に。見出しごとに細い線で区切る */
.doc__body { display: grid; gap: clamp(40px, 5vw, 64px); }
/* 段落の行は長くしすぎない（表は格子の線に合わせるので幅を制限しない） */
.doc-section > p, .doc-section > ul, .doc-section > h2, .doc-section .prose { max-width: 46em; }
.doc-section { display: grid; gap: 16px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); align-content: start; }
.doc-section h2 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.55; }
.doc-section.prose { margin-top: 0; }
.doc-section .spec-table { margin-top: 8px; }
.doc-section .spec-table dd { font-size: .9375rem; line-height: 1.9; color: var(--fg-dim); }
.doc-sign { font-size: .9375rem; line-height: 1.9; color: var(--fg-dim); }
.legal-note { font-size: .8125rem; line-height: 1.9; color: var(--fg-faint); }
/* ロゴは本文の上に（横に並べると、本文の始まりが格子の線から外れる） */
.sa-decl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.sa-decl .sa-logo { width: 120px; height: auto; }

/* ---------- TENZOH のセキュリティ（tenzoh/security.html） ---------- */
.term__note { margin-top: 10px; font-size: .8125rem; font-weight: 700; line-height: 1.7; color: var(--fg); }
.term__note::before { content: "→ "; color: var(--accent); }
.doc-note { max-width: 52em; margin-bottom: clamp(32px, 4vw, 56px); color: var(--fg-faint); line-height: 1.9; }
.doc-section.ask { margin-top: clamp(32px, 4vw, 48px); }
#operation .doc-note { margin: clamp(28px, 3vw, 40px) 0 0; }

/* ---------- いちばん狭い画面（375px、iPhone SE など）での手当て ---------- */
/* 大きな数字（1,000,000 m² など）は、2列だと収まらないので1列に */
@media (max-width: 399px) { .stats { grid-template-columns: 1fr; } }
/* お知らせの1行は短いので、見出しと同じく行を均す（「。」だけの行を作らない）。
   本文の pretty は WebKit が落ちるので使わないが、balance は問題ない */
.news-rows span, .news-row span { text-wrap: balance; }
/* 文書のページの見出しは1語のことが多い（プライバシーポリシー）。狭い画面で1字だけ次の行に落ちないよう、幅に合わせて小さく */
.doc h1.t-display { font-size: clamp(2rem, 8vw, 6rem); }

/* =========================================================================
   一語ポスター（2026-11-09 から）
   オーナーの指示（原文）：「全てのページにおいて、フォントの大きさに過剰なほどのメリハリをつけ、
   一目で内容が伝わるように全体のデザインコンセプトを変更して見直してください」
   章ごとに、中身そのものの言葉か数字（2〜4字）を大きく置き（.mega、上限178px）、その下に一文
   （.statement）、説明は小さく薄く。中くらいの大きさは使わない。
     <h2 class="head"><span class="mega">測る</span><span class="sr-only">：</span><span class="statement">…</span></h2>
   一語の --n・--n2（文字の幅の合計）は tools/fit_mega.py が書く（Update-Site.ps1 の 1c）。
   ========================================================================= */
.head { display: grid; gap: clamp(14px, 1.8vw, 28px); justify-self: stretch; min-width: 0; }  /* 幅の基準になるので、列の幅いっぱいに広げる（justify-items: start の中でも縮まないように） */
/* 一語の親を「幅の基準」にする（100cqi = 親の幅） */
:where(:has(> .mega)) { container-type: inline-size; }
.mega {
  display: block;
  font-size: min(var(--mega-cap), calc((100vw - 2 * var(--gutter)) / var(--n, 4) * .97));
  font-size: min(var(--mega-cap), calc(100cqi / var(--n, 4) * .97));
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
  text-autospace: no-autospace;   /* 数字と単位（100万m²）のあいだに自動の空きを入れない */
  color: var(--fg);
}
/* 子の span：パソコンでは1行に並べ、スマホでは1つずつ別の行に（--n2 はいちばん長い行） */
.mega > span { display: inline; }
@media (max-width: 899px) {
  .mega {
    font-size: min(var(--mega-cap), calc((100vw - 2 * var(--gutter)) / var(--n2, var(--n, 4)) * .97));
    font-size: min(var(--mega-cap), calc(100cqi / var(--n2, var(--n, 4)) * .97));
  }
  .mega > span { display: block; }
}
.mega small { display: inline; margin: 0 0 0 .06em; font-size: .34em; font-weight: 800; letter-spacing: 0; color: inherit; }
/* 数字は Inter で、会社の色 */
.mega--num { font-family: "Inter", var(--font); letter-spacing: -.05em; color: var(--accent); }
.statement {
  display: block;
  font-size: var(--t-statement);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  max-width: 21em;
  text-wrap: balance;
  font-feature-settings: "palt" 1;
}
html[lang="en"] .mega { letter-spacing: -.05em; line-height: .92; }
html[lang="en"] .statement { letter-spacing: -.012em; line-height: 1.2; }
/* 列の中の一語（サービスの動詞など）は、章の一語より φ 1段小さい上限（数字と同じ段） */
.svc .mega, .way .mega { --mega-cap: var(--t-num); }
/* 数字の並び（実績）は、数字ごとの枠の幅いっぱい。上限は --t-num */
.stat .mega, .facts .mega { --mega-cap: var(--t-num); }

/* ---------- 中くらいの大きさを無くす（2026-11-09）：各部品の文字を、一文か本文の段へ ---------- */
.chapter__head { margin-bottom: clamp(48px, 6vw, 96px); }
.svc__verb { font-size: inherit; line-height: 1; }
.finder__q { font-size: 1.0625rem; }
.stat__label { margin-top: 14px; }
.facts dd { margin-top: 10px; }
.product__name strong { font-size: var(--t-statement); line-height: 1.1; }
.product__copy { font-size: 1rem; }
.steps b, .combo h3, .faq summary, .next-steps b, .how > li > b { font-size: 1rem; }
.spec-table .fmt { font-size: 1.0625rem; }
.industry-list li { font-size: 1rem; }
.contact-info .tel { font-size: var(--t-statement); }

/* ---------- サイドヘッド（2026-11-09 オーナー「黄金比でサイドヘッドにして」） ----------
   章の見出しを、12段組みの左5段に一語、右7段（6段目の頭から）に一文と説明で組む。
   人は画面を F の字に読むので、左の列の一語が目次のように縦に読まれる。横に並べるぶん縦の長さも減る。
   899px 以下では縦に積む。狭い列の中の見出し（class に c- を含む .chapter__head）は縦に積んだまま。
   幅の基準（container）を見出しの外側の .chapter__head に移す。見出しが基準のままだと subgrid が効かない */
@media (min-width: 900px) {
  .chapter__head:not([class*="c-"]) {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    grid-template-rows: auto auto 1fr auto; row-gap: clamp(14px, 1.6vw, 22px); align-items: start;
    container-type: inline-size;
  }
  .chapter__head:not([class*="c-"]) > * { grid-column: 1 / -1; }
  .chapter__head:not([class*="c-"]) > .label,
  .chapter__head:not([class*="c-"]) > .act { grid-row: 1; }
  .chapter__head:not([class*="c-"]) > .head {
    grid-row: 2 / span 2; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; row-gap: inherit;
    container-type: normal;
  }
  .chapter__head:not([class*="c-"]) > .head > .mega {
    grid-column: 1 / span 5; grid-row: 1 / span 2;
    font-size: min(var(--mega-cap), calc(100cqi * .4 / var(--n, 4) * .97));
  }
  .chapter__head:not([class*="c-"]) > .head > .statement { grid-column: 6 / -1; grid-row: 1; padding-top: .2em; }
  .chapter__head:not([class*="c-"]) > .t-lead { grid-column: 6 / -1; grid-row: 3; }
  .chapter__head:not([class*="c-"]) > .tag-legend { grid-column: 6 / -1; grid-row: 4; }
}
/* 製品のページの冒頭の一語は、その製品の色（TENZOH の青緑、URAUCHI の銅色、CADROH の青） */
.page-hero--product .head > .mega { color: var(--p); }
/* =========================================================================
   再構成（2026-11-17 から）
   オーナーの依頼（原文）：「https://brain-child.jp/web/index.html このサイトの意見を参考にしてHPを再構成して」
   参考ページの柱（顧客の明確化・強みと差別化・数値に基づく改善）に合わせて足した部品。
   ========================================================================= */
/* 立場ごとの入口（トップの #for）：悩みの上に、小さく立場の名前 */
.finder__who { display: block; margin-bottom: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1.6; color: var(--fg-faint); }
/* 頼まれる理由（トップの #reasons）：3つを横に。列の頭は格子の線（1・5・9列目）。スマホは縦に */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.reason { border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.reason .mega { --mega-cap: var(--t-num); }
.reason__key { display: block; margin-top: 14px; font-size: var(--t-small); letter-spacing: .06em; line-height: 1.7; color: var(--fg-dim); }
.reason .t-h3 { margin-top: 22px; }
.reason p { margin-top: 10px; font-size: .9375rem; line-height: 1.85; color: var(--fg-dim); }
.reasons + .source { margin-top: 28px; }
.reasons__ask { margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.reasons__ask .btn-row { margin-top: 28px; }
@media (max-width: 899px) { .reasons { grid-template-columns: minmax(0, 1fr); row-gap: 40px; } }
/* 頼み方の比べる表（service の #reasons）。右の列の頭は会社の青 */
.compare-rows__head dd[data-p="recmill"] { --p: var(--accent); }
.compare-check { margin-top: clamp(56px, 7vw, 96px); row-gap: 20px; }
.compare-check__note { margin-top: 12px; color: var(--fg-dim); }
.compare-check__list { grid-template-columns: minmax(0, 1fr); }  /* 狭い欄の中で2列にすると、2列目が格子の線から外れる */
/* 見出しの左上の小さな英字（.label）は外した（2026-11-17 オーナー「左上の小さな文字はAIっぽさを感じるのでいれないでください」）。
   サイドヘッドの1行目は .label か .act の置き場だったので、どちらも無い章では1行目を詰める */
@media (min-width: 900px) {
  .chapter__head:not([class*="c-"]):not(:has(> .label, > .act)) { grid-template-rows: auto 1fr auto; }
  .chapter__head:not([class*="c-"]):not(:has(> .label, > .act)) > .head { grid-row: 1 / span 2; }
  .chapter__head:not([class*="c-"]):not(:has(> .label, > .act)) > .t-lead { grid-row: 2; }
  .chapter__head:not([class*="c-"]):not(:has(> .label, > .act)) > .tag-legend { grid-row: 3; }
}
/* 事例の「課題 → 対応 → 成果」（cases の動画の2件）。小さな飾りの文字にせず、本文の大きさで */
.case-who { font-size: var(--t-small); line-height: 1.7; color: var(--fg-dim); }
.case-steps { justify-self: stretch; border-bottom: 1px solid var(--line); }
.case-steps > div { padding: 12px 0; border-top: 1px solid var(--line); }
.case-steps dt { font-size: .875rem; font-weight: 700; line-height: 1.6; }
.case-steps dd { margin-top: 4px; font-size: .9375rem; line-height: 1.85; color: var(--fg-dim); }
/* 事例の「仕事」の表：説明の下にリンク */
.works dd .more { margin-top: 4px; }
/* 会社情報の「経緯」（4つの文は1列に。行頭の短い線は .uses のまま）と「沿革」（年月の列は折り返さない） */
.origin { grid-template-columns: minmax(0, 1fr); }
.origin li { font-size: var(--t-statement); line-height: 1.5; padding-block: 22px 20px; }
.history dt { white-space: nowrap; font-family: "Inter", var(--font); }
.history dd .more { margin-top: 2px; }
/* 会社情報の「由来」（2026-11-17 ブランドキット v2）。夜の地に night 版のロゴ */
.name-origin { align-items: center; }
.name-origin__logo { margin: 0; }
.name-origin__logo img { display: block; width: min(100%, 360px); height: auto; }
.name-origin__note { margin-top: 16px; color: var(--fg-dim); }
