/* 中のページ（施工計画書スキル・営繕型・Kindle の付録・特商法・規約・プライバシー・404）の見た目（2026-10-29）
   トップ（top.css）と同じ空気にする：生成りの地・紺の字・細い罫線・4px の角・見出しは極太（M PLUS 1p）。
   top.css は絵の動きで重いので読まない。色・字・ヘッダー・フッター・ボタンの値は top.css と同じ物をここに写した
   （トップの値を変えたら、ここも同じに直す）。CSP 内＝外部の読み込みなし・インラインの style／script なし。
   持ち込まない物（トップで外した「AI が作った感」）：巨大な英字の節見出し・01 の番号と線・点つきのピル形ボタン・波形の縁・
   傾けたカード・回る SCROLL の輪・3 列の同じカード。 */

:root {
  --kon: #13233A;
  --kon-lit: #22385A;
  --ink2: #4A586C;
  --base: #FAF9F5;
  --kinari: #F2EEE4;
  --sora-pale: #E2EDF3;
  --line: rgba(19, 35, 58, .16);
  --line-2: rgba(19, 35, 58, .30);
  --wakaba-deep: #2D6A4C;
  --kimidori: #C3F53C;
  --night-text: #D5DDE8;
  --night-sub: #A9B8CB;
  --shadow: 0 1px 2px rgba(19, 35, 58, .06), 0 16px 36px -14px rgba(19, 35, 58, .22);
  --r: 4px;

  --f-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "BIZ UDPGothic", sans-serif;
  --f-head: "M PLUS 1p Head", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-code: "SFMono-Regular", Consolas, "Courier New", monospace;

  --gutter: 24px;
  --head-h: 76px;
  --toc-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--kon);
  font-family: var(--f-jp);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 本文は長い文が多く <wbr> を入れていないので、ふつうの折り返し（語の途中で切らない keep-all は見出し・リード文・ボタン・ナビだけ） */
  overflow-wrap: anywhere;
  line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--line-2); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
em { font-style: normal; }
small { font-size: 13px; }
p, li, dd { text-wrap: pretty; }
.nw { white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--kon); color: #fff; padding: 10px 16px; border-radius: var(--r); text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* フォーカス：トップと同じ（紺の輪＋内側に黄緑の輪・紺の面の中は白の輪） */
:focus-visible { outline: 3px solid var(--kon); outline-offset: 3px; box-shadow: 0 0 0 3px var(--kimidori); border-radius: var(--r); }
.site-foot :focus-visible { outline-color: #fff; }

/* 見出しの字（トップと同じ・OFL＝fonts/OFL.txt） */
@font-face { font-family: "M PLUS 1p Head"; src: url(fonts/mplus1p-black-sub.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }
.brand-name, .page-title, .h2, .sec h2, .doc h2, .sec h3, .doc h3, .step-h .t, .pricerow b, .facts dd {
  font-family: var(--f-head);
  font-feature-settings: "palt";
}
/* 見出し・ボタン・ナビ：語の途中で切らない。切ってよいのは <wbr>・句読点の後ろ・空白だけ */
.page-title, .h2, .sec h2, .doc h2, .sec h3, .doc h3, .step-h, .btn, .nav, .toc, .facts, .head-contact {
  word-break: keep-all;
  text-wrap: balance;
}
/* リード文・対象・問いの見出し（dt）・表の見出し（th）・写真の札・フッターの行・戻る：これも語の途中で切らない（HTML の <wbr>＝文節の境目・句読点・空白でだけ折る） */
.target, .sub, .lead, dt, th, .shot-cap, .foot-links, .back { word-break: keep-all; }
/* 囲みの中の小見出し（<strong> の直後に改行）：これも語の途中で切らない */
.note p > strong:first-child:has(+ br) { word-break: keep-all; }

/* ───────── ヘッダー（トップと同じ形） ───────── */
.site-head {
  height: var(--head-h);
  display: flex; align-items: center; gap: 44px;
  padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(19, 35, 58, .16); display: grid; place-items: center; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; border-radius: 50%; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.2; }
.nav { margin-right: auto; }
.nav ul { display: flex; gap: 32px; }
.nav a {
  display: inline-block; padding: 14.5px 0;
  font-size: 15px; font-weight: 500; letter-spacing: .06em; line-height: 1;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px;
  text-decoration-color: transparent;
  transition: text-decoration-color .2s;
}
.nav a:hover { text-decoration-color: var(--line-2); }
.head-contact {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: .06em; line-height: 1;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.head-contact:hover { background: var(--kon); border-color: var(--kon); color: #fff; }

/* ───────── ページの頭＝明るい空の面（トップの最初の画面と同じ空の色・雲・紙の質感） ───────── */
.page-head {
  position: relative; overflow: hidden;
  margin: 0 var(--gutter);
  border-radius: var(--r);
  background:
    radial-gradient(60% 80% at 6% 0%, rgba(255, 249, 236, .7), rgba(255, 249, 236, 0) 70%),
    linear-gradient(180deg, #B4D8EE 0%, #CAE4F2 38%, #E0EEF2 72%, #EDF1EA 100%);
}
/* 雲は右の空だけ（字の後ろに置かない） */
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(top/clouds.svg) no-repeat 100% 0 / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 52%, #000 74%);
  mask-image: linear-gradient(90deg, transparent 0 52%, #000 74%);
  opacity: .9;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(top/grain.svg) 0 0 / 220px 220px;
  opacity: .07; mix-blend-mode: multiply;
}
.wrap.page-head-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center;
  padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 6vw, 88px);
}
.page-copy { grid-column: 1 / span 9; }
.page-head--art .page-copy { grid-column: 1 / span 7; }
.page-art { grid-column: 8 / span 5; }
.target {
  margin-bottom: 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; line-height: 1.7; color: var(--kon-lit);
}
.page-title {
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.22;
  letter-spacing: 0;
}
.page-title > .ln { display: block; }   /* 行を改める所（文節で2〜3行に） */
.page-head--legal .page-title { font-size: clamp(32px, 4vw, 52px); }
.sub {
  margin-top: 24px; max-width: 36em;
  font-size: 17px; font-weight: 500; line-height: 1.9; letter-spacing: .03em;
}
.page-head .note-dim { margin-top: 10px; font-size: 13px; color: var(--kon-lit); }

/* 所要時間の線（0分 ── 40分で1冊目）：細い線の両端に短い縦線 */
.dim {
  margin-top: 28px; max-width: 420px;
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--kon-lit);
}
.dim .bar { position: relative; flex: 1; height: 1px; background: var(--kon-lit); }
.dim .bar::before, .dim .bar::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--kon-lit); }
.dim .bar::before { left: 0; }
.dim .bar::after { right: 0; }

/* 数字の並び（章・ページ・価格）：白い紙に細い罫で区切る */
.facts {
  margin-top: 32px; max-width: 760px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line); border-radius: var(--r);
}
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 570px; }
.facts > div { padding: 14px 18px 16px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 13px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; color: var(--ink2); }
.facts dd { margin-top: 2px; font-weight: 800; font-size: clamp(22px, 2.3vw, 26px); line-height: 1.3; }   /* 4列の升が細い 761〜1130 幅でも「13章＋付録」を1行に */
.facts dd small { margin-left: 2px; font-family: var(--f-jp); font-weight: 500; font-size: 13px; color: var(--ink2); }
.facts dd.cap { margin-top: 4px; font-family: var(--f-jp); font-weight: 400; font-size: 13px; line-height: 1.6; word-break: keep-all; }   /* 文節の <wbr> でだけ折る */
.facts .cap + .cap { margin-top: 0; }

.page-head .cta { margin-top: 32px; }
.page-head .cap { margin-top: 18px; color: var(--kon-lit); }
.page-head .cap a { font-weight: 500; }

/* 見本の紙（トップの「机」と同じく、淡い空色の上にまっすぐ置く・傾けない） */
.page-art .desk {
  position: relative; aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, .45); border-radius: var(--r); overflow: hidden;
}
.page-art .sheet { position: absolute; background: #fff; box-shadow: var(--shadow); border-radius: 2px; }
.page-art .sheet-a { width: 40%; left: 8%; top: 9%; }
.page-art .sheet-b { width: 40%; left: 34%; top: 15%; }
.page-art .sheet-c { width: 58%; left: 36%; top: 54%; }

/* ───────── ページの中の目次（上に付いてくる細い帯・字のリンク） ───────── */
.toc {
  position: sticky; top: 0; z-index: 40;
  margin: 0 var(--gutter);
  background: rgba(250, 249, 245, .96);
  border-bottom: 1px solid var(--line);
}
.toc ul {
  max-width: 1200px; margin: 0 auto; padding: 0 56px;
  display: flex; gap: 0 28px; overflow-x: auto; scrollbar-width: none;
}
.toc ul::-webkit-scrollbar { display: none; }
.toc li { flex: none; }
.toc a {
  display: inline-block; padding: 14px 0; min-height: var(--toc-h);
  font-size: 14px; font-weight: 500; letter-spacing: .06em; line-height: 24px; white-space: nowrap;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 7px;
  transition: text-decoration-color .2s;
}
.toc a:hover { text-decoration-color: var(--line-2); }
.toc a:focus-visible { outline-offset: -3px; box-shadow: inset 0 0 0 6px var(--kimidori); }

/* ───────── 節（左に見出し・右に中身。節と節は細い罫で区切る） ───────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 56px; }
.sec { padding: 0 0 32px; scroll-margin-top: calc(var(--toc-h) + 8px); }
.sec:first-of-type { padding-top: 24px; }
.sec-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start;
  padding-top: 72px; padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.sec:last-of-type .sec-grid { border-bottom: 0; padding-bottom: 96px; }
.sec-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--toc-h) + 32px); }
.sec-body { grid-column: 5 / span 8; min-width: 0; }
.sec h2, .h2 { font-weight: 800; font-size: 32px; line-height: 1.4; letter-spacing: .02em; }
.sec h2 > .ln { display: block; }
.sec h3 { font-weight: 800; font-size: 21px; line-height: 1.5; letter-spacing: .03em; margin: 56px 0 14px; }
.sec-body > h3:first-child { margin-top: 0; }
.sec-body > p, .doc > p { margin-bottom: 16px; }
.lead { margin-bottom: 32px; font-size: 17px; line-height: 1.9; font-weight: 500; }
.sec-body > .lead:last-child { margin-bottom: 0; }
.cap { font-size: 13px; line-height: 1.75; color: var(--ink2); }
.price-note { color: var(--ink2); }
.mt3 { margin-top: 32px; }
code { font-family: var(--f-code); font-size: .92em; overflow-wrap: anywhere; }
p code, li code, td code, dd code { background: var(--kinari); padding: 1px 5px; border-radius: 3px; }

/* できること（旧カード）：罫で区切った行。見出しと文を縦に */
.points { border-top: 1px solid var(--line); }
.points > li { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.points h3 { margin: 0 0 8px; font-size: 19px; }
.points p { font-size: 15px; line-height: 1.9; color: var(--ink2); }

/* 注意書き：生成りの面 */
.note { padding: 24px 28px; margin: 0 0 32px; background: var(--kinari); border-radius: var(--r); }
.note p { font-size: 15px; line-height: 1.9; }
.note p + p { margin-top: 12px; }
.note:last-child { margin-bottom: 0; }
p.note { font-size: 15px; }

/* 箇条書き：小さな四角の印 */
ul.plain { margin: 0 0 32px; }
ul.plain > li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.9; }
ul.plain > li + li { margin-top: 10px; }
ul.plain > li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 5px; height: 5px; background: var(--ink2); }
ul.plain.checks > li { padding-left: 0; }   /* 「□」が文の頭にある（Kindle の付録の項目そのまま） */
ul.plain.checks > li::before { display: none; }
ul.plain.checks > li + li { margin-top: 0; border-top: 1px solid var(--line); }
ul.plain.checks > li { padding-top: 10px; padding-bottom: 10px; }
ul.plain.checks { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
ol.steps { margin: 0 0 32px; padding-left: 1.4em; }
ol.steps li { padding-left: 4px; font-size: 15px; line-height: 1.9; }
ol.steps li + li { margin-top: 8px; }
ol.steps li::marker { font-weight: 700; }

/* 章の並び：罫の行。章の番号は細い字で左に */
.sheet2 { border-top: 1px solid var(--line-2); }
.sheet2 .row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet2 .no { font-size: 14px; font-weight: 500; line-height: 1.85; letter-spacing: .04em; color: var(--ink2); font-variant-numeric: tabular-nums; }
.sheet2 .nm { font-size: 15px; font-weight: 500; line-height: 1.85; }
.sheet2 .nm small { display: inline-block; margin-top: 2px; font-weight: 400; line-height: 1.7; }

/* 表：細い罫・見出しの欄は生成り */
.scroll { overflow-x: auto; margin: 0 0 32px; }
.scroll table { min-width: 32em; }   /* 狭い幅では潰さずに横へ送る */
table.time th, table.time td { white-space: nowrap; }   /* 「2回目から」「約40分（準備を除けば30分）」を潰さない＝狭い幅では横へ送る */
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.8; }
th, td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--kinari); font-weight: 700; font-size: 14px; letter-spacing: .03em; }
td { background: #fff; }
.scroll table th:first-child { min-width: 8em; }
th .cap { font-weight: 400; }

/* 図・見本 */
.fig { margin: 24px 0 32px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.fig img { width: 100%; }
.fig figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.gallery .shot {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  text-decoration: none; transition: border-color .2s;
}
.gallery .shot:hover { border-color: var(--kon); }
.gallery .shot.wide { grid-column: 1 / -1; }
.gallery .shot-cap { display: block; padding: 8px 12px 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--ink2); }
.gallery .shot-cap b { margin-right: .6em; color: var(--kon); }

/* 使い方の手順 */
.steps-jump { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 8px; }
.steps-jump a {
  display: inline-block; padding: 10px 0; font-size: 14px; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px;
}
.steps-jump a:hover { text-decoration-color: var(--kon); }
.step-h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  margin: 56px 0 18px; padding-top: 20px; border-top: 1px solid var(--line-2);
  scroll-margin-top: calc(var(--toc-h) + 16px);
}
.step-h .no { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--wakaba-deep); }
.step-h .t { font-weight: 800; font-size: 21px; line-height: 1.5; letter-spacing: .03em; }
.step-h .min { margin-left: auto; font-size: 13px; letter-spacing: .04em; color: var(--ink2); }
.anchor { scroll-margin-top: calc(var(--toc-h) + 16px); }
.stuck { margin: 20px 0 8px; padding: 20px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.stuck > p { margin-bottom: 8px; }
.stuck > p b { font-size: 14px; letter-spacing: .06em; color: var(--wakaba-deep); }
.stuck ul > li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.85; }
.stuck ul > li + li { margin-top: 8px; }
.stuck ul > li::before { content: ""; position: absolute; left: 3px; top: .8em; width: 5px; height: 5px; background: var(--wakaba-deep); }

/* よくある質問：問いは太く、答えは鉛筆の色。罫で区切る */
dl.faq { margin: 0 0 32px; border-top: 1px solid var(--line); }
dl.faq dt { padding-top: 20px; font-weight: 700; font-size: 16px; line-height: 1.75; }
dl.faq dd { padding: 6px 0 20px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.9; color: var(--ink2); }
dl.faq dd strong { color: var(--kon); }

/* 買う：白い紙に細い枠（傾けない・影は薄い1種類） */
.buybox { padding: 32px 32px 30px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.pricerow b { font-weight: 800; font-size: 40px; line-height: 1.3; letter-spacing: .01em; }
.pricerow span { font-size: 14px; color: var(--ink2); }
.pricerow span.kw { word-break: keep-all; }   /* 文節の <wbr> でだけ折る */
.buybox .plain { margin-bottom: 20px; }
.buybox > .cap { margin-bottom: 4px; }
.buybox .cta { margin-top: 24px; }
.buybox .note { margin: 20px 0 0; }

/* ───────── ボタン（トップと同じ・角の小さな四角・紺1色）と字のリンク ───────── */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 10px 26px; border-radius: var(--r);
  background: var(--kon); color: #fff;
  font-weight: 500; font-size: 15px; line-height: 1.4; letter-spacing: .06em;
  text-decoration: none; text-align: center;
  border: 1px solid var(--kon);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--kon-lit); border-color: var(--kon-lit); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--kon); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--kon); }
.back { margin-top: 40px; }
.back-row { padding-bottom: 72px; }
.back a, .textlink {
  display: inline-block; padding: 8px 0; margin: -8px 0;
  font-weight: 500; font-size: 15px; letter-spacing: .04em;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px;
}
.back a:hover { text-decoration-color: var(--kon); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── 決まりのページ（特商法・規約・プライバシー）：読む幅の1列 ───────── */
.doc-sec { padding: 24px 0 112px; }
.doc { max-width: 816px; }
.doc > .note:first-child { margin-top: 48px; }
.doc h2 {
  margin: 72px 0 8px; padding-top: 28px; border-top: 1px solid var(--line-2);
  font-weight: 800; font-size: 26px; line-height: 1.45; letter-spacing: .02em;
}
.doc h3 { margin: 40px 0 12px; font-weight: 800; font-size: 19px; line-height: 1.55; letter-spacing: .03em; }
.doc h2 + h3 { margin-top: 24px; }
.doc > p { font-size: 15px; line-height: 1.95; }
.doc ul.plain { margin-bottom: 16px; }
.doc > .cap { margin-top: 40px; }
/* 決まりの dl は表の形（左に項目・右に中身） */
.doc dl.faq { display: grid; grid-template-columns: 13em minmax(0, 1fr); margin: 8px 0 24px; border-top: 1px solid var(--line-2); }
.doc dl.faq dt { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.85; }
.doc dl.faq dd { padding: 16px 0; font-size: 15px; line-height: 1.9; color: var(--kon); }
.doc dl.faq a, .doc p a, .doc li a, .note a { text-decoration-color: var(--line-2); }
.doc dl.faq a:hover, .doc p a:hover, .doc li a:hover, .note a:hover { text-decoration-color: var(--kon); }

/* 404 */
.lost .note { margin-top: 0; }
.lost .sec-grid { grid-template-columns: minmax(0, 1fr); }   /* 左の見出しの列を持たない＝ページの頭の文と同じ左の線に */
.lost .sec-body { grid-column: 1; max-width: 816px; }

/* ───────── フッター（トップと同じ紺の面＋夜の街） ───────── */
.site-foot { margin: 0 var(--gutter) var(--gutter); border-radius: var(--r); background: #13233A; color: var(--night-text); overflow: hidden; }
.foot-night { width: 100%; }
.foot-body { padding-top: 36px; padding-bottom: 64px; }
.brand--light { color: #fff; }
.brand--light .brand-mark { box-shadow: none; }
.site-foot p { font-size: 15px; line-height: 1.85; max-width: 60em; }
.site-foot p + p { margin-top: 8px; }
.site-foot .foot-links + .foot-links { margin-top: 4px; }
.site-foot strong { color: #fff; font-weight: 500; }
.site-foot a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.foot-links a { white-space: nowrap; display: inline-block; min-width: 24px; padding: 0 7px; margin: 0 -7px; text-align: center; }
.site-foot .foot-small { margin-top: 16px; font-size: 13px; color: var(--night-sub); }

/* ───────── 動き（ゆっくり・小さく。減らす設定では止める。JS なし） ───────── */
@media (prefers-reduced-motion: no-preference) {
  .page-copy > * { animation: rise 1.1s cubic-bezier(.2, .6, .2, 1) both; }
  .page-copy > :nth-child(2) { animation-delay: .06s; }
  .page-copy > :nth-child(n+3) { animation-delay: .12s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ───────── 中くらいの幅 ───────── */
@media (max-width: 1180px) {
  .nav ul { gap: 24px; }
  .site-head { gap: 32px; }
}
@media (max-width: 980px) {
  .nav { display: none; }
  .wrap.page-head-in, .sec-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .page-copy, .page-head--art .page-copy, .page-art, .sec-head, .sec-body { grid-column: 1; }
  .sec-head { position: static; }
  .page-art { max-width: 440px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───────── スマホ ───────── */
@media (max-width: 760px) {
  :root { --gutter: 12px; --head-h: 64px; --toc-h: 48px; }
  .site-head { gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 15px; }
  .head-contact { height: 36px; padding: 0 12px; font-size: 13px; letter-spacing: .04em; }

  .wrap { padding: 0 20px; }
  .wrap.page-head-in { padding-top: 44px; padding-bottom: 48px; }
  .page-head::before { -webkit-mask-image: linear-gradient(180deg, transparent 0 55%, #000 85%); mask-image: linear-gradient(180deg, transparent 0 55%, #000 85%); opacity: .7; background-size: 260% auto; background-position: 70% 100%; }
  .page-title { font-size: clamp(28px, 8.2vw, 36px); line-height: 1.28; }
  .page-head--legal .page-title { font-size: clamp(28px, 8vw, 34px); }
  .sub { margin-top: 18px; font-size: 15px; line-height: 1.85; letter-spacing: .02em; }
  /* 価格の升（.wide）は1行まるごと。残りの3つは3列に並べる */
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div { padding: 12px 10px 14px; }
  /* 3列の升：320 幅でも「70ページ」「Excel 1冊」「ヒアリング」を語の途中で折らない（狭い幅だけ字を1段小さく） */
  .facts:not(.facts--3) dd:not(.cap) { font-size: clamp(17px, 5.6vw, 20px); }
  .facts:not(.facts--3) dd small { margin-left: 1px; font-size: clamp(11px, 3.4vw, 12px); }
  .facts:not(.facts--3) dt { letter-spacing: .02em; font-size: clamp(12px, 3.75vw, 13px); }
  .facts > div.wide { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 14px 14px; }
  .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts--3 > div { border-left: 0; border-top: 1px solid var(--line); padding: 14px 18px 16px; }
  .facts--3 > div:nth-child(-n+2) { border-top: 0; }
  .facts--3 > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .facts--3 > div:last-child { grid-column: 1 / -1; border-left: 0; }
  .facts dd { font-size: 22px; }
  .page-head .cta .btn, .buybox .cta .btn, .cta-row .btn { width: 100%; }

  .toc ul { padding: 0 20px; gap: 0 20px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }   /* 右の端を薄く＝続きがある印 */
  .toc a { font-size: 13px; padding: 12px 0; }

  .sec-grid { padding-top: 56px; padding-bottom: 48px; row-gap: 24px; }
  .sec h2, .h2 { font-size: 24px; }
  .sec h3 { font-size: 19px; margin-top: 44px; }
  .lead { font-size: 16px; }
  .note { padding: 20px; }
  .stuck { padding: 18px 18px 20px; }
  .buybox { padding: 24px 20px; }
  .pricerow b { font-size: 34px; }
  .step-h .min { margin-left: 0; width: 100%; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .shot.wide { grid-column: auto; }
  th, td { padding: 10px 12px; }

  .doc h2 { font-size: 22px; margin-top: 56px; }
  .doc h3 { font-size: 18px; }
  .doc dl.faq { grid-template-columns: minmax(0, 1fr); }
  .doc dl.faq dt { padding: 16px 0 0; border-bottom: 0; }
  .doc dl.faq dd { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }

  .foot-night { height: 64px; object-fit: cover; object-position: 30% 100%; }
  .foot-body { padding-top: 28px; padding-bottom: 48px; }
  .back-row { padding-bottom: 48px; }
}

/* 升の数字と単位を語の途中で折らない（4列の升が細くなる幅・3列の升が細くなる 360 幅以下は、升の左右の余白を詰める） */
@media (min-width: 761px) and (max-width: 1180px) {
  .facts > div { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 360px) {
  .facts:not(.facts--3) > div:not(.wide) { padding-left: 7px; padding-right: 7px; }
}

/* ───────── 動きを減らす設定 ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .head-contact, .nav a, .toc a, .gallery .shot { transition: none; }
}
