/* =========================================================
   〇〇不動産 不動産査定サイト（サンプル）
   カラーは【仮】。〇〇本部ブランドガイドライン確認後に差し替え
   ========================================================= */
:root {
  --ink: #1b2330;
  --ink-2: #3a4452;
  --ink-3: #5d6674;
  --paper: #ffffff;
  --paper-2: #f7f5f0;
  --paper-3: #efebe2;
  --line: #e3ded3;
  --gold: #a88d4f;
  --gold-text: #7d6530;      /* 明るい背景の上の文字（白地 5.56:1） */
  --gold-on-dark: #c9a96a;   /* 暗い背景の上の文字（7.04:1） */
  --field-border: #8d8472;   /* 入力欄の枠（白地 3.7:1） */
  --gold-soft: #ece4cf;
  --cta: #c2410c;
  --cta-hover: #9a3412;
  --cta-soft: #fff1e8;
  --line-green: #06c755;
  --marker: #ffe45c;
  --danger: #c62828;
  --danger-bg: #fdeeee;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 35, 48, .08);
  --shadow-lg: 0 24px 60px rgba(27, 35, 48, .14);
  --wrap: 1120px;
  --gutter: 16px;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  padding-bottom: 72px; /* スマホ固定バー分 */
}
@media (min-width: 1000px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.45; margin: 0 0 .6em; font-weight: 700; letter-spacing: .04em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.eyebrow { display: inline-block; font-family: var(--font-sans); font-size: 14px; letter-spacing: .2em; color: var(--gold-text); font-weight: 700; margin-bottom: 10px; }
.section-title { font-size: clamp(24px, 4.2vw, 36px); }
.section-lead { color: var(--ink-2); max-width: 720px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- 強調ルール ---- */
.marker { background: linear-gradient(transparent 58%, var(--marker) 58%); font-weight: 700; }
.box-point { border: 1px solid var(--gold-soft); background: #fbf8f0; border-radius: var(--radius); padding: 16px 18px 16px 52px; position: relative; margin: 0 0 1.4em; }
.box-point::before { content: "!"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold-text); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; line-height: 1; }
.box-point strong:first-child { display: block; color: var(--gold-text); font-size: 14px; letter-spacing: .15em; }
.box-caution { border-left: 5px solid var(--danger); background: var(--danger-bg); border-radius: 8px; padding: 14px 18px; margin: 0 0 1.4em; color: #5a1a1a; }
.box-caution strong { color: var(--danger); }
.box-tip { display: flex; gap: 12px; background: var(--paper-2); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 1.4em; }
.box-tip svg { flex: none; width: 26px; height: 26px; color: var(--gold); }
.note { font-size: 14px; color: var(--ink-3); line-height: 1.7; }
.tag-temp { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; font-size: 13px; line-height: 1.6; background: #fdf6e3; color: #6b5300; border: 1px solid #e2c77a; padding: 0 8px; border-radius: 999px; font-weight: 700; vertical-align: middle; white-space: normal; }
.tag-temp::before { content: "✎"; font-size: 12px; }

/* ---- ボタン（CTA色は1色に統一） ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; font-family: var(--font-sans); }
.btn:active { transform: scale(.98); }
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(194, 65, 12, .28); }
.btn--cta:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(194, 65, 12, .34); }
.btn--cta .arrow { transition: transform .2s ease; }
.btn--cta:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--line { background: var(--line-green); color: #08361b; }
.btn--line:hover { filter: brightness(.95); }
.btn--tel { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--block { width: 100%; }
.btn--lg { min-height: 64px; font-size: 19px; }
.cta-promise { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.cta-promise li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.section--dark .cta-promise { color: #d7dbe2; }

/* ---- ヘッダー ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1.2; }
.brand__mark { width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: var(--gold-soft); display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 15px; }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 16px; }
.brand__sub { display: block; font-size: 13px; color: var(--ink-3); font-family: var(--font-sans); letter-spacing: .08em; }
.gnav { display: none; }
.gnav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.gnav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.gnav a:hover { color: var(--cta); }
.header-cta { display: none; align-items: center; gap: 10px; }
.header-tel { text-decoration: none; text-align: right; line-height: 1.2; }
.header-tel b { display: block; font-size: 20px; font-family: var(--font-serif); letter-spacing: .04em; }
.header-tel small { font-size: 13px; color: var(--ink-3); }
.header-cta .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.menu-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.drawer { display: none; border-top: 1px solid var(--line); background: #fff; }
.drawer.is-open { display: block; }
.drawer ul { list-style: none; margin: 0; padding: 8px 0; }
.drawer a { display: block; padding: 14px var(--gutter); text-decoration: none; border-bottom: 1px solid var(--paper-3); }
@media (min-width: 1000px) {
  .gnav, .header-cta { display: flex; }
  .menu-btn, .drawer { display: none !important; }
}

/* ---- スマホ固定CTAバー ---- */
.fixed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; padding: 8px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.fixed-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.fixed-bar .fb-tel { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.fixed-bar .fb-line { background: var(--line-green); color: #08361b; }
.fixed-bar .fb-form { background: var(--cta); color: #fff; font-size: 14px; }
.fixed-bar small { font-weight: 400; font-size: 12px; opacity: .9; }
@media (min-width: 1000px) { .fixed-bar { display: none; } }

/* ---- ヒーロー ---- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f9f7f2 0%, #fff 100%); padding: 40px 0 64px; }
.hero__town { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; color: var(--paper-3); pointer-events: none; }
.hero__town svg { width: 200%; height: 100%; }
.hero__grid { position: relative; display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: 24px; } }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.hero__badge .stars { color: #e0a100; letter-spacing: 1px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); margin: 18px 0 16px; line-height: 1.35; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero__person { display: flex; gap: 16px; align-items: center; margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); max-width: 480px; }
.photo-ph { background: repeating-linear-gradient(45deg, var(--paper-3), var(--paper-3) 8px, var(--paper-2) 8px, var(--paper-2) 16px); border: 1px dashed #bdb49f; color: var(--ink-3); display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.4; border-radius: 12px; }
.hero__person .photo-ph { width: 84px; height: 84px; flex: none; border-radius: 50%; }
.hero__person p { margin: 0; font-size: 15px; line-height: 1.7; }
.hero__person b { font-family: var(--font-serif); }
.hero__stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }
.stat b { font-family: var(--font-serif); font-size: 30px; color: var(--ink); }
.stat > span { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* ---- Web査定ウィジェット ---- */
.estimator { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.estimator__head { background: var(--ink); color: #fff; padding: 18px 22px; }
.estimator__head h2 { font-size: 20px; margin: 0; }
.estimator__head p { margin: 4px 0 0; font-size: 14px; color: #cfd5de; }
.estimator__head .pill { display: inline-block; background: var(--gold-text); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; font-family: var(--font-sans); }
.estimator__body { padding: 20px 22px 24px; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req { display: inline-block; font-size: 13px; background: var(--cta); color: #fff; padding: 0 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.opt { display: inline-block; font-size: 13px; background: var(--paper-3); color: var(--ink-2); padding: 0 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font-size: 17px; font-family: inherit; color: var(--ink);
  border: 1.5px solid var(--field-border); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 110px; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(27, 35, 48, .1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border: 1.5px solid var(--field-border); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 15px; transition: all .15s; text-align: center; padding: 6px; }
.seg label svg { width: 24px; height: 24px; }
.seg input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 3px solid var(--cta); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks label { border: 1.5px solid var(--field-border); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.checks input:checked + label { border-color: var(--cta); background: var(--cta-soft); color: var(--cta-hover); font-weight: 700; }
.checks input:focus-visible + label { outline: 3px solid var(--cta); outline-offset: 2px; }
.unit-input { position: relative; }
.unit-input input { padding-right: 48px; }
.unit-input span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 4px; line-height: 1.6; }
.error-msg { color: var(--danger); font-size: 14px; margin-top: 6px; font-weight: 700; }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.est-result { margin-top: 18px; border-radius: 14px; border: 2px solid var(--ink); padding: 18px; background: #fffdf8; }
.est-result[hidden] { display: none; }
.est-result__label { font-size: 14px; color: var(--ink-3); font-weight: 700; }
.est-result__price { font-family: var(--font-serif); font-size: clamp(28px, 6vw, 38px); font-weight: 700; line-height: 1.3; margin: 4px 0; }
.est-result__price small { font-size: 16px; }
.est-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #dfe6ee, var(--gold-soft), #f1d3c3); margin: 12px 0 6px; }
.est-bar i { position: absolute; top: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transform: translateX(-50%); left: 50%; transition: left .6s cubic-bezier(.2, .8, .2, 1); }
.est-bar-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.demo-flag { display: block; margin-top: 10px; font-size: 13px; background: #fff4c2; border: 1px dashed #c9a700; color: #6b5300; padding: 6px 10px; border-radius: 8px; line-height: 1.6; }
.est-next { margin-top: 14px; }
.est-next p { font-size: 15px; margin-bottom: 10px; }
.est-special { background: var(--cta-soft); border: 1.5px solid #f3c3a6; border-radius: 12px; padding: 14px 16px; }
.est-special b { color: var(--cta-hover); }

/* ---- 3つの約束 ---- */
.promises { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 800px) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.promise__num { font-family: var(--font-serif); color: var(--gold-text); font-size: 14px; letter-spacing: .15em; }
.promise h3 { font-size: 20px; margin-top: 6px; }
.promise p { font-size: 16px; color: var(--ink-2); margin: 0; }

/* ---- 4つの査定プラン ---- */
.plans-layout { display: grid; gap: 28px; margin-top: 36px; align-items: center; }
@media (min-width: 960px) { .plans-layout { grid-template-columns: 420px 1fr; } }
.axis { position: relative; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.axis__x, .axis__y { position: absolute; background: var(--ink-3); }
.axis__x { left: 12%; right: 8%; bottom: 12%; height: 2px; }
.axis__y { left: 12%; top: 8%; bottom: 12%; width: 2px; }
.axis__x::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 10px solid var(--ink-3); border-right: 0; }
.axis__y::after { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-bottom: 10px solid var(--ink-3); border-top: 0; }
.axis__lx, .axis__ly { position: absolute; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.axis__lx { right: 8%; bottom: 4%; }
.axis__ly { left: 3%; top: 3%; }
.axis__dot { position: absolute; transform: translate(-50%, 50%); border: 0; background: none; cursor: pointer; padding: 0; font-family: inherit; }
.axis__dot span { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; transition: transform .2s, background .2s, color .2s; box-shadow: var(--shadow); }
.axis__dot:hover span, .axis__dot.is-active span { background: var(--ink); color: #fff; transform: scale(1.08); }
.plans { display: grid; gap: 14px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.plan.is-active, .plan:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.plan__tag { font-size: 13px; font-weight: 700; color: var(--gold-text); letter-spacing: .1em; }
.plan h3 { font-size: 20px; margin: 4px 0 6px; }
.plan p { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.plan dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 14px; margin: 0 0 14px; }
.plan dt { color: var(--ink-3); }
.plan dd { margin: 0; font-weight: 700; }
.plan .btn { min-height: 48px; font-size: 15px; width: 100%; }

/* ---- 表 ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { padding: 14px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
tbody th { background: var(--paper-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
.good { color: var(--ok); font-weight: 700; }

/* ---- 訳アリ ---- */
.wakeari-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
@media (min-width: 700px) { .wakeari-grid { grid-template-columns: repeat(5, 1fr); } }
.wakeari-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 10px; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.5; transition: transform .2s, box-shadow .2s; }
.wakeari-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wakeari-item svg { width: 36px; height: 36px; margin: 0 auto 6px; color: var(--ink); }
.diag { margin-top: 36px; background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 22px; }
@media (min-width: 800px) { .diag { padding: 40px; } }
.diag h3 { font-size: 22px; }
.diag__progress { height: 6px; background: rgba(255, 255, 255, .15); border-radius: 99px; overflow: hidden; margin: 12px 0 20px; }
.diag__progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.diag__q { font-size: 19px; font-weight: 700; margin-bottom: 14px; }
.diag__opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .diag__opts { grid-template-columns: 1fr 1fr; } }
.diag__opts button { min-height: 56px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-align: left; padding: 10px 16px; font-family: inherit; transition: background .15s, border-color .15s; }
.diag__opts button:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold); }
.diag__result { background: #fff; color: var(--ink); border-radius: 14px; padding: 22px; }
.diag__result h4 { font-size: 20px; }
.diag__back { background: none; border: 0; color: #cfd5de; text-decoration: underline; cursor: pointer; margin-top: 12px; font-size: 14px; font-family: inherit; }

/* ---- エリアマップ ---- */
.map-layout { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 900px) { .map-layout { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.mikawa-map { width: 100%; max-width: 560px; margin: 0 auto; }
.mikawa-map .city { cursor: pointer; transition: fill .2s; fill: #e8e2d4; stroke: #fff; stroke-width: 3; }
.mikawa-map .city:hover, .mikawa-map .city:focus { fill: var(--gold-soft); outline: none; }
.mikawa-map .city.is-active { fill: var(--ink); }
.mikawa-map text { font-family: var(--font-sans); font-size: 15px; font-weight: 700; pointer-events: none; fill: var(--ink); }
.mikawa-map text.is-active { fill: #fff; }
.map-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.map-panel h3 { font-size: 24px; }
.map-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.map-panel dt { color: var(--ink-3); }
.map-panel dd { margin: 0; font-weight: 700; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.map-tabs button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-family: inherit; font-size: 14px; }
.map-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- 流れ ---- */
.flow { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; counter-increment: step; }
.flow li::before { content: "STEP " counter(step); display: block; font-size: 13px; font-weight: 700; color: var(--gold-text); letter-spacing: .15em; }
.flow h3 { font-size: 18px; margin: 4px 0 6px; }
.flow p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.7; }
.flow__line { height: 3px; background: var(--line); border-radius: 99px; margin-top: 24px; overflow: hidden; display: none; }
.flow__line i { display: block; height: 100%; width: 0; background: var(--gold); }
@media (min-width: 900px) { .flow__line { display: block; } }

/* ---- 代表 ---- */
.rep { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .rep { grid-template-columns: 420px 1fr; } }
.rep .photo-ph { aspect-ratio: 4 / 5; border-radius: 20px; font-size: 14px; }
.rep blockquote { margin: 0 0 20px; font-family: var(--font-serif); font-size: clamp(20px, 3vw, 26px); line-height: 1.7; }
.quals { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.quals li { font-size: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; }

/* ---- 口コミ ---- */
.reviews-summary { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; margin-top: 24px; }
.big-rating { text-align: center; }
.big-rating b { font-family: var(--font-serif); font-size: 64px; line-height: 1; }
.big-rating .stars { color: #e0a100; font-size: 22px; letter-spacing: 2px; }
.review-cards { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 800px) { .review-cards { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: #fff; border: 1px dashed #bdb49f; border-radius: var(--radius); padding: 20px; font-size: 15px; color: var(--ink-3); }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 32px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--font-serif); color: var(--gold-text); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p:first-child::before { content: "A. "; font-weight: 700; color: var(--cta); }

/* ---- 最終CTA ---- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(26px, 4.5vw, 40px); }
.cta-row { display: grid; gap: 12px; max-width: 760px; margin: 28px auto 0; }
@media (min-width: 720px) { .cta-row { grid-template-columns: 1.4fr 1fr 1fr; } }
.gift { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; background: var(--gold-soft); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; }

/* ---- フッター ---- */
.site-footer { background: #11161f; color: #c9ced6; padding: 56px 0 32px; font-size: 14px; line-height: 1.8; }
.site-footer a { color: #e7eaee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 15px; font-family: var(--font-sans); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: 14px; }
.footer-legal .indep { color: #fff; font-weight: 700; }

/* ---- パンくず・下層 ---- */
.breadcrumb { font-size: 14px; color: var(--ink-3); padding-top: 14px; padding-bottom: 14px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.page-hero { background: var(--paper-2); padding: 36px 0 44px; }
.page-hero h1 { font-size: clamp(26px, 5vw, 42px); }
.summary-box { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 18px 20px; margin-top: 18px; }
.summary-box b { display: block; font-size: 14px; color: var(--gold-text); letter-spacing: .12em; margin-bottom: 4px; }
.supervisor { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 20px 0; font-size: 14px; }
.supervisor .photo-ph { width: 56px; height: 56px; border-radius: 50%; flex: none; font-size: 13px; }
.content { max-width: 820px; }
.content h2 { font-size: clamp(22px, 3.6vw, 30px); margin-top: 56px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.content h3 { font-size: 20px; margin-top: 32px; }
.chart-box { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 1.4em; }
.chart-box canvas { width: 100% !important; height: 300px !important; }
.chart-watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 700; font-size: clamp(16px, 3vw, 22px); color: rgba(198, 40, 40, .28); transform: rotate(-12deg); }
.two-col { display: grid; gap: 28px; }
.two-col > * { min-width: 0; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 340px; } }
.aside-sticky { position: sticky; top: 90px; }
.aside-card { background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; }
.aside-card h3 { font-size: 19px; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; list-style: none; padding: 0; }
.link-grid a { display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 700; }
.link-grid a:hover { border-color: var(--ink); }

/* ---- 査定フォーム ---- */
.form-shell { max-width: 760px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 24px 20px 28px; }
@media (min-width: 700px) { .form-card { padding: 36px 40px 40px; } }
.progress { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0 0 8px; position: relative; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.progress li { flex: 1; text-align: center; position: relative; z-index: 1; }
.progress li span { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: all .25s; }
.progress li.is-done span, .progress li.is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.progress li.is-current { color: var(--ink); }
.progress-bar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 24px; }
.progress-bar i { display: block; height: 100%; width: 25%; background: var(--cta); transition: width .35s ease; }
.form-step[hidden] { display: none; }
.form-step h2 { font-size: 22px; }
.plan-radios { display: grid; gap: 10px; }
@media (min-width: 640px) { .plan-radios { grid-template-columns: 1fr 1fr; } }
.plan-radios input { position: absolute; opacity: 0; pointer-events: none; }
.plan-radios label { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: all .15s; height: 100%; }
.plan-radios label b { font-family: var(--font-serif); font-size: 18px; display: block; }
.plan-radios label small { color: var(--ink-2); font-size: 14px; line-height: 1.6; display: block; }
.plan-radios input:checked + label { border-color: var(--cta); background: var(--cta-soft); box-shadow: 0 0 0 3px rgba(194, 65, 12, .15); }
.plan-radios input:focus-visible + label { outline: 3px solid var(--cta); outline-offset: 2px; }
.form-nav { display: flex; gap: 12px; margin-top: 24px; }
.form-nav .btn--ghost { flex: 0 0 auto; }
.form-nav .btn--cta { flex: 1; }
.consent { background: var(--paper-2); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 3px; accent-color: var(--cta); }
.outside-notice { border: 2px solid var(--gold); background: #fbf8f0; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.carry { background: var(--paper-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; }
.time-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--cta-soft); color: var(--cta-hover); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }

/* ---- サンクス ---- */
.thanks-steps { counter-reset: t; list-style: none; padding: 0; }
.thanks-steps li { counter-increment: t; position: relative; padding: 0 0 18px 52px; }
.thanks-steps li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ---- 表示アニメーション ---- */
.reveal { opacity: 0; transform: translateY(24px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.est-basis { list-style: none; padding: 12px 14px; margin: 14px 0 0; background: var(--paper-2); border-radius: 12px; font-size: 14px; line-height: 1.7; }
.est-basis li::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* 暗い背景の上の見出し小文字 */
.section--dark .eyebrow, .diag .eyebrow { color: var(--gold-on-dark); }

/* 面積の単位切り替えと補足 */
.unit-toggle { display: inline-flex; margin-top: 6px; border: 1.5px solid var(--field-border); border-radius: 999px; overflow: hidden; }
.unit-toggle button { min-width: 56px; min-height: 36px; border: 0; background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.unit-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.area-conv { margin: 4px 0 0; }
.area-help { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); font-size: 14px; line-height: 1.7; }
.area-help summary { cursor: pointer; padding: 10px 14px; font-weight: 700; color: var(--ink); }
.area-help summary::marker { color: var(--gold-text); }
.area-help > :not(summary), .area-help > div > * { margin-left: 14px; margin-right: 14px; }
.area-help ul { margin-top: 0; padding-left: 1.2em; }
.area-help > div:last-child, .area-help > :last-child { padding-bottom: 10px; }
.btn--sm { min-height: 42px; font-size: 14px; padding: 0 16px; }
.layout-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.layout-picks button { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--field-border); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.layout-picks button:hover, .layout-picks button:focus-visible { border-color: var(--ink); }

/* 入口ウィジェット：目的の選択・郵便番号 */
.purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.purpose input { position: absolute; opacity: 0; pointer-events: none; }
.purpose label { display: flex; align-items: center; min-height: 52px; padding: 8px 12px; border: 1.5px solid var(--field-border); border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; cursor: pointer; background: #fff; transition: all .15s; }
.purpose input:checked + label { border-color: var(--cta); background: var(--cta-soft); color: var(--cta-hover); box-shadow: 0 0 0 3px rgba(194, 65, 12, .12); }
.purpose input:focus-visible + label { outline: 3px solid var(--cta); outline-offset: 2px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.zip-row { margin-top: 8px; }

/* トップ：上部の帯・FVの安心・信頼の帯・お悩み・特典 */
.topbar { background: var(--ink); color: #e7eaee; font-size: 13px; line-height: 1.6; padding: 6px 0; text-align: center; }
.hero__checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__checks li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 32px; font-size: 14px; font-weight: 700; position: relative; }
.hero__checks li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: translateY(-70%) rotate(-45deg); }
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__list { list-style: none; margin: 0 auto; padding: 22px 16px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }
.trust__list li { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--gold); padding-left: 12px; }
.trust__list b { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.trust__list li > span { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.trust__list small { color: var(--ink-3); font-size: 13px; }
.nayami-grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .nayami-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .nayami-grid { grid-template-columns: repeat(3, 1fr); } }
.nayami-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px 44px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.nayami-grid a::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--cta); font-weight: 700; transition: transform .2s; }
.nayami-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.nayami-grid a:hover::after { transform: translate(4px, -50%); }
.nayami-grid b { font-family: var(--font-serif); font-size: 18px; }
.nayami-grid span { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.offer-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
.offer { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.offer__title { font-size: 20px; }
.offer p { font-size: 15px; color: var(--ink-2); }
.offer__book { flex: none; width: 92px; height: 128px; border-radius: 4px 10px 10px 4px; background: linear-gradient(135deg, var(--ink), #2c3a4f); color: var(--gold-on-dark); font-family: var(--font-serif); font-weight: 700; font-size: 14px; line-height: 1.5; display: grid; place-items: center; text-align: center; box-shadow: inset 6px 0 0 rgba(255, 255, 255, .12), 0 10px 20px rgba(27, 35, 48, .25); }
.offer__icon { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--gold-text); }
.offer__icon svg { width: 36px; height: 36px; }

/* 文章の中のリンクは色だけでなく下線でも見分けられるように（WCAG 1.4.1） */
.site-footer p a { text-decoration: underline; text-underline-offset: 3px; }

/* 年配の方にも読みやすく：信頼の帯の説明と出典は大きめに */
.trust__list li > span { font-size: 15px; line-height: 1.6; }
.trust__list small { font-size: 13px; }

/* 補足の小さな文字も13px以上に */
small { font-size: max(13px, .85em); }

/* 写真 */
img { max-width: 100%; height: auto; }
.hero__face { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(27, 35, 48, .15); }
.promise { overflow: hidden; }
.promise__img { display: block; width: calc(100% + 44px); max-width: none; margin: -26px -22px 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.plan { overflow: hidden; }
.plan__img { display: block; width: calc(100% + 40px); max-width: none; margin: -20px -20px 14px; aspect-ratio: 16 / 7; object-fit: cover; }
.offer__photo { flex: none; width: 128px; height: 128px; border-radius: 14px; object-fit: cover; }
.rep__photo { margin: 0; }
.rep__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.rep__photo figcaption { margin-top: 10px; font-size: 14px; color: #d7dbe2; text-align: center; }
.gallery { display: grid; gap: 12px; margin-top: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; } .gallery__main { grid-row: span 2; } }
.gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--paper-3); }
.gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.gallery__main img { aspect-ratio: auto; min-height: 100%; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.final-cta--photo { position: relative; background: linear-gradient(rgba(17, 22, 31, .82), rgba(17, 22, 31, .88)), url("../img/okazaki-castle.webp") center / cover no-repeat; }
.final-cta--photo::after { content: "写真：岡崎城"; position: absolute; right: 12px; bottom: 8px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.supervisor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
@media (prefers-reduced-motion: reduce) { .gallery figure:hover img { transform: none; } }
.company-photo { margin: 0 0 16px; max-width: 360px; }
.company-photo img { border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; }
.company-photo figcaption { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.staff { display: flex; gap: 16px; align-items: center; }
.staff img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.staff p { margin: 0; }

/* ヘッダー：メニューが折り返さないように。幅が足りない画面ではメニューを隠して「≡」から開く */
.gnav a, .header-tel b, .header-tel small, .brand__name, .brand__sub, .header-cta .btn { white-space: nowrap; }
.gnav ul { gap: 18px; }
.gnav a { font-size: 15px; }
@media (min-width: 1000px) and (max-width: 1239px) {
  .gnav { display: none; }
  .menu-btn, .drawer.is-open { display: grid !important; }
  .drawer.is-open { display: block !important; }
}
@media (min-width: 1000px) and (max-width: 1339px) { .header-tel { display: none; } }

/* ブログ（不動産コラム） */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-nav a { padding: 8px 16px; border: 1px solid var(--field-border); border-radius: 999px; font-size: 15px; text-decoration: none; background: var(--paper); }
.cat-nav a:hover { border-color: var(--ink); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: 14px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.post-card:hover { box-shadow: 0 12px 32px rgba(27, 35, 48, .12); transform: translateY(-2px); }
.post-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { padding: 16px 18px 20px; }
.post-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.55; }
.post-card__desc { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 14px; color: var(--ink-3); }
.cat { display: inline-block; padding: 2px 10px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.cat--guide { background: #1f4e79; } .cat--souzoku { background: #5b4a7a; } .cat--akiya { background: #2f6b4f; }
.cat--money { background: #7a5a1f; } .cat--area { background: #7a2f3a; } .cat--sokuho { background: #b3261e; }
.post-card--big { margin-top: 8px; }
@media (min-width: 800px) {
  .post-card--big > a { display: grid; grid-template-columns: 1.2fr 1fr; }
  .post-card--big img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .post-card--big .post-card__body { padding: 32px; align-self: center; }
  .post-card--big h3 { font-size: 24px; }
}
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pager a { min-width: 44px; min-height: 44px; display: grid; place-items: center; border: 1px solid var(--field-border); border-radius: 8px; text-decoration: none; }
.pager a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-hero h1 { margin: 12px 0 16px; font-size: clamp(24px, 4vw, 36px); line-height: 1.5; }
.post-eyecatch { margin: 0 0 28px; }
.post-eyecatch img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.post-toc { background: var(--paper-2); border-radius: 12px; padding: 18px 22px; margin: 0 0 32px; }
.post-toc p { margin: 0 0 8px; font-weight: 700; }
.post-toc ol { margin: 0; padding-left: 1.4em; }
.post-toc li + li { margin-top: 4px; }
.post-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--paper-2); color: var(--ink-2); }
.post-body code { background: var(--paper-3); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.post-cta { margin: 40px 0; padding: 28px 24px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center; }
.post-cta__lead { margin: 0 0 16px; font-family: var(--font-serif); font-size: clamp(18px, 2.6vw, 22px); font-weight: 700; }
.post-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.post-cta .btn--ghost { color: #fff; border-color: #fff; }
.post-cta .btn--ghost:hover { background: #fff; color: var(--ink); }
.post-cta__note { margin: 14px 0 0; font-size: 14px; color: #d7dbe2; }
.post-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; border: 1px solid var(--paper-3); border-radius: 14px; }
.post-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.post-author p { margin: 0 0 8px; }
.post-author__name { font-weight: 700; font-size: 18px; }
.post-author__name small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); }
@media (max-width: 560px) { .post-author { flex-direction: column; } }
.post-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.post-pager a { display: block; padding: 14px 16px; border: 1px solid var(--paper-3); border-radius: 12px; text-decoration: none; font-weight: 700; line-height: 1.5; }
.post-pager small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.post-pager__next { text-align: right; }

/* ---- トップ：写真を背景にしたファーストビュー ---- */
.hero--photo { background: #141b26; color: #fff; padding: 56px 0 72px; isolation: isolate; }
.hero--photo .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9); }
.hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17, 23, 33, .88) 0%, rgba(17, 23, 33, .78) 45%, rgba(17, 23, 33, .6) 100%); }
@media (max-width: 959px) { .hero--photo::before { background: linear-gradient(180deg, rgba(17, 23, 33, .9), rgba(17, 23, 33, .82)); } }
.hero--photo h1 { color: #fff; letter-spacing: .02em; }
.hero--photo h1 em { color: var(--gold-on-dark); }
.hero--photo .hero__lead { color: #dfe3ea; }
.hero--photo .hero__lead .marker { background: none; color: #fff; border-bottom: 2px solid var(--gold-on-dark); }
.hero--photo .hero__badge { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(6px); }
.hero--photo .hero__checks li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; }
.hero--photo .hero__checks li::before { border-color: #7ddc9a; }
.hero--photo .hero__person { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); box-shadow: none; color: #fff; backdrop-filter: blur(6px); }
.hero--photo .estimator { border: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hero--photo .estimator__head { background: linear-gradient(135deg, #243044, #1b2330); }

/* ---- 約束の下の、一括査定との比較 ---- */
.compare-block { margin-top: 64px; text-align: left; }
.compare-block__title { font-size: clamp(20px, 3vw, 26px); text-align: center; margin: 0 0 20px; }
.compare-block .good { font-weight: 700; }

/* ---- 途中の申込 ---- */
.mid-cta { background: linear-gradient(135deg, #1b2330, #2a3547); color: #fff; padding: 36px 0; }
.mid-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.mid-cta__text { margin: 0; }
.mid-cta__text b { display: block; font-family: var(--font-serif); font-size: clamp(19px, 2.6vw, 24px); }
.mid-cta__text span { color: #d7dbe2; font-size: 15px; }
.mid-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- 査定プランの図は上にそろえ、スクロール中も見えるように ---- */
.plans-layout { align-items: start; }
@media (min-width: 960px) { .plans-layout > .axis { position: sticky; top: 100px; } }

/* ---- 見出しの下に金色の短い線 ---- */
.center > .section-title::after { content: ""; display: block; width: 44px; height: 3px; margin: 18px auto 0; background: var(--gold); border-radius: 2px; }
.hero--photo .estimator { color: var(--ink); }
.hero--photo .estimator__head { color: #fff; }
/* スマホでは査定フォームを早く見せる（代表の紹介はすぐ下の「代表」欄にもある） */
@media (max-width: 959px) {
  .hero--photo { padding: 28px 0 40px; }
  .hero--photo .hero__person { display: none; }
  .hero--photo .hero__checks { margin-top: 12px; }
  .hero--photo .hero__badge { font-size: 13px; }
}

/* iPhone のホームバーに固定バーが重ならないように */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) { body { padding-bottom: 0; } }
.fixed-bar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
/* 表の中のリンクを指で押しやすく */
th a, td a { display: inline-block; padding: 6px 0; }
/* スマホでは上部の案内帯を省き、査定フォームを上へ（同じ内容はファーストビューにある） */
@media (max-width: 639px) { .topbar { display: none; } }

/* ---- Web査定の結果：代表との面談の予約 ---- */
.va-book { border: 2px solid var(--cta); }
.va-book__head { display: flex; gap: 16px; align-items: center; }
.va-book__head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--shadow); }
.va-book__head .va-h { margin: 2px 0 0; }
.va-book__eyebrow { margin: 0; font-size: 14px; font-weight: 700; color: var(--cta); }
.va-book__points { margin: 16px 0 20px; padding-left: 1.3em; }
.va-book__points li + li { margin-top: 6px; }
.va-book__how { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.va-book__how legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.va-book__how label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--field-border); border-radius: 10px; cursor: pointer; background: #fff; }
.va-book__how label:has(input:checked) { border-color: var(--ink); background: var(--paper-2); font-weight: 700; }
.va-book__dates, .va-book__who { display: grid; gap: 14px; }
@media (min-width: 640px) { .va-book__dates, .va-book__who { grid-template-columns: 1fr 1fr; } }
.va-book__dates > div, .va-book__who > div { display: grid; gap: 6px; align-content: start; }
.va-book label[for] { font-weight: 700; }
.va-book input[type=date], .va-book input[type=tel], .va-book input:not([type]), .va-book select { width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--field-border); border-radius: 10px; background: #fff; font-family: inherit; color: var(--ink); }
.va-book__who { margin: 8px 0 14px; }
.va-book__agree { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.va-book__agree input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.va-book .req { display: inline-block; font-size: 12px; background: var(--cta); color: #fff; padding: 0 6px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.va-book__done { outline: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#va-book { scroll-margin-top: 96px; }
.fixed-bar .fb-form small { opacity: 1; }

/* ---- トップの見出し：黒ではなく、サイトの基調（明るいベージュ×紺×金）に合わせる ---- */
.hero--photo { background: var(--paper-2); color: var(--ink); }
.hero--photo .hero__bg { filter: saturate(.85) sepia(.12); }
.hero--photo::before { background: linear-gradient(100deg, rgba(247, 245, 240, .97) 0%, rgba(247, 245, 240, .92) 42%, rgba(239, 235, 226, .6) 100%); }
@media (max-width: 959px) { .hero--photo::before { background: linear-gradient(180deg, rgba(247, 245, 240, .95), rgba(247, 245, 240, .9)); } }
.hero--photo h1 { color: var(--ink); }
.hero--photo h1 em { color: var(--gold-text); }
.hero--photo .hero__lead { color: var(--ink-2); }
.hero--photo .hero__lead .marker { color: var(--ink); background: linear-gradient(transparent 58%, var(--marker) 58%); border-bottom: 0; }
.hero--photo .hero__badge { background: #fff; border-color: var(--line); color: var(--ink); backdrop-filter: none; }
.hero--photo .hero__checks li { background: #fff; border-color: var(--line); color: var(--ink); }
.hero--photo .hero__checks li::before { border-color: var(--ok); }
.hero--photo .hero__person { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); backdrop-filter: none; }
.hero--photo .estimator { box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero--photo .estimator__head, .estimator__head { background: linear-gradient(135deg, #7d6530, #5f4c22); }
.estimator__head .pill { background: #fff; color: #5f4c22; }
.estimator__head p { color: #f3ecdc; }
.mid-cta { background: linear-gradient(135deg, #f3ead6, #e9dcbd); color: var(--ink); }
.mid-cta__text span { color: var(--ink-2); }
.topbar { background: var(--paper-3); color: var(--ink-2); }

/* ==== 配色：文字以外に黒・紺を使わない（ベージュ×金茶） ==== */
:root { --sand: #efe6d2; --sand-2: #f6f0e3; --brown: #7d6530; --brown-2: #5f4c22; }
.skip { background: var(--brown); }
.brand__mark { background: var(--brown); color: #fff; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { background: var(--brown); }
.btn--ghost { border-color: var(--brown); }
.btn--ghost:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--brown); box-shadow: 0 0 0 4px rgba(125, 101, 48, .15); }
.seg input:checked + label, .unit-toggle button[aria-pressed="true"], .map-tabs button[aria-pressed="true"],
.cat-nav a[aria-current="page"], .pager a[aria-current="page"] { background: var(--brown); border-color: var(--brown); color: #fff; }
.est-result, .summary-box { border-color: var(--brown); }
.est-bar i { background: var(--brown); }
.axis__dot span { border-color: var(--brown); }
.axis__dot:hover span, .axis__dot.is-active span { background: var(--brown); color: #fff; }
.plan.is-active, .plan:hover, .link-grid a:hover, .layout-picks button:hover, .layout-picks button:focus-visible,
.nayami-grid a:hover, .cat-nav a:hover, .va-book__how label:has(input:checked) { border-color: var(--brown); }
.progress li.is-done span, .progress li.is-current span { background: var(--brown); border-color: var(--brown); }
.thanks-steps li::before { background: var(--brown); }
thead th { background: var(--sand); color: var(--ink); }
.content h2 { border-bottom-color: var(--gold); }
.cat { background: var(--brown); }
.offer__book { background: linear-gradient(135deg, var(--brown), var(--brown-2)); color: #fdf6e3; }

/* 暗かった大きな面は、明るいベージュに */
.section--dark { background: var(--sand-2); color: var(--ink); }
.section--dark .eyebrow, .diag .eyebrow { color: var(--brown); }
.section--dark .cta-promise { color: var(--ink-2); }
.rep__photo img { box-shadow: var(--shadow-lg); }
.rep__photo figcaption { color: var(--ink-2); }
.quals li { background: #fff; border-color: var(--line); color: var(--ink); }
.final-cta { background: var(--sand); }
.final-cta--photo { background: linear-gradient(rgba(247, 245, 240, .9), rgba(239, 230, 210, .92)), url("../img/okazaki-castle.webp") center / cover no-repeat; }
.final-cta--photo::after { color: var(--ink-3); }
.diag { background: var(--sand-2); color: var(--ink); border: 1px solid var(--line); }
.diag__progress { background: var(--line); }
.diag__opts button { border-color: var(--field-border); background: #fff; color: var(--ink); }
.diag__opts button:hover { background: var(--paper-2); border-color: var(--brown); }
.diag__back { color: var(--ink-2); }
.aside-card { background: var(--sand-2); color: var(--ink); border: 1px solid var(--line); }
.post-cta { background: var(--sand); color: var(--ink); }
.post-cta .btn--ghost { color: var(--ink); border-color: var(--brown); }
.post-cta .btn--ghost:hover { background: var(--brown); color: #fff; }
.post-cta__note { color: var(--ink-2); }
.site-footer { background: var(--sand); color: var(--ink-2); }
.site-footer a { color: var(--ink); }
.site-footer h3, .footer-legal .indep { color: var(--ink); }
.footer-legal { border-top-color: var(--line); }

/* ==== 左右のバランス：幅を広げ、PCでは見出しを左、説明を右に ==== */
:root { --wrap: 1280px; }
@media (min-width: 960px) {
  .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; text-align: left; margin-bottom: 8px; }
  .sec-head > .eyebrow, .sec-head > .section-title { grid-column: 1; }
  .sec-head > .section-title { margin-bottom: 0; }
  .sec-head > .section-title::after { margin-left: 0; }
  .sec-head > :not(.eyebrow):not(.section-title) { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; max-width: none; }
  .sec-head > .reviews-summary { justify-self: end; text-align: right; }
}
.mikawa-map .city.is-active { fill: var(--brown); }
@media (min-width: 960px) {
  /* よくある質問：見出しを左、質問を右に */
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 64px; align-items: start; }
  #faq .sec-head { display: block; position: sticky; top: 110px; }
  #faq .faq { margin: 0; max-width: none; }
  /* 最後の申込：言葉を左、ボタンを右に */
  .final-cta .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: center; text-align: left; }
  .final-cta .wrap > * { grid-column: 1; }
  .final-cta .wrap > .cta-row { grid-column: 2; grid-row: 1 / span 4; grid-template-columns: 1fr; max-width: 420px; width: 100%; margin: 0 0 0 auto; }
  .final-cta .cta-promise { justify-content: flex-start; }
  .final-cta .gift { margin-left: 0; justify-self: start; }
}
/* 記事ページの見出しなど：真ん中に細く寄せず、左の端を本文とそろえる（1行の長さは読みやすい幅に） */
.wrap.content { max-width: var(--wrap); }
.wrap.content > * { max-width: 860px; }
.wrap.content > .table-wrap, .wrap.content > .two-col, .wrap.content > .post-grid, .wrap.content > .link-grid, .wrap.content > .sozai-sum { max-width: none; }
/* 最後の申込とフッターの境目をはっきり */
.final-cta:not(.final-cta--photo) { background: var(--sand-2); }
.site-footer { background: #e8ddc5; }
.wrap.content > .company-photo { max-width: 360px; }
.wrap.content > .gallery { max-width: none; }
/* 会社紹介：代表の写真を右に置き、文章と左右で並べる */
@media (min-width: 1100px) {
  .company-body { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .company-body > * { grid-column: 1; }
  .company-body > .company-photo { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 110px; margin: 64px 0 0; max-width: 360px; justify-self: end; }
  .company-body > .gallery { grid-column: 1 / -1; }
}

/* ==== ベージュを薄く（白に近い生成り）。重なって見えないよう、面ごとに差をはっきり ==== */
:root { --paper-2: #faf8f3; --paper-3: #f3efe6; --sand: #f7f2e8; --sand-2: #fbf9f4; }
.hero--photo::before { background: linear-gradient(100deg, rgba(255, 255, 255, .95) 0%, rgba(252, 250, 246, .9) 42%, rgba(248, 245, 238, .55) 100%); }
@media (max-width: 959px) { .hero--photo::before { background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(252, 250, 246, .9)); } }
.mid-cta { background: linear-gradient(135deg, #fbf6ec, #f5ecda); }
/* 最後の申込：写真は少しだけ見せ、下に線を引いてフッターと分ける */
.final-cta--photo { background: linear-gradient(rgba(255, 255, 255, .9), rgba(251, 249, 244, .93)), url("../img/okazaki-castle.webp") center / cover no-repeat; }
.final-cta { border-bottom: 1px solid var(--line); }
/* フッター：白地に金の線。上の申込欄と色が重ならないように */
.site-footer { background: #fff; border-top: 3px solid var(--gold); }

/* ==== トップ：表彰の写真をはっきり見せ、文字は白いパネルに載せる ==== */
.hero--photo { padding: 64px 0 80px; }
.hero--photo .hero__bg { filter: none; object-position: 30% 50%; }
.hero--photo::before { background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .18)); }
.hero--photo .hero__grid > div:first-child { background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 20px; padding: 28px 32px 32px; box-shadow: 0 20px 50px rgba(60, 45, 20, .18); }
.hero--photo .hero__grid > div:first-child h1 { margin-top: 14px; }
.hero--photo .hero__person { box-shadow: none; background: var(--paper-2); }
@media (max-width: 959px) {
  .hero--photo { padding: 20px 0 32px; }
  .hero--photo::before { background: rgba(255, 255, 255, .1); }
  .hero--photo .hero__grid > div:first-child { padding: 20px 18px 22px; }
}
/* 写真はそのままにせず、トロフィーが分かる程度に白をうっすら重ねて落ち着かせる */
.hero--photo .hero__bg { filter: saturate(.75) brightness(1.05); }
.hero--photo::before { background: linear-gradient(100deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .4) 50%, rgba(255, 255, 255, .5) 100%); }
@media (max-width: 959px) { .hero--photo::before { background: rgba(255, 255, 255, .5); } }
.hero--photo .hero__bg { filter: saturate(.8) contrast(.95); }
.hero--photo::before { background: linear-gradient(100deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .25) 100%); }
@media (max-width: 959px) { .hero--photo::before { background: rgba(255, 255, 255, .25); } }
/* 写真にうっすらベージュを重ね、トロフィーの金色は残す */
.hero--photo .hero__bg { filter: saturate(.85) sepia(.12); }
.hero--photo::before { background: linear-gradient(100deg, rgba(246, 238, 222, .52) 0%, rgba(246, 238, 222, .32) 50%, rgba(246, 238, 222, .46) 100%); }
@media (max-width: 959px) { .hero--photo::before { background: rgba(246, 238, 222, .45); } }
.hero--photo .hero__grid > div:first-child { background: rgba(255, 252, 246, .9); }

/* ==== トップの見出し：最初のベージュの形（写真に生成りを重ね、文字は直接載せる） ==== */
.hero--photo { padding: 56px 0 72px; }
.hero--photo .hero__bg { filter: saturate(.85) sepia(.12); object-position: 50% 50%; }
.hero--photo::before { background: linear-gradient(100deg, rgba(247, 245, 240, .97) 0%, rgba(247, 245, 240, .92) 42%, rgba(239, 235, 226, .6) 100%); }
.hero--photo .hero__grid > div:first-child { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; padding: 0; box-shadow: none; }
.hero--photo .hero__person { background: #fff; box-shadow: var(--shadow); }
@media (max-width: 959px) {
  .hero--photo { padding: 28px 0 40px; }
  .hero--photo::before { background: linear-gradient(180deg, rgba(247, 245, 240, .95), rgba(247, 245, 240, .9)); }
  .hero--photo .hero__grid > div:first-child { padding: 0; }
}
