/* =========================================================
   abcSATEI LP — samplepageIMG.png 準拠
   ========================================================= */
:root {
  --navy-950: #070E1C;
  --navy-900: #0A1428;
  --navy-850: #0C1830;
  --navy-800: #10203E;
  --gold: #C9A45C;
  --gold-light: #DCBE82;
  --gold-deep: #B08F47;
  /* 明るい地の上の「文字」用。--gold-deep は白地で 3.06:1 しかなく本文に使えない。
     #8A6A2E は #FFF で 5.02:1 / #FAF9F6 で 4.77:1（WCAG AA）。 */
  --gold-text: #8A6A2E;
  --gold-grad: linear-gradient(135deg, #DCBB79 0%, #C29A4E 100%);
  --ink: #202632;
  --ink-soft: #6A7180;
  --line-warm: #E9E4D9;
  --paper: #FFFFFF;
  --paper-warm: #FAF9F6;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--navy-900);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn .arrow { font-family: var(--sans); font-weight: 400; }

.btn-gold {
  background: var(--gold-grad);
  color: var(--navy-900);
  font-size: 13px;
  padding: 11px 24px;
  letter-spacing: .04em;
}
.btn-lg { font-size: 15px; padding: 15px 34px; }

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 13px;
  padding: 10px 22px;
  letter-spacing: .04em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 15, 30, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.brand-logo { height: 26px; width: auto; display: block; }
.site-footer .brand-logo { height: 32px; }
.brand-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .1em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .85);
}
.global-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.global-nav a {
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  letter-spacing: .06em;
  transition: color .2s ease;
}
.global-nav a:hover { color: var(--gold-light); }
.header-cta { flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 27, .18) 0%, rgba(7, 13, 27, .06) 46%, rgba(7, 13, 27, 0) 100%),
    linear-gradient(180deg, rgba(7, 13, 27, .08) 0%, rgba(7, 13, 27, 0) 40%, rgba(7, 13, 27, .14) 100%);
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 76px;
  padding-bottom: 76px;
  min-height: 640px;
}
.hero-copy { flex: 1 1 auto; color: #fff; }
.hero-copy h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .06em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero-lead {
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .92);
}
.hero-badges {
  list-style: none;
  display: flex;
  margin-top: 44px;
}
.hero-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 30px;
  border-left: 1px solid rgba(255, 255, 255, .25);
}
.hero-badges li:first-child { border-left: 0; padding-left: 0; }
.badge-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.badge-icon svg { width: 22px; height: 22px; }
.hero-cta { margin-top: 36px; }
.badge-label {
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .95);
}

/* ---------- Chat widget ---------- */
.chat-card {
  flex: 0 0 490px;
  width: 490px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  padding: 28px 28px 20px;
  scroll-margin-top: 90px;
}
.chat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EFECE5;
  position: relative;
}
.chat-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--gold);
}
.chat-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
}
.chat-step {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .1em;
  flex: none;
}
.chat-body {
  padding: 20px 2px 8px;
  min-height: 320px;
  max-height: 460px;
  overflow-y: auto;
}
.msg {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.msg .avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg .bubble {
  background: #F3F1EC;
  border-radius: 3px 12px 12px 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.8;
  max-width: 82%;
}
.msg-user { justify-content: flex-end; }
.msg-user .bubble {
  background: var(--navy-850);
  color: #fff;
  border-radius: 12px 3px 12px 12px;
}
.msg-time {
  font-size: 10px;
  color: #A8ACB4;
  margin: 0 0 10px 44px;
}
.msg-user + .msg-time { text-align: right; margin: 0 4px 10px 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px 44px;
}
.chip {
  border: 1px solid #CDB98E;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-family: var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.chip:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.chat-input input {
  flex: 1;
  border: 1px solid #DDD9CF;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
}
.chat-input input:focus { border-color: var(--gold); }
.chat-send {
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .2s ease;
}
.chat-send:hover { opacity: .85; }
.chat-send svg { width: 19px; height: 19px; }
.chat-ssl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 10.5px;
  color: #9BA0A9;
  letter-spacing: .03em;
}
.chat-ssl svg { width: 13px; height: 13px; }

/* chat: contact form step */
.chat-form-fields {
  margin: 8px 0 8px 44px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-form-fields label {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.chat-form-fields input {
  border: 1px solid #DDD9CF;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  width: 100%;
}
.chat-form-fields input:focus { border-color: var(--gold); }
.chat-form-fields select {
  border: 1px solid #DDD9CF;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--sans);
  outline: none;
  width: 100%;
  background: #fff;
  color: var(--ink);
}
.chat-form-fields select:focus { border-color: var(--gold); }
/* 「物件のご住所」「ご連絡先」の区切り見出し */
.chat-form-fields .form-section {
  margin: 6px 0 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #E8E3D8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy-900);
}
.chat-form-fields .form-section:not(:first-child) { margin-top: 14px; }
.chat-form-fields .consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-soft);
}
.chat-form-fields .consent input { width: auto; margin-top: 3px; }
.chat-form-fields .btn { margin-top: 4px; }

/* 確認ステップ（連絡先を聞く前に必ず通す） */
.chat-form-fields .confirm-caption {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.chat-form-fields .confirm-table {
  width: 100%;
  border-collapse: collapse;
  background: #FBFAF7;
  border: 1px solid #E8E3D8;
  border-radius: 8px;
  overflow: hidden;
}
.chat-form-fields .confirm-table th,
.chat-form-fields .confirm-table td {
  padding: 7px 11px;
  font-size: 12.5px;
  text-align: left;
  border-bottom: 1px solid #EDE9E0;
  vertical-align: top;
}
.chat-form-fields .confirm-table tr:last-child th,
.chat-form-fields .confirm-table tr:last-child td { border-bottom: 0; }
.chat-form-fields .confirm-table th {
  width: 42%;
  font-weight: 400;
  color: var(--ink-soft);
  white-space: nowrap;
}
.chat-form-fields .confirm-table td { color: var(--ink); font-weight: 500; }
.chat-form-fields .confirm-note {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.chat-form-fields .confirm-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-form-fields .confirm-actions .btn { flex: 1; margin-top: 0; text-align: center; }
.chat-form-fields .btn-outline-navy {
  background: transparent;
  border: 1px solid #CFC8B8;
  color: var(--ink-soft);
}
.chat-form-fields .btn-outline-navy:hover { border-color: var(--navy-900); color: var(--navy-900); }
/* 確認表の直下に置く「物件情報を修正する」。全幅のボタンにすると
   「この内容で進む」と同じ重さに見えてしまうため、控えめな幅に留める。 */
.chat-form-fields .btn-inline {
  display: inline-block;
  width: auto;
  margin-top: 8px;
  padding: 7px 16px;
  font-size: 12px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
/* 連絡先ステップの単一選択チップ（連絡方法・時間帯） */
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pref-chip {
  border: 1px solid #CDB98E;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.pref-chip.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* chat: 概算査定結果カード */
.estimate-card {
  margin: 10px 0 12px 44px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #FCFAF5;
  padding: 16px 18px;
}
.est-title {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-deep);
  margin-bottom: 6px;
}
.est-range {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1.4;
}
/* 受付完了後の再掲示: レンジを赤の強調色に（#B3261E は #FCFAF5 上で 5.9:1 / WCAG AA） */
.estimate-card-done .est-range { color: #B3261E; }
.est-center {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.est-meta {
  font-size: 12px;
  color: var(--ink);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #EDE8DC;
}
.est-factors {
  list-style: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.est-note {
  margin-top: 10px;
  font-size: 10px;
  color: #9BA0A9;
  line-height: 1.7;
}
/* 出典表記。不動産情報ライブラリの利用申請で明記を約束しているため、
   注意書き(.est-note)より読める大きさ・濃さにする */
.est-source {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Sub pages (規約・ポリシー・コンテンツページ) ---------- */
.page-head {
  background: var(--navy-900);
  color: #fff;
  padding: 60px 0 52px;
  text-align: center;
}
.page-head h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .14em;
}
.page-head p {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .75);
}
.doc {
  max-width: 820px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 2.1;
  color: var(--ink);
}
.doc h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
  margin: 44px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 24px; margin: 10px 0; }
.doc li { margin: 4px 0; }
.doc a { color: var(--gold-deep); text-decoration: underline; }
.doc .doc-note {
  font-size: 12.5px;
  /* 🔴 --ink-soft(#6A7180) は白地なら 4.6:1 だが、この注記は生成り地(#F5F2EA)なので 4.38:1 に落ちる。
     注記も読ませる文なので、この箱の中だけ少し濃くする（他 24 箇所の --ink-soft は白地のまま）。 */
  color: #5F6674;
  background: #F5F2EA;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 18px 0;
}
/* 任意同意（広告メールのオプトイン）— 必須同意と視覚的に区別する */
.consent-optional { margin-top: 6px; }

.consent-note {
  margin: 4px 0 0 22px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.doc h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 22px 0 6px;
  color: var(--ink);
}

/* 事業者情報・保存期間・委託先などの定型表 */
.doc-table-wrap { overflow-x: auto; margin: 14px 0; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.9;
  min-width: 480px;
}

.doc-table th,
.doc-table td {
  border: 1px solid var(--line-warm);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #F5F2EA;
  font-weight: 500;
  white-space: nowrap;
  width: 34%;
}

.doc-table thead th { width: auto; white-space: normal; }

.doc-date { margin-top: 40px; font-size: 12.5px; color: var(--ink-soft); text-align: right; }

/* チャット冒頭のみなし同意注記 */
.chat-terms {
  font-size: 12px;
  color: var(--ink-soft); /* #6A7180 は白地で 4.6:1（AA） */
  line-height: 1.7;
  margin: 2px 0 10px 44px;
}
.chat-terms a { color: var(--gold-deep); text-decoration: underline; }

/* ---------- Sections (common) ---------- */
.section { padding: 84px 0; }
.section-light { background: var(--paper-warm); }

/* 規約・ポリシー本文は白地（可読性優先。LPの明暗リズムは section-light のまま） */
.section-doc { background: var(--paper); }
.section-navy { background: var(--navy-900); color: #fff; }

.section-title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: .14em;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 52px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 44px;
  height: 2px;
  background: var(--gold);
}
.section-title-left { text-align: left; }
.section-title-left::after { left: 0; transform: none; }

/* ---------- Reasons ---------- */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reason-card {
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-radius: 6px;
  padding: 44px 30px 40px;
  text-align: center;
}
.reason-icon {
  display: inline-flex;
  color: var(--gold);
  margin-bottom: 22px;
}
.reason-icon svg { width: 38px; height: 38px; }
.reason-card h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.reason-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ---------- Cases ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.case-photo { position: relative; aspect-ratio: 16 / 10.5; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(8, 15, 30, .82);
  color: #fff;
  font-size: 11px;
  letter-spacing: .16em;
  padding: 5px 12px;
  border-radius: 2px;
}
.case-info { padding: 16px 20px 18px; color: var(--ink); }
.case-meta {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.9;
  letter-spacing: .02em;
}
.case-price {
  margin-top: 10px;
  text-align: right;
  font-family: var(--serif);
  line-height: 1.2;
}
.case-price strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
}
.case-price .unit { font-size: 14px; margin-left: 3px; }
.case-price-label {
  text-align: right;
  font-size: 10.5px;
  color: var(--ink-soft);
  letter-spacing: .14em;
}
/* 事例カードは架空のサンプル。切り抜き・スクリーンリーダー・低コントラストの
   いずれでも「サンプル」が落ちないよう、写真上のバッジ・価格ラベル・前後の注記の
   3箇所に同じ事実を載せている（1箇所に頼ると、その1箇所を見落とした人には実例に見える）。 */
.case-sample {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #b4232a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  padding: 5px 12px;
  border-radius: 2px;
}
.case-lead-note {
  margin: -8px 0 26px;
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .04em;
}
.case-lead-note strong { color: #ffd7d9; }
.case-note {
  margin-top: 34px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .88);
  letter-spacing: .04em;
}

/* ---------- Flow + FAQ ---------- */
.flowfaq-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: start;
}
.flow-steps {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 6px;
}
.flow-num {
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: var(--paper);
}
.flow-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 12px;
}
.flow-icon svg { width: 34px; height: 34px; }
.flow-step h3 {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 8px;
  white-space: nowrap;
}
.flow-step p {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.8;
}
.flow-arrow {
  flex: none;
  align-self: center;
  color: #B9B2A2;
  font-size: 16px;
  padding-top: 34px;
}

.faq-list { border-top: 1px solid var(--line-warm); }
.faq-item { border-bottom: 1px solid var(--line-warm); }
.faq-item dt { list-style: none; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: .03em;
  text-align: left;
  padding: 17px 4px;
  cursor: pointer;
}
.faq-toggle {
  flex: none;
  color: var(--gold-deep);
  font-size: 15px;
  transition: transform .25s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 28px 18px 4px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.9;
}
.faq-item.open .faq-a { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy-950);
  background-image:
    linear-gradient(90deg, rgba(7, 14, 28, .94) 0%, rgba(7, 14, 28, .78) 50%, rgba(7, 14, 28, .94) 100%),
    url("../img/hero.webp?v=3f5505c7a0");
  background-size: cover;
  background-position: center 65%;
  padding: 64px 0;
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.cta-copy { text-align: center; }
.cta-copy h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .12em;
}
.cta-copy p {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .85);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .82);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr .9fr 1.3fr;
  gap: 36px;
}
.footer-brand .brand-text { font-size: 20px; }
.footer-brand-sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .85);
}
.footer-tagline {
  margin-top: 18px;
  font-size: 12px;
  line-height: 2;
  color: rgba(255, 255, 255, .55);
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav h3 {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 6px;
}
.footer-nav a {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact { text-align: left; }
.footer-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}
.footer-tel svg { width: 19px; height: 19px; color: var(--gold); }
.footer-tel-note {
  margin: 8px 0 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}
/* 宅地建物取引業者としての事業者表示（免許番号・商号・所在地） */
.footer-legal {
  margin-top: 52px;
  text-align: center;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
}

.footer-copy {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .global-nav { display: none; }
  .hero-inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 32px; }
  .hero-badges { justify-content: center; }
  .chat-card { width: 100%; max-width: 540px; margin: 0 auto; flex: none; }
  .flowfaq-grid { grid-template-columns: 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .header-cta { font-size: 11px; padding: 9px 14px; }
  .brand-sub { display: none; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .hero-copy h1 { font-size: 25px; }
  .hero-badges li { padding: 0 14px; }
  .badge-label { font-size: 11px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 21px; }
  .reason-grid, .case-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-wrap: wrap; gap: 20px 0; }
  .flow-step { flex: 1 1 40%; }
  .flow-arrow { display: none; }
  .cta-copy h2 { font-size: 21px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   下層ページ（abcが選ばれる理由／査定事例／ご相談の流れ／よくあるご質問）
   ---------------------------------------------------------
   ⚠ .doc は法務ページ（利用規約・プライバシーポリシー）の体裁。
     下層ページに .doc を使うと契約書のような見た目になり、LPと断絶する。
     ここではLPと同じ語彙（ゴールドの罫・セリフ見出し・カード）で組む。
   ========================================================= */

/* ── グローバルナビの現在地 ───────────────────────────── */
.global-nav a[aria-current="page"] {
  color: var(--gold-light);
}
.global-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--gold);
}

/* ── ページ冒頭のリード文 ─────────────────────────────── */
.lead-in {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-soft);
}

/* ── 番号つきの解説ブロック（選ばれる理由）───────────── */
.detail-list {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
}
.detail-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 22px;
  padding: 30px 32px;
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-left: 3px solid var(--gold);
}
.detail-item > :not(.detail-num) { grid-column: 2; }
.detail-num {
  /* ⚠ span 2 にすると、3つ目以降の子（2つ目の <p>）が自動配置で
     row3/col1（56pxの番号カラム）へ回り、1〜2文字ずつ縦に流れる。
     実際に reasons.html の「停止いたします」の段落が desktop で崩れた。 */
  grid-row: 1 / -1;
  grid-column: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-text);
  border: 1px solid var(--line-warm);
  border-radius: 50%;
}
.detail-item h2 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
}
.detail-item p { font-size: 14.5px; line-height: 2; color: var(--ink); }
.detail-item p + p { margin-top: 12px; }

/* ── 縦並びの手順（ご相談の流れ）─────────────────────── */
.flow-detail { max-width: 820px; margin: 0 auto; list-style: none; }
.flow-detail > li {
  position: relative;
  padding: 0 0 36px 74px;
}
.flow-detail > li::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 1px;
  background: var(--line-warm);
}
.flow-detail > li:last-child { padding-bottom: 0; }
.flow-detail > li:last-child::before { display: none; }
.flow-detail .step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  /* ⚠ 白抜き＋ゴールド地は 1.84〜2.62:1 で読めない。LPの .flow-num と同じ
     「白地にゴールド文字＋ゴールド枠」に揃える（5.02:1）。 */
  color: var(--gold-text);
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.flow-detail h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  padding-top: 12px;
  margin-bottom: 8px;
}
.flow-detail p { font-size: 14.5px; line-height: 2; }
.flow-detail .step-note {
  margin-top: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border-left: 2px solid var(--line-warm);
}

/* ── 開いたままのQ&A（よくあるご質問）──────────────── */
.qa-wrap { max-width: 860px; margin: 0 auto; }
.qa-list { margin: 0 0 34px; }
.qa-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-warm);
}
.qa-item:first-child { padding-top: 0; }
.qa-q {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}
.qa-a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink);
}
.qa-mark {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: var(--gold-text);
}
.qa-a .qa-mark { color: var(--ink-soft); }
.qa-a a { color: var(--gold-text); text-decoration: underline; }

/* ── LPの各セクションから下層ページへ ─────────────────── */
.section-more { margin-top: 36px; text-align: center; }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--gold-text);
  border-bottom: 1px solid var(--gold);
}
.section-navy .more-link { color: var(--gold-light); }
.more-link .arrow { transition: transform .2s ease; }
.more-link:hover .arrow { transform: translateX(4px); }

@media (max-width: 767px) {
  .lead-in { margin-bottom: 36px; font-size: 14.5px; }
  .detail-item { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .detail-num { grid-row: auto; width: 46px; height: 46px; font-size: 19px; }
  .flow-detail > li { padding-left: 58px; }
  .flow-detail .step-num { width: 44px; height: 44px; font-size: 17px; }
  .flow-detail > li::before { left: 21px; top: 46px; }
  .qa-q { font-size: 16px; }
}

/* 手順の外に置く注記（.step-note は <li> の中で「その手順の注記」に読まれる） */
.flow-note {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line-warm);
  border-left: 3px solid var(--gold);
}

/* ===== フローティング査定チャット（ランチャー・コールアウト・吹き出しポップアップ） ===== */
#fc-launcher {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #0B0B10;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fc-pulse 2.5s infinite cubic-bezier(.4, 0, .2, 1);
}
#fc-launcher img { width: 36px; height: auto; display: block; }
#fc-launcher:hover { animation: none; transform: scale(1.1); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
@keyframes fc-pulse {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
  50% { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
}
@media (prefers-reduced-motion: reduce) { #fc-launcher { animation: none; } }

.fc-callout {
  cursor: pointer;
  position: fixed;
  right: 108px;
  bottom: 40px;
  z-index: 9990;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 12px 30px 12px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  max-width: 240px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}
/* ロボットへ向く尻尾（枠線付き=2枚の三角を重ねる） */
.fc-callout::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  margin-top: -10px;
  border: 10px solid transparent;
  border-left-color: var(--ink);
  border-right: 0;
}
.fc-callout::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  margin-top: -7px;
  border: 7px solid transparent;
  border-left-color: var(--paper);
  border-right: 0;
}
.fc-callout-x {
  position: absolute;
  right: 4px;
  top: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1;
  padding: 4px;
}

#fc-popup {
  position: fixed;
  right: 30px;
  bottom: 108px;
  z-index: 9989;
  opacity: 1;
  transition: opacity .35s ease, visibility 0s linear 0s;
}
#fc-popup.fc-faded {
  opacity: 0;
  visibility: hidden; /* transition末尾で消える=フォーカス/クリックも受けない */
  transition: opacity .35s ease, visibility 0s linear .35s;
}
@media (prefers-reduced-motion: reduce) {
  #fc-popup, #fc-popup.fc-faded { transition: none; }
}
#fc-popup::after {
  content: "";
  position: absolute;
  bottom: -15px;
  right: 30px;
  border: 17px solid transparent;
  border-top-color: var(--paper);
  border-bottom: 0;
}
.fc-bubble {
  position: relative;
  /* 大きな画面では中身ごと拡大する（2026-09-02 オーナー報告: 1900px 幅の表示で小さく見える）。
     600px 固定だと 1898x905 で画面の 32% x 54% にしかならない。zoom は幅・文字・余白を一括で
     スケールするので、レイアウトを変えずに「125% 表示」と同じ見え方になる。
     ⚠ zoom を掛けると要素内の 100vw/100vh は **zoom 倍の物理 px** で描かれるため、
        幅と高さの上限は zoom で割って画面に収める（下の max-height も同様）。 */
  --fc-zoom: 1;
  zoom: var(--fc-zoom);
  width: min(600px, calc((100vw - 40px) / var(--fc-zoom)));
  /* 下端固定なので「画面高 - 確保分」を超えない。確保分の内訳:
     下 108px（#fc-popup の bottom = ランチャー64px+余白）＋ 上 92px（sticky .site-header 67px + 余白25px）。
     ヘッダー分を確保しないと、画面高が約730px未満のとき（Windows 150%表示の 1248x625 など）
     ポップアップがヘッダーとCTAに被る＝「はみ出て」見える（2026-08-28 オーナー報告）。

     ⚠ dvhの出し分けは必ず @supports で行うこと。var() を含む宣言はパース時に無条件で有効と
     みなされる（置換後に無効と分かっても宣言は捨てられない）ため、「vh版→dvh版」を2行並べる
     従来のフォールバックが効かず、dvh非対応ブラウザでは max-height が none に落ちる。
     = 上限なしで伸びて×ボタンごと画面外へ出る（2026-08-28 critic HIGH-1・実測確認済み） */
  --fc-reserve: 200px;
  max-height: min(calc((100vh - var(--fc-reserve)) / var(--fc-zoom)), 780px);
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fc-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: none;
  font-size: 20px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}
/* 高さが足りないときに縮むのは会話本文だけ。見出し・入力欄・SSL行は常に見える位置に残す
   （.fc-slot 自体の overflow-y は、本文を縮めてもなお入り切らない場合の最後の逃げ道） */
.fc-slot {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
/* 「縮まない」を flex の自動最小サイズ任せにせず明示する。
   将来この3つのどれかに overflow が付くとスクロールコンテナ化して自動最小高が0になり、
   黙って縮み始めるため（2026-08-28 critic LOW-1） */
.fc-slot .chat-head,
.fc-slot .chat-input,
.fc-slot .chat-ssl { flex: none; }
.fc-slot .chat-head { padding-right: 30px; } /* ×ボタンと「1 / 4」の重なり回避 */
.fc-slot .chat-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  box-shadow: none;
  padding: 24px 24px 16px;
  scroll-margin-top: 0;
}
/* 素の .chat-body は min-height:320px。その下限が立ったままだと低い画面でカードが縮めず、
   入力欄がスクロール外へ追い出される。下限自体を画面高に連動させ、
   高い画面では従来どおり320px（見た目を変えない）、低い画面では下限を下げて縮ませる */
.fc-slot .chat-body {
  flex: 0 1 auto;
  min-height: min(320px, calc(100vh - 380px));
}
/* dvhの出し分けはここに集約する（.fc-bubble のコメント参照。2行フォールバックは使わない） */
@supports (height: 1dvh) {
  .fc-bubble { max-height: min(calc((100dvh - var(--fc-reserve)) / var(--fc-zoom)), 780px); }
  .fc-slot .chat-body { min-height: min(320px, calc(100dvh - 380px)); }
}

/* 画面高が足りないとき（Windows 150%表示の 625px、13インチノート等）は、
   「ランチャーの上に浮かせる」見た目より「会話が全部見える」ことを優先する。
   ポップアップを画面下端近くまで下げ、開いている間はランチャーを隠す（閉じるは×／Esc／外側クリック）。
   こうしないと 625px では約48px 入り切らず、開いた瞬間に挨拶文の1行目が切れる */
/* 幅 1600px 以上かつ高さ 850px 以上で 1.25 倍、2200px 以上で 1.35 倍。高さが足りない画面では拡大しない
   （拡大しても上限で潰れて本文だけ狭くなる）。 */
@media (min-width: 1600px) and (min-height: 850px) { .fc-bubble { --fc-zoom: 1.25; } }
@media (min-width: 2200px) and (min-height: 1000px) { .fc-bubble { --fc-zoom: 1.35; } }
@media (min-width: 481px) and (max-height: 700px) {
  #fc-popup { bottom: 24px; }
  #fc-popup::after { display: none; } /* 尻尾はランチャーを指すので、隠している間は出さない */
  body.fc-open #fc-launcher { display: none; }
  .fc-bubble { --fc-reserve: 116px; } /* 下24 + 上92（sticky ヘッダー回避分） */
}
/* 横向きスマホ等、ヘッダー分まで空けると会話が読めない高さでは、可読性をヘッダー回避より優先 */
@media (min-width: 481px) and (max-height: 520px) {
  .fc-bubble { --fc-reserve: 60px; }
}

@media (max-width: 480px) {
  #fc-launcher { right: 16px; bottom: 16px; }
  /* シート展開中は送信ボタンに被るのでランチャーを隠す（閉じるは×で） */
  body.fc-open #fc-launcher { display: none; }
  .fc-callout { right: 90px; bottom: 28px; }
  #fc-popup { right: 0; left: 0; bottom: 0; }
  #fc-popup::after { display: none; }
  .fc-bubble { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  @supports (height: 1dvh) {
    .fc-bubble { max-height: 92dvh; }
  }
}
