/* MARKLOGI Claude案 — 工程2 HTML試作
   方向性A「注文を分解して見せる」：注文票・請求の行・1日の時間軸を、全ページ共通の図の文法にする。 */

:root {
  --navy: #012354;        /* ロゴ */
  --ink: #18293b;         /* 本文 */
  --muted: #4b5d70;       /* 注記（白地で約6.5:1） */
  --blue: #397fa9;        /* 補助青 */
  --link: #24658f;        /* リンク・図の強調（白地で約5.6:1） */
  --tint: #edf4f9;
  --tint-2: #f6f9fb;
  --line: #d3dfe8;
  --line-strong: #9fb6c8;
  --paper: #ffffff;
  --action: #c9561c;      /* 主要な相談ボタンだけに使う */
  --action-ink: #ffffff;
  --ok: #2f7a55;
  --ng: #b3412f;
  --review: #8a5a00;
  --review-bg: #fff7e6;

  --f-head: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-num: "IBM Plex Sans", "Noto Sans JP", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.85;
  font-feature-settings: "palt" 0; letter-spacing: .02em;
  overflow-wrap: anywhere; word-break: normal; line-break: strict;
}
/* 文節で折り返す（対応ブラウザのみ。非対応では通常の折返し） */
.paths .who, .fit li, .steps b, .lane-track .st b, .bill-row .nm, .flow b, .req b, .faq summary, .q { word-break: auto-phrase;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 試作バー ---------- */
.proto {
  background: var(--tint-2); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.proto .wrap { display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; padding-block: 8px; flex-wrap: wrap; }
.proto label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--ink); }
.proto input { width: 16px; height: 16px; accent-color: var(--review); }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .hd { background: rgba(255,255,255,.88); backdrop-filter: blur(8px); } }
.hd .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.hd .logo { display: block; width: 148px; flex: none; }
.hd .logo img { width: 100%; height: auto; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gnav a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: var(--radius); }
.gnav a:hover { background: var(--tint); }
.gnav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.hd-cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .gnav, .hd-cta .tel { display: none; }
  .hd .wrap { height: 60px; gap: 12px; }
  .hd .logo { width: 124px; margin-right: auto; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line-strong); background: #fff; color: var(--navy); border-radius: var(--radius);
    font: 500 14px/1 var(--f-body); cursor: pointer; white-space: nowrap;
  }
  .menu-btn .bars { width: 16px; height: 10px; position: relative; border-block: 2px solid currentColor; }
  .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
}

/* モバイルメニュー（dialog） */
.mnav { border: 0; padding: 0; margin: 0 0 0 auto; width: min(420px, 100%); height: 100dvh; max-height: none; max-width: 100%; background: #fff; color: var(--ink); }
.mnav::backdrop { background: rgba(1,35,84,.28); }
.mnav .top { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.mnav .close { height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); border-radius: var(--radius); font: 500 14px var(--f-body); cursor: pointer; }
.mnav nav { padding: 8px 16px 32px; }
.mnav h2 { font: 700 12px/1 var(--f-body); letter-spacing: .08em; color: var(--muted); margin: 24px 0 8px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mnav li a::after { content: "→"; color: var(--link); }
.mnav .btn { width: 100%; margin-top: 24px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius);
  font: 700 16px/1.3 var(--f-body); letter-spacing: .04em; text-decoration: none; text-align: center;
  border: 1.5px solid var(--navy); color: var(--navy); background: #fff;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--tint); color: var(--navy); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.primary:hover { background: #ad4510; border-color: #ad4510; color: #fff; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn .arw { font-family: var(--f-num); }
.btn[aria-disabled="true"] { border-style: dashed; color: var(--muted); border-color: var(--line-strong); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tlink { display: inline-flex; gap: 8px; align-items: baseline; font-weight: 700; text-decoration: none; color: var(--link); border-bottom: 1px solid currentColor; padding-bottom: 2px; line-height: 1.5; }
.tlink:hover { color: var(--navy); }
.tlink::after { content: "→"; font-family: var(--f-num); }

/* ---------- 見出しとセクション ---------- */
.sec { padding-block: var(--sec); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.tint { background: var(--tint-2); border-top: 0; }
.sec.tint + .sec { border-top: 0; }
.q {
  display: inline-flex; gap: 10px; align-items: baseline; margin: 0 0 18px;
  font: 700 14px/1.5 var(--f-body); color: var(--link); letter-spacing: .04em;
}
.q::before { content: "Q"; font: 600 13px/1 var(--f-mono); color: #fff; background: var(--blue); padding: 4px 6px; border-radius: 2px; transform: translateY(-1px); }
h1, h2, h3 { font-family: var(--f-head); color: var(--navy); font-weight: 700; letter-spacing: .02em; margin: 0; word-break: auto-phrase; }
.cols > div > .h-sec { font-size: clamp(28px, 3.1vw, 40px); }
.h-sec { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.38; margin-bottom: 24px; }
.h-sub { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; margin-bottom: 12px; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.95; max-width: 40em; margin: 0 0 8px; }
.note { font-size: 14px; line-height: 1.8; color: var(--muted); }
.note strong { color: var(--ink); }
p { margin: 0 0 1em; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
@media (max-width: 899px) { .cols, .cols.even { grid-template-columns: minmax(0, 1fr); } }

/* 確認メモ（代表レビュー用。トグルで非表示） */
.rv {
  display: block; border: 1px dashed var(--review); background: var(--review-bg); color: #5c3c00;
  font-size: 13px; line-height: 1.7; padding: 10px 12px; border-radius: var(--radius); margin: 12px 0;
}
.rv::before { content: "確認メモ"; display: inline-block; font-weight: 700; margin-right: 8px; padding: 0 6px; background: var(--review); color: #fff; border-radius: 2px; font-size: 12px; }
html.hide-rv .rv { display: none; }
span.rv { display: inline; padding: 1px 6px; margin: 0 2px; }
span.rv::before { content: "要確認"; }

/* ---------- 注文票（シグネチャー部品） ---------- */
.slip {
  position: relative; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(1,35,84,.35);
  font-size: 15px; margin: 0;
}
@media (max-width: 479px) { .slip-hd, .slip-tabs, .slip-spec, .slip-foot { padding-inline: 14px; } .slip ol { padding: 0 14px; } .slip-total { margin: 0 14px; } }
.slip-hd { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 16px 20px 12px; border-bottom: 1px dashed var(--line-strong); }
.slip-hd .id { font: 500 13px/1.4 var(--f-mono); color: var(--muted); }
.slip-hd .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.slip-tabs { display: flex; gap: 6px; padding: 12px 20px 4px; flex-wrap: wrap; }
.slip-tabs button {
  font: 500 13px/1.4 var(--f-body); padding: 6px 10px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
}
.slip-tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.slip-spec { padding: 6px 20px 10px; font-size: 14px; color: var(--muted); }
.slip ol { list-style: none; margin: 0; padding: 0 20px; counter-reset: ln; }
.slip li {
  counter-increment: ln; display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: baseline;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.slip li::before { content: counter(ln, decimal-leading-zero); font: 500 12px/1 var(--f-mono); color: var(--blue); }
.slip li .what { font-weight: 500; }
.slip li .who { grid-column: 2 / 4; font-size: 13px; color: var(--muted); line-height: 1.6; }
.slip li .yen { grid-column: 3; grid-row: 1; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.slip li .yen small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.slip li.base .yen { color: var(--muted); font-weight: 500; font-family: var(--f-body); font-size: 13px; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 20px; padding: 14px 0 6px; border-top: 2px solid var(--navy); }
.slip-total .lbl { font-weight: 700; color: var(--navy); }
.slip-total .v { font: 600 clamp(28px, 3vw, 36px)/1 var(--f-num); color: var(--navy); font-variant-numeric: tabular-nums; }
.slip-total .v small { font: 500 14px var(--f-body); margin-left: 4px; }
.slip-foot { padding: 4px 20px 16px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.slip-foot b { color: var(--ink); font-weight: 600; }
.slip::after { /* 切り取り線の切り欠き */
  content: ""; position: absolute; left: -1px; right: -1px; top: 58px; height: 0;
}

/* ---------- ヒーロー ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); background:
  linear-gradient(180deg, #fff 0%, #fff 55%, var(--tint-2) 100%); }
.hero .cols { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.hero .eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero .eyebrow b { color: var(--navy); font-weight: 700; }
.hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.2; letter-spacing: .01em; margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: clamp(16px, 1.45vw, 19px); }
.hero .btns { margin-top: 32px; }
.hero-cond { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; color: var(--muted); max-width: 36em; }
.hero-cond dt { font-weight: 700; color: var(--navy); white-space: nowrap; }
.hero-cond dd { margin: 0; }
@media (max-width: 899px) {
  .hero .cols { grid-template-columns: minmax(0, 1fr); }
  .hero .slip { margin-top: 8px; }
}

/* ---------- 分担表（委託範囲） ---------- */
.duty { width: 100%; border-collapse: collapse; font-size: 15px; }
.duty caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 12px; }
.duty th, .duty td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.duty thead th { font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid var(--navy); padding-block: 10px; }
.duty tbody th { font-family: var(--f-head); color: var(--navy); font-size: 17px; width: 18%; white-space: nowrap; }
.duty td.us { background: var(--tint); width: 44%; }
.duty td.us::before { content: "MARKLOGI"; display: none; }
.duty .tagx { display: inline-block; font-size: 12px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
@media (max-width: 719px) {
  .duty thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .duty, .duty tbody, .duty tr, .duty th, .duty td { display: block; width: auto !important; }
  .duty caption { display: block; width: auto; }
  .duty tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .duty th, .duty td { border: 0; padding: 4px 0; }
  .duty td { padding: 8px 12px; }
  .duty td.us { border-left: 3px solid var(--blue); }
  .duty td.you { border-left: 3px solid var(--line-strong); margin-top: 6px; }
  .duty td::before { display: block !important; font-size: 12px; font-weight: 700; color: var(--muted); }
  .duty td.us::before { content: "MARKLOGIが行うこと"; }
  .duty td.you::before { content: "御社で用意・決めること"; }
}

/* ---------- 二本の線（モノとデータ） ---------- */
.lanes { display: grid; gap: 20px; }
.lane { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.lane-lbl { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.lane-lbl small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.lane-track { display: flex; align-items: stretch; gap: 0; position: relative; }
.lane-track .st { flex: 1; min-width: 0; position: relative; padding: 10px 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 14px; line-height: 1.5; }
.lane-track .st b { display: block; color: var(--navy); font-size: 15px; }
.lane-track .st.us { border-color: var(--blue); background: var(--tint); }
.lane-track .link { flex: 0 0 28px; align-self: center; height: 0; border-top: 2px solid var(--navy); position: relative; }
.lane-track .link::after { content: ""; position: absolute; right: -1px; top: -6px; border: 5px solid transparent; border-left: 7px solid var(--navy); }
.lane.data .lane-track .link { border-top: 2px dashed var(--blue); }
.lane.data .lane-track .link::after { border-left-color: var(--blue); }
.split { display: grid; gap: 6px; flex: 1.3; min-width: 0; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 28px; border-top: 2px solid var(--navy); display: inline-block; }
.legend i.d { border-top: 2px dashed var(--blue); }
@media (max-width: 719px) {
  .lane { grid-template-columns: 1fr; gap: 8px; }
  .lane-track { flex-direction: column; }
  .lane-track .link { flex: 0 0 22px; width: 0; height: auto; border-top: 0; border-left: 2px solid var(--navy); margin-left: 20px; }
  .lane-track .link::after { right: auto; top: auto; bottom: -1px; left: -6px; border: 5px solid transparent; border-top: 7px solid var(--navy); }
  .lane.data .lane-track .link { border-top: 0; border-left: 2px dashed var(--blue); }
  .lane.data .lane-track .link::after { border-top-color: var(--blue); border-left-color: transparent; }
}

/* ---------- 適合 ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.fit > div { padding: 24px clamp(18px, 2.4vw, 32px); }
.fit > div + div { border-left: 1px solid var(--line-strong); background: var(--tint-2); }
.fit h3 { font-size: 18px; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.fit ul { margin: 0; padding: 0; list-style: none; }
.fit li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; line-height: 1.7; }
.fit li::before { position: absolute; left: 0; top: 10px; font-weight: 700; font-family: var(--f-num); }
.fit .yes li::before { content: "○"; color: var(--ok); }
.fit .no li::before { content: "—"; color: var(--muted); }
@media (max-width: 719px) { .fit { grid-template-columns: 1fr; } .fit > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }

/* ---------- 請求の行（料金の文法） ---------- */
.bill { border-top: 2px solid var(--navy); }
.bill-row {
  display: grid; grid-template-columns: 36px 112px minmax(0, 1fr) auto; gap: 8px 20px;
  align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
a.bill-row:hover { background: var(--tint-2); }
.bill-row .ix { font: 500 13px/1 var(--f-mono); color: var(--blue); }
.bill-row .nm { font-family: var(--f-head); font-weight: 700; color: var(--navy); font-size: 20px; }
.bill-row .when { font-size: 14px; color: var(--muted); line-height: 1.6; }
.bill-row .px { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 22px; color: var(--navy); white-space: nowrap; }
.bill-row .px small { font: 400 13px var(--f-body); color: var(--muted); margin-left: 2px; }
.bill-row .px .from { font-size: 13px; font-weight: 400; color: var(--muted); }
.bill-sum { display: flex; justify-content: flex-end; gap: 16px; align-items: baseline; padding: 14px 0; font-size: 14px; color: var(--muted); }
@media (max-width: 719px) {
  .bill-row { grid-template-columns: 34px 1fr auto; }
  .bill-row .when { grid-column: 2 / 4; grid-row: 2; }
  .bill-row .px { grid-column: 3; grid-row: 1; font-size: 18px; }
  .bill-row .nm { font-size: 18px; }
}

/* ---------- 料金表 ---------- */
.tbl-wrap { position: relative; }
.ptbl { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 15px; }
.ptbl caption { caption-side: top; text-align: left; font: 700 16px/1.5 var(--f-head); color: var(--navy); padding: 0 0 10px; }
.ptbl caption small { font: 400 13px var(--f-body); color: var(--muted); margin-left: 8px; }
.ptbl th, .ptbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.ptbl thead th { position: sticky; top: 68px; z-index: 2; background: #fff; font-size: 13px; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--navy); }
.ptbl td.r, .ptbl th.r { text-align: right; }
.ptbl td.r { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }
.ptbl td.r small { font: 400 12px var(--f-body); color: var(--muted); margin-left: 2px; }
.ptbl td .sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.ptbl tbody tr:hover { background: var(--tint-2); }
.ptbl tr.est td.r { color: var(--muted); font-weight: 500; font-family: var(--f-body); }
.ptbl.sizes td.r, .ptbl.sizes th.r { width: 34%; }
@media (max-width: 1023px) { .ptbl thead th { top: 60px; } }
@media (max-width: 719px) {
  .ptbl { font-size: 14px; }
  .ptbl th, .ptbl td { padding: 11px 8px; }
  .ptbl.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptbl.stack tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ptbl.stack td { display: block; border: 0; padding: 0; }
  .ptbl.stack td.r { text-align: right; }
}

.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.incl > div { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; }
.incl > div.in { border-color: var(--blue); background: var(--tint); }
.incl h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.incl ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }
@media (max-width: 599px) { .incl { grid-template-columns: 1fr; } }

/* 計算式（等式を図にする） */
.calc { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 16px 0; font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.calc .t { border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); padding: 8px 12px; line-height: 1.3; }
.calc .t small { display: block; font: 400 12px var(--f-body); color: var(--muted); }
.calc .t b { font-size: 20px; color: var(--navy); font-weight: 600; }
.calc .op { align-self: center; color: var(--muted); font-size: 18px; }
.calc .t.res { border: 2px solid var(--navy); }

/* 計算例（請求書の体裁） */
.invoice { border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.invoice-hd { padding: 18px 22px; border-bottom: 1px dashed var(--line-strong); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.invoice-hd h3 { font-size: 20px; }
.invoice-hd .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; border-radius: 99px; }
.invoice .cond { padding: 14px 22px; font-size: 14px; color: var(--muted); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.invoice .cond div b { display: block; color: var(--navy); font-family: var(--f-num); font-size: 18px; font-weight: 600; }
.invoice table { width: 100%; border-collapse: collapse; font-size: 15px; }
.invoice th, .invoice td { padding: 12px 22px; border-top: 1px solid var(--line); text-align: left; }
.invoice td.f { color: var(--muted); font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 14px; }
.invoice td.r { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); white-space: nowrap; }
.invoice tfoot td, .invoice tfoot th { border-top: 2px solid var(--navy); font-size: 17px; color: var(--navy); }
.invoice tfoot td.r { font-size: 28px; }
.invoice .after { padding: 14px 22px 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 599px) {
  .invoice th, .invoice td { padding: 10px 14px; }
  .invoice td.f { display: block; padding-top: 0; border-top: 0; }
  .invoice tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); }
  .invoice tr > * { border-top: 0; }
  .invoice td.f { grid-column: 1 / 3; grid-row: 2; padding: 0 14px 10px; }
  .invoice-hd, .invoice .cond, .invoice .after { padding-inline: 14px; }
}

/* ---------- 時間軸（運用） ---------- */
.day { position: relative; margin: 24px 0 8px; }
.day-axis { position: relative; height: 172px; border-bottom: 2px solid var(--navy); }
.day-band { position: absolute; height: 34px; border-radius: 3px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.day-band.ship { background: var(--tint); border: 1px solid var(--blue); color: var(--navy); }
.day-band.tel { background: #fff; border: 1px dashed var(--line-strong); color: var(--muted); }
.day-band.order { background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 12px); color: var(--muted); }
.day-cut { position: absolute; top: 0; bottom: -10px; width: 0; border-left: 2px solid var(--action); }
.day-cut span { position: absolute; top: -2px; left: 8px; font: 700 13px/1.3 var(--f-body); color: var(--action); white-space: nowrap; background: #fff; padding-right: 4px; }
.day-ticks { display: flex; justify-content: space-between; font: 500 12px/1 var(--f-mono); color: var(--muted); padding-top: 8px; }
.day-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.day-scroll:focus-visible { outline-offset: 6px; }
.day-inner { min-width: 560px; }

.week { display: grid; grid-template-columns: 96px repeat(7, 1fr); gap: 4px; font-size: 13px; margin-top: 24px; text-align: center; }
.week div { padding: 8px 2px; border-radius: 3px; line-height: 1.3; }
.week .h { font-weight: 700; color: var(--navy); }
.week .rl { text-align: left; color: var(--ink); font-weight: 500; }
.week .on { background: var(--tint); color: var(--navy); border: 1px solid var(--blue); }
.week .off { background: #fff; border: 1px dashed var(--line-strong); color: var(--muted); }


/* スマートフォン用の縦の時間軸（同じ内容を縦に並べる） */
.day-v { display: none; list-style: none; margin: 20px 0 0; padding: 0 0 0 0; border-left: 2px solid var(--navy); }
.day-v li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0 10px 16px; line-height: 1.6; font-size: 15px; }
.day-v li::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.day-v time { font: 600 15px/1.6 var(--f-num); color: var(--navy); }
.day-v .cut { background: var(--tint); border-top: 2px solid var(--action); border-bottom: 1px solid var(--line); }
.day-v .cut::before { background: var(--action); border-color: var(--action); }
.day-v .cut time, .day-v .cut b { color: var(--action); }
.day-v .tel { color: var(--muted); }
.week-m { display: none; margin: 20px 0 0; }
.week-m div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.week-m dt { font-weight: 700; color: var(--navy); }
.week-m dd { margin: 0; }
@media (max-width: 599px) {
  .day-scroll { display: none; }
  .day-v, .week-m { display: block; }
  .day-v + .sr { display: none; }
}

/* 照合フロー */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) minmax(0, 1.2fr); gap: 0; align-items: stretch; counter-reset: st; }
.flow > li { list-style: none; position: relative; padding: 18px 18px 18px 0; border-top: 2px solid var(--navy); counter-increment: st; }
.flow > li::before { content: counter(st, decimal-leading-zero); display: block; font: 500 12px/1 var(--f-mono); color: var(--blue); margin-bottom: 10px; }
.flow > li b { display: block; color: var(--navy); font-family: var(--f-head); font-size: 18px; margin-bottom: 4px; }
.flow > li span { font-size: 14px; color: var(--muted); line-height: 1.7; display: block; }
.flow .res { display: grid; gap: 8px; }
.flow .res div { border-radius: var(--radius); padding: 8px 12px; font-size: 14px; line-height: 1.5; }
.flow .res .ok { border: 1px solid var(--ok); color: var(--ok); background: #f1f8f4; }
.flow .res .ng { border: 1px solid var(--ng); color: var(--ng); background: #fbf2f0; }
.flow .res div b { font-size: 15px; display: inline; margin: 0 6px 0 0; color: inherit; font-family: var(--f-body); }
@media (max-width: 819px) {
  .flow { grid-template-columns: 1fr; padding: 0; }
  .flow > li { border-top: 0; border-left: 2px solid var(--navy); padding: 4px 0 20px 20px; }
}

/* 依頼の表（止める・待つ） */
.req { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 2px solid var(--navy); }
.req > div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.req > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.req b { display: block; font-family: var(--f-head); color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.req span { font-size: 14px; color: var(--muted); line-height: 1.7; display: block; }
@media (max-width: 819px) { .req { grid-template-columns: 1fr 1fr; } .req > div:nth-child(odd) { padding-left: 0; border-left: 0; } .req > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } }
@media (max-width: 479px) { .req { grid-template-columns: 1fr; } .req > div, .req > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* ---------- 目的別の入口（一覧） ---------- */
.paths { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.paths li { border-bottom: 1px solid var(--line); }
.paths a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 28px; gap: 6px 28px; padding: 22px 4px; text-decoration: none; color: inherit; align-items: baseline; }
.paths a:hover { background: var(--tint-2); }
.paths .who { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.5; }
.paths .get { font-size: 15px; color: var(--ink); line-height: 1.7; }
.paths .get small { display: block; color: var(--muted); font-size: 13px; }
.paths .go { color: var(--link); font-family: var(--f-num); font-size: 20px; text-align: right; }
@media (max-width: 719px) { .paths a { grid-template-columns: 1fr 24px; } .paths .get { grid-column: 1; } .paths .go { grid-row: 1; grid-column: 2; } }

/* 導入ステップ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 16px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy); font: 600 15px/1 var(--f-num); color: var(--navy); background: #fff; position: relative; z-index: 1; margin-bottom: 14px; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; border-top: 2px solid var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--navy); font-family: var(--f-head); font-size: 17px; margin-bottom: 6px; line-height: 1.5; }
.steps span { display: block; font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; gap: 0 16px; padding: 0 0 22px; }
  .steps li::before { grid-row: 1 / 3; margin: 0; }
  .steps li::after { top: 34px; bottom: 0; left: 16px; right: auto; border-top: 0; border-left: 2px solid var(--line-strong); }
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--navy); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--navy); font-size: 17px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 24px/1 var(--f-num); color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; font-size: 15px; }

/* 相談ブロック＋会社 */
.cta-band { background: var(--tint); border-top: 1px solid var(--line); }
.cta-band .h-sec { margin-bottom: 16px; }
.contact-box { background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; padding: clamp(20px, 3vw, 32px); }
.contact-box .tel { font: 600 clamp(26px, 3vw, 32px)/1.2 var(--f-num); color: var(--navy); text-decoration: none; letter-spacing: .02em; }
.company { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; margin: 0; }
.company dt { color: var(--muted); white-space: nowrap; }
.company dd { margin: 0; }

/* ページ見出し（下層） */
.phead { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 clamp(24px, 3vw, 40px); }
.crumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.crumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumb a { color: var(--muted); }
.phead .pname { font: 700 15px/1.4 var(--f-body); color: var(--link); margin: 0 0 14px; letter-spacing: .04em; }
.phead .ptitle { word-break: auto-phrase; font-size: clamp(34px, 5vw, 64px); line-height: 1.25; margin-bottom: 24px; }

/* ページ内目次（下層、PCは左固定） */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
@media (min-width: 1024px) {
  .toc summary { list-style: none; pointer-events: none; font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-bottom: 8px; }
  .toc summary::-webkit-details-marker { display: none; }
}
.toc p { font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: .08em; margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; line-height: 1.5; }
.toc a:hover, .toc a[aria-current="true"] { border-left-color: var(--blue); color: var(--navy); }
.toc .toc-cta { margin-top: 20px; display: grid; gap: 8px; }
.doc-sec { padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.doc-sec:first-child { padding-top: clamp(32px, 4vw, 56px); }
.doc-sec:last-child { border-bottom: 0; }
.doc-sec .h-sec { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 1023px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin-top: 24px; }
  .toc details summary { cursor: pointer; font-weight: 700; color: var(--navy); }
  .toc .toc-cta { display: none; }
}

/* フッター */
.ft { background: var(--tint-2); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ft h2 { font: 700 13px/1.4 var(--f-body); color: var(--muted); letter-spacing: .06em; margin: 0 0 10px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { padding: 4px 0; }
.ft a { color: var(--ink); text-decoration: none; }
.ft a:hover { text-decoration: underline; color: var(--navy); }
.ft .addr { font-size: 13px; color: var(--muted); line-height: 1.8; }
.ft .legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 899px) { .ft-grid { grid-template-columns: 1fr 1fr; } .ft-grid > div:first-child { grid-column: 1 / -1; } }

/* モバイル下部の相談バー */
.mbar { display: none; }
@media (max-width: 719px) {
  .hd-cta .btn { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .mbar .btn { min-height: 46px; font-size: 14px; padding: 0 10px; }
  body { padding-bottom: 72px; }
}

/* 印刷 */
@media print {
  .hd, .proto, .mbar, .toc, .rv, .mnav { display: none !important; }
  .sec { padding-block: 24px; }
  a { color: inherit; }
}

/* 実績の帯（LP掲載の事実） */
.capa { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; align-items: center; margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.capa-n { margin: 0; font: 600 clamp(36px, 4.4vw, 56px)/1 var(--f-num); color: var(--navy); white-space: nowrap; }
.capa-n small { font: 700 15px var(--f-body); margin-left: 6px; }
.capa-h { word-break: auto-phrase; margin: 0 0 6px; font: 700 18px/1.5 var(--f-head); color: var(--navy); }
@media (max-width: 599px) { .capa { grid-template-columns: 1fr; } }
.steps .dur { display: block; font: 600 13px/1.4 var(--f-num); color: var(--link); margin-bottom: 2px; }
.day-axis { height: 136px; }

/* ---------- フォーム部品（試算・相談で共通） ---------- */
.fld { display: grid; gap: 6px; }
.fld > label, .fld > .lbl { font-weight: 700; font-size: 15px; color: var(--navy); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.req-tag, .opt-tag { font: 700 12px/1 var(--f-body); padding: 3px 6px; border-radius: 2px; }
.req-tag { background: var(--navy); color: #fff; }
.opt-tag { border: 1px solid var(--line-strong); color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  font: 400 16px/1.5 var(--f-body); color: var(--ink); background: #fff;
}
input[type="number"] { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
textarea { min-height: 140px; resize: vertical; }
textarea[readonly] { background: var(--tint-2); color: var(--ink); font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(57,127,169,.35); border-color: var(--blue); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--ng); }
.err { color: var(--ng); font-size: 13px; font-weight: 700; margin: 0; }
.unit { display: flex; align-items: center; gap: 8px; }
.unit span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.radios { display: flex; gap: 8px; flex-wrap: wrap; }
.radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: 15px; }
.radios input { width: 18px; height: 18px; accent-color: var(--navy); }
.radios label:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--link); font: 700 14px var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

/* 試算 */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: clamp(32px, 4vw, 56px); align-items: start; }
.sim-step { border-top: 2px solid var(--navy); padding: 24px 0 36px; }
.sim-step > h2 { font-size: 22px; margin-bottom: 6px; display: flex; gap: 12px; align-items: baseline; }
.sim-step > h2 .num { font: 500 13px var(--f-mono); color: var(--blue); }
.sim-step > .hint { margin-bottom: 16px; }
.srow { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; background: var(--tint-2); position: relative; }
.srow .rh { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font: 700 13px var(--f-body); color: var(--muted); margin-bottom: -4px; }
.srow label { font-size: 13px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 4px; }
.srow.sku { grid-template-columns: 1.4fr repeat(4, 1fr); }
.sim-out { position: sticky; top: 88px; }
.sim-out .invoice-hd h2 { font-size: 18px; }
.sim-out .tot { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 22px; border-top: 2px solid var(--navy); }
.sim-out .tot b { font: 600 clamp(30px, 3vw, 40px)/1 var(--f-num); color: var(--navy); }
.sim-out .tot small { font: 500 14px var(--f-body); color: var(--navy); margin-left: 4px; }
.sim-out table td.f { font-size: 12px; }
.warnbox { margin: 0 22px 12px; padding: 8px 12px; border: 1px solid var(--ng); color: var(--ng); border-radius: var(--radius); font-size: 13px; }
@media (max-width: 1023px) { .sim { grid-template-columns: minmax(0, 1fr); } .sim-out { position: static; } }
@media (max-width: 719px) {
  .srow, .srow.sku { grid-template-columns: 1fr 1fr; }
  .srow .wide { grid-column: 1 / -1; }
}
.mbar.sim-bar { grid-template-columns: 1fr 1.3fr; align-items: center; }
.mbar.sim-bar .t { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mbar.sim-bar .t b { display: block; font: 600 20px/1.2 var(--f-num); color: var(--navy); }

/* 相談フォーム */
.cform { display: grid; gap: 22px; max-width: 720px; }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 599px) { .cform .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form-status.info { background: var(--review-bg); border: 1px dashed var(--review); color: #5c3c00; }
/* 試算結果：計算式は金額の下の行へ */
.sim-out tbody tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); }
.sim-out tbody tr > * { border-top: 0; }
.sim-out tbody th { padding-bottom: 2px; white-space: nowrap; }
.sim-out tbody td.r { padding-bottom: 2px; }
.sim-out tbody td.f { grid-column: 1 / 3; grid-row: 2; padding-top: 0; padding-bottom: 12px; font-size: 13px; }
/* 表のモバイル見出しを個別に指定 */
@media (max-width: 719px) { .duty td[data-l]::before { content: attr(data-l); } }
@media print { .btn, .btns { display: none !important; } .cta-band { break-inside: avoid; } }
/* API連携の状況表 */
.ptbl.api th.c, .ptbl.api td.c { text-align: center; }
.ptbl.api td.api-y { color: var(--navy); font-weight: 700; background: var(--tint); }
.ptbl.api td.api-p { color: var(--muted); font-size: 13px; }
.ptbl.api tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }
@media (max-width: 479px) { .ptbl.api th, .ptbl.api td { padding: 10px 4px; font-size: 13px; } .ptbl.api tbody th { white-space: normal; } }
/* RSL比較表 */
.ptbl.cmp th[scope="row"] { font-weight: 700; color: var(--ink); width: 34%; }
.ptbl.cmp td.ml, .ptbl.cmp th.ml { background: var(--tint); color: var(--navy); font-weight: 600; }
.ptbl.cmp tr.sum th, .ptbl.cmp tr.sum td { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
@media (max-width: 479px) { .ptbl.cmp th, .ptbl.cmp td { padding: 10px 6px; font-size: 13px; } .ptbl.cmp th[scope="row"] { width: 36%; } }
.ptbl th .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
/* 在庫が切れた順に移す図 */
.sku-shift { margin: 24px 0; display: grid; gap: 10px; }
.ss-head { display: grid; grid-template-columns: 72px 1fr 1fr 1fr; font-size: 12px; color: var(--muted); }
.ss-head span:nth-child(4) { text-align: right; }
.ss-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 0; }
.ss-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.ss-bar { display: flex; height: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); }
.ss-bar i { font-style: normal; display: flex; align-items: center; padding: 0 10px; font-size: 13px; white-space: nowrap; overflow: hidden; }
.ss-bar .old { background: repeating-linear-gradient(135deg, #f1f4f7 0 6px, #e7ecf1 6px 12px); color: var(--muted); }
.ss-bar .new { background: var(--tint); color: var(--navy); font-weight: 700; border-left: 2px solid var(--blue); }
@media (max-width: 479px) { .ss-row, .ss-head { grid-template-columns: 56px 1fr; } .ss-head span:nth-child(2), .ss-head span:nth-child(3) { display: none; } .ss-bar i { padding: 0 6px; font-size: 12px; } }

/* ===== 目視点検（10/28）による修正 ===== */
/* 1-2: インラインで列数を指定した手順もスマホでは1列 */
@media (max-width: 899px) { .steps[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; } }
/* 3-5: 文章の表（金額列なし）はスマホで「見出し→内容」の縦積み */
@media (max-width: 719px) {
  .ptbl.stack:not(:has(td.r)) tr { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ptbl.stack:not(:has(td.r)) td:first-child { font-weight: 700; color: var(--navy); }
}
/* 6: 計算式はスマホで縦に並べ、演算子を左に置く */
@media (max-width: 479px) {
  .calc { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 8px; }
  .calc > .t:first-child { grid-column: 2; }
  .calc .op { grid-column: 1; text-align: center; }
  .calc .t { grid-column: 2; }
}
/* 7: 試算の2列入力は下端をそろえる */
.sim-step .cform { align-items: end; }
@media (max-width: 599px) { .sim-step .cform { grid-template-columns: minmax(0, 1fr) !important; } }
/* 10-11: 折返しを文節単位に */
.ft a, .slip li .what, .paths .get, .steps span, .duty td, .incl li { word-break: auto-phrase; }
/* 12: ヒーロー右の要約はスマホで見出しを上に */
@media (max-width: 479px) {
  dl.contact-box { grid-template-columns: minmax(0, 1fr) !important; row-gap: 2px !important; }
  dl.contact-box dt:not(:first-child) { margin-top: 12px !important; }
  dl.contact-box dd .note { display: block; }
}
/* 13-14: 3列の比較表はスマホで行ごとのカードに */
@media (max-width: 599px) {
  .ptbl.cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptbl.cmp tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .ptbl.cmp th[scope="row"] { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 6px; font-size: 14px; }
  .ptbl.cmp td { border: 0; padding: 8px 10px; font-size: 14px; }
  .ptbl.cmp td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
  .ptbl.cmp tr.sum th, .ptbl.cmp tr.sum td { border: 0; }
  .ptbl.cmp tr.sum { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy); }
}
/* 15: APIとCSVは「または」 */
.split .or { font-size: 12px; color: var(--muted); text-align: center; line-height: 1; }
/* 16-17: 見出しの釣り合いと本文の孤立文字 */
.h-sec, .ptitle { text-wrap: balance; }
p, li, td, dd { text-wrap: pretty; }
.form-status.error { background: #fbf2f0; border: 1px solid var(--ng); color: var(--ng); }
