/* Cue Path サービスページ共通スタイル（index.html・apply.html） */
:root {
  --accent: #C2410C;        /* 申込ボタン専用の差し色（白文字とのコントラスト比4.5以上） */
  --accent-strong: #9A3412;
  --brand: #1A4BA0;
  --brand-strong: #12307A;
  --brand-soft: #E8EFFA;
  --brand-tint: #F4F7FD;
  --ink: #111827;
  --ink-sub: #3D4754;
  --ink-faint: #5F6B79;
  --line: #E3E8EE;
  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --warn: #B4382F;
  --warn-soft: #FDF0EE;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --radius: 16px;
}
/* 端末のダークモード設定にかかわらず白系の配色で表示する */
:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
/* 最終行が1〜2文字だけになる折り返しをブラウザ側でも避ける */
p, li, figcaption, b, h2, h3, h4, td, summary { text-wrap: pretty; }

/* ===== 上部バー ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; display: block; }
.part-tabs { display: flex; gap: 4px; margin-left: auto; }
.part-tabs a {
  font-size: 14.5px; text-decoration: none; color: var(--ink-sub);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.part-tabs a:hover { background: var(--brand-soft); color: var(--brand); }
.part-tabs a.active { background: var(--brand); color: #fff; }

/* ===== ヒーロー ===== */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(56,189,248,.35), transparent 60%),
    linear-gradient(135deg, #1A4BA0 0%, #12307A 70%, #0B1D4D 100%);
  color: #fff;
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .12em; opacity: .88; margin-bottom: 8px; }
.hero h1 { font-size: 40px; line-height: 1.35; margin: 0 0 12px; font-weight: 700; letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: #7DD3FC; }
.hero-lead { font-size: 16px; opacity: .94; margin: 0; max-width: 560px; }
.hero-points { display: grid; gap: 10px; }
.hero-point {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 12px 16px;
}
.hero-point .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(125,211,252,.18); display: grid; place-items: center; }
.hero-point b { display: block; font-size: 16px; }
.hero-point span { font-size: 14px; opacity: .9; line-height: 1.6; display: block; }

/* ===== レイアウト（サイド目次＋本文） ===== */
.layout { max-width: 1200px; margin: 0 auto; padding: 48px 24px 96px; display: grid; grid-template-columns: 168px 1fr; gap: 32px; }
.side-toc { position: sticky; top: 88px; align-self: start; font-size: 13px; line-height: 1.6; }
.side-toc .grp { font-size: 12px; letter-spacing: .06em; color: var(--ink-faint); margin: 16px 0 6px; }
.side-toc .grp:first-child { margin-top: 0; }
.side-toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-sub); text-decoration: none; }
.side-toc a:hover { color: var(--brand); }
.side-toc a.active { border-left-color: var(--brand); color: var(--brand); font-weight: 500; background: var(--brand-tint); }

.part-label { display: flex; align-items: center; gap: 12px; margin: 56px 0 20px; font-size: 14px; letter-spacing: .12em; color: var(--brand); font-weight: 700; }
.part-label:first-child { margin-top: 0; }
.part-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; margin-bottom: 24px; }
/* 見出し：番号は塗りのバッジ、下線は全幅の細線＋左端だけブランド色の太線 */
.sec-head { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 3px; border-radius: 2px; background: var(--brand); }
.sec-no { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); border-radius: 12px; font-variant-numeric: tabular-nums; letter-spacing: .02em; box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 28%, transparent); }
.card h2 { font-size: 27px; font-weight: 800; margin: 0; line-height: 1.35; letter-spacing: .02em; color: var(--brand-strong); }
.sec-head + .sec-lead { margin-top: 0; }
.sec-lead { color: var(--ink-sub); margin: 6px 0 24px; }
.card h3 { font-size: 16px; margin: 28px 0 10px; }
.note { font-size: 13.5px; color: var(--ink-faint); margin: 10px 0 0; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr auto 1.14fr; gap: 12px; align-items: stretch; }
.ba-col { border-radius: 14px; padding: 20px 18px; }
.ba-col h4 { margin: 0 0 10px; font-size: 15px; }
.ba-col ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.ba-col li { padding: 6px 0 6px 24px; position: relative; }
.ba-before { background: var(--bg); border: 1px solid var(--line); color: var(--ink-sub); }
.ba-before li::before { content: "×"; position: absolute; left: 4px; color: var(--ink-faint); font-weight: 700; }
.ba-after { background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.ba-after h4 { color: var(--brand); }
.ba-after li::before { content: "✓"; position: absolute; left: 3px; color: var(--brand); font-weight: 700; }
.ba-arrow { display: grid; place-items: center; color: var(--brand); }

/* 機能 */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 14.5px; padding: 7px 16px; white-space: nowrap; border-radius: 999px; cursor: pointer; color: var(--ink-sub); }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); font-weight: 500; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.feat { display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; transition: border-color .15s, transform .15s; background: var(--surface); }
.feat:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-2px); }
.feat .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.feat b { display: block; font-size: 15px; line-height: 1.4; }
.feat p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--ink-sub); line-height: 1.6; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.shot img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top; cursor: zoom-in; }
.shot figcaption { font-size: 13.5px; color: var(--ink-sub); padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }

/* 料金 */
#pricing .sec-lead { margin-bottom: 16px; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.price { border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; position: relative; }
.price.main { border: 2px solid var(--brand); background: var(--brand-tint); }
.price .tag { position: absolute; top: -11px; left: 20px; background: var(--brand); color: #fff; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }
.price .lbl { font-size: 14px; color: var(--ink-sub); }
.price .amt { font-size: 28px; white-space: nowrap; font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.5; font-variant-numeric: tabular-nums; }
.price .amt small { font-size: 13px; font-weight: 400; color: var(--ink-sub); margin-left: 2px; }
.price ul { list-style: none; padding: 0; margin: 6px 0 0; line-height: 1.6; font-size: 14px; color: var(--ink-sub); }
.price li { padding: 2px 0 2px 20px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.calc { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.calc-in { padding: 18px 20px; }
.calc-in h4, .calc-out h4 { margin: 0 0 10px; font-size: 15.5px; }
.field { margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-sub); margin-bottom: 6px; }
.field output { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.field-row { display: flex; align-items: center; gap: 14px; }
.field-row input[type=range] { flex: 1; min-width: 0; }
.num-box { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 4px 4px; background: var(--surface); font-size: 14px; color: var(--ink-sub); }
.num-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.num-box input { width: 64px; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); text-align: right; padding: 4px; outline: none; font-variant-numeric: tabular-nums; }
.calc-out { background: var(--brand-tint); padding: 18px 20px; border-left: 1px solid var(--line); }
.calc-row { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.calc-total b { font-size: 30px; color: var(--brand); font-variant-numeric: tabular-nums; }
.calc-sub { font-size: 13.5px; color: var(--ink-faint); text-align: right; }

.other { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.other div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.other b { display: block; font-size: 15px; }
.other span { color: var(--ink-sub); }

/* 保守範囲 */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scope > div { border-radius: 14px; padding: 20px 22px; }
.scope h4 { margin: 0 0 10px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.scope ul { margin: 0; padding-left: 20px; font-size: 15px; }
.scope li { margin: 4px 0; }
.in { background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.in h4 { color: var(--brand); }
.out { background: var(--bg); border: 1px solid var(--line); }
.out h4 { color: var(--ink-sub); }
.pill { font-size: 12.5px; font-weight: 500; padding: 1px 9px; border-radius: 999px; }
.in .pill { background: var(--brand); color: #fff; }
.out .pill { background: var(--line); color: var(--ink-sub); }

/* 契約台数の説明（3点） */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fact .k { font-size: 13px; color: var(--brand); font-weight: 700; letter-spacing: .06em; }
.fact b { display: block; font-size: 16px; margin: 4px 0 6px; }
.fact p { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 1.7; }
.mini-list { margin: 18px 0 0; padding-left: 20px; font-size: 15px; color: var(--ink-sub); }

/* 導入の流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px 16px; counter-increment: s; }
.step::before { content: "STEP " counter(s); font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: .08em; }
.step b { display: block; font-size: 16px; margin: 4px 0 6px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 1.7; }
.who { display: inline-block; margin-top: 10px; font-size: 12.5px; padding: 1px 9px; border-radius: 999px; }
.who.p { background: var(--brand); color: #fff; }
.who.c { background: var(--bg); border: 1px solid var(--line); color: var(--ink-sub); }

/* セキュリティ要点 */
.sec-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 18px 21px; }
.tile .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.tile b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.tile p { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 1.7; }

/* アコーディオン */
details.acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--surface); }
details.acc[open] { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
details.acc summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 16px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .no { font-size: 13px; color: var(--brand); font-weight: 700; min-width: 24px; font-variant-numeric: tabular-nums; }
details.acc summary .chev { margin-left: auto; transition: transform .2s; color: var(--ink-faint); }
details.acc[open] summary .chev { transform: rotate(180deg); }
details.acc .body { padding: 0 20px 18px 48px; font-size: 15px; }
details.acc .body ul { margin: 0; padding-left: 18px; }
details.acc .body li { margin: 4px 0; }

table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 8px 0; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--brand-tint); color: var(--brand); font-weight: 500; font-size: 14px; }

.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline li { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.timeline li:last-child { border-bottom: 0; }
.timeline b { font-weight: 500; }
.timeline span { color: var(--ink-sub); }

footer { border-top: 1px solid var(--line); background: var(--surface); }
.foot { max-width: 1200px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-faint); }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ===== パスワードゲート ===== */

/* ===== 画像ギャラリー・ライトボックス ===== */
.shots.four { grid-template-columns: repeat(2, 1fr); }
.op-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.op-step { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--brand-tint); }
.op-step-no { display: inline-block; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--brand); padding: 1px 10px; border-radius: 999px; letter-spacing: .06em; }
.op-step b { display: block; font-size: 16px; margin: 6px 0 2px; }
.op-step p { margin: 0; font-size: 14px; color: var(--ink-sub); line-height: 1.65; }
.op-step .shot { margin-top: auto; }
.op-step .shot img { aspect-ratio: 4/3; }
.shot.single { max-width: 560px; margin: 16px auto 4px; }
.shot.single img { aspect-ratio: auto; }
#lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(8,16,40,.88); align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
#lightbox.active { display: flex; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
#lightbox .close { position: fixed; top: 16px; right: 24px; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; opacity: .8; }

/* ===== 利用規約 ===== */
.terms-intro { font-size: 15px; }
.terms-meta { font-size: 13.5px; color: var(--ink-faint); margin: 0 0 8px; }
#terms details.acc .body ol, #terms details.acc .body ul { padding-left: 20px; }
.acc-tools { display: flex; gap: 14px; font-size: 14px; margin: -8px 0 16px; }
.acc-tools a { cursor: pointer; }

/* ===== アコーディオン内の旧本文 ===== */
details.acc .body h3 { font-size: 15px; margin: 14px 0 4px; }
details.acc .body h3:first-child { margin-top: 0; }
details.acc .body p { margin: 0 0 6px; }
details.acc .body > ul, details.acc .body > ol { margin: 4px 0 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.badge { background: var(--brand-soft); color: var(--brand); font-size: 13px; padding: 2px 10px; border-radius: 999px; }

/* ===== お見積り・お申し込み ===== */
.wiz-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: none; }
.wiz-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-faint); padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.wiz-steps li > span:first-child { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--line); color: var(--ink-sub); }
.wiz-steps li.on { color: var(--brand); border-color: var(--brand); background: var(--brand-tint); font-weight: 500; }
.wiz-steps li.on > span:first-child, .wiz-steps li.done > span:first-child { background: var(--brand); color: #fff; }
.wiz-steps li.done { color: var(--ink-sub); }
.wiz-title { font-size: 16px; margin: 0 0 12px; }
.wiz-panel .wiz-title:not(:first-child) { margin-top: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-card { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.type-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-card b { font-size: 16px; }
.type-card span { font-size: 14px; color: var(--ink-sub); line-height: 1.6; }
.type-card small { font-size: 12.5px; color: var(--brand); margin-top: 4px; }
.type-card:has(input:checked) { border: 2px solid var(--brand); padding: 15px 17px; background: var(--brand-tint); }
.type-card:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-soft); }

.f { margin-bottom: 14px; }
.f label, .f-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.f label em, .f-label em { font-style: normal; font-size: 11.5px; font-weight: 500; color: #fff; background: var(--warn); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.f label .opt, .f-label .opt { font-size: 11.5px; font-weight: 400; color: var(--ink-faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
#apply input[type=text], #apply input[type=email], #apply input[type=tel], #apply input[type=number], #apply input[type=date], #apply select, #apply textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; line-height: 1.5;
}
#apply input:focus, #apply select:focus, #apply textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
#apply .invalid { border-color: var(--warn) !important; background: var(--warn-soft) !important; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--ink-faint); margin: 4px 0 0; line-height: 1.6; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 400 !important; margin: 6px 0 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.link-btn { border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--brand); cursor: pointer; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }

.quote-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.loc-rows { display: grid; gap: 8px; }
.loc-row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; align-items: center; }
.loc-row .del { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-faint); cursor: pointer; font-size: 18px; line-height: 1; }
.loc-row .del:hover { color: var(--warn); border-color: var(--warn); }
.loc-row .del:disabled { visibility: hidden; }
.loc-rows ~ .hint { margin-bottom: 14px; }
.loc-head { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; font-size: 12.5px; color: var(--ink-faint); }
.quote-out { background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: 14px; padding: 18px 20px; position: sticky; top: 88px; }
.quote-out.compact { position: static; margin: 16px 0; }
.quote-out h4 { margin: 0 0 10px; font-size: 15.5px; }
.q-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.q-line span:first-child { color: var(--ink-sub); }
.q-line span:last-child { white-space: nowrap; }
.q-sum { margin: 12px 0; }
.q-sum div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 12px; font-size: 14px; }
.q-sum span, .q-sum b { white-space: nowrap; }
.q-sum b { margin-left: auto; font-size: 22px; color: var(--brand); font-variant-numeric: tabular-nums; }
.q-sum .main b { font-size: 26px; }
.q-empty { font-size: 14px; color: var(--ink-faint); }

.confirm { display: grid; grid-template-columns: 200px 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14.5px; }
.confirm dt, .confirm dd { margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.confirm dt { background: var(--bg); color: var(--ink-sub); }
.confirm dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm dt:last-of-type, .confirm dd:last-of-type { border-bottom: 0; }
.terms-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 14.5px; }
.terms-box ul { margin: 6px 0 10px; padding-left: 20px; color: var(--ink-sub); }

.wiz-error { color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; margin: 16px 0 0; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz-nav #ap-next { margin-left: auto; }
.btn-main, .btn-sub { font: inherit; font-size: 15.5px; font-weight: 500; border-radius: 999px; padding: 10px 26px; cursor: pointer; transition: background .15s, opacity .15s; }
.btn-main { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.btn-main:hover:not(:disabled) { background: var(--brand-strong); }
.btn-main:disabled { opacity: .45; cursor: not-allowed; }
.btn-sub { background: var(--surface); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-sub:hover { background: var(--brand-tint); }
.quote-out .btn-sub { width: 100%; font-size: 14.5px; padding: 8px 16px; }
.to-apply { margin-top: 12px; text-align: right; }
.to-apply a { font-size: 14.5px; font-weight: 500; }

.wiz-done { text-align: center; padding: 12px 0 4px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 28px; display: grid; place-items: center; margin: 0 auto 12px; }
.wiz-done h3 { font-size: 20px; margin: 0 0 8px; }
.wiz-done p { margin: 4px 0; }
.wiz-done #ap-receipt { font-size: 18px; color: var(--brand); font-variant-numeric: tabular-nums; }
.done-next { text-align: left; max-width: 560px; margin: 20px auto; padding: 16px 20px 16px 40px; background: var(--brand-tint); border-radius: 12px; font-size: 14.5px; }

/* 見積書（印刷・PDF保存用） */
#quote-print { display: none; }
@media print {
  body.print-quote > *:not(#quote-print) { display: none !important; }
  body.print-quote { background: #fff; }
  body.print-quote #quote-print { display: block; }
  @page { size: A4; margin: 16mm; }
}
.qp { color: #111; font-size: 12.5px; line-height: 1.7; }
.qp h1 { text-align: center; font-size: 24px; letter-spacing: .5em; margin: 0 0 18px; }
.qp-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.qp-to { font-size: 16px; border-bottom: 1px solid #111; padding-bottom: 2px; min-width: 260px; }
.qp-meta { text-align: right; }
.qp-issuer { margin-top: 10px; text-align: right; }
.qp-total { border: 2px solid #111; padding: 8px 14px; display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 16px; font-size: 14px; }
.qp-total b { font-size: 20px; }
.qp table { border: 1px solid #999; border-radius: 0; font-size: 12px; margin: 0 0 12px; }
.qp th, .qp td { border-bottom: 1px solid #ccc; padding: 6px 8px; }
.qp th { background: #eef1f6; color: #111; }
.qp td.n, .qp th.n { text-align: right; white-space: nowrap; }
.qp-sec { font-weight: 700; margin: 14px 0 4px; }
.qp ul { margin: 0; padding-left: 18px; }

/* ===== 操作画面の動画 ===== */
.demo { margin: 0 0 24px; }
.demo .seg { margin-bottom: 12px; }
.demo-video { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #17181c; }
.demo-video video { display: block; width: 100%; aspect-ratio: 1040 / 880; max-height: 72vh; object-fit: contain; background: #17181c; cursor: zoom-in; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-top: 8px; }
.demo-badge { font-size: 12.5px; color: var(--ink-faint); }
.demo-ctrl { display: flex; gap: 8px; }
.demo-ctrl button { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-sub); font: inherit; font-size: 13px; padding: 4px 14px; cursor: pointer; }
.demo-ctrl button:hover { border-color: var(--brand); color: var(--brand); }
.demo-cap { font-size: 14.5px; color: var(--ink-sub); margin: 6px 2px 0; }
.demo-video:fullscreen { display: grid; place-items: center; border-radius: 0; border: 0; }
.demo-video:fullscreen video { width: auto; max-width: 100%; max-height: 100vh; cursor: default; }

/* ===== 申込への導線（2026-10-13） ===== */
/* 上部メニューの申込ボタン：タブ（ピル型・青）と区別するため、差し色・角丸の四角・区切り線付きでタブの外に置く */
.header-cta { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-left: 2px; padding: 9px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 10px rgba(194,65,12,.28); transition: background .15s, transform .15s; }
.header-cta:hover { background: var(--accent-strong); transform: translateY(-1px); }
.header-cta::before { content: ""; position: absolute; left: -13px; top: 50%; width: 1px; height: 26px; background: var(--line); transform: translateY(-50%); }
.header-cta .short { display: none; }
.hero-cta { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 22px; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; padding: 13px 26px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.hero-btn:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.24); }
.hero-cta-note { font-size: 13.5px; opacity: .85; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; padding: 12px 24px; border-radius: 999px; white-space: nowrap; transition: background .15s, transform .15s; }
.cta-btn:hover { background: var(--accent-strong); transform: translateY(-1px); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 16px; padding: 18px 22px; border-radius: 14px; background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.cta-band > div > b { display: block; font-size: 16px; color: var(--brand-strong); }
.cta-band > div > span { display: block; font-size: 14px; color: var(--ink-sub); }
.step-cta { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.step-cta:hover { text-decoration: underline; }
.card.apply-cta { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 70%, #0B1D4D 100%); color: #fff; border: 0; }
.apply-cta .sec-no { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.apply-cta .sec-head { border-bottom-color: rgba(255,255,255,.22); }
.apply-cta .sec-head::after { background: var(--accent); }
.apply-cta h2 { color: #fff; }
.apply-cta .sec-lead { color: rgba(255,255,255,.88); }
.apply-cta ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.apply-cta li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; }
.apply-cta li b { display: block; font-size: 15px; }
.apply-cta .hero-btn { font-size: 17px; }
.float-cta { position: fixed; right: 76px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 8px 24px rgba(194,65,12,.35); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s, background .15s; }
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.float-cta:hover { background: var(--accent-strong); }
/* お見積り・お申し込みページ（apply.html） */
.single { max-width: 980px; margin: 0 auto; padding: 32px 24px 96px; }
.back-link { display: inline-block; font-size: 14px; color: var(--ink-sub); text-decoration: none; margin-bottom: 14px; }
.back-link:hover { color: var(--brand); }

/* ===== レスポンシブ ===== */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .side-toc { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .part-tabs { display: none; }
  .header-cta { margin-left: auto; padding: 7px 14px; font-size: 14px; }
  .header-cta::before { display: none; }
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  .apply-cta ul { grid-template-columns: 1fr; }
  .float-cta { right: 72px; padding: 0 18px; }
  .single { padding: 24px 16px 72px; }
  .hero-inner { padding: 28px 16px 32px; }
  .hero h1 { font-size: 28px; }
  .layout { padding: 32px 16px 72px; }
  .card { padding: 24px 20px; }
  .card h2 { font-size: 21px; }
  .sec-head { gap: 10px; padding-bottom: 12px; margin-bottom: 14px; }
  .sec-no { min-width: 36px; height: 36px; font-size: 14.5px; border-radius: 10px; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); }
  .price-grid, .calc, .scope, .facts, .flow, .sec-tiles, .shots, .other, .op-steps { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  details.acc .body { padding-left: 20px; }
  .seg button { padding: 7px 12px; }
  .wiz-steps { gap: 4px; }
  .wiz-steps li { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 11.5px; text-align: center; }
  .type-cards, .quote-grid, .f-row { grid-template-columns: 1fr; }
  .quote-out { position: static; }
  .loc-row, .loc-head { grid-template-columns: 1fr 84px 36px; }
  .confirm { grid-template-columns: 1fr; }
  .confirm dt { border-bottom: 0; padding-bottom: 2px; }
  .confirm dd { padding-top: 2px; }
  .wiz-nav .btn-main { flex: 1; }
  /* 表は列が細くなりすぎるため、1行を1ブロックとして縦に並べる */
  #content table, #content tbody, #content tr, #content td { display: block; width: 100%; }
  #content table tr:first-child { display: none; }
  #content table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  #content table tr:last-child { border-bottom: 0; }
  #content table td { padding: 0; border: 0; }
  #content table td:first-child { font-weight: 500; margin-bottom: 2px; }
  #content table td + td { color: var(--ink-sub); font-size: 14px; }
  #content table td[data-label]::before { content: attr(data-label) "："; color: var(--ink-faint); }
}
/* 段落末尾の数文字を改行させない（末尾のscriptで付与。親の書式をそのまま引き継ぐ。.hero-point span等のspan指定より優先させるため末尾に置く） */
#content span.nobr { all: unset; white-space: nowrap; }
