/* A-Life 不動産コラム（blog.a-life-home.co.jp）
   色・書体は相談ページ（lp.a-life-home.co.jp/soudan/）と管理パンフレット2026版にそろえる（2026/09/28 代表「B」）。
   記事本文は読み物なので左寄せ。見出し下の短い装飾罫は使わない（2026/09/19 代表指摘）。 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1b2a4a;
  --bronze-deep: #a88a4a;  /* 白・クリーム地の上の金はこちら */
  --cream: #faf8f5;
  --beige: #f3eee3;
  --white: #ffffff;
  --text: #1c2130;         /* 本文をグレーにしない */
  --text-sub: #2f3646;
  --line: #d9d2c2;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--beige);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
/* 見出し・ボタンなど短い文字は文節で折り返す。本文の長い段落は keep-all にしない
   （日本語の長文に keep-all＋break-word を当てると熟語の中で割れる＝パターン辞書#18） */
h1, h2, h3, h4, .btn, .card-title, .hero-for, .hero-lead, .crumbs, .box-title {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: balance;
}
p, li, td, th, dd, blockquote { line-break: strict; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
a { color: var(--navy); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* ヘッダー（相談ページと同じ） */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 760px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo img { height: 28px; width: auto; }
.logo span { font-family: 'Noto Serif JP', serif; font-weight: 500; font-size: 13px; letter-spacing: .06em; white-space: nowrap; }
.header-tel {
  font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 16px;
  letter-spacing: .04em; color: var(--navy); text-decoration: none; white-space: nowrap;
}

/* 記事の見出し帯（クリーム地。ネイビーのベタ塗りはしない） */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 28px 20px 32px; }
.crumbs { font-size: 12px; color: var(--text-sub); margin-bottom: 14px; }
.crumbs a { color: var(--text-sub); }
.hero-for { font-size: 13px; color: var(--bronze-deep); margin-bottom: 8px; }
.hero-for a { color: inherit; }
.hero h1 {
  font-family: 'Noto Serif JP', serif; font-weight: 700; color: var(--navy);
  font-size: 24px; line-height: 1.55; letter-spacing: .02em;
}
.hero-lead { margin-top: 14px; font-size: 15px; color: var(--text-sub); }
.dates { margin-top: 14px; font-size: 13px; color: var(--text-sub); }
.dates span + span::before { content: "／"; margin: 0 4px; }

/* 本文 */
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 12px 56px; }
.article {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 4px 24px rgba(27,42,74,.06);
  padding: 24px 16px 32px;
}
.article > * + * { margin-top: 1.2em; }
.article h2 {
  font-family: 'Noto Serif JP', serif; font-weight: 700; color: var(--navy);
  font-size: 21px; line-height: 1.6;
  margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line);
}
.article h3 {
  font-family: 'Noto Serif JP', serif; font-weight: 700; color: var(--navy);
  font-size: 18px; line-height: 1.6; margin-top: 2em;
}
.article h4 { font-weight: 700; font-size: 16px; color: var(--navy); margin-top: 1.6em; }
.article h2 + *, .article h3 + *, .article h4 + * { margin-top: .8em; }
.article strong { font-weight: 700; color: var(--navy); }
.article ul, .article ol { padding-left: 0; list-style: none; }
.article ul > li { position: relative; padding-left: 20px; }
.article ul > li + li, .article ol > li + li { margin-top: .5em; }
.article ul > li::before {
  content: ""; position: absolute; left: 2px; top: .95em;
  width: 10px; height: 1px; background: var(--bronze-deep);
}
.article ol { counter-reset: n; }
.article ol > li { counter-increment: n; position: relative; padding-left: 30px; }
.article ol > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: 'Noto Serif JP', serif; font-size: 14px; color: var(--bronze-deep);
}
/* 結論などの囲み：上下に金の細線（パターン辞書「引用ボックス」） */
.article blockquote {
  background: var(--cream);
  border-top: 1px solid var(--bronze-deep); border-bottom: 1px solid var(--bronze-deep);
  padding: 16px 14px;
}
.article blockquote > * + * { margin-top: .6em; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.article hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.article .alife-cta-btn { padding: 14px 12px; font-size: 15px; text-wrap: balance; word-break: auto-phrase; overflow-wrap: normal; }
.article figure { margin: 1.6em 0; }
.article figure img { border-radius: 4px; border: 1px solid var(--line); margin: 0 auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.7; }
.article td, .article th { word-break: auto-phrase; }
.article td:first-child { min-width: 5.5em; }
.table-scroll.wide table { min-width: 560px; }
.table-scroll.wide td { white-space: nowrap; }
.article .scroll-hint { text-align: center; font-size: 12px; color: var(--text-sub); margin-top: 6px; }
@media (min-width: 768px) { .article .scroll-hint { display: none; } }
.article td, .article th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
.article tr:first-child td, .article th { background: var(--beige); font-weight: 700; color: var(--navy); }
.article tr:nth-child(2n+3) td { background: var(--cream); }

/* 記事の中の相談ボックス（T1-1 の alife-cta-*）。ネイビーの塗りはやめ、白カード＋ネイビーのボタン */
.article .alife-cta-block {
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px 18px; margin: 2em 0; text-align: center;
}
.article .alife-cta-text { font-size: 15px; text-align: left; margin: 0 0 14px; }
.btn, .article .alife-cta-btn {
  display: inline-block; background: var(--navy); color: var(--white) !important;
  font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 16px; letter-spacing: .04em;
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
}
.btn:hover, .article .alife-cta-btn:hover { opacity: .88; }

/* 記事下の著者と相談 */
.after { margin-top: 24px; display: grid; gap: 16px; }
.box {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 20px;
}
.box .box-label { font-size: 13px; color: var(--bronze-deep); margin-top: 0; }
.box .box-title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 18px; color: var(--navy); margin-top: 2px; line-height: 1.5; }
.box p { font-size: 15px; margin-top: 10px; }
.box .btn { margin-top: 16px; width: 100%; text-align: center; }
.box .box-note { font-size: 13px; color: var(--text-sub); line-height: 1.8; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.author { display: flex; gap: 14px; align-items: center; }
.author-mark {
  flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 20px;
}

/* 一覧（トップ・カテゴリー） */
.list { display: grid; gap: 14px; }
.card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 20px; text-decoration: none; color: var(--text);
  box-shadow: 0 4px 24px rgba(27,42,74,.04);
}
.card:hover { border-color: var(--navy); }
.card-cat { font-size: 12px; color: var(--bronze-deep); }
.card-title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 18px; line-height: 1.6; color: var(--navy); margin-top: 4px; }
.card-desc { font-size: 14px; color: var(--text-sub); margin-top: 8px; line-height: 1.8; }
.card-date { font-size: 12px; color: var(--text-sub); margin-top: 10px; }
.section-title { font-family: 'Noto Serif JP', serif; font-weight: 700; font-size: 18px; color: var(--navy); margin: 32px 4px 12px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats a {
  font-size: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; text-decoration: none; color: var(--navy);
}

/* フッター（相談ページと同じ） */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); text-align: center; padding: 40px 20px 32px; }
.footer-logo { height: 26px; width: auto; margin: 0 auto 16px; }
.site-footer p { font-size: 12px; line-height: 1.9; }
.site-footer a { color: rgba(255,255,255,.9); }
.footer-links { margin-top: 12px; }
.footer-links a + a { margin-left: 1em; }
.footer-copy { margin-top: 14px; color: rgba(255,255,255,.45); font-size: 11px !important; }

@media (min-width: 768px) {
  .article blockquote { padding: 20px 24px; }
  .hero-inner { padding: 44px 24px 44px; }
  .hero h1 { font-size: 30px; }
  .wrap { padding: 32px 24px 72px; }
  .article { padding: 44px 48px 52px; }
  .article h2 { font-size: 23px; }
  .after { grid-template-columns: 1fr 1fr; }
}
