/* デザインの決まり(docs/design/README.md)
   色: 背景・主役の紺・文字・ボタンの4色。LINEのボタンだけサービスの緑を使う
   文字: 大見出し・見出し・本文16px・注記13pxの4段
   余白: 8pxの倍数。セクションの上下はパソコン96px、スマホ56px
   影・グラデーション・半透明のカードは使わない */
:root {
  --paper: #f7f4ec;
  --forest: #1b3358;
  --ink: #1a2230;
  --cta: #c7441c;
  --cta-hover: #a53512;
  --on-dark: #f7f4ec;
  --line: #d5dae2;
  --tint: #ebeef3;
  --surface: #ffffff;
  --danger: #b3261e;
  --line-green: #06c755;
  --line-green-hover: #05b34c;
  --line-ink: #08291a;
  --fs-display: clamp(1.75rem, 4.4vw, 2.75rem);
  --fs-heading: clamp(1.5rem, 2.6vw, 1.75rem);
  --fs-body: 1rem;
  --fs-note: .8125rem;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
}
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.4; }
h2 { font-size: var(--fs-heading); margin: 0 0 32px; }
h3 { font-size: var(--fs-body); margin: 0 0 8px; line-height: 1.6; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
[hidden] { display: none !important; }

.preview-bar { background: #fff3c4; color: #5c4400; font-size: var(--fs-note); padding: 8px 20px; text-align: center; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: var(--fs-body); color: var(--forest); text-decoration: none; white-space: nowrap; }
.logo__mark { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--forest); }
/* 狭い画面ではロゴ側を縮め、予約ボタンが画面外に出ないようにする */
.logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.site-header .btn { flex: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-column { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--forest); border-radius: 4px; background: var(--surface); color: var(--forest); font-size: var(--fs-note); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-column:hover { background: var(--tint); }
.header-column[aria-current="page"] { background: var(--forest); color: var(--on-dark); }
@media (min-width: 720px) {
  .site-header__actions { gap: 12px; }
  .header-column { padding-inline: 16px; }
}
/* スマホではロゴを切らないよう、ボタンを詰める */
@media (max-width: 419px) {
  .site-header__inner { gap: 8px; }
  .site-header__actions { gap: 6px; }
  .site-header .btn--small { padding-inline: 10px; }
  .header-column { padding-inline: 10px; }
  .header-column svg { display: none; }
}
@media (max-width: 359px) {
  .logo { gap: 6px; font-size: var(--fs-note); }
  .site-header .btn--small, .header-column { padding-inline: 8px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px; border: 0; border-radius: 4px; background: var(--cta); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--cta-hover); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: var(--fs-note); white-space: nowrap; }
.btn--large { min-height: 56px; padding: 8px 32px; }
.btn--block { width: 100%; }
.btn--line { background: var(--line-green); color: var(--line-ink); }
.btn--line:hover { background: var(--line-green-hover); }

.hero { background: var(--forest); color: var(--on-dark); padding-block: 32px 40px; }
.hero__grid { display: grid; gap: 24px; }
.eyebrow { display: inline-block; margin: 0 0 8px; font-size: var(--fs-note); font-weight: 700; letter-spacing: .06em; color: var(--forest); }
.hero .eyebrow { color: var(--on-dark); }
.hero h1 { font-size: var(--fs-display); margin: 0 0 16px; color: #fff; text-wrap: initial; }
.hero__lead { max-width: 40em; margin-bottom: 16px; }
.assurances { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: var(--fs-note); font-weight: 600; }
.assurances li::before { content: "✓"; margin-right: 4px; }

.book-card { padding: 24px 20px; border-radius: 4px; background: var(--surface); color: var(--ink); }
.book-card__title { margin: 0 0 16px; font-family: var(--serif); font-size: var(--fs-heading); font-weight: 600; line-height: 1.4; }
.book-card__steps { margin-bottom: 16px; counter-reset: book; }
.book-card__steps li { position: relative; padding: 4px 0 4px 32px; font-weight: 600; counter-increment: book; }
.book-card__steps li::before { content: counter(book); position: absolute; left: 0; top: 4px; font-family: var(--serif); color: var(--forest); }
.book-card__alts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 16px 0 0; font-size: var(--fs-note); }
.book-card__note { margin: 8px 0 0; font-size: var(--fs-note); line-height: 1.7; }

.lead-form { background: var(--surface); color: var(--ink); border-radius: 4px; padding: 24px 20px; border: 1px solid var(--line); }
.progress__label { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: var(--fs-note); font-weight: 700; color: var(--forest); }
.progress__note { font-weight: 400; color: var(--ink); }
.progress__track { height: 4px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.progress__bar { height: 100%; background: var(--forest); transition: width .25s; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 16px; font-family: var(--serif); font-size: var(--fs-heading); font-weight: 600; line-height: 1.4; outline: none; word-break: auto-phrase; }
.step__hint { margin: -8px 0 16px; font-size: var(--fs-note); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 56px; height: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-weight: 600; line-height: 1.4; text-align: center; transition: border-color .12s, background .12s; }
.choice:hover span { border-color: var(--forest); }
.choice input:focus-visible + span { outline: 3px solid var(--cta); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--forest); background: var(--tint); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 4px; font-weight: 700; }
.field input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; color: var(--ink); }
.field input:focus { border-color: var(--forest); outline: 2px solid var(--forest); outline-offset: -1px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 4px 0 0; font-size: var(--fs-note); font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }
.field--trap { position: absolute; left: -9999px; }
.consent { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-size: var(--fs-note); line-height: 1.7; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }
.consent + .field__error { margin-bottom: 8px; }
.form-alert { margin: 8px 0 16px; padding: 8px 12px; border: 1px solid var(--danger); border-radius: 4px; color: var(--danger); font-weight: 600; }
.lead-form .btn { margin-top: 8px; }
.reassure { margin: 16px 0 0; font-size: var(--fs-note); text-align: center; }
.back { display: block; margin-top: 16px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--fs-note); cursor: pointer; text-decoration: underline; }

.section { padding-block: 56px; }
.section--tint { background: var(--tint); }
.section-cta { margin: 32px 0 0; text-align: center; }

.pains { border-top: 1px solid var(--line); }
.pains li { position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line); font-weight: 600; }
.pains li::before { content: "✓"; position: absolute; left: 4px; top: 16px; color: var(--forest); }

/* カードをやめ、罫線で区切る */
.cards { border-top: 1px solid var(--line); counter-reset: card; }
.card { padding: 24px 0; border-bottom: 1px solid var(--line); }
.card p { margin: 0; }
.card__meta { margin-bottom: 8px !important; font-size: var(--fs-note); font-weight: 700; color: var(--forest); }
.card h3 { color: var(--forest); }
/* 相談テーマは番号を付けて縦に並べる */
.cards--four .card { position: relative; padding-left: 48px; counter-increment: card; }
.cards--four .card::before { content: counter(card, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-family: var(--serif); color: var(--forest); }

.consult-photo { margin: 0; background: var(--paper); }
.consult-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 38% 50%; }
.consult-photo figcaption { padding-block: 8px 0; font-size: var(--fs-note); }


.prose-block { max-width: 40em; }
.prose-block p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; border-top: 1px solid var(--ink); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: var(--fs-note); }
.compare .is-us > * { border-bottom: 1px solid var(--ink); font-weight: 700; }

.flow { border-top: 1px solid var(--line); counter-reset: flow; }
.flow li { position: relative; padding: 24px 0 24px 48px; border-bottom: 1px solid var(--line); counter-increment: flow; }
.flow li::before { content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 24px; font-family: var(--serif); color: var(--forest); }
.flow p { margin: 0; }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stats li { padding-top: 16px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: var(--fs-heading); font-weight: 600; color: var(--forest); }
.stats span { display: block; }
.stats small { display: block; font-size: var(--fs-note); }

.faq { max-width: 40em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 32px 16px 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; color: var(--forest); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 8px; }

.closing { padding-block: 56px 72px; background: var(--forest); color: var(--on-dark); text-align: center; }
.closing h2 { color: #fff; margin-bottom: 16px; }

.site-footer { padding-block: 32px 96px; background: var(--ink); color: var(--on-dark); font-size: var(--fs-note); }
.site-footer__brand { font-family: var(--serif); font-size: var(--fs-body); color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.site-footer a { color: var(--on-dark); }
.fineprint { margin: 16px 0 0; font-size: var(--fs-note); line-height: 1.7; }
.site-footer .fineprint { color: var(--on-dark); }

.sticky-cta { position: fixed; inset: auto 0 0; z-index: 15; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }

.prose { max-width: 40em; }
.prose h1 { font-size: var(--fs-display); margin: 0 0 16px; }
.prose h2 { font-size: var(--fs-heading); margin: 2em 0 .6em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.prose th, .prose td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose tbody th { width: 30%; }
.page-legal .site-header .btn, .page-thanks .site-header .btn { display: none; }

.reserve { max-width: 760px; }
.reserve h1 { font-size: var(--fs-heading); margin: 0 0 16px; }
.reserve__alts { margin-top: 24px; font-size: var(--fs-note); text-align: center; }
.apply-form { max-width: 480px; margin-top: 16px; }
.closing .btn, .section-cta .btn { min-width: min(100%, 320px); }

/* 住宅購入の収支シミュレーター */
.hero--diag { text-align: center; }
.hero--diag h1 { margin-bottom: 16px; }
.hero--diag .hero__lead { margin-inline: auto; }
.diag-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.diag-badges li { padding: 4px 12px; border: 1px solid var(--on-dark); border-radius: 999px; font-size: var(--fs-note); font-weight: 700; }
.hero .diag-start { background: var(--paper); color: var(--forest); min-width: min(100%, 320px); }
.hero .diag-start:hover { background: #fff; }
.diag-start__note { margin: 8px 0 0; font-size: var(--fs-note); }


.diag-gift { margin-top: 48px; padding: 24px 20px; border: 2px solid var(--forest); border-radius: 4px; background: var(--surface); }
.diag-gift__badge { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--cta); color: #fff; font-size: var(--fs-note); font-weight: 700; }
.diag-gift__title { margin: 0 0 8px; font-family: var(--serif); font-size: var(--fs-heading); font-weight: 600; line-height: 1.5; color: var(--forest); }
/* LPから診断への案内 */
.btn--ghost { background: var(--surface); color: var(--forest); border: 2px solid var(--forest); }
.btn--ghost:hover { background: var(--tint); }
.diag-or { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-size: var(--fs-note); font-weight: 700; color: var(--forest); }
.diag-or::before, .diag-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.closing .diag-or { max-width: 320px; margin-inline: auto; color: var(--on-dark); }
.closing .diag-or::before, .closing .diag-or::after { background: var(--on-dark); opacity: .4; }
.closing .btn--ghost { max-width: 320px; margin-inline: auto; background: transparent; color: #fff; border-color: var(--on-dark); }
.closing .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.diag-banner { padding-block: 40px; background: var(--tint); border-block: 1px solid var(--line); }
.diag-banner__inner { display: grid; gap: 16px; justify-items: start; }
.diag-banner__marks { display: flex; gap: 8px; }
.diag-banner__marks span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--on-dark); font-family: var(--serif); font-weight: 600; }
.diag-banner__eyebrow { margin: 0 0 4px; font-size: var(--fs-note); font-weight: 700; color: var(--forest); }
.diag-banner h2 { margin: 0 0 8px; }
.diag-banner__copy p:last-child { margin: 0; max-width: 36em; }
.diag-banner__btn { background: var(--forest); width: 100%; }
.diag-banner__btn:hover { background: var(--ink); }
@media (min-width: 720px) {
  .diag-banner { padding-block: 56px; }
  .diag-banner__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .diag-banner__marks { display: grid; grid-template-columns: repeat(2, 40px); }
  .diag-banner__btn { width: auto; }
}

/* コラム */
.column-eyebrow { margin: 0 0 8px; font-size: var(--fs-note); font-weight: 700; letter-spacing: .06em; color: var(--forest); }
.column-title { font-size: var(--fs-display); margin: 0 0 16px; }
.column-lead { max-width: 40em; }
.column-list { max-width: 44em; margin-top: 32px; border-top: 1px solid var(--line); }
.column-item a { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.column-item a:hover .column-item__title { text-decoration: underline; }
.column-item__date { font-size: var(--fs-note); }
.column-item__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.5; color: var(--forest); word-break: auto-phrase; }
.column-item__desc { font-size: .9375rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: var(--fs-note); }
.column-body h1 { line-height: 1.45; word-break: auto-phrase; }
.column-meta { margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-note); }
.column-body h2 { padding-left: 12px; border-left: 4px solid var(--forest); line-height: 1.5; }
.column-body h3 { margin: 1.6em 0 .4em; font-size: 1.125rem; }
.column-body ol { list-style: decimal; padding-left: 1.6em; margin-bottom: 1em; }
.column-body li { margin-bottom: .4em; }
.column-note { margin: 1.6em 0; padding: 16px 20px; background: var(--tint); border-radius: 4px; }
.column-note p { margin: 0; }
.column-note p + p { margin-top: .6em; }
.column-sources { font-size: .9375rem; }
.column-fine { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* TimeRexが埋め込むインライン指定(width:100%、内側の min-width:550px)を上書きし、
   スマホでは画面幅いっぱいに広げて右端が切れないようにする */
#timerex_calendar { min-height: 480px; margin-top: 16px; }
#timerex_calendar > div { min-width: 0 !important; }
#timerex_calendar iframe { width: 100% !important; display: block; }
@media (max-width: 719px) {
  #timerex_calendar { width: calc(100% + 40px) !important; margin-inline: -20px; }
}

/* 比較表の右列には手数料の開示があるので、スマホでも横スクロールなしで読めるようにする */
@media (max-width: 719px) {
  .table-scroll { overflow-x: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { padding-block: 16px; border-bottom: 1px solid var(--line); }
  .compare .is-us { border-bottom-color: var(--ink); }
  .compare th, .compare td, .compare .is-us > * { padding: 0; border-bottom: 0; }
  .compare th { margin-bottom: 8px; }
  .compare td + td { margin-top: 8px; }
  .compare td::before { display: block; font-size: var(--fs-note); font-weight: 700; color: var(--forest); }
  .compare td:nth-child(2)::before { content: "向いていること"; }
  .compare td:nth-child(3)::before { content: "確認しておきたいこと"; }
}

@media (min-width: 720px) {
  .consult-photo img { aspect-ratio: 1672 / 465; object-position: center; }
  /* 16:9の写真は高くなりすぎないよう切り抜き、顔が切れないよう上側を残す */
  .consult-photo--tall img { aspect-ratio: 2 / 1; object-position: 50% 20%; }
  .section { padding-block: 96px; }
  .closing { padding-block: 96px; }
  h2 { margin-bottom: 40px; }
  .pains { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .pains li { border-top: 1px solid var(--line); border-bottom: 0; }
  .cards--four { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .cards--four .card { border-top: 1px solid var(--line); border-bottom: 0; }
  .cards--three { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 0; }
  .cards--three .card { border-top: 1px solid var(--line); border-bottom: 0; }
  .site-footer { padding-bottom: 32px; }
  .sticky-cta { display: none; }
}
@media (min-width: 940px) {
  .hero { padding-block: 72px; }
  .hero__grid { grid-template-columns: 1fr 440px; align-items: center; gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* シミュレーター */
.sim { display: grid; gap: 48px; max-width: 1080px; }
.sim-group { margin: 0 0 24px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); min-width: 0; }
.sim-group legend { padding: 0 8px; font-family: var(--serif); font-size: 1.125rem; font-weight: 600; color: var(--forest); }
.sim-field { margin-bottom: 16px; }
.sim-field label { display: block; margin-bottom: 4px; font-weight: 700; line-height: 1.6; }
.sim-input { display: flex; align-items: center; gap: 8px; }
.sim-input input { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #8a94a6; border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.125rem; text-align: right; }
.sim-input input:focus-visible { outline: 3px solid var(--cta); outline-offset: 1px; }
.sim-input__unit { flex: none; min-width: 3em; font-weight: 700; }
.sim-field__hint { margin: 4px 0 0; font-size: var(--fs-note); line-height: 1.7; }
.sim-form__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sim-form__actions .back { margin: 0; }
.sim-form__jump { font-weight: 700; }
.sim-result h2 { margin-bottom: 24px; }
.sim-hero { padding: 24px 20px; border-radius: 4px; background: var(--forest); color: var(--on-dark); text-align: center; }
.sim-hero__label { margin: 0 0 4px; font-size: var(--fs-note); font-weight: 700; }
.sim-hero__value { margin: 0; font-family: var(--serif); font-size: var(--fs-display); font-weight: 600; line-height: 1.3; }
.sim-hero__sub { margin: 4px 0 0; font-size: var(--fs-note); }
.sim-gauge { margin-top: 24px; }
.sim-gauge p { margin-bottom: 8px; }
.sim-gauge__bar { position: relative; height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.sim-gauge__bar i { position: absolute; inset: 0 auto 0 0; background: var(--forest); }
.sim-gauge__bar b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--paper); }
.sim-gauge__scale { display: flex; justify-content: space-between; margin: 4px 0 8px; font-size: var(--fs-note); }
.sim-gauge__band { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--tint); color: var(--forest); font-weight: 700; }
.sim-gauge__band--tight, .sim-gauge__band--heavy { background: #fff3c4; color: #5c4400; }
.sim-note { font-size: var(--fs-note); line-height: 1.8; }
.sim-warn { margin-top: 24px; padding: 16px; border: 1px solid #c9a227; border-radius: 4px; background: #fff8dc; }
.sim-warn__title { margin: 0 0 8px; font-weight: 700; }
.sim-warn li { position: relative; padding-left: 1.2em; }
.sim-warn li::before { content: "!"; position: absolute; left: 0; font-weight: 700; color: #7a5b00; }
.sim-h { margin: 48px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 1.125rem; color: var(--forest); }
.sim-list { margin: 0; }
.sim-row { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sim-row dt { font-size: var(--fs-note); font-weight: 700; }
.sim-row dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.5; }
.sim-row small { display: block; font-family: var(--sans); font-size: var(--fs-note); font-weight: 400; }
.sim-table { width: 100%; min-width: 420px; border-collapse: collapse; }
.sim-table th, .sim-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.sim-table thead th { font-size: var(--fs-note); }
.sim-chart { display: block; width: 100%; height: auto; margin-top: 8px; font-size: 12px; fill: var(--ink); }
.sim-chart__grid { stroke: var(--line); stroke-width: 1; }
.sim-chart__zero { stroke: var(--ink); stroke-width: 1.5; }
.sim-chart__buy { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linejoin: round; }
.sim-chart__rent { fill: none; stroke: #6b7587; stroke-width: 2; stroke-dasharray: 6 5; }
.sim-chart__warn { fill: var(--cta); stroke: #fff; stroke-width: 2; }
.sim-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 16px; font-size: var(--fs-note); font-weight: 700; }
.sim-legend span::before { content: ""; display: inline-block; width: 24px; margin-right: 8px; vertical-align: middle; border-top: 3px solid var(--forest); }
.sim-legend .sim-legend__rent::before { border-top: 2px dashed #6b7587; }
.sim-cta { margin-top: 48px; }
.sim-assumptions { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.sim-assumptions summary { cursor: pointer; font-weight: 700; }
.sim-assumptions ul { margin-top: 12px; }
.sim-assumptions li { position: relative; padding: 4px 0 4px 1em; font-size: var(--fs-note); line-height: 1.8; }
.sim-assumptions li::before { content: "・"; position: absolute; left: 0; }
.page-sim .site-footer { padding-top: 48px; }
@media (min-width: 900px) {
  .sim { grid-template-columns: minmax(340px, 400px) 1fr; align-items: start; gap: 56px; }
  .sim-form { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; padding-right: 8px; }
  .sim-form__jump { display: none; }
}

/* アイコンとイラスト(装飾。影・グラデーションは使わない) */
.icon { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--tint); color: var(--forest); }
.icon-badge .icon { width: 26px; height: 26px; }
.section--tint .icon-badge { background: var(--surface); }

.hero-art { display: none; width: min(100%, 360px); height: auto; margin: 8px 0 20px; color: var(--on-dark); opacity: .55; }
@media (min-width: 720px) { .hero-art { display: block; } }

.pains { display: grid; gap: 8px; border-top: 0; }
.pains li { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pains li::before { content: none; }
.pains .icon-badge { background: var(--tint); }

.cards--four, .cards--three { border-top: 0; display: grid; gap: 12px; }
.cards--four .card, .cards--three .card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cards--four .card::before { content: none; }
.card--icon, .card--case { display: flex; align-items: flex-start; gap: 16px; }
.card--icon > div, .card--case > div { min-width: 0; }
.card--icon h3 { margin-bottom: 4px; }
.section--tint .card .icon-badge { background: var(--tint); }

.outlook { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.outlook li:not(.outlook__arrow) { display: grid; justify-items: center; gap: 4px; padding: 20px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.outlook li strong { font-family: var(--serif); font-size: 1.125rem; color: var(--forest); }
.outlook li span:not(.icon-badge) { font-size: var(--fs-note); line-height: 1.7; }
.outlook .icon-badge { width: 64px; height: 64px; margin-bottom: 4px; background: var(--tint); }
.outlook .icon-badge .icon { width: 34px; height: 34px; }
.outlook__arrow { display: none; justify-content: center; color: var(--forest); }
.outlook__note { text-align: center; font-weight: 600; }

.flow li { padding-left: 0; padding-top: 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.flow li::before { content: none; }
.flow li .icon-badge { grid-row: 1 / span 2; }
.flow li h3, .flow li p { grid-column: 2; }

.sim-group legend { display: inline-flex; align-items: center; gap: 8px; }
.sim-group legend .icon { width: 1.25em; height: 1.25em; }

@media (min-width: 720px) {
  .pains { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .pains li { border: 1px solid var(--line); }
  .cards--four { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cards--three { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card--case { flex-direction: column; gap: 12px; }
  .outlook { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
  .outlook__arrow { display: flex; }
}
