/* algx.co.jp のスタイル。1 ファイル、圧縮なし。書体ファイルの場所は、ビルドが内容ハッシュ付きの名前に置き換える。
   考え方: 藍の地に、2 本の光。青白い光 = AI、朱の光 = 技術と人。触れるものは丸く、読むものは細い線で区切る。 */

@font-face { font-family: "ALGX Display"; src: url("/assets/fonts/display.a329684fb3.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ALGX Title"; src: url("/assets/fonts/title.8390cdb09d.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "ALGX Text"; src: url("/assets/fonts/text.2f4c67ba29.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "ALGX Text"; src: url("/assets/fonts/textbold.64200529e0.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ALGX Mono"; src: url("/assets/fonts/mono.5b27b2f2cd.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  /* 幅は 2 種類だけ: 表や手順の広い幅と、読む文の幅 (どちらも、字の大きさが違う箇所でそろうように rem で持つ) */
  --wide: 59.5rem;
  --measure: 42.5rem;
  /* 地は明るい白 (青くも黄色くもしない)。藍は、最初の画面と相談の帯の 2 か所だけ (下の「藍の帯」)。
     11/18 社長「配色が怖い？ AI がつめたい」を受けて、夜の藍の地から変えた。--sheet は一段上の面、--well は一段下の面 */
  --paper: #F6F6F4;
  --sheet: #FFFFFF;
  --tint: #ECECE8;
  --well: #FFFFFF;
  --ink: #1B2740;
  --sub: #4A5058;
  --rule: #DADBD8;
  --edge: #878A90;
  /* 色の決まり: 藍 = AI と操作、朱 = 技術 (守る仕組み) と、人の確認 */
  --ai: #2F5E98;
  --link: #1F4F8A;
  --cobalt: #2F5E98;
  --band: #1C3658;
  --shu: #D23A1E;
  /* 小さな字に使う朱。明るい地の上で 4.5:1 を超える濃さ */
  --shu-ink: #B4301A;
  --ai-tint: #E6EDF6;
  --shu-tint: #FBEAE4;
  /* 主ボタン: 藍の塗りに、白い字 */
  --bright: #1C3658;
  --deep: #FFFFFF;
  --f-display: "ALGX Display", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --f-title: "ALGX Title", "ALGX Display", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --f-text: "ALGX Text", "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --f-input: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  --f-mono: "ALGX Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gut: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8.5vw, 120px);
}
/* 藍の帯: 最初の画面 (とその上のヘッダー) と、相談の帯。藍染ののれんの色 (紫に寄せない) */
.hero, html[data-page="home"] .site-header, .cta {
  color-scheme: dark;
  --paper: #1C3658; --sheet: #22426C; --tint: #2A4B78; --well: #162C4A;
  --ink: #FBF8F3; --sub: #D3DBE6; --rule: #3A5274; --edge: #8FA3BE;
  --ai: #9DC2E8; --link: #C4D8EE; --shu: #FF6B4F; --shu-ink: #FFA08F;
  --ai-tint: #24456F; --shu-tint: #4A3340; --bright: #FBF8F3; --deep: #1C3658;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 100%;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-kerning: normal;
  line-break: strict;
  overflow-wrap: anywhere;
}
body { margin: 0; font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem); }
main { display: block; }

h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

/* 見出しは、太い明朝を大きく置く (本文のゴシックと、はっきり違う字にする) */
h1, h2, .display {
  font-family: var(--f-display);
  font-weight: 700;
  font-feature-settings: "palt";
  line-height: 1.22;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
/* 文節で折り返すのは、見出しと短い札だけ (本文に掛けると、狭い画面で行末がそろわなくなる) */
h1, h2, h3, th, dt, summary, .display, .btn { word-break: auto-phrase; }
/* 短い 1〜2 行の文 (ページ冒頭の説明・相談票・帯の 1 行・見本の注記) も、語の途中で切らない */
.lead, .slip-asks a, .cta-head p, .actions-note, .demo-note { word-break: auto-phrase; text-wrap: pretty; }
/* 大きな見出しでは、英字と和文の間の空きが広く見えるので、少し詰める */
h1, h2 { word-spacing: -0.06em; }
h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); }
/* 見出しの 2 段目: 明細のページの節と、脇の節 */
.block h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem); }
h2.h-sub { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); line-height: 1.4; }
h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
h4 { font-weight: 700; }
p, li, dd { text-wrap: pretty; }
strong, b, th, dt { font-weight: 700; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }
:target { scroll-margin-top: 24px; }

/* 文の中のコードは、途中で折らない (ハイフンの後ろで切れると、写し間違える) */
code { font-family: var(--f-mono); font-size: 0.95em; font-feature-settings: "zero"; white-space: nowrap; }
.wrap-code, .probe-result code, .tamper-out code, .foot-proof code { white-space: normal; }
.wrap-code { overflow-wrap: anywhere; word-break: break-all; }
.ledger .wrap-code { word-break: normal; }
.tok { display: inline-block; max-width: 100%; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -80px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 8px; }
.js .js-off { display: none; }
/* JavaScript が動いたときにだけ意味を持つ部品。場所は空けておき、あとから出ても下の文がずれないようにする */
html:not(.js) .js-on { visibility: hidden; }
/* 数と助数詞を行末で分けない */
.nb { white-space: nowrap; }
/* 開く部品は、下線を引かない (下線は、ページを移るリンクだけ)。十字の印と、触れたときの下線で、押せると分かる */
summary { width: fit-content; cursor: pointer; padding-block: 10px; color: var(--ink); text-underline-offset: 0.2em; list-style: none; }
summary:hover { text-decoration: underline; text-decoration-color: var(--edge); }
summary::-webkit-details-marker { display: none; }
/* 開く・閉じるの印は、どの畳みも同じ十字 (開くと横棒だけになる) */
summary::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; color: var(--link); background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat; transition: background-size 0.2s; }
details[open] > summary::before { background-size: 11px 1.5px, 1.5px 0; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); max-width: 37em; color: var(--ink); }

/* ---------- ボタン (票や印と同じ、角のある形) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 26px;
  border: 1.5px solid var(--bright); border-radius: 3px;
  background: var(--bright); color: var(--deep);
  font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s, transform 0.06s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: color-mix(in srgb, var(--bright) 86%, var(--paper)); border-color: color-mix(in srgb, var(--bright) 86%, var(--paper)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 16%, transparent); }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn-line { background: color-mix(in srgb, var(--paper) 40%, transparent); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 62%, transparent); }
.btn-line:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); border-color: var(--ink); box-shadow: none; }
.btn-ghost { min-width: 5.5em; background: transparent; color: var(--ink); border: 1px solid var(--edge); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- ヘッダー・フッター ---------- */
/* ヘッダーの地は、透ける藍 (トップでは、最初の画面の光が、ヘッダーの裏まで届く。案内の字は、光に負けない) */
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); background: transparent; }
html[data-page="home"] .site-header { border-bottom-color: color-mix(in srgb, var(--ink) 10%, transparent); background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 60%, transparent), color-mix(in srgb, var(--paper) 0%, transparent)); }
.site-header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; padding-block: 10px; }
.wordmark { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.3em; color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(14px, 3vw, 30px); }
.nav a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-size: 0.9375rem; transition: box-shadow 0.16s, background-color 0.16s, color 0.16s; }
.nav a:hover { box-shadow: inset 0 -1px 0 var(--edge); }
.nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--ink); }
/* 相談の入口は、丸い枠で囲む (狭い画面では 1 段目の右へ出す。下の「狭い画面」) */
.nav a.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid color-mix(in srgb, var(--ink) 62%, transparent); border-radius: 3px; }
.nav a.nav-cta:hover, .nav a.nav-cta[aria-current] { background: var(--ink); color: var(--paper); box-shadow: none; }

.site-footer { border-top: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.75; }
/* 上の段は、本文と同じ 5:7 の割り。左に会社、右に案内 (ページ / 情報の扱いの決まり) */
.site-footer-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 72px); padding-block: 44px 28px; }
.foot-name { font-weight: 700; }
.foot-nav { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 0 32px; align-content: start; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: var(--ink); text-decoration-color: var(--edge); }
.foot-links a:hover { text-decoration-color: currentColor; }
/* 下の段は奥付: このページの照合の結果と、この版の発行日 */
.foot-colophon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 40px; align-items: start; padding-block: 16px 44px; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--sub); }
.foot-hash { margin-top: 4px; }
.foot-hash code { margin-left: 0.4em; font-size: 0.8125rem; overflow-wrap: anywhere; }
.foot-tech summary { display: flex; align-items: center; min-height: 44px; padding-block: 0; color: var(--sub); text-decoration-color: var(--edge); }
.foot-files { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* ---------- トップ: 最初の画面 ---------- */
/* 2 つの言葉のあいだで、2 本の光が交わる。交点の場所 (--cx, --cy) と傾き (--ang) は、ここで決める。
   プログラム (src/js/05-hero.js) は、同じ場所を測り直して、光の粒を流すだけ */
.hero {
  position: relative;
  --pad: clamp(48px, 11svh, 136px);
  --title: clamp(3.5rem, 12.4vw, 12.5rem);
  --gap: 1.32em;
  /* 「技術」と「AI」の幅の差の半分 (「AI」の字の大きさで測った値) */
  --lean: 0.2em;
  /* 光は、ヘッダーの裏まで伸ばす (ヘッダーの高さより多めに取る。ページの上へはみ出た分は、見えないだけ) */
  --up: 8rem;
}
.hero-bg {
  --cx: 50%;
  --cy: calc(var(--up) + var(--pad) + var(--title) * 0.6);
  --ang: 28deg;
  position: absolute; inset: calc(var(--up) * -1) 0 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 60% at var(--cx) var(--cy), #34598A 0%, #2E5383 26%, #28497A 56%, #24456F 100%);
}
/* 止まっている光の芯 (プログラムが動かなくても、交わる 2 本は見える) */
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; left: var(--cx); top: var(--cy);
  width: 320vmax; height: 220px; margin: -110px 0 0 -160vmax;
  -webkit-mask-image: linear-gradient(90deg, transparent 27%, #000 43%, #000 57%, transparent 73%);
  mask-image: linear-gradient(90deg, transparent 27%, #000 43%, #000 57%, transparent 73%);
}
.hero-bg::before {
  transform: rotate(calc(var(--ang) * -1));
  background: linear-gradient(to bottom, rgb(118 160 214 / 0) 0%, rgb(118 160 214 / 0.1) 38%, rgb(176 204 232 / 0.34) 49.1%, #F6F9FC 49.6%, #F6F9FC 50.4%, rgb(176 204 232 / 0.34) 50.9%, rgb(118 160 214 / 0.1) 62%, rgb(118 160 214 / 0) 100%);
}
.hero-bg::after {
  transform: rotate(var(--ang));
  background: linear-gradient(to bottom, rgb(236 98 62 / 0) 0%, rgb(236 98 62 / 0.1) 38%, rgb(250 150 112 / 0.4) 49.1%, #FFE2CC 49.6%, #FFE2CC 50.4%, rgb(250 150 112 / 0.4) 50.9%, rgb(236 98 62 / 0.1) 62%, rgb(236 98 62 / 0) 100%);
}
/* 開いたとき、青白い光は左から、朱の光は右から走ってきて、まん中で交わる (動きは、この 1 か所だけ)。
   動かすのは位置と濃さだけ (描き直しが起きないので、開く速さを落とさない) */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg::before { animation: beam-a 1.2s cubic-bezier(0.2, 0.7, 0.15, 1) backwards; }
  .hero-bg::after { animation: beam-b 1.2s cubic-bezier(0.2, 0.7, 0.15, 1) backwards; }
}
@keyframes beam-a {
  from { transform: rotate(calc(var(--ang) * -1)) translateX(-34%); opacity: 0; }
}
@keyframes beam-b {
  from { transform: rotate(var(--ang)) translateX(34%); opacity: 0; }
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s 0.5s; }
.hero.is-live .hero-canvas { opacity: 1; }

.hero-in {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding-block: var(--pad) clamp(18px, 2.4vw, 30px);
  text-align: center;
}
/* 「AI」| 交点 |「技術」。交点の列は空けておく (字は書かない。交わる光が、その字になる)。
   交点は画面のまん中。短い「AI」は左へ離して、2 つの言葉の中心が、交点から同じ距離になるように置く */
.hero-title {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  width: 100%;
  font-family: var(--f-title); font-weight: 900;
  font-size: var(--title); line-height: 1.2; letter-spacing: 0.02em; word-spacing: 0; white-space: nowrap;
}
/* 欧文の大文字は、漢字より背が低い。「AI」だけ字を大きくして、2 つの言葉の背をそろえる (行の高さは変えない) */
.hero-a { justify-self: end; margin-right: var(--lean); font-size: 1.25em; line-height: 0.96; color: #FBF8F3; -webkit-text-stroke: 0.018em currentColor; }
/* 字は平らな色: 「AI」は青みのある白、「技術」は温かみのある白 (それぞれの光の色)。字そのものには手を入れない (切れ目も影も付けない) */
.hero-b { justify-self: start; color: #FFF3E8; }
.hero-x { width: var(--gap); height: 1em; }
/* 説明の文は、交わった光の下の、開いたところに置く (光が字に掛からない幅と距離にする) */
.hero .lead { margin-top: clamp(40px, 8vw, 80px); max-width: min(33em, 66vw); word-break: auto-phrase; text-wrap: balance; }
.lead-2 { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 16px; margin-block: clamp(24px, 3vw, 40px) clamp(36px, 5vw, 64px); }
.hero-actions .btn { min-height: 56px; padding-inline: 34px; font-size: 1.0625rem; }
/* 料金の 1 行: ボタンのすぐ下に、何にいくらかを置く (最初の画面で、何の会社か・いくらか・どこから相談するかがそろう) */
.hero .hero-price { width: min(100%, 36rem); margin: calc(-1 * clamp(20px, 3vw, 44px)) auto clamp(36px, 5vw, 64px); text-align: left; border-top: 1px solid var(--rule); font-feature-settings: "tnum"; }
.hero-price > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 2px 20px; align-items: baseline; padding-block: 10px; border-bottom: 1px solid var(--rule); }
.hero-price dt { font-size: 0.875rem; color: var(--sub); }
.hero-price dd { font-size: 1.0625rem; font-weight: 600; color: var(--ink); word-break: auto-phrase; }
.amt { white-space: nowrap; }
@media (max-width: 560px) { .hero-price > div { grid-template-columns: minmax(0, 1fr); } }
.nb { white-space: nowrap; }

/* つくって、動かしているもの: 最初の画面の下の端に、4 つの事業の名前を並べる (何を頼める会社かを、ここで言う) */

/* ---------- トップ: 節の見出し ---------- */
/* 節の上の細い線は、左の端から光が差す: 青白 = AI の節、朱 = 技術の節 */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 5vw, 72px); align-items: start;
  padding-top: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--rule);
  border-image: linear-gradient(90deg, var(--ink) 0%, var(--beam, var(--rule)) 5%, var(--beam, var(--rule)) 14%, var(--rule) 46%, var(--rule) 100%) 1;
}
.sec-head h2 { font-size: clamp(2.5rem, 1rem + 4.7vw, 5.5rem); line-height: 1.14; }
/* 説明は、見出しの 1 行目の高さから始める (見出しと離さない) */
.sec-head > :last-child { padding-top: clamp(4px, 1.3vw, 22px); }
.attack .sec-head h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.6rem); }
.sec-head p { max-width: 30em; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); word-break: auto-phrase; text-wrap: pretty; }
.sec-head .sec-go { margin-top: 10px; }
.sec-go a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- トップ: AI に、任せる ---------- */
.biz { --beam: var(--ai); padding-block: clamp(36px, 6vw, 88px) var(--section); }
/* 4 つの事業: 名前を大きく、説明は 1 行。詳しくは次のページ (行のどこを押しても進む) */
.biz-live { margin-top: 12px; max-width: 40em; font-size: 0.9375rem; color: var(--sub); word-break: auto-phrase; text-wrap: pretty; }
.biz-list { margin-top: clamp(16px, 2vw, 24px); }
.biz-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(22px, 3vw, 38px); border-top: 1px solid var(--rule); }
/* 触れた行は、上の線に、左から青白い光が走る */
.biz-item dt { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.6rem); line-height: 1.3; }
.biz-say p { word-break: auto-phrase; text-wrap: pretty; }
@media (min-width: 1000px) {
  .biz-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.biz-go a::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) {
  .biz-item:hover dt { transform: translateX(10px); }
}
.biz-price { max-width: 26rem; border-top: 1px solid var(--edge); }
.biz-fee { margin-top: 8px; font-size: 1rem; font-weight: 600; color: var(--ink); word-break: auto-phrase; }
.biz-price > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: baseline; padding-block: 8px; border-bottom: 1px solid var(--rule); }
.biz-price dt { font-size: 0.9375rem; }
.biz-price dd.display { font-size: 1.375rem; line-height: 1.35; text-align: right; white-space: nowrap; font-feature-settings: "tnum"; }
.biz-rest { grid-column: 1 / -1; font-size: 0.875rem; color: var(--sub); text-align: right; }
.biz-tax { max-width: 26rem; margin-top: 12px; margin-bottom: 4px; font-size: 0.875rem; color: var(--sub); text-align: right; }
.biz-index { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 16px; font-size: 0.9375rem; }
.biz-index a { display: inline-flex; align-items: center; min-height: 44px; }
.biz-go.biz-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 14px; }
.biz-go.biz-ask a::after { display: none; }
.ask-price { font-weight: 600; }
.biz-go { margin-top: 2px; font-size: 0.9375rem; }
.biz-go a { display: inline-flex; align-items: center; min-height: 44px; }
/* 店舗の AI スタッフの行だけ、受け答えの見本を横に置く (この節の絵)。見本の中の開閉を押せるように、行全体はリンクにしない */
.biz-fig { margin-top: 22px; }
.biz-staff .biz-go { margin-top: 18px; }
.biz-staff .biz-go .btn { display: inline-flex; padding-block: 8px; }
.biz-staff .biz-go a::after { display: none; }
.biz-staff .biz-say > p:first-child { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); }
@media (min-width: 1000px) {
  /* 見本は縦に長い。左の名前と料金は、見本を読むあいだ画面に残す */
  .biz-staff { --dt-h: calc(clamp(1.5rem, 1.05rem + 2vw, 2.6rem) * 1.3); align-items: start; padding-block: clamp(36px, 5vw, 64px); }
  .biz-staff > dd { display: contents; }
  .biz-staff > dt { grid-column: 1; grid-row: 1; position: sticky; top: 28px; }
  .biz-staff .biz-say { grid-column: 1; grid-row: 1; margin-top: calc(var(--dt-h) + 14px); position: sticky; top: calc(42px + var(--dt-h)); }
  .biz-staff .biz-fig { grid-column: 2; grid-row: 1; margin-top: 0; }
}
@media (hover: hover) {
  .biz-staff:hover dt { transform: none; }
}

/* ---------- 振り分けの図 (トップと、事業内容のページ) ---------- */
.route {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2px;
  grid-template-areas: "in in" "try try" "rule rule" "ai staff" "note note" "words words";
  font-size: 0.875rem; line-height: 1.6;
}
.route-in { grid-area: in; justify-self: center; padding: 7px 22px; background: var(--ink); color: var(--paper); border-radius: 999px; text-align: center; }
.route-rule { grid-area: rule; position: relative; margin-top: 26px; padding: 10px 18px; background: var(--tint); text-align: center; }
/* 入れた文から、ルールへ下りる線 */
.route-rule::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: 26px; border-left: 1px solid var(--edge); }
.route-out { position: relative; margin-top: 2px; padding: 16px 18px 18px; background: var(--sheet); border-top: 3px solid; transition: opacity 0.2s, background-color 0.2s, box-shadow 0.2s; }
.route-ai { grid-area: ai; border-color: var(--ai); }
.route-ai h3 { color: var(--link); }
.route-staff { grid-area: staff; border-color: var(--shu); }
.route-staff h3 { color: var(--shu-ink); }
.route-out h3 { font-size: 1rem; }
.route-out ul { margin-top: 8px; }
/* 狭い箱でも、語の途中で折らない (読点のあとで折る。入りきらないときだけ途中で折る) */
.route-out li { position: relative; padding-left: 1.15em; word-break: keep-all; overflow-wrap: anywhere; }
.route-out li + li { margin-top: 4px; }
.route-out li::before { content: ""; position: absolute; left: 0.1em; top: 0.62em; width: 0.45em; height: 0.45em; border-radius: 50%; }
.route-ai li::before { background: var(--ai); }
.route-staff li::before { background: var(--shu); }
/* 図の上で試す (JavaScript が動くときだけ)。入れた文が進む側の箱が灯り、理由が出る */
.try, .try-note { display: none; }
.js .try, .js .try-note { display: block; }
.try { grid-area: try; }
.try label { display: block; font-size: 1rem; }
.try-hint { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--sub); }
.try-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
/* お客様の吹き出しと同じ形 (右下だけ角) */
.try input { min-width: 0; min-height: 52px; padding: 8px 20px; background: var(--well); border: 1.5px solid var(--edge); border-radius: 26px 26px 4px 26px; font-family: var(--f-input); font-size: 1rem; color: var(--ink); caret-color: var(--ai); transition: border-color 0.16s; }
.try input:focus { border-color: var(--ink); }
.try-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.try-samples button { min-height: 44px; padding: 6px 16px; background: transparent; border: 1px solid var(--edge); border-radius: 18px 18px 4px 18px; font-size: 0.875rem; line-height: 1.5; text-align: left; cursor: pointer; transition: border-color 0.16s, background-color 0.16s; -webkit-tap-highlight-color: transparent; }
.try-samples button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); border-color: var(--ink); }
.try-samples button:active { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.route-found { display: block; font-size: 0.875rem; }
/* 引き継ぎを決めた言葉 (図と、見本の会話) */
.kw { padding: 0 4px; background: var(--shu-tint); color: var(--shu-ink); border-radius: 3px; }
.route-say { font-size: 0.875rem; line-height: 1.65; }
.pop { display: block; margin-top: 10px; animation: say 0.32s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
/* 選ばれなかった側は、地を抜く (字の明るさは落とさない) */
.route[data-go="ai"] .route-staff, .route[data-go="staff"] .route-ai { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.route[data-go="ai"] .route-ai { background: var(--ai-tint); box-shadow: inset 0 0 0 1px rgb(47 94 152 / 0.35); }
.route[data-go="staff"] .route-staff { background: var(--shu-tint); box-shadow: inset 0 0 0 1px rgb(210 58 30 / 0.35); }
.try-note, .try-words { font-size: 0.9375rem; line-height: 1.7; color: var(--sub); }
.try-note { grid-area: note; margin-top: 16px; }
.try-words { grid-area: words; margin-top: 4px; }
.try-words summary { display: flex; align-items: center; min-height: 44px; }
.try-cats { margin-top: 8px; border-top: 1px solid var(--rule); }
.try-cats li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.try-cats b { color: var(--ink); }
@keyframes say {
  from { opacity: 0; transform: translateY(8px); }
}
@media (max-width: 560px) {
  .try-cats li { grid-template-columns: minmax(0, 1fr); }
  .try-row { grid-template-columns: minmax(0, 1fr); }
  .try-row .btn { justify-self: start; }
}

/* ---------- 受け答えの見本 (事業内容のページ) ---------- */
.demo { container-type: inline-size; max-width: 34rem; }
.phone { position: relative; overflow: hidden; background: var(--sheet); border: 1.5px solid var(--edge); border-radius: 28px; box-shadow: 0 32px 48px -34px rgb(27 39 64 / 0.35); }
.phone-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px 12px; border-bottom: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.4; }
.phone-bar::before { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); }
/* 「見本」の判 */
.phone-tag { position: absolute; top: 12px; right: 16px; padding: 3px 8px 3px 12px; border: 1.5px solid var(--shu-ink); color: var(--shu-ink); font-size: 0.9375rem; line-height: 1.3; letter-spacing: 0.3em; transform: rotate(-5deg); }
.talk { display: grid; align-content: start; gap: 10px; padding: 14px 14px 4px; }
.talk-staff { padding-bottom: 20px; }
.msg { display: grid; justify-items: start; gap: 2px; max-width: 88%; }
.msg-guest { justify-self: end; justify-items: end; }
.msg-who { font-size: 0.75rem; line-height: 1.5; }
.bubble { padding: 9px 13px; border-radius: 16px; font-size: 0.875rem; line-height: 1.65; word-break: auto-phrase; }
.msg-guest .bubble { background: var(--tint); color: var(--ink); border-bottom-right-radius: 4px; }
.msg-ai .bubble { background: var(--ai-tint); border: 1.5px solid #B7CAE2; border-top-left-radius: 4px; }
.msg-ai .msg-who { color: var(--link); }
.msg-auto .bubble { background: var(--tint); border: 1.5px dashed var(--sub); border-top-left-radius: 4px; }
.msg-auto .msg-who { color: var(--sub); }
.msg-staff .bubble { background: var(--shu-tint); border: 1.5px solid #EDB6A6; border-top-left-radius: 4px; }
.msg-staff .msg-who { color: var(--shu-ink); }
.msg-time { font-size: 0.75rem; line-height: 1.4; color: var(--sub); }
/* 引き継ぎの線 */
.talk-cut { display: flex; align-items: center; gap: 10px; margin-block: 6px 2px; font-size: 0.75rem; line-height: 1.5; color: var(--shu-ink); text-align: center; }
.talk-cut::before, .talk-cut::after { content: ""; flex: 1 1 12px; border-top: 1.5px dashed var(--shu); }
.demo-note { margin-top: 14px; padding-left: 14px; border-left: 3px solid; font-size: 0.875rem; line-height: 1.65; color: var(--sub); }
.demo-note b { display: block; font-size: 0.9375rem; }
.demo-note-ai { border-color: var(--ai); }
.demo-note-ai b { color: var(--link); }
.demo-note-staff { border-color: var(--shu); }
.demo-note-staff b { color: var(--shu-ink); }
.demo figcaption { margin-top: 14px; font-size: 0.9375rem; line-height: 1.65; color: var(--sub); }
/* 幅があるときは、注記を画面の右へ出し、括弧で「どこからどこまで」を示す (段は画面の中の 2 つの会話にそろえる) */
@container (min-width: 30rem) {
  .demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 13rem; grid-template-rows: auto auto auto; column-gap: 16px; }
  .phone { grid-column: 1; grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; }
  .demo-note { position: relative; grid-column: 2; display: grid; align-content: center; gap: 4px; margin-top: 0; padding-left: 24px; border-left: 0; }
  .demo-note::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 8px; width: 10px; border: 1.5px solid; border-left: 0; }
  .demo-note-ai { grid-row: 2; }
  .demo-note-ai::before { border-color: var(--ai); }
  .demo-note-staff { grid-row: 3; }
  .demo-note-staff::before { border-color: var(--shu); }
}

/* ---------- 伏せ方の見本 ---------- */

.mask { padding: 12px 16px; background: var(--well); font-size: 0.875rem; line-height: 1.7; }
.mask-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0 16px; padding-block: 6px; }
.mask-row dt { font-weight: 400; color: var(--sub); }
.mask-after { border-top: 1px dashed var(--rule); }
.mask-num { padding: 1px 3px; background: var(--shu-tint); box-shadow: inset 0 -2px 0 var(--shu); white-space: nowrap; }
.redact { display: inline-block; width: 7.4em; height: 1.15em; margin-inline: 3px; background: var(--ink); vertical-align: -0.2em; }
.mask figcaption { margin-top: 4px; font-size: 0.8125rem; color: var(--sub); }

/* ---------- トップ: 技術で、守る (検査成績書) ---------- */
.verify { --beam: var(--shu); padding-bottom: var(--section); }
/* 専門でない人への 1 行: 成績書のすぐ上に、本文と同じ大きさで置く */
/* 守っていること: 成績書の前に、平易な言葉で 4 つ */
.keeps { margin-top: clamp(32px, 5vw, 64px); }
.keeps h3 { font-size: 1rem; font-weight: 400; color: var(--sub); }
/* 約束は、大きな 4 行だけを見せる。中身は開いて読む */
.keeps-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); margin-top: 12px; border-top: 1px solid var(--rule); }
.keeps-list li { padding-block: clamp(16px, 2vw, 26px); border-bottom: 1px solid var(--rule); font-size: clamp(1.375rem, 1rem + 1.6vw, 2.2rem); line-height: 1.35; word-break: auto-phrase; text-wrap: balance; }
.keeps-more { margin-top: 10px; }
.keeps-more dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(24px, 4vw, 64px); padding-block: 6px 14px; }
.keeps-more dt { font-weight: 700; }
.keeps-more dd { margin-top: 4px; font-size: 0.9375rem; line-height: 1.8; color: var(--sub); }
.keeps .sec-go { margin-top: 6px; }
.verify-site { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--rule); }
.verify-site .sheet-go { margin-top: 16px; }
@media (max-width: 700px) { .keeps-list, .keeps-more dl { grid-template-columns: minmax(0, 1fr); } }
/* せまい画面では、2 つの箱を縦に積む。選ばれなかった側は、題だけにする */
@media (max-width: 560px) {
  .route { grid-template-columns: minmax(0, 1fr); grid-template-areas: "in" "try" "rule" "ai" "staff" "note" "words"; }
  .route[data-go="ai"] .route-staff > :not(h3), .route[data-go="staff"] .route-ai > :not(h3) { display: none; }
}
/* 成績書は、お預かりする情報の決まりとは別のもの (このサイトの検査) なので、題を分ける */
.sheet-kind { margin-top: clamp(40px, 6vw, 72px); padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 1rem; font-weight: 400; color: var(--sub); }
.sheet-kind + .sheet { margin-top: clamp(16px, 2vw, 24px); }
.verify-sheet { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--rule); }
.verify-sheet .sheet-kind { margin-top: 0; }
/* 帳票 (検査成績書・料金表・相談票) は紙: 明るい地に紺の字。藍の画面のなかで、物として見える */
.sheet, .slip, .price {
  color-scheme: light;
  --paper: #FFFFFF; --sheet: #FFFFFF; --tint: #F1F1EE; --well: #FFFFFF;
  --ink: #1B2740; --sub: #545A63; --rule: #D9DAD6; --edge: #878A90;
  --ai: #2F5E98; --link: #1F4F8A; --shu: #D23A1E; --shu-ink: #B4301A; --ai-tint: #E6EDF6; --shu-tint: #FBEAE4;
  --bright: #1C3658; --deep: #FFFFFF;
  color: var(--ink);
}
.sheet .mark-fail { color: #fff; }
.sheet { container-type: inline-size; margin-top: clamp(36px, 6vw, 84px); background: var(--sheet); border: 1px solid var(--rule); box-shadow: 0 30px 60px -36px rgb(27 39 64 / 0.35); }
.sheet-frame { padding: clamp(16px, 3.4vw, 48px); }
.sheet-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; }
.sheet-title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem); letter-spacing: 0.22em; }
.sheet-meta { max-width: 30rem; margin-top: 14px; font-size: 0.875rem; line-height: 1.6; }
.sheet-meta div:first-child { border-top: 1px solid var(--rule); }
.sheet-meta div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); padding: 5px 0; border-bottom: 1px solid var(--rule); }
.sheet-meta dt { color: var(--sub); font-weight: 400; }
/* 表は、横の細い線だけで区切る (計器の読み取りのように) */
.sheet-table { width: 100%; margin-top: clamp(18px, 2.4vw, 30px); table-layout: fixed; font-size: 0.875rem; line-height: 1.55; }
.sheet-table th, .sheet-table td { border-bottom: 1px solid var(--rule); padding: 11px 14px 11px 0; text-align: left; vertical-align: middle; }
.sheet-table thead th { border-bottom-color: var(--edge); font-size: 0.75rem; color: var(--sub); }
.sheet-table th:nth-child(1) { width: 34%; }
.sheet-table th:nth-child(2) { width: 22%; }
.sheet-table th:nth-child(4) { width: 4.2em; }
.sheet-table td:nth-child(2) { color: var(--sub); }
.sheet-table th:nth-child(4), .sheet-table td:nth-child(4) { text-align: center; padding-inline: 2px; }
.sheet-table [data-slot="got"] { font-feature-settings: "zero"; word-break: keep-all; }
/* 表の中のリンクも、指で押せる高さにする */
.sheet-jump { display: inline-flex; align-items: center; min-height: 44px; }
.sheet-summary { margin-top: 14px; font-size: 0.9375rem; line-height: 1.65; color: var(--sub); }
.sheet-summary strong { color: var(--ink); }
.sheet-help { margin-top: 4px; font-size: 0.9375rem; line-height: 1.65; }
.sheet-help dl > div { padding-block: 7px; border-top: 1px solid var(--rule); }
.sheet-help dd { color: var(--sub); }

/* 押印欄。印は、朱の光で押す */
.stamps { display: flex; }
.stamp-box { width: 88px; border: 1px solid var(--rule); }
.stamp-box + .stamp-box { margin-left: -1px; }
.stamp-label { display: block; background: var(--tint); border-bottom: 1px solid var(--rule); font-size: 0.75rem; line-height: 1.7; text-align: center; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--sub); }
.stamp-well { height: 86px; display: grid; place-items: center; }

.seal { width: 72px; height: 72px; color: var(--ai); }
.seal circle, .seal line { fill: none; stroke: currentColor; stroke-width: 3; }
.seal text { fill: currentColor; font-family: var(--f-text); font-weight: 700; }
.seal .seal-gap { fill: var(--sheet); stroke: none; }
.seal-top { font-size: 17px; }
/* 4 字の「本ページ」は、17px だと輪に触れる */
#seal-hero .seal-top { font-size: 14px; }
.seal-date { font-size: 13px; font-feature-settings: "zero" 0; }
.seal-bottom { font-size: 15px; }
/* 照合の印の下は 6 桁の英数字なので、輪に触れない大きさにする */
#seal-check .seal-bottom { font-size: 12.5px; }
.seal.is-pressed { animation: press 0.26s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }

.mark { display: inline-grid; place-items: center; font-weight: 700; line-height: 1; }
.mark-pass, .mark-fail { width: 1.9em; height: 1.9em; border-radius: 50%; border: 1.5px solid var(--shu-ink); color: var(--shu-ink); animation: press 0.2s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; }
.mark-fail { background: var(--shu); border-color: var(--shu); color: #fff; }
.mark-na { color: var(--sub); font-size: 0.75rem; white-space: nowrap; }
tr.is-fail > * { background: var(--shu-tint); }

@keyframes press {
  from { opacity: 0; transform: scale(1.55); }
  to { opacity: 1; transform: scale(1); }
}

.verify-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(24px, 3vw, 40px); }
.verify-note { max-width: 36em; line-height: 1.8; }
.way-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 8px; }
.verify-foot .way-links { margin-top: 0; font-size: 0.9375rem; }
.way-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) { .verify-foot .way-links { flex-direction: column; } }

/* ---------- トップ: 攻撃してみる ---------- */
.attack { --beam: var(--shu); padding-bottom: var(--section); }
.attack .sec-head p + p { margin-top: 10px; }
.attack .sec-head .attack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
/* 試すボタンは、朱の線だけ (塗らない。ページでいちばん強いボタンは「相談する」のまま) */
.attack-actions .btn { min-height: 56px; padding-inline: 34px; font-size: 1.0625rem; background: color-mix(in srgb, var(--paper) 40%, transparent); border-color: color-mix(in srgb, var(--ink) 62%, transparent); color: var(--ink); }
.attack-actions .btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); border-color: var(--ink); box-shadow: none; }
.attack-total { font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.attack-total:empty { display: none; }
.attack-back { display: inline-flex; align-items: center; min-height: 44px; }
.attack-total:empty + .attack-back { display: none; }
/* JavaScript が動かないときは、押しても何も起きないボタンを出さない */
html:not(.js) .attack [data-run] { display: none; }
.attack .js-off { margin-top: 18px; padding-left: 14px; border-left: 2px solid var(--link); }
/* 6 つの操作は畳んでおく。「まとめて試す」を押すと、プログラムが開く */
.probes-fold { margin-top: clamp(24px, 4vw, 48px); padding-top: 6px; border-top: 1px solid var(--rule); }
.probes-fold > summary { display: flex; align-items: center; min-height: 44px; padding-block: 0; }
.probes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.probe { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 0 14px; align-items: start; padding: 18px 18px 16px; background: var(--sheet); border: 1px solid var(--rule); transition: border-color 0.2s; }
.probe-what p { margin-top: 4px; font-size: 0.875rem; line-height: 1.7; color: var(--sub); }
.probe-result { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.6; }
.probe-result > :first-child { margin-top: 12px; }
.probe-result .idle { color: var(--sub); }
.probe-result .raw { margin-top: 4px; }
.probe-result code { color: var(--ink); font-size: 0.8125rem; overflow-wrap: anywhere; }
.probe-result .rule { margin-top: 4px; color: var(--sub); }
.probe-log summary { display: flex; align-items: center; min-height: 44px; padding-block: 0; font-size: 0.875rem; }
/* 止めた結果には、成績書の判定と同じ、朱の「合」を押す */
.verdict-blocked { display: inline-flex; align-items: center; gap: 9px; font-size: 0.9375rem; line-height: 1.4; }
.verdict-blocked .mark { font-size: 0.8125rem; }
.verdict-passed { padding-left: 12px; border-left: 3px solid var(--shu); color: var(--shu-ink); font-size: 1rem; }
/* 試し終えた操作は、枠を朱にして、ボタンを沈めておく (もう一度押すことはできる) */
.probe[data-state="blocked"] { border-color: rgb(210 58 30 / 0.45); }
.probe[data-state="blocked"] .btn-ghost:not(:hover) { border-color: var(--rule); color: var(--sub); }
.attack-notes { margin-top: 20px; max-width: var(--measure); font-size: 0.9375rem; line-height: 1.8; color: var(--sub); }
.attack-notes p + p { margin-top: 12px; }

/* ---------- 会社情報 ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 72px); align-items: start; }
.about-grid p { margin-top: 18px; max-width: 34em; }
.cmd { background: var(--well); border: 1px solid var(--rule); border-left: 3px solid var(--ai); padding: 16px 20px; overflow-x: auto; font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.75; white-space: pre; word-break: normal; overflow-wrap: normal; }
.cmd code { font-size: inherit; white-space: inherit; }
/* 1 行 = 1 つのコマンド。狭い画面で折り返した続きは 2 字下げて、別のコマンドに見えないようにする */
.cmd-line { display: block; padding-left: 2ch; text-indent: -2ch; }

.quote { margin-top: 22px; padding-left: 20px; border-left: 3px solid var(--edge); font-size: 1.125rem; line-height: 1.9; }
.about-grid .quote p { margin-top: 0; }
.about-grid .quote-from { margin-top: 8px; font-size: 0.875rem; color: var(--sub); }

.facts > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 2px 24px; padding-block: 13px; border-top: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts-full { border-top: 1px solid var(--edge); max-width: var(--wide); }
.facts-full > div:first-child { border-top: 0; }
.facts-full > div, .facts-biz > div { grid-template-columns: 13.5em minmax(0, 1fr); }
.licences li + li { margin-top: 12px; }
.licence-apart { margin-top: 12px; border-top: 1px solid var(--rule); color: var(--sub); }
.licence-apart > summary { font-size: 0.9375rem; color: var(--sub); text-decoration-color: var(--edge); }
.licence-note { font-size: 0.9375rem; }
.licence-apart .licences { margin-top: 10px; font-size: 0.9375rem; }
.source-note { margin-top: 20px; font-size: 0.9375rem; color: var(--sub); max-width: var(--measure); }
.block .wrap > .facts + .source-note { max-width: var(--measure); }
.source-note + .cmd { margin-top: 12px; }
/* 会社情報: 表を左、出どころと確かめ方を右に置く */
.company-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px clamp(32px, 5vw, 72px); align-items: start; }
.company-notes { padding: clamp(20px, 3vw, 28px); background: var(--sheet); border-top: 2px solid var(--ai); box-shadow: 0 0 0 1px var(--rule); }
.company-notes p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.8; color: var(--sub); }
.company-notes p + h3 { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.company-notes code { color: var(--ink); }
.company-notes .cmd { margin-top: 12px; }
.note-fold { margin-top: 4px; font-size: 0.9375rem; }

/* ---------- 相談の入口 (トップ・事業内容・会社情報の最後) ---------- */
/* 2 本の光が交わったあとの色 (群青) を、帯に敷く。その上に、藍の板の「相談票」を置く */
.cta { padding-block: var(--section); background: var(--band) radial-gradient(ellipse 70% 110% at 88% 0%, #34598A 0%, #2B4F7E 46%, #24456F 100%); }
.cta :focus-visible { outline-color: #FBF8F3; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px clamp(32px, 5vw, 72px); align-items: start; }
.cta-head { container-type: inline-size; }
.cta-head h2 { font-size: clamp(1.9rem, 10.6cqi, 4rem); }
.cta-head p { margin-top: 22px; max-width: 32em; }
.cta-head a:not(.btn) { color: var(--ink); }
.cta-head .cta-price { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgb(251 248 243 / 0.4); line-height: 1.8; }
.slip { background: var(--paper); color: var(--ink); box-shadow: 0 44px 80px -44px rgb(12 26 46 / 0.6); }
.slip :focus-visible { outline-color: var(--link); }
.slip-frame { padding: clamp(18px, 3vw, 40px); }
.slip-title { padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: 0.22em; }
.slip-frame > h3 { margin-top: 20px; font-size: 0.875rem; color: var(--sub); }
/* 相談できること: リンクの行。押すと、その用件を選んだフォームが開く */
.slip-hint { margin-top: 2px; font-size: 0.875rem; line-height: 1.6; color: var(--sub); }
.slip-asks { margin-top: 0; border-bottom: 1px solid var(--rule); }
.slip-asks li { border-top: 1px solid var(--rule); }
.slip-asks li:first-child { border-top: 0; }
.slip-asks a { display: block; padding: 14px 0; text-underline-offset: 0.28em; }
.slip-asks a:hover, .slip-asks a:focus-visible { color: var(--ink); }

/* 順に進むもの: 送ったあとの流れ (.after) と、始めるまでの流れ (.process) */
.after, .process { counter-reset: step; }
.after > li, .process > li { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
.after > li::before, .process > li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid; border-radius: 50%; font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; line-height: 1; }
.after > li::after, .process > li::after { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 4px; border-left: 1px solid var(--rule); }
.after > li:last-child, .process > li:last-child { padding-bottom: 0; }
.after > li:last-child::after, .process > li:last-child::after { display: none; }
.after h3, .process h3 { padding-top: 3px; }
.after p, .process p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.8; color: var(--sub); }
.process > li { padding-bottom: 28px; }

/* ---------- 下層ページ ---------- */
/* 見出しは、題字と罫線だけ (光は、トップの最初の画面だけのもの) */
.page-head { padding-block: clamp(48px, 8vw, 112px) clamp(36px, 5vw, 64px); }
.page-head .lead { margin-top: clamp(16px, 2.4vw, 28px); text-wrap: pretty; }
.page-head .lead + p, .page-head .errors + p { margin-top: 28px; }
.page-head .lead + .page-note, .page-head .gist + .page-note, .page-fork + .page-note { margin-top: 14px; max-width: 40em; color: var(--sub); }
/* このページの対象でないことを知りたい人への、分かれ道 */
.page-head .page-note + p { margin-top: 28px; }
.page-fork { max-width: 40em; margin-top: 26px; padding: clamp(16px, 2.4vw, 22px); background: var(--sheet); border-left: 3px solid var(--ai); box-shadow: 0 0 0 1px var(--rule); }
.page-fork .h-sub { font-size: 1.3rem; }
.page-fork p { margin-top: 8px; }
.page-fork p + p { margin-top: 14px; }
.fork-links { margin-top: 10px; border-top: 1px solid var(--rule); }
.fork-links li { border-bottom: 1px solid var(--rule); }
.fork-links a { display: block; padding-block: 9px; }
.gist { margin-top: 18px; max-width: 40em; }
.gist li { position: relative; padding-left: 1.3em; }
.gist li + li { margin-top: 6px; }
.gist li::before { content: ""; position: absolute; left: 0.2em; top: 0.72em; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--ai); }
.toc { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--edge); }
.toc a { display: inline-block; padding: 8px 0; color: var(--ink); }
/* 目次の 2 段目: 1 つの事業の中身。何の中身かは、リンクと見分けがつくように、上に小さく書く */
.toc-sub-label { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--sub); }
.toc-sub { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 0.9375rem; color: var(--sub); }
.toc-sub li { padding-block: 6px; }
.toc-sub a { display: inline-block; }
.errors { margin-top: 24px; max-width: 40em; border-left: 3px solid var(--shu); padding-left: 18px; }
.errors li + li { margin-top: 6px; }

.block { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--rule); }
.block-lead { margin-top: 16px; max-width: 40em; }
.block-lead + * { margin-top: 28px; }
.block .wrap > p + p { margin-top: 16px; }
.block .wrap > .facts { max-width: var(--wide); }
.block .wrap > .facts + p { margin-top: 24px; max-width: 40em; }
.block-limits { border-block: 1px solid var(--rule); }
.block-limits + .block { border-top: 0; }

/* 見出しを左、中身を右に置く節 (事業内容のページ)。比はトップの節と同じ 5 : 7 */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 72px); align-items: start; }
.split-body { max-width: var(--measure); }
.split-body > * + * { margin-top: 14px; }
.split-body > :first-child { margin-top: 0; }
.split-body > .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.split-body > .actions + .actions-note, .split-body > .actions-note + .actions-note { margin-top: 10px; font-size: 0.9375rem; color: var(--sub); }
.split-body > .sub-title { margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--edge); }
.split-body > .sub-title + .process { margin-top: 20px; }
.split-body > .sub-title + .facts { margin-top: 0; }
.split-body > .sub-title + .caveats { margin-top: 18px; }
.sub-title + .facts > div:first-child { border-top: 0; }
.item-link { font-size: 0.9375rem; color: var(--sub); }
.item-link a { display: inline-flex; align-items: center; min-height: 44px; }
.split-body .steps > li:first-child { padding-top: 0; border-top: 0; }
.aside-note { padding-top: 22px; border-top: 1px solid var(--rule); }
/* 表の最後の線と重なって、線が 2 本に見えないように */
.facts + .aside-note { padding-top: 10px; border-top: 0; }
.aside-note p { margin-top: 6px; }
.open-list { margin-top: 10px; border-top: 1px solid var(--rule); }
.open-list li { padding-block: 8px; border-bottom: 1px solid var(--rule); }
.open-list + p { margin-top: 12px; }
/* 詳しい決まりは畳んでおく (読みたい人だけ開く)。開いた中身は、節の本文と同じ並び */
.more { border-top: 1px solid var(--rule); }
.more + .more { margin-top: 0; }
.more:last-of-type { border-bottom: 1px solid var(--rule); }
.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding-block: 12px; color: var(--ink); font-weight: 700; text-decoration: none; list-style: none; }
.more > summary::before { display: none; }
/* 大きい畳みは、同じ十字を右の丸の中に置く */
.more > summary::after { content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--edge); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: background-size 0.2s, border-color 0.16s; }
.more[open] > summary::after { background-size: 12px 1.5px, 1.5px 0; }
.more > summary:hover::after { border-color: var(--ink); }
.more-body { padding-block: 6px 28px; }
.more-body > * + * { margin-top: 14px; }
.more-body > .sub-title { margin-top: 26px; padding-bottom: 8px; border-bottom: 1px solid var(--edge); }
.more-body > .sub-title + .facts { margin-top: 0; }
.more-body > .process, .more-body > .promises { margin-top: 8px; }
.more-body > .check-count, .more-body > .check-note, .more-body > .detail-lead { font-size: 0.9375rem; color: var(--sub); }
.more-body > .mask { margin-top: 18px; }
/* 料金表。狭いときは、金額を項目の下へ送る */
.price { container-type: inline-size; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -36px rgb(27 39 64 / 0.35); }
.split-body > .price { margin-top: 22px; }
.price-frame { padding: clamp(18px, 3vw, 36px); }
.price-title { padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: 0.22em; }
.price-tax { margin-top: 10px; font-size: 0.9375rem; color: var(--sub); text-align: right; }
.price-list { margin-top: 6px; border-top: 1px solid var(--edge); }
.price-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.price-amount { font-size: clamp(1.5rem, 1.15rem + 2.2cqi, 2.25rem); line-height: 1.3; text-align: right; white-space: nowrap; }
.price-what { grid-column: 1 / -1; font-size: 0.9375rem; line-height: 1.8; color: var(--sub); word-break: auto-phrase; text-wrap: pretty; }
.price-notes { margin-top: 16px; font-size: 0.9375rem; line-height: 1.75; }
.price-notes li { position: relative; padding-left: 1.1em; word-break: auto-phrase; text-wrap: pretty; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: 0.82em; width: 0.5em; border-top: 1.5px solid var(--sub); }
.price-notes li + li { margin-top: 6px; }
@container (max-width: 430px) {
  .price-list > div { grid-template-columns: minmax(0, 1fr); }
  .price-amount { text-align: left; }
}
/* 事業内容のページ: 事業ごとの節。見出しはトップの節と同じ形で、字だけ小さくする */
.svc { --beam: var(--ai); padding-block: clamp(32px, 4.5vw, 64px) clamp(48px, 6vw, 84px); }
.svc .sec-head h2 { font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem); line-height: 1.24; word-break: auto-phrase; }
.svc .sec-head .actions { margin-top: 20px; }
.svc-price, .svc-data, .svc-more { margin-top: clamp(36px, 5vw, 64px); }
/* 店舗の AI スタッフ以外は、1 文の下にそのまま本文を続ける (見出しの高さの分の穴を空けない) */
.sec-head .svc-body { margin-top: 24px; }
.sec-head .svc-body p { max-width: none; font-size: inherit; word-break: normal; }
.svc-price, .svc-data, .svc-more { padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule); }
.svc-price .split-head > p, .svc-data .split-head > p { margin-top: 12px; }
.svc-price .split-head > .actions { margin-top: 22px; }
.svc-price .split-head > .actions-note { font-size: 0.9375rem; color: var(--sub); }
.svc-price .split-body > .price { margin-top: 0; }
.svc .split-body > p + .more, .svc .split-body > p + .caveats, .svc .split-body > .caveats + .more { margin-top: 24px; }
.svc .split-body > .more + .more { margin-top: 0; }
.svc .split-body > .more + .actions { margin-top: 30px; }
.more-note { font-size: 0.9375rem; color: var(--sub); }
.svc-more > .h-sub { margin-bottom: clamp(18px, 2.4vw, 28px); }
.more-list .more-body > * { max-width: var(--measure); }
.more-list .more-body > .facts, .more-list .more-body > .process, .more-list .more-body > .promises { max-width: 56rem; }
.more-list .facts-rules > div { grid-template-columns: 12em minmax(0, 1fr); }
.svc h3.h-sub { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem); line-height: 1.3; }
.demo-more { margin-top: 8px; font-size: 0.9375rem; line-height: 1.65; color: var(--sub); }
.demo-more p { margin-top: 6px; }
/* 事業内容のページ: 見本と図を横に並べる段、絵つきの項目 */
.block-sheet { background: var(--sheet); }
.staff-show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(36px, 5vw, 60px); }
.staff-fig > h3 { margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--edge); }
.staff-note { margin-top: 20px; font-size: 0.9375rem; color: var(--sub); }
.staff-note + .staff-note { margin-top: 8px; }
.svc-back { margin-top: clamp(24px, 3vw, 36px); font-size: 0.9375rem; }
.svc-back a { display: inline-block; padding-block: 10px; }
/* 決めるのはお店なので、印は「自分で入れるチェック」の形にする */
.promises { border-bottom: 1px solid var(--rule); }
.promises li { position: relative; padding: 18px 0 18px 44px; border-top: 1px solid var(--rule); }
.promises li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 22px; height: 22px; border: 1.5px solid var(--ink); border-radius: 4px; }
.promises li::after { content: ""; position: absolute; left: 10px; top: 17px; width: 9px; height: 19px; border: solid var(--shu); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.promises p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.8; color: var(--sub); }
.split-body > .promises { margin-top: 20px; }
.split-body > .process { margin-top: 0; }
.split-body > .mask { margin-top: 18px; }
.facts-rules > div { grid-template-columns: 10.5em minmax(0, 1fr); }
/* 確認表: 1 行に、先に短い答え。続きは行の中の「くわしく」に畳む。まだのことは、朱の枠の札を付けて、畳まずに見せる */
.check dd p { display: block; }
.check dd p + p { margin-top: 6px; }
.row-more summary { display: flex; align-items: center; min-height: 44px; padding-block: 0; font-size: 0.9375rem; }
.row-more > p { margin-top: 2px; padding-bottom: 4px; font-size: 0.9375rem; line-height: 1.85; color: var(--sub); }
.check dd .yet-line { margin-top: 8px; }
.yet-names { font-size: 0.9375rem; line-height: 1.9; }
.yet-names + .check { margin-top: 14px; }
.st { display: inline-block; margin-right: 10px; padding: 0 9px; vertical-align: 0.08em; font-size: 0.8125rem; line-height: 1.75; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.st-yet { color: var(--shu-ink); background: transparent; border-color: var(--shu-ink); }
.split-body > .check-count { margin-top: 10px; font-size: 0.9375rem; color: var(--sub); }
.check-note + .check { margin-top: 12px; }
.split-body > .check-note { margin-top: 2px; font-size: 0.9375rem; color: var(--sub); }
.check + .aside-note { margin-top: 26px; }
.check-note a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0.6em; }
/* 先に知っておいてほしいこと (朱の線 = 読む人が、自分で確かめること) */
.caveats { margin-top: 20px; padding: 6px 20px; background: var(--sheet); border-left: 3px solid var(--shu); box-shadow: 0 0 0 1px var(--rule); }
.caveats > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; width: 100%; min-height: 48px; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.caveats > summary::before { flex: none; margin-right: 0; }
.caveats-count { font-size: 0.9375rem; font-weight: 400; color: var(--sub); }
.caveats[open] { padding-bottom: 14px; }
.caveats p { margin-top: 6px; font-size: 0.9375rem; color: var(--sub); }
/* 1 行に、名前と短い答え。続きは「くわしく」に畳む (確認表と同じ形) */
.caveats .facts { margin-top: 12px; }
.caveats .facts > div { grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 20px; padding-block: 11px; }
.caveats .facts > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.caveats dt { position: relative; padding-left: 18px; font-size: 0.9375rem; }
.caveats dt::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--shu); }
.caveats dd > p:first-child { margin-top: 0; font-size: 1rem; color: var(--ink); }
.split-body > .detail-lead { margin-top: 12px; font-size: 0.9375rem; color: var(--sub); }

.table-scroll { overflow-x: auto; }
.ledger { width: 100%; min-width: 46rem; font-size: 0.875rem; line-height: 1.72; }
.ledger th, .ledger td { padding: 9px 14px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.ledger thead th { border-bottom: 1px solid var(--edge); font-size: 0.8125rem; white-space: nowrap; color: var(--sub); }
.ledger tbody th { font-weight: 400; white-space: nowrap; }
.ledger td:last-child { width: 4.5em; text-align: center; padding-right: 0; }
.ledger thead th:last-child { text-align: center; padding-right: 0; }
#header-table td:nth-child(2) { width: 38%; }
.file-summary { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.5; min-height: 1.5em; }
.file-list, .steps-fold { margin-top: 8px; }
.steps-fold[open] > summary { margin-bottom: 8px; }
.file-list[open] summary { margin-bottom: 8px; }

.tamper { margin-top: 40px; padding: clamp(18px, 3vw, 28px); background: var(--sheet); border: 1px solid var(--rule); border-left: 3px solid var(--shu); max-width: var(--wide); }
.tamper p { margin-top: 10px; max-width: 40em; }
.tamper-out { margin-top: 16px; font-size: 0.875rem; }
.tamper-out div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 2px 16px; padding: 8px 0; border-top: 1px solid var(--rule); }
.tamper-out code { overflow-wrap: anywhere; word-break: break-all; }

.steps { counter-reset: step; max-width: var(--wide); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding-block: 22px; border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(step); grid-row: 1 / span 4; font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; }
.steps > li > * { grid-column: 2; }
.steps .cmd { margin-top: 12px; }
.steps p { margin-top: 10px; max-width: 40em; }
.keyprint { margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: var(--wide); }
.keyprint + .cmd { margin-top: 12px; max-width: var(--wide); }

.limit-group { max-width: 46em; }
.limit-group + .limit-group { margin-top: 36px; }
.limit-group h3 { padding-bottom: 6px; font-size: 0.8125rem; letter-spacing: 0.12em; color: var(--sub); }
.limits li { padding-block: 16px; border-top: 1px solid var(--rule); }
.limits li:last-child { border-bottom: 1px solid var(--rule); }
.limits strong { display: block; }
/* 1 項目ずつ畳む。見えるのは 1 文の見出しだけ */
.limits .li-fold { padding-block: 2px; }
.limit-one > summary { display: flex; align-items: center; width: 100%; min-height: 48px; font-weight: 700; line-height: 1.6; }
.limit-one > summary { justify-content: space-between; gap: 16px; }
.limit-one > summary::before { display: none; }
.limit-one > summary::after { content: ""; flex: none; width: 30px; height: 30px; border: 1px solid var(--edge); border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: background-size 0.2s, border-color 0.16s; }
.limit-one[open] > summary::after { background-size: 12px 1.5px, 1.5px 0; }
.limit-one > summary:hover::after { border-color: var(--ink); }
.limit-one > p { padding: 0 0 12px 0; font-size: 0.9375rem; line-height: 1.85; color: var(--sub); }

/* セキュリティのページ: 要点は 3 行、続きは畳む */
.sec-gist { margin-top: clamp(20px, 3vw, 32px); max-width: 46em; border-top: 1px solid var(--rule); }
.sec-gist li { padding-block: 12px; border-bottom: 1px solid var(--rule); font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); font-weight: 700; line-height: 1.6; }
.sec-fork { margin-top: 14px; }
.sec-fork > summary { color: var(--sub); text-decoration-color: var(--edge); }
.sec-fork .fork-links { max-width: 40em; margin-top: 2px; }
.absent-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--rule); }
.absent-list > div { grid-template-columns: minmax(0, 1fr); border-top: 0; border-bottom: 1px solid var(--rule); }
.absent-list dd { color: var(--sub); }
@media (max-width: 700px) { .absent-list { grid-template-columns: minmax(0, 1fr); } }
.sec-more { margin-top: 10px; }
.sec-more > p, .sec-more dd { font-size: 0.9375rem; line-height: 1.85; color: var(--sub); }
.sec-more > p { max-width: 40em; padding-bottom: 6px; }
.sec-more > p + p { margin-top: 12px; }
.sec-more > .facts { margin-top: 4px; margin-bottom: 16px; max-width: var(--wide); }
.steps .sec-more { margin-top: 4px; }
.table-note { margin-top: 10px; font-size: 0.875rem; color: var(--sub); }

/* 文章のページ。左端は見出しと揃え、1 行の長さだけを抑える */
.prose > * { max-width: 42em; }
.prose > .facts { max-width: 48em; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); margin-top: 56px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + * { margin-top: 16px; }
.prose p + p, .prose ul + p, .prose p + ul, .prose dl + p { margin-top: 14px; }
.prose ul li { position: relative; padding-left: 1.3em; }
.prose ul li + li { margin-top: 6px; }
.prose ul li::before { content: ""; position: absolute; left: 0.2em; top: 0.86em; width: 0.5em; height: 1.5px; background: var(--sub); }

/* ---------- フォーム ---------- */
.form { max-width: 40rem; }
.form-wrap { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 1fr); gap: 48px clamp(32px, 5vw, 72px); align-items: start; }
.form-side { padding: clamp(20px, 3vw, 28px); background: var(--sheet); border-top: 2px solid var(--ai); box-shadow: 0 0 0 1px var(--rule); }
/* 広い画面では、右の欄が、フォームを書いているあいだ付いてくる */
@media (min-width: 961px) { .form-side { position: sticky; top: 24px; } }
.examples-fold { margin-top: 6px; font-size: 0.9375rem; }
.form-side .after { margin-top: 20px; }
.side-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.side-note p { margin-top: 4px; font-size: 0.9375rem; line-height: 1.8; color: var(--sub); }
.choices-stack { flex-direction: column; gap: 0; }
/* 欠陥の報告は、相談の用件と分けて、選択肢のすぐ下に畳んでおく */
.choice-apart { margin-top: 6px; font-size: 0.9375rem; color: var(--sub); }
.choice-apart summary { color: var(--sub); text-decoration-color: var(--edge); }
.choice-apart .hint { margin-top: 0; padding-left: 30px; }
.field { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice), .field > legend { display: block; padding: 0; margin-bottom: 6px; font-weight: 700; }
.optional { margin-left: 6px; font-weight: 400; font-size: 0.9375rem; color: var(--sub); }
.field input[type="text"], .field input[type="email"], .field textarea {
  display: block; width: 100%; padding: 12px 16px;
  background: var(--well); border: 1.5px solid var(--edge); border-radius: 8px;
  font-family: var(--f-input); font-size: 1rem; line-height: 1.6; color: var(--ink);
  caret-color: var(--ai); transition: border-color 0.16s, box-shadow 0.16s;
}
.field textarea { resize: vertical; min-height: 10em; }
.field input[type="text"]:focus, .field input[type="email"]:focus, .field textarea:focus { border-color: var(--ink); }
/* 入れたあとで、形が合っていない欄 (朱 = 人の確認) */
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--shu-ink); box-shadow: inset 4px 0 0 var(--shu); }
.count { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--sub); text-align: right; }
.hint { margin-top: 6px; font-size: 0.9375rem; color: var(--sub); }
.examples { margin-top: 10px; padding-left: 12px; border-left: 1px solid var(--edge); }
.examples li + li { margin-top: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; cursor: pointer; }
/* 丸と四角は、自前で描く (ブラウザの灰色の部品を使わない)。選ぶと、青白く灯る */
.choice input { -webkit-appearance: none; appearance: none; display: grid; place-content: center; width: 24px; height: 24px; margin: 0; flex: none; background: var(--well); border: 1.5px solid var(--edge); border-radius: 50%; cursor: pointer; transition: background-color 0.14s, border-color 0.14s, box-shadow 0.14s; }
.choice input[type="checkbox"] { border-radius: 6px; }
.choice:hover input { border-color: var(--ink); }
.choice input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--deep); transform: scale(0); transition: transform 0.14s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.choice input[type="checkbox"]::before { width: 7px; height: 12px; margin-top: -3px; border-radius: 0; background: none; border: solid var(--deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); }
.choice input:checked { background: var(--ai); border-color: var(--ai); box-shadow: none; }
.choice input:checked::before { transform: scale(1); }
.choice input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
@media (forced-colors: active) {
  .choice input { -webkit-appearance: auto; appearance: auto; }
  .choice input::before { display: none; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* 送信が、このページの主役のボタン */
.form-actions { margin-top: 4px; }
.form-actions .btn { min-width: min(100%, 18rem); min-height: 60px; font-size: 1.125rem; }
.form-notes { margin-bottom: 20px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.9375rem; }
.form-notes:has(+ .copy) { margin-bottom: 12px; }
.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 22px; font-size: 0.9375rem; color: var(--sub); }
/* 控えのコピーは、送信のボタンと並ばないように文字のリンクの見た目にする */
.copy-link { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.btn-text { min-height: 44px; padding: 0; background: none; border: 0; color: var(--link); font-size: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.btn-text:hover { color: var(--ink); }

/* ---------- 狭い画面 ---------- */
@media (max-width: 960px) {
  .about-grid, .cta-grid, .form-wrap, .staff-show, .company-grid, .verify-foot { grid-template-columns: minmax(0, 1fr); }
  .slip { max-width: 40rem; }
  .probes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .split, .sec-head, .biz-item, .probes { grid-template-columns: minmax(0, 1fr); }
  .svc-price .split-head { display: contents; }
  .svc-price .split-body { order: 1; }
  .svc-price .split-head > .actions { order: 2; margin-top: 4px; }
  .svc-price .split-head > .actions-note { order: 3; margin-top: -8px; }
  .sec-head > :last-child { padding-top: 0; }
  /* 最初の画面: 狭い画面でも、2 つの言葉は横に並べる (字を画面の幅いっぱいに使い、光は少し立てる) */
  .hero { --title: clamp(3.25rem, 17vw, 7.75rem); --gap: 1.05em; --pad: clamp(64px, 12svh, 120px); }
  .hero-bg { --ang: 33deg; }
  .hero .lead { margin-top: clamp(64px, 18vw, 112px); max-width: 33em; text-wrap: pretty; }
  /* 横に長い表は、1 行を 1 かたまりに積み直す (表としての読み上げは role で保つ) */
  .table-scroll { overflow-x: visible; }
  .ledger { display: block; min-width: 0; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ledger tbody { display: block; border-top: 1px solid var(--edge); }
  .ledger tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .ledger tbody th, .ledger tbody td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .ledger tbody tr > * { grid-column: 1 / -1; margin-top: 4px; }
  .ledger tbody tr > :first-child { grid-column: 1; grid-row: 1; margin-top: 0; font-weight: 700; }
  .ledger tbody tr > :last-child { grid-column: 2; grid-row: 1; margin-top: 0; width: auto; }
  #header-table td:nth-child(2) { width: auto; }
  .ledger tbody td[colspan] { grid-column: 1 / -1; font-weight: 400; text-align: left; }
}
@media (max-width: 560px) {
  .facts > div, .mask-row { grid-template-columns: minmax(0, 1fr); }
  .more-list .facts-rules > div, .caveats .facts > div { grid-template-columns: minmax(0, 1fr); }
  .foot-nav, .foot-colophon { grid-template-columns: minmax(0, 1fr); }
  .foot-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .sheet-top { grid-template-columns: minmax(0, 1fr); }
  .stamp-box { flex: 1 1 0; width: auto; }
  /* ヘッダーは 2 段: 1 段目に社名と相談の入口、2 段目にほかの 3 つ */
  .site-header-in { position: relative; padding-block: 6px 2px; }
  .site-header-in nav { flex-basis: 100%; }
  .nav { gap: 0 24px; }
  .nav li:last-child { position: absolute; top: 12px; right: var(--gut); }
  .nav a.nav-cta { padding: 0 16px; font-size: 0.875rem; }
  /* 検査の値は、名前を左、値を右にして 1 行ずつ積む (半端な折り返しを出さない) */
  .hero-actions .btn { padding-inline: 26px; width: min(100%, 18rem); justify-content: center; }
  .form-actions .btn { width: 100%; }
  .tamper-out div { grid-template-columns: minmax(0, 1fr); }
  .steps > li { grid-template-columns: 1.8em minmax(0, 1fr); }
}

/* 成績書が細いとき (スマートフォン) は、押印欄を品名の下へ送り、表の 1 行を「検査項目と規格 | 実測 | 判定」に積み直す。
   表としての読み上げは、role で保つ */
@container (max-width: 27rem) {
  .sheet-top { grid-template-columns: minmax(0, 1fr); }
  .stamp-box { flex: 1 1 0; width: auto; }
  .sheet-table, .sheet-table thead, .sheet-table tbody { display: block; }
  .sheet-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.75em; border-bottom: 1px solid var(--rule); }
  .sheet-table thead tr { border-bottom-color: var(--edge); }
  .sheet-table tr > :nth-child(n) { display: block; width: auto; padding: 8px 8px 8px 0; border: 0; }
  .sheet-table tr > :nth-child(1) { grid-area: 1 / 1; padding-bottom: 0; text-align: left; }
  .sheet-table tr > :nth-child(2) { grid-area: 2 / 1; padding-top: 1px; font-size: 0.75rem; color: var(--sub); text-align: left; }
  .sheet-table tr > :nth-child(3) { grid-area: 1 / 2 / span 2; align-self: center; }
  .sheet-table tr > :nth-child(4) { grid-area: 1 / 3 / span 2; display: grid; place-items: center; padding-inline: 2px; }
}

/* 広い画面では、右の中身を読むあいだ、左の見出しを残す。見出しの無い段は、本文を右の列に置く */
@media (min-width: 721px) {
  .svc-body > .split-body { grid-column: 2; }
  .svc .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split > h2, .split > .split-head { position: sticky; top: 24px; }
}
@media (min-width: 961px) {
  .cta-head { position: sticky; top: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* ページを移るとき、前の画面から静かに入れ替える */
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 印刷 (確認表や料金表を、刷って持ち寄れるように) ---------- */
/* 紙では、白い地に紺の字へ戻す。光と、触って試す部品は刷らない */
@media print {
  @page { margin: 16mm 14mm; }
  :root {
    color-scheme: light;
    --paper: #fff; --sheet: #fff; --tint: #E8ECF2; --well: #fff;
    --ink: #14213A; --sub: #3F4A5E; --rule: #B9C0CB; --edge: #6B7688;
    --ai: #1F4F8A; --link: #1F4F8A; --cobalt: #1F4F8A; --band: #fff;
    --shu: #D2351C; --shu-ink: #BE2C17; --ai-tint: #E6EDF6; --shu-tint: #FBE9E5;
    --bright: #14213A; --deep: #fff;
  }
  html, body { background: #fff; }
  body { font-size: 10.5pt; }
  /* 地の色で読ませている札は、地の色ごと刷る (地が抜けると、字が読めなくなる) */
  .msg-guest .bubble, .st, .redact, .route-in, .mark-fail { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip, .site-header nav, .hero-bg, .hero-actions, .actions, .svc-back, .try, .try-note, .toc, .toc-sub, .toc-sub-label, .cta, .foot-nav, .foot-tech, .probe .btn, .attack-actions { display: none; }
  .hero-in { min-height: 0; }
  .hero-a, .hero-b { color: inherit; }
  .biz-go a::after { content: none; }
  .seal { filter: none; }
  .sheet, .slip, .phone { box-shadow: none; }
  .split > h2, .split > .split-head, .cta-head { position: static; }
  /* 紙では、動きを止めて出し切った形で刷る。図は、試す欄の代わりに、はじめの箱を出す */
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .try, .js .try-note { display: none; }
  .js .route-in { display: block; }
  h2, h3, dt, summary { break-after: avoid; }
  .facts > div, .price, .sheet, .mask, .route, .demo, .process > li, .promises > li { break-inside: avoid; }
  details::details-content { content-visibility: visible; }
  a { color: inherit; }
}
