/* ============================================================
   公開サイトのスタイル
   藍（あい）と生成り（きなり）を基調に、見出しは明朝体。
   色を変えるときは :root の変数だけを編集する。
   ============================================================ */
:root {
  --ai: #1f3a5f;
  --ai-deep: #142842;
  --ai-soft: #e8edf4;
  --shu: #b3432a;
  --shu-deep: #922f19;
  --kin: #9a7434;
  --ink: #1d2630;
  --muted: #5a6470;
  --line: #e2dbcd;
  --bg: #faf7f0;
  --paper: #ffffff;
  --tint: #f3ede1;
  --ok-bg: #e5f1e8; --ok-fg: #1e6a39;
  --warn-bg: #fbefd9; --warn-fg: #7f520d;
  --gray-bg: #ecebe8; --gray-fg: #55544f;
  --sample-bg: #eee9f6; --sample-fg: #533b85;
  --err: #b42318; --err-bg: #fdecea;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "BIZ UDPMincho", serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.8; letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; }
a { color: var(--ai); }
a:hover { color: var(--shu); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.45; letter-spacing: 0.04em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--kin); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.note { font-size: 13px; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 30px; height: 28px; border-radius: 3px 3px 0 0; flex: none;
  background: repeating-linear-gradient(90deg, var(--ai) 0 8px, transparent 8px 11px);
  border-top: 4px solid var(--kin);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0.12em; }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-size: 14px; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { background: var(--tint); color: var(--ai); }
.nav a[aria-current="page"] { color: var(--ai); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ai); border-radius: 0; }
.nav a.nav-cta { background: var(--ai); color: #fff; margin-left: 8px; border-radius: 999px; padding: 8px 18px; }
.nav a.nav-cta:hover { background: var(--ai-deep); color: #fff; }
.nav-mobile { display: none; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; } .burger::after { top: 5px; }
@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile[open] .nav {
    position: absolute; left: 0; right: 0; top: 68px; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 40, 66, 0.08);
  }
  .nav-mobile[open] .nav a { padding: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-mobile[open] .nav a.nav-cta { margin: 12px 0 0; text-align: center; border-radius: 999px; border: none; }
  .logo-name { font-size: 20px; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.4;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { background: var(--shu-deep); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ai); border-color: var(--ai); }
.btn-ghost:hover { background: var(--ai); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-link { font-size: 14px; color: var(--muted); }

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--ai); color: #fff; position: relative; overflow: hidden;
  border-bottom: 6px solid var(--kin);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 42%;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 56px, transparent 56px 64px);
  pointer-events: none;
}
.hero-in { padding: 88px 0 96px; position: relative; z-index: 1; }
.hero .kicker { color: #e9d7b0; }
.hero-title { font-size: clamp(32px, 6vw, 56px); letter-spacing: 0.08em; margin-bottom: 24px; }
.hero-lead { max-width: 640px; font-size: 17px; color: #e6ecf4; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.hero .btn-ghost:hover { background: #fff; color: var(--ai); }

.kicker { font-size: 13px; letter-spacing: 0.2em; color: var(--kin); font-weight: 600; margin-bottom: 8px; }

/* ---------- セクション ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-tint { background: var(--tint); }
.section-ink { background: var(--ai-deep); color: #fff; }
.section-ink .sec-title { color: #fff; }
.section-form { background: var(--paper); border-top: 1px solid var(--line); }
.sec-title { font-size: clamp(22px, 3.2vw, 30px); margin-bottom: 28px; }
.sec-title::after { content: ""; display: block; width: 40px; height: 3px; background: var(--kin); margin-top: 14px; }
.center .sec-title::after, .thanks .sec-title::after { margin-inline: auto; }
.sec-lead { color: var(--muted); max-width: 720px; margin-top: -8px; margin-bottom: 28px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(26px, 4.2vw, 38px); margin-bottom: 12px; }
.page-head .lead { color: var(--muted); max-width: 760px; margin: 0; }

/* 引き継げるもの */
.assets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.assets li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; border-top: 3px solid var(--ai); }
.assets h3 { font-size: 18px; margin-bottom: 6px; }
.assets p { font-size: 14px; color: var(--muted); margin: 0; }
.assets-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* 選ばれる理由 */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.reasons li { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 20px; }
.reason-no { font-family: var(--serif); font-size: 40px; color: #e0c48f; line-height: 1; display: block; margin-bottom: 12px; }
.reasons h3 { font-size: 20px; }
.reasons p { color: #d5deea; font-size: 15px; margin: 0; }

/* 流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; counter-reset: flow; }
.flow li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.flow-no { font-family: var(--serif); color: var(--kin); font-size: 26px; display: block; line-height: 1; margin-bottom: 10px; }
.flow h3 { font-size: 17px; margin-bottom: 6px; }
.flow p { font-size: 14px; color: var(--muted); margin: 0; }

/* 料金 */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.price-card h3 { font-size: 16px; color: var(--muted); margin-bottom: 4px; font-family: var(--sans); }
.price { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ai); margin-bottom: 10px; line-height: 1.4; }
.price-card p:last-child { font-size: 14px; color: var(--muted); margin: 0; }

/* 売り・買いの分岐 */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.split-card { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 32px; transition: border-color 0.15s, transform 0.15s; }
.split-card:hover { border-color: var(--ai); transform: translateY(-2px); color: var(--ink); }
.split-card h2 { font-size: 24px; }
.split-card p:not(.kicker) { color: var(--muted); }
.split-sell { border-left: 6px solid var(--shu); }
.split-buy { border-left: 6px solid var(--ai); }
.split-more { font-weight: 600; color: var(--ai); }
.split-more::after { content: " →"; }

/* ---------- 案件カード ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.card:hover { border-color: var(--ai); box-shadow: 0 10px 24px rgba(20, 40, 66, 0.08); transform: translateY(-2px); }
.card.is-closed { opacity: 0.72; }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 20px 22px 16px; text-decoration: none; color: var(--ink); }
.card-link:hover { color: var(--ink); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-no { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.card-title { font-size: 18px; margin-bottom: 12px; }
.card-meta { margin: 0 0 12px; display: grid; gap: 2px; font-size: 14px; }
.card-meta div { display: flex; gap: 10px; }
.card-meta dt { color: var(--muted); width: 3.5em; flex: none; }
.card-meta dd { margin: 0; }
.chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; background: var(--ai-soft); color: var(--ai); padding: 2px 10px; border-radius: 999px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.card-deal { font-size: 13px; color: var(--muted); }
.card-price { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ai); text-align: right; }
.card-price small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; color: var(--muted); }
.card-date { font-size: 11px; color: var(--muted); margin: 8px 0 0; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 4px; line-height: 1.6; white-space: nowrap; }
.b-open { background: var(--ok-bg); color: var(--ok-fg); }
.b-nego { background: var(--warn-bg); color: var(--warn-fg); }
.b-closed { background: var(--gray-bg); color: var(--gray-fg); }
.b-sample { background: var(--sample-bg); color: var(--sample-fg); }
.sample-note { background: var(--sample-bg); color: var(--sample-fg); border-radius: 8px; padding: 10px 16px; font-size: 14px; margin-bottom: 20px; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 32px; text-align: center; color: var(--muted); }

/* ---------- 絞り込み ---------- */
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 16px; align-items: end; margin-bottom: 20px; }
.filter label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.filter-check { align-self: center; }
.filter-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.result-count { font-size: 14px; color: var(--muted); }
.result-count strong { font-size: 20px; color: var(--ink); font-family: var(--serif); }

/* ---------- 案件詳細 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.case { padding: 20px 0 56px; }
.case-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.case-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.case-head h1 { font-size: clamp(24px, 3.8vw, 34px); margin-bottom: 8px; }
.case-date { font-size: 13px; color: var(--muted); margin: 0; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.case-sec { margin-bottom: 36px; }
.case-sec h2 { font-size: 20px; border-left: 4px solid var(--ai); padding-left: 12px; }
.case-side { position: sticky; top: 92px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 10px; }
.side-label { font-size: 12px; color: var(--muted); margin: 0; }
.side-price { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ai); margin: 0 0 8px; line-height: 1.3; }
.case-form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
@media (max-width: 899px) {
  .case-layout { grid-template-columns: 1fr; }
  .case-side { position: static; }
}

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

.notice { background: var(--tint); border-radius: 10px; padding: 16px 20px; font-size: 15px; }
.notice p:last-child { margin: 0; }
.notice-lock { border-left: 4px solid var(--kin); border-radius: 0 10px 10px 0; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.req, .opt { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; }
.req { background: var(--shu); color: #fff; }
.opt { background: var(--gray-bg); color: var(--gray-fg); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #cfc6b5; border-radius: 8px; padding: 11px 12px;
}
select { padding-right: 32px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.18); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); background: var(--err-bg); }
.field-error { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.field-help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ai); }
.agree { background: var(--tint); border-radius: 8px; padding: 14px 16px; }
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.alert-error { background: var(--err-bg); color: var(--err); }
.form-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 読み物 ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 14px 48px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 8px; border-left: 3px solid var(--shu); border-bottom: 3px solid var(--shu); transform: rotate(-45deg); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--serif); color: var(--shu); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px 44px; margin: 0; color: var(--muted); }
.prose h2 { font-size: 20px; margin-top: 36px; }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 4px; }
.thanks { padding: 96px 0; }
.thanks h1 { font-size: clamp(24px, 4vw, 32px); }
.thanks .btn { margin: 6px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ai-deep); color: #cdd6e2; margin-top: 0; }
.footer-in { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 48px 0 32px; }
.footer-name { font-family: var(--serif); font-size: 22px; color: #fff; letter-spacing: 0.12em; margin: 0 0 4px; }
.footer-catch { font-size: 14px; margin: 0; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; }
.footer-nav a { color: #cdd6e2; font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; font-size: 12px; border-top: 1px solid rgba(255,255,255,0.12); margin: 0; padding: 16px; }
@media (max-width: 720px) { .footer-in { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .hero-in { padding: 64px 0 72px; }
  .hero-cta .btn { width: 100%; }
  .case-form { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
