/* =============================================================
   PHP対策ソリューション LP（JIZO）
   analytics.co.jp と同じ白・黒・グレー、丸いボタン、影なし
   文字色と背景色のコントラスト比は、すべて4.5:1以上（WCAG AA）で設計
   ============================================================= */

:root {
  --ink-black: #1e3a5f;  /* ネイビー 白地で11.7:1 */
  --ink-near: #243447;   /* 本文 白地で12.4:1 */
  --ink-mid: #4a5a6e;    /* 補足 白地で6.9:1 */
  --ink-on-dark: #c8d6e8;/* ネイビー地の補足 #1e3a5f地で8.0:1 */
  --surface: #ffffff;
  --surface-snow: #f4f7fb;
  --surface-dark: #1e3a5f;
  --border-light: #c9d3df;
  --border-soft: #e2e8f0;
  --border-ui: #8592a3;   /* ボタンの枠 白地で3.2:1 */
  --risk: #b91c1c;       /* 白文字で6.5:1／白地の文字で6.5:1 */
  --focus-ring: #2563eb;

  --ff-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --r-pill: 9999px;
  --r-card: 12px;
  --gutter: clamp(20px, 4vw, 48px);
  --container-w: min(1200px, 100% - var(--gutter) * 2);
  --section-y: clamp(64px, 9vw, 120px);
  --grid-gap: clamp(16px, 2vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-near);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  word-break: auto-phrase; /* 日本語を文節で折り返す（対応ブラウザのみ） */
  padding-bottom: 76px; /* スマホの固定ボタンぶん */
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.sp { display: none; }
.container { width: var(--container-w); margin-inline: auto; }
.narrow { max-width: 880px; }

/* ---------- ボタン ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  padding: 14px 28px; font-size: 16px; cursor: pointer;
  transition: opacity .15s;
}
.pill:hover { opacity: .85; }
.pill-dark { background: var(--ink-black); color: #fff; }               /* 12.6:1 */
.pill-light { background: #fff; color: var(--ink-black); }              /* 12.6:1 */
.pill-sm { padding: 8px 18px; font-size: 14px; }
.pill-lg { padding: 18px 40px; font-size: 18px; }
.pill[disabled] { opacity: .6; cursor: wait; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { font-weight: 800; font-size: 20px; letter-spacing: .08em; color: var(--ink-black); }
.brand-name { font-size: 13px; color: var(--ink-mid); }

/* ---------- ファーストビュー ---------- */
.hero { padding: clamp(80px, 10vw, 136px) 0 clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--border-soft); }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--ink-mid); letter-spacing: .04em; }
.hero-title {
  margin-top: 12px; font-size: clamp(36px, 7vw, 64px); line-height: 1.25;
  font-weight: 800; color: var(--ink-black); letter-spacing: .02em;
}
.hero-lead { margin-top: 24px; font-size: 18px; max-width: 40em; }
.hero-lead strong { color: var(--ink-black); background: linear-gradient(transparent 62%, #fde68a 62%); }
.hero-cta { margin-top: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-outline { background: #fff; color: var(--ink-black); border-color: var(--ink-black); }
.cta-inline { margin-top: 24px; }
.section-dark .cta-inline { margin: 0 0 24px; }
.hero-note { margin-top: 10px; font-size: 14px; color: var(--ink-mid); }
.hero-badges { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li {
  border: 1px solid var(--border-light); border-radius: var(--r-pill);
  padding: 6px 16px; font-size: 14px; font-weight: 700; color: var(--ink-near);
}

/* ---------- セクション共通 ---------- */
.section { padding: var(--section-y) 0; }
.section-snow { background: var(--surface-snow); }
.section-dark { background: var(--surface-dark); color: #fff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: var(--ink-on-dark); }
.section-title {
  font-size: clamp(26px, 4.4vw, 36px); line-height: 1.4; font-weight: 800;
  color: var(--ink-black); margin-bottom: 24px;
}
.section-lead { font-size: 17px; max-width: 44em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-small { padding: 64px 0; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--ink-mid); }
.small-title { font-size: 16px; font-weight: 700; color: var(--ink-near); margin-bottom: 8px; }

/* ② 不安 */
.worry-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.worry-list li {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-card);
  overflow: hidden; font-weight: 700; color: var(--ink-black); display: flex; flex-direction: column;
}
.worry-list img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--border-soft); }
.worry-list span { display: block; padding: 16px 20px 18px 52px; position: relative; line-height: 1.6; }
.worry-list span::before {
  content: "?"; position: absolute; left: 18px; top: 17px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink-black); color: #fff;
  font-size: 14px; line-height: 24px; text-align: center;
}
@media (max-width: 600px) { .worry-list { grid-template-columns: 1fr; } }

/* ③ 数字 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); margin-bottom: 48px; }
.stat { border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 36px 32px; }
.stat-num { font-size: 48px; font-weight: 800; line-height: 1.1; color: var(--ink-black); }
.stat-num span { font-size: 22px; margin-left: 2px; }
.stat-text { margin-top: 12px; font-size: 15px; }
.stat sup { font-size: 11px; }
.source-list { font-size: 12px; color: var(--ink-mid); display: grid; gap: 4px; }

/* ④ 比較図 */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: start; }
.compare-arrow { align-self: center; }
.compare-label { font-weight: 700; margin-bottom: 12px; color: #fff; }
.layer-list { display: grid; gap: 8px; }
.layer {
  border-radius: 10px; padding: 14px 18px; font-weight: 700;
  background: #262626; color: #fff; border: 1px solid #404040;          /* 15.1:1 */
}
.layer-risk { background: var(--risk); border-color: var(--risk); color: #fff; }   /* 6.5:1 */
.layer-safe { background: #fff; color: var(--ink-black); border-color: #fff; }      /* 21:1 */
.compare-arrow { font-size: 40px; color: #fff; }
.compare-note { margin-top: 12px; font-size: 14px; color: var(--ink-on-dark); }

/* カード */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 36px 32px; }
.card-num { font-size: 14px; font-weight: 800; color: var(--ink-mid); }
.card-title { font-size: 19px; font-weight: 800; color: var(--ink-black); line-height: 1.5; margin: 6px 0 10px; }
.check-list { margin-top: 24px; display: grid; gap: 6px; }
.check-list li { padding-left: 28px; position: relative; font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--ink-black); }

/* ⑦ 料金 */
.price-box { border: 2px solid var(--ink-black); border-radius: var(--r-card); padding: 28px; }
.price-caption { font-weight: 700; margin-bottom: 12px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 0; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.price-table th { text-align: left; font-weight: 700; color: var(--ink-black); }
.price-table th span { display: block; font-weight: 400; font-size: 13px; color: var(--ink-mid); }
.price-table td { text-align: right; font-weight: 800; font-size: 20px; white-space: nowrap; padding-left: 16px; color: var(--ink-black); }
.price-table tfoot th, .price-table tfoot td { border-bottom: 0; padding-top: 20px; }
.price-table tfoot td { font-size: 30px; }
.price-sub { margin-top: 8px; font-size: 15px; font-weight: 700; text-align: right; }
.option-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.option { border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 18px 20px; }
.option-name { font-size: 14px; color: var(--ink-mid); font-weight: 700; }
.option-price { font-size: 20px; font-weight: 800; color: var(--ink-black); }
.option-price span { font-size: 13px; font-weight: 400; color: var(--ink-mid); }
.option-desc { margin-top: 4px; font-size: 15px; color: var(--ink-near); }
.price-table.price-table--plan td { font-size: 15px; font-weight: 700; color: var(--ink-mid); }
.price-table.price-table--plan tfoot td { font-size: 15px; }
.note-list { margin-top: 20px; font-size: 14px; color: var(--ink-mid); display: grid; gap: 4px; }
.note-list li { padding-left: 1em; text-indent: -1em; }
.note-list li::before { content: "・"; }

/* ⑧ 流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.flow li { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-card); padding: 32px 28px; }
.flow-step {
  display: inline-block; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-black); color: #fff; text-align: center; line-height: 32px; font-weight: 800;
}
.flow-title { margin: 10px 0 6px; font-weight: 800; font-size: 17px; color: var(--ink-black); }
.flow li p:last-child { font-size: 14px; }

/* ⑨ FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border-light); border-radius: var(--r-card); padding: 0 28px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 22px 28px 22px 0; position: relative; list-style: none; color: var(--ink-black); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: 22px; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding-bottom: 22px; }

/* ⑩ フォーム */
.conditions { border: 1px solid var(--ink-on-dark); border-radius: var(--r-card); padding: 28px 32px; margin-bottom: 40px; }
.conditions-title { font-weight: 700; margin-bottom: 6px; }
.conditions li { padding-left: 1.2em; position: relative; color: var(--ink-on-dark); }
.conditions li::before { content: "・"; position: absolute; left: 0; }
.apply-form { display: grid; gap: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req, .opt { display: inline-block; margin-left: 8px; font-size: 12px; padding: 1px 8px; border-radius: 4px; vertical-align: 2px; }
.req { background: #fff; color: var(--ink-black); }                    /* 黒地に白 */
.opt { border: 1px solid #a3a3a3; color: var(--ink-on-dark); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink-black);
  background: #fff; border: 2px solid #fff; border-radius: 10px; padding: 12px 14px;
}
.field input::placeholder { color: #737373; }                            /* 白地で4.7:1 */
.field input:focus, .field textarea:focus { outline: 3px solid #60a5fa; outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #f87171; }
.field-hint { margin-top: 4px; font-size: 13px; color: var(--ink-on-dark); }
.field-error { margin-top: 4px; font-size: 14px; font-weight: 700; color: #fca5a5; }  /* 黒地で10.6:1 */
.field-error:empty { display: none; }
.field-check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin-top: 5px; flex-shrink: 0; }
.field-check a { color: #fff; }
.form-error { background: #fff; color: var(--risk); font-weight: 700; padding: 12px 16px; border-radius: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit { width: 100%; margin-top: 8px; }

/* 送信完了 */
.thanks { padding: 120px 0; }
.thanks p { margin-bottom: 12px; }
.thanks-id strong { font-size: 18px; color: var(--ink-black); }
.thanks-note { font-size: 14px; color: var(--ink-mid); margin-bottom: 32px !important; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0; font-size: 14px; color: var(--ink-mid); }
.footer-links { display: flex; gap: 20px; margin: 8px 0; }
.footer-copy { font-size: 12px; }

/* ---------- スマホの固定ボタン ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--border-soft);
  display: none;
}
.sticky-cta .pill { width: 100%; }

@media (max-width: 820px) {
  .stat-grid, .card-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
}
@media (max-width: 600px) {
  .sp { display: inline; }
  .hero { padding: 56px 0 48px; }
  .hero-lead { font-size: 16px; }
  .pill-lg { width: 100%; padding: 18px 20px; }
  .section { padding: 56px 0; }
  .flow, .option-grid { grid-template-columns: 1fr; }
  .card, .stat { padding: 28px 24px; }
  .flow li { padding: 24px 20px; }
  .faq details { padding: 0 20px; }
  .conditions { padding: 20px 24px; }
  .price-box { padding: 20px 16px; }
  .price-table td { font-size: 17px; }
  .price-table tfoot td { font-size: 24px; }
  .brand-name { display: none; }
  .sticky-cta { display: block; }
}
@media (min-width: 601px) { body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sticky-cta[hidden] { display: none !important; }


/* カード内の箇条書き */
.card-points { list-style: none; display: grid; gap: 6px; }
.card-points li { position: relative; padding-left: 1.2em; }
.card-points li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-black); }

/* 選べる内容と簡易見積り */
.estimate-tip { margin: -8px 0 20px; padding: 12px 16px; border-radius: 10px; background: var(--surface-snow); border: 1px solid var(--border-soft); font-size: 15px; color: var(--ink-near); }
.estimate-progress { margin-bottom: 20px; }
.estimate-progress__text { font-size: 15px; font-weight: 700; color: var(--ink-black); margin-bottom: 6px; }
.estimate-progress__bar { height: 8px; border-radius: 9999px; background: var(--border-soft); overflow: hidden; }
.estimate-progress__bar span { display: block; height: 100%; width: 0; background: var(--ink-black); border-radius: 9999px; transition: width .3s ease; }
.choice-list li[hidden] { display: none; }
.choice.is-new { animation: choice-in .35s ease-out; }
@keyframes choice-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .choice.is-new { animation: none; } .estimate-progress__bar span { transition: none; } }
.choice-option.is-disabled { opacity: .5; cursor: not-allowed; }
.choice-auto { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface-snow); border: 1px solid var(--border-soft); font-size: 14px; font-weight: 700; color: var(--ink-black); }
.estimate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.choice-list { list-style: none; display: grid; gap: 16px; }
.choice-set { border: 0; min-width: 0; }
.choice-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 0; }
.choice-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink-black); color: #fff; font-weight: 800; flex-shrink: 0; }
.choice-title { font-size: 19px; font-weight: 800; color: var(--ink-black); line-height: 1.4; }
.choice-q { display: block; font-size: 15px; font-weight: 700; color: var(--ink-mid); margin-top: 2px; }
.choice-title { display: block; }
.choice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.choice-visual { border-radius: var(--r-card); background: #fff; border: 1px solid var(--border-soft); overflow: hidden; }
.choice-visual img { width: 100%; height: auto; display: block; }
.choice-options { display: grid; gap: 10px; }
.choice-note { font-size: 13px; color: var(--ink-mid); }
.choice-warn { font-size: 13px; color: var(--risk); }   /* #b91c1c 白地で6.5:1 */
.chip-options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-option { position: relative; cursor: pointer; }
.chip-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-body { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 132px; padding: 10px 18px; border: 1px solid var(--border-light); border-radius: var(--r-card); background: #fff; font-weight: 800; color: var(--ink-black); line-height: 1.4; transition: border-color .15s, box-shadow .15s; }
.chip-sub { font-size: 13px; font-weight: 400; color: var(--ink-mid); }
.chip-option:hover .chip-body { border-color: var(--ink-mid); }
.chip-option input:checked + .chip-body { border-color: var(--ink-black); box-shadow: inset 0 0 0 1px var(--ink-black); }
.chip-option input:focus-visible + .chip-body { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.choice--chips .choice-note { margin-top: 10px; }
.pages-control { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pages-step { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border-light); border-radius: 50%; background: #fff; color: var(--ink-black); font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.pages-step:hover { border-color: var(--ink-black); }
.pages-step:focus-visible, .pages-input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pages-range { flex: 1 1 220px; min-width: 160px; accent-color: var(--ink-black); height: 28px; cursor: pointer; }
.pages-input-wrap { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-black); }
.pages-input { width: 84px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 10px; font: inherit; font-size: 18px; font-weight: 800; text-align: right; color: var(--ink-black); }
.pages-readout { margin-top: 10px; font-size: 16px; font-weight: 800; color: var(--ink-black); }
.pages-hint { margin-top: 2px; font-size: 13px; color: var(--ink-mid); }
.choice--pages .choice-note { margin-top: 8px; }
.pages-unknown { display: inline-flex; margin-top: 12px; cursor: pointer; position: relative; }
.pages-unknown input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pages-unknown__box { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--border-light); border-radius: 9999px; background: #fff; font-weight: 700; color: var(--ink-black); }
.pages-unknown__box::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--ink-mid); border-radius: 4px; background: #fff; box-sizing: border-box; }
.pages-unknown input:checked + .pages-unknown__box { background: var(--ink-black); border-color: var(--ink-black); color: #fff; }
.pages-unknown input:checked + .pages-unknown__box::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--ink-black); }
.pages-unknown input:focus-visible + .pages-unknown__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pages-unknown-msg { margin-top: 8px; padding: 10px 14px; border-radius: 10px; background: var(--surface-snow); border: 1px solid var(--border-soft); font-weight: 700; color: var(--ink-black); }
.chip-sub--minus { color: var(--risk); font-weight: 700; }   /* #b91c1c 白地で6.5:1 */
.estimate-lines li.is-minus span, .estimate-lines li.is-minus span:last-child { color: var(--risk); font-weight: 700; }
@media (max-width: 600px) { .chip-option { flex: 1 1 calc(50% - 5px); } .chip-body { width: 100%; min-width: 0; } }
.choice-option { position: relative; display: block; cursor: pointer; }
.choice-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--border-light); border-radius: var(--r-card); background: #fff; transition: border-color .15s, box-shadow .15s; }
.choice-option:hover .choice-body { border-color: var(--ink-mid); }
.choice-option input:checked + .choice-body { border-color: var(--ink-black); box-shadow: inset 0 0 0 1px var(--ink-black); }
.choice-option input:focus-visible + .choice-body { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.choice-tag { display: inline-block; margin-bottom: 6px; padding: 1px 10px; border-radius: var(--r-pill); background: var(--ink-black); color: #fff; font-size: 12px; font-weight: 700; }
.choice-name { display: block; font-size: 17px; font-weight: 800; color: var(--ink-black); line-height: 1.5; }
.choice-desc { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-mid); line-height: 1.7; }
.choice-bonus { margin: 24px 0 8px; padding: 14px 18px; border-radius: 10px; background: var(--surface-snow); border: 1px solid var(--border-soft); font-weight: 700; }
.estimate { position: sticky; top: 88px; }
.estimate-box { padding: 24px; border: 2px solid var(--ink-black); border-radius: var(--r-card); background: #fff; }
.estimate-title { font-size: 14px; font-weight: 700; color: var(--ink-mid); }
.estimate-total { margin-top: 8px; display: grid; gap: 8px; }
.estimate-total div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.estimate-total dt { font-weight: 700; color: var(--ink-black); }
.estimate-total dd { font-size: 26px; font-weight: 800; color: var(--ink-black); white-space: nowrap; }
.estimate-total div + div dd { font-size: 18px; }
.estimate-lines { list-style: none; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-soft); display: grid; gap: 6px; font-size: 14px; }
.estimate-lines li { display: flex; justify-content: space-between; gap: 12px; }
.estimate-lines li span:last-child { white-space: nowrap; color: var(--ink-mid); }
.estimate-note { margin-top: 12px; font-size: 12px; color: var(--ink-mid); line-height: 1.7; }
.estimate-status { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.estimate-status.is-error { color: var(--risk); background: #fef2f2; border: 1px solid #fecaca; }   /* #b91c1c on #fef2f2 6.0:1 */
.estimate-status.is-done { color: #fff; background: var(--ink-black); font-size: 16px; }
@media (max-width: 900px) {
  .estimate-layout { grid-template-columns: 1fr; }
  .estimate { position: static; }
}
@media (max-width: 600px) {
  .choice-grid { grid-template-columns: 1fr; }
  .choice-visual { max-width: 360px; }
}

/* 同意チェックの「個人情報保護方針・個人情報の取扱い」モーダル（analytics.co.jp/privacy.css と同じ内容） */
.policy-body h2{font-size:20px;margin:48px 0 12px;padding-top:16px;border-top:1px solid #e5e5e5;line-height:1.5}
.policy-body h2:first-child{margin-top:0;padding-top:0;border-top:0}
.policy-body h3{font-size:17px;margin:32px 0 8px;line-height:1.5}
.policy-body p{margin:8px 0}
.policy-body ol,.policy-body ul{padding-left:1.5em;margin:8px 0}
.policy-body li{margin:6px 0}
.policy-body a{color:#1a56db;text-decoration:underline}
.policy-body .policy-sign{margin-top:16px;text-align:right}
.policy-table-wrap{overflow-x:auto}
.policy-body table{border-collapse:collapse;width:100%;margin:12px 0;font-size:15px}
.policy-body th,.policy-body td{border:1px solid #d4d4d4;padding:8px 10px;text-align:left;vertical-align:top}
.policy-body th{background:#f3f3f3}
/* 個人情報の取扱いモーダル（白・黒・グレー、丸いボタン、影なし） */
.privacy-modal{position:fixed;inset:0;margin:auto;width:min(880px,calc(100% - 64px));height:fit-content;max-height:min(720px,calc(100dvh - 64px));overflow:hidden;padding:0;border:1px solid var(--border-light,#d4d4d4);border-radius:var(--r-card,12px);background:#fff;color:var(--ink-near,#333);font-family:inherit}
.privacy-modal::backdrop{background:rgba(0,0,0,.5);backdrop-filter:blur(2px)}
.privacy-modal[open]{animation:pm-in .2s ease-out}
@keyframes pm-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.privacy-modal[open]{animation:none}}
.privacy-modal[open]{display:flex;flex-direction:column}
.privacy-modal__inner{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.privacy-modal__title,.privacy-modal__foot{flex:none}
.privacy-modal__body{flex:1 1 auto;min-height:0}
.privacy-modal__title{margin:0;padding:18px 24px 14px;font-size:17px;font-weight:800;line-height:1.5;color:var(--ink-black,#333);border-bottom:1px solid var(--border-soft,#e5e5e5)}
.privacy-modal__body{overflow-y:auto;overscroll-behavior:contain;padding:16px 24px 20px;font-size:14px;line-height:1.85;color:var(--ink-near,#333)}
.privacy-modal__body:focus{outline:none}
.privacy-modal__body:focus-visible{outline:none}
.privacy-modal__body h2,.privacy-modal__body h3{margin:20px 0 6px;padding:0;border:0;font-size:15px;font-weight:800;line-height:1.5;color:var(--ink-black,#333)}
.privacy-modal__body h2{margin-top:24px;padding-top:16px;border-top:1px solid var(--border-soft,#e5e5e5)}
.privacy-modal__body > :first-child{margin-top:0}
.privacy-modal__body p{margin:6px 0}
.privacy-modal__body ol,.privacy-modal__body ul{margin:6px 0;padding-left:1.4em}
.privacy-modal__body li{margin:4px 0}
.privacy-modal__body a{color:var(--ink-black,#333);text-decoration:underline;text-underline-offset:2px}
.privacy-modal__body .policy-table-wrap{overflow-x:auto;margin:8px 0}
.privacy-modal__body table{width:100%;border-collapse:collapse;font-size:13px}
.privacy-modal__body th,.privacy-modal__body td{padding:6px 8px;border:1px solid var(--border-soft,#e5e5e5);text-align:left;vertical-align:top}
.privacy-modal__body th{background:var(--surface-snow,#fafafa);font-weight:700}
.privacy-modal__foot{padding:16px 24px 20px;border-top:1px solid var(--border-soft,#e5e5e5)}
.privacy-modal__close{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;padding:16px 32px;border:1px solid transparent;border-radius:9999px;background:var(--ink-black,#333);color:#fff;font:inherit;font-size:17px;font-weight:700;letter-spacing:.08em;cursor:pointer}
.privacy-modal__close:hover{opacity:.85}
.privacy-modal__close:focus-visible{outline:2px solid var(--focus-ring,#2563eb);outline-offset:3px}
@media (max-width:600px){.privacy-modal{width:95%;max-height:calc(100dvh - 32px)}.privacy-modal__title,.privacy-modal__body,.privacy-modal__foot{padding-left:18px;padding-right:18px}}
body.is-modal-open{overflow:hidden}

/* =============================================================
   配色の試し表示（?preview=1 で切り替えパネルを表示。標準はネイビー）
   白文字と背景色のコントラスト比はすべて4.5:1以上
   ============================================================= */
html[data-theme="black"] {
  --ink-black: #333333;
  --ink-near: #333333;
  --ink-mid: #525252;
  --ink-on-dark: #d4d4d4;
  --surface-snow: #fafafa;
  --surface-dark: #333333;
  --border-light: #d4d4d4;
  --border-soft: #e5e5e5;
}
html[data-theme="blue"] {
  --ink-black: #1d4ed8;   /* 白地で6.7:1 */
  --ink-near: #1f2a3c;
  --ink-mid: #475569;     /* 白地で7.6:1 */
  --ink-on-dark: #dbe6ff; /* #1e3a8a地で8.9:1 */
  --surface-snow: #f5f8ff;
  --surface-dark: #1e3a8a;
  --border-light: #c7d2fe;
  --border-soft: #e0e7ff;
}
html[data-theme="slate"] {
  --ink-black: #475569;   /* 白地で7.6:1 */
  --ink-near: #1e293b;
  --ink-mid: #556274;     /* 白地で6.3:1 */
  --ink-on-dark: #e2e8f0; /* #334155地で8.4:1 */
  --surface-snow: #f8fafc;
  --surface-dark: #334155;
  --border-light: #cbd5e1;
  --border-soft: #e2e8f0;
}
.theme-switch { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; background: #fff; border: 1px solid #d4d4d4; border-radius: 14px; font-size: 13px; color: #333; }
.theme-switch[hidden] { display: none; }
.theme-switch__label { font-weight: 700; margin-right: 4px; }
.theme-switch button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #d4d4d4; border-radius: 9999px; background: #fff; color: #333; font: inherit; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { border-color: #333; font-weight: 700; }
.theme-switch .sw { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.sw-black { background: #333333; } .sw-navy { background: #1e3a5f; } .sw-blue { background: #1d4ed8; } .sw-slate { background: #475569; }
@media (max-width: 600px) { .theme-switch { left: 8px; right: 8px; bottom: 84px; } }

/* 選択中をはっきり見せる（背景を塗る） */
.chip-body { min-width: 180px; padding: 14px 22px; font-size: 17px; }
.chip-options--even { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.chip-options--even .chip-option { display: flex; }
.chip-options--even .chip-option, .chip-options--even .chip-body { width: 100%; min-width: 0; }
.chip-options--even .chip-body { height: 100%; justify-content: center; }
.chip-option input:checked + .chip-body { background: var(--ink-black); border-color: var(--ink-black); color: #fff; box-shadow: none; }
.chip-option input:checked + .chip-body .chip-sub { color: var(--ink-on-dark); }
.chip-option input:checked + .chip-body .chip-sub--minus { color: #fecaca; }   /* 濃紺地で7.9:1 */
.choice-option input:checked + .choice-body { background: var(--ink-black); border-color: var(--ink-black); box-shadow: none; }
.choice-option input:checked + .choice-body .choice-name { color: #fff; }
.choice-option input:checked + .choice-body .choice-desc { color: var(--ink-on-dark); }
.choice-option input:checked + .choice-body .choice-warn { color: #fecaca; }
.choice-option input:checked + .choice-body .choice-tag { background: #fff; color: var(--ink-black); }
@media (max-width: 600px) { .chip-body { padding: 12px 16px; font-size: 16px; } }

/* 点検での修正：ボタンの枠を見えやすく、押せる範囲を44px以上に */
.choice-body, .chip-body, .pages-unknown__box, .pages-step, .pages-input { border-color: var(--border-ui); }
.pill-sm { min-height: 44px; }
.pages-range { height: 44px; }
.choice-points { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; color: var(--ink-near); }
.choice-points span { position: relative; padding-left: 1.1em; }
.choice-points span::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-black); }
.choice-option input:checked + .choice-body .choice-points { color: #fff; }
.choice-option input:checked + .choice-body .choice-points span::before { background: #fff; }
.choice-more { margin-top: 6px; font-size: 13px; color: var(--ink-mid); }
.choice-more summary { cursor: pointer; font-weight: 700; color: var(--ink-black); text-decoration: underline; text-underline-offset: 2px; }
.choice-more p { margin-top: 6px; }

/* 右下の「上へ戻る」ボタン */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink-black); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: opacity .2s, transform .2s; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
@media (max-width: 600px) { .to-top { right: 12px; bottom: 88px; width: 48px; height: 48px; } }

.disclaimer { margin-top: 16px; font-size: 13px; color: var(--ink-mid); line-height: 1.7; }
