/* =========================================================
   13souzoku.com 相続コラム 共通スタイル
   方針: 紺と金を基調に、飾りは少なく「読める・探せる・比べられる」
   PC: 左2/3 本文 + 右1/3 事務所バナー(追従) / スマホ: 1列
   ========================================================= */
:root {
  --navy: #121f3e;
  --navy-700: #1f3260;
  --navy-50: #f1f4f9;
  --navy-100: #e4e9f2;
  --gold: #b99d52;
  --gold-ink: #94782f;      /* 白地で読ませる金(番号など) */
  --gold-soft: #d9c79a;
  --gold-50: #f8f4e9;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #23262d;
  --ink-sub: #5b6170;
  --ink-mute: #8a8f9a;
  --line: #e4e0d6;
  --line-strong: #d3cdbd;
  --alert: #b4472a;
  --orange: #c95a0b;                    /* 本文の強調(白地で読める濃さ) */
  --orange-mark: rgba(247, 150, 46, .32); /* マーカー線 */
  --green: #06c755;
  --green-700: #05a647;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(20,74,52, .10);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 18px; line-height: 2; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy); }
p { margin: 0 0 18px; }

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

/* 読了バー */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
}
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }

/* 旧デザインのスクロール表示演出は使わない(本文が消えたままになるのを防ぐ) */
.reveal { opacity: 1; transform: none; }

/* ---------- ヘッダー ---------- */
header.site { background: var(--paper); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { display: block; height: 36px; width: auto; }
.brand a { display: block; }
.header-tel { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink-sub); line-height: 1.4; }
.header-tel-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy);
  font-size: 18px; font-weight: 700; letter-spacing: .03em; text-decoration: none;
  font-variant-numeric: tabular-nums; transition: background .2s, color .2s;
}
.header-tel-link:hover { background: var(--navy); color: #fff; }
.header-tel-link .tel-icon { width: 16px; height: 16px; color: var(--gold); flex: none; }
.header-line {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: .04em;
}
.header-line:hover { background: var(--green-700); }

/* ページ内リンク(スマホ・タブレットのみ。PCは右側の目次に任せる) */
.section-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.section-nav .wrap { display: flex; gap: 20px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.section-nav .wrap::-webkit-scrollbar { display: none; }
.section-nav a { flex: none; font-size: 18px; font-weight: 500; color: var(--ink-sub); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; padding-bottom: 1px; }
.section-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
section[id], [id^="s"] { scroll-margin-top: 64px; }

/* ---------- 2カラム ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px; align-items: start; padding-top: 8px; padding-bottom: 72px;
}
.main-col { min-width: 0; }
.side-col { min-width: 0; align-self: stretch; padding-top: 24px; }
.side-sticky {
  position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100vh - 40px);
}

/* ---------- パンくず・記事ヘッダー ---------- */
.breadcrumb { font-size: 18px; color: var(--ink-sub); padding: 22px 0 0; line-height: 1.6; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--ink-mute); }
.breadcrumb a { color: var(--ink-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

.article-head { padding: 20px 0 0; }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 3px 12px; border-radius: 3px;
  background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1.7;
}
h1.title, article h2, article h3, .side-banner-title, .consult-title { text-wrap: balance; word-break: auto-phrase; }
/* 短い見出し・リンクは文節で折り返す(「「1/年」」のような途中改行を防ぐ) */
.ac-title, .situation li a, .situation-q, .rl-body, .side-toc li a, .toc-acc li a, .toc a, .faq-q-text, .example-head, .inline-cta .cta-lead, .tool-promo-title, .dc-title, .step-card h4, .compare-table th, .compare-table td, .example .row dt { word-break: auto-phrase; }
h1.title { margin: 0 0 18px; font-size: 30px; line-height: 1.55; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 18px; color: var(--ink-sub); line-height: 1.5; }
.article-meta b { color: var(--navy); font-weight: 500; }
.am-who { display: flex; align-items: center; gap: 10px; }
.am-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--gold-soft); }
.am-avatar img { width: 19px; height: auto; }
.am-name { color: var(--navy); font-weight: 700; font-size: 18px; }
.am-name small { display: block; font-weight: 400; font-size: 18px; color: var(--ink-sub); letter-spacing: .1em; }

/* 見出し画像(記事ごとのイラスト) */
.eyecatch { margin: 24px 0 0; }
.eyecatch img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 420; border-radius: var(--radius); border: 1px solid var(--line); background: var(--navy-50); }

/* ---------- 冒頭の要約 ---------- */
.summary {
  position: relative; margin: 36px 0 0; padding: 30px 28px 22px;
  background: var(--paper); border: 2px solid var(--navy); border-radius: var(--radius);
}
.summary-title {
  position: absolute; top: -14px; left: 20px; margin: 0; padding: 2px 14px;
  background: var(--navy); color: #fff; border-radius: 3px;
  font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1.7;
}
.summary p { font-size: 18px; line-height: 1.95; margin: 0 0 10px; }
.summary p:last-child { margin-bottom: 0; }

/* ---------- 目次(本文内) ---------- */
.toc-acc { margin: 28px 0 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.toc-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; font-weight: 700; color: var(--navy); letter-spacing: .1em;
}
.toc-acc summary::-webkit-details-marker { display: none; }
.toc-acc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
.toc-acc[open] summary { border-bottom: 1px solid var(--line); }
.toc-acc[open] summary::after { transform: rotate(-135deg); }
.toc-acc ol { list-style: none; margin: 0; padding: 8px 22px 14px; font-size: 18px; line-height: 1.7; }
.toc-acc li a { display: flex; gap: 10px; padding: 8px 0; color: var(--navy); text-decoration: none; border-bottom: 1px dashed var(--line); }
.toc-acc li:last-child a { border-bottom: 0; }
.toc-acc li a:hover { color: var(--gold-ink); }
.toc-acc li a b { flex: none; min-width: 1.6em; color: var(--gold-ink); font-weight: 700; }

/* ---------- 本文 ---------- */
article section { padding: 56px 0 0; }
article h2, .summary-box h2, .related h2 { font-family: var(--font); }
article h2 {
  margin: 0 0 24px; padding: 14px 18px 14px 20px;
  background: var(--navy-50); border-left: 6px solid var(--navy); border-radius: 0 4px 4px 0;
  font-size: 23px; line-height: 1.55; font-weight: 700; color: var(--navy);
}
h2 .h2-num { margin-right: .35em; color: var(--gold-ink); font-weight: 800; }
article h3 {
  margin: 38px 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--line-strong);
  font-size: 19px; line-height: 1.6; font-weight: 700; color: var(--navy);
}
h3 .h3-num { margin-right: .4em; color: var(--gold-ink); }
article h4 { color: var(--navy); }
p.sub { font-size: inherit; color: var(--ink); }

/* 本文の強調:マーカー付きは文字=紺・線=オレンジ(マーカーなしの太字はオレンジ文字) */
strong { color: var(--navy); font-weight: 700; background: linear-gradient(transparent 62%, var(--orange-mark) 62%); padding: 0 1px; }
.u-em { color: var(--navy); font-weight: 700; background: linear-gradient(transparent 58%, var(--orange-mark) 58%); }

ul.plain, ol.plain { margin: 0 0 20px; padding: 0; list-style: none; }
ul.plain li { position: relative; padding-left: 1.4em; margin-bottom: 8px; line-height: 1.85; }
ul.plain li::before { content: ""; position: absolute; left: .3em; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.point-box {
  margin: 26px 0; padding: 18px 22px; background: var(--gold-50);
  border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0;
  font-size: 18px; line-height: 1.9; color: var(--ink);
}
.point-box strong { background: none; color: var(--orange); }

/* ---------- 表 ---------- */
.table-wrap {
  overflow-x: auto; margin: 24px 0 8px; -webkit-overflow-scrolling: touch;
  /* 横に続きがあるときだけ右端に影が出る */
  background:
    linear-gradient(to right, var(--bg) 30%, rgba(255,255,255,0)) left center / 24px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, rgba(255,255,255,0)) right center / 24px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(20,74,52,.18), transparent) left center / 10px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(20,74,52,.18), transparent) right center / 10px 100% no-repeat scroll;
}
.table-wrap .compare-table { background: transparent; }
.table-wrap .compare-table td:not(.hl) { background: transparent; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 18px; line-height: 1.7; background: var(--paper); }
.compare-table caption { caption-side: top; text-align: left; font-weight: 700; color: var(--navy) !important; font-size: 18px !important; padding: 0 0 8px !important; }
.compare-table th, .compare-table td { padding: 12px 14px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; text-align: center; font-weight: 700; border-color: var(--navy); white-space: nowrap; }
.compare-table tbody th { background: #f6f3ea; color: var(--navy); font-weight: 700; white-space: nowrap; }
.compare-table .hl { background: var(--gold-50); color: var(--navy); font-weight: 700; }
.table-note { font-size: 18px; color: var(--ink-sub); margin: 0 0 22px; line-height: 1.7; }

/* ---------- 計算例・具体例 ---------- */
.example { margin: 26px 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.example-head { display: flex; align-items: center; gap: 10px; padding: 11px 20px; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; line-height: 1.6; }
.example-head::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--gold-soft);
  background: linear-gradient(var(--gold-soft), var(--gold-soft)) 50% 30%/8px 2px no-repeat, linear-gradient(var(--gold-soft), var(--gold-soft)) 50% 70%/8px 2px no-repeat;
}
.example-body { padding: 18px 22px 20px; }
.example-body > p { font-size: 18px; margin-bottom: 12px; line-height: 1.9; }
.example dl { margin: 0; }
.example .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 2px; border-bottom: 1px dashed var(--line-strong); font-size: 18px; line-height: 1.6; }
.example .row dt { color: var(--ink); }
.example .row dd { margin: 0; flex: none; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.example .row.total { margin-top: 6px; padding: 14px 14px; border: 0; border-radius: 6px; background: var(--gold-50); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.example .row.total dt { color: var(--navy); font-weight: 700; }
.example .row.total dd { font-size: 22px; color: var(--navy); }
.example .note { font-size: 18px; color: var(--ink-sub); margin: 12px 0 0; line-height: 1.75; }

/* ---------- 流れ ---------- */
.step-cards { counter-reset: step; margin: 24px 0 12px; display: flex; flex-direction: column; gap: 0; }
.step-card { counter-increment: step; position: relative; display: flex; gap: 18px; padding: 0 0 22px; }
.step-card::before {
  content: counter(step); flex: none; position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--bg);
}
.step-card:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--gold-soft); }
.step-card > div { flex: 1; min-width: 0; padding: 4px 0 0; }
.step-card h4 { margin: 0 0 4px; font-size: 18px; line-height: 1.6; }
.step-card p { margin: 0; font-size: 18px; line-height: 1.85; color: var(--ink); }

.timeline { margin: 24px 0; padding: 0; list-style: none; border-left: 2px solid var(--gold-soft); }
.timeline li { position: relative; padding: 0 0 18px 24px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.timeline .tl-when { display: block; font-size: 18px; font-weight: 700; color: var(--gold-ink); }
.timeline .tl-what { display: block; }

/* ---------- FAQ ---------- */
.faq-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 18px 22px; font-weight: 700; color: var(--navy); font-size: 18px; line-height: 1.7; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--navy-50); }
.faq-q-text { flex: 1; min-width: 0; padding-top: 1px; }
.faq-item .mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; line-height: 1;
}
.faq-q .mark { background: var(--navy); color: #fff; }
.faq-a .mark { background: var(--gold-50); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.faq-chevron { flex: none; width: 18px; height: 18px; margin-top: 6px; color: var(--ink-mute); transition: transform .25s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { display: flex; gap: 12px; margin: 0; padding: 0 22px 20px; font-size: 18px; line-height: 1.9; color: var(--ink); }

/* ---------- まとめ ---------- */
.summary-box { margin: 56px 0 0; padding: 26px 28px; background: var(--navy-50); border-radius: var(--radius); border-top: 4px solid var(--navy); }
.summary-box h2 { margin: 0 0 10px; padding: 0; background: none; border: 0; font-size: 21px; color: var(--navy); }
.summary-box p { margin: 0; line-height: 1.95; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; border: 1.5px solid var(--navy); color: var(--navy); background: var(--paper);
  font-size: 18px; font-weight: 700; letter-spacing: .04em; text-decoration: none; line-height: 1.5;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20,74,52,.14); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-700); }
.btn.line { background: var(--green); border-color: var(--green); color: #fff; }
.btn.line:hover { background: var(--green-700); border-color: var(--green-700); }
.btn[href^="tel:"]::before, .btn.line::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.btn[href^="tel:"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1z'/%3E%3C/svg%3E"); }
.btn.line { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s6-3.5 8.2-6.1C21.6 14.1 22 12.6 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* 記事途中の相談案内 */
.inline-cta {
  margin: 40px 0 8px; padding: 24px 26px; text-align: center;
  background: var(--paper); border: 1px solid var(--gold-soft); border-top: 3px solid var(--gold); border-radius: var(--radius);
}
.inline-cta .cta-lead { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.inline-cta .cta-sub { margin: 0 0 16px; font-size: 18px; color: var(--ink-sub); line-height: 1.8; }

/* 記事末尾の相談案内 */
.consult {
  position: relative; margin: 48px 0 0; padding: 40px 32px 34px; text-align: center; overflow: hidden;
  background: var(--navy); color: #fff; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(217,199,154,.35);
}
.consult::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217,199,154,.28); border-radius: 8px; pointer-events: none; }
.consult-title { position: relative; margin: 0 0 10px; font-size: 23px; font-weight: 700; color: #fff; letter-spacing: .06em; }
.consult-title::after { content: ""; display: block; width: 40px; height: 2px; margin: 12px auto 0; background: var(--gold); }
.consult p.sub { position: relative; max-width: 520px; margin: 0 auto 26px; font-size: 18px; line-height: 1.9; color: #d7e8de; }
.consult-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-col { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; }
.btn-col .btn { width: 100%; padding: 15px 14px; font-size: 18px; white-space: nowrap; }
.consult .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.consult .btn[href^="tel:"]::before { background: var(--gold-ink); }
.consult .btn.primary:hover { background: var(--gold-50); }
.btn-note { margin: 8px 0 0; font-size: 18px; line-height: 1.6; color: #b9d3c4; }

/* ---------- 監修者・運営者 ---------- */
.supervisor, .author {
  display: flex; gap: 18px; align-items: center; margin: 40px 0 0; padding: 22px 24px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-badge { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--gold-50), 0 0 0 4px var(--gold-soft); }
.author-badge img { width: 28px; height: auto; }
/* 監修者の顔写真 */
.author-badge.sv-photo { width: 88px; height: 88px; overflow: hidden; background: var(--navy-50); }
.author-badge.sv-photo img { width: 100%; height: 100%; object-fit: cover; }
.am-avatar.am-photo { overflow: hidden; background: var(--navy-50); }
.am-avatar.am-photo img { width: 100%; height: 100%; object-fit: cover; }
.sv-label { display: inline-block; margin-bottom: 4px; padding: 0 10px; border: 1px solid var(--gold-soft); border-radius: 3px; font-size: 18px; letter-spacing: .14em; color: var(--gold-ink); line-height: 1.8; }
.sv-name { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.supervisor p:not(.sv-name), .author p { margin: 0; font-size: 18px; color: var(--ink-sub); line-height: 1.7; }
.author h3 { margin: 0 0 4px; padding: 0; border: 0; font-size: 18px; color: var(--navy); line-height: 1.6; }
.disclaimer { margin: 16px 0 0; font-size: 18px; color: var(--ink-sub); line-height: 1.8; }

/* ---------- あわせて読みたい ---------- */
.related { margin: 56px 0 0; }
.related h2 { margin: 0 0 18px; padding: 0 0 10px; border-bottom: 2px solid var(--navy); font-size: 20px; color: var(--navy); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-list a {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 12px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.related-list a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.rl-thumb { flex: none; width: 112px; height: auto; aspect-ratio: 800 / 420; object-fit: cover; border-radius: 4px; background: var(--navy-50); }
.rl-body { min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--navy); }
.rl-sub { display: block; margin-top: 4px; font-size: 18px; font-weight: 400; color: var(--ink-sub); }

/* =========================================================
   右側:事務所バナー + この記事の目次
   ========================================================= */
.side-banner {
  flex: none; position: relative; overflow: hidden; border-radius: 12px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.side-banner-logo { padding: 14px 18px; background: #fff; text-align: center; border-bottom: 3px solid var(--gold); }
.side-banner-logo img { display: inline-block; height: 34px; width: auto; vertical-align: middle; }
.side-banner-body {
  position: relative; padding: 22px 22px 20px; text-align: center;
  /* 事務所エンブレムをうっすら透かしで */
  background: url("emblem.svg") right -26px bottom -30px / 150px auto no-repeat;
}
.side-banner-body::after { content: ""; position: absolute; inset: 0; background: rgba(20,74,52,.88); pointer-events: none; }
.side-banner-body > * { position: relative; z-index: 1; }
.side-banner-body::before { content: ""; position: absolute; inset: 8px; z-index: 1; border: 1px solid rgba(217,199,154,.25); border-radius: 6px; pointer-events: none; }
.side-banner-badge {
  position: relative; display: inline-block; margin-bottom: 10px; padding: 4px 16px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: 18px; font-weight: 700; letter-spacing: .12em; line-height: 1.6;
}
.side-banner-title { position: relative; margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.55; color: #fff; letter-spacing: .03em; }
.side-banner-text { position: relative; margin: 0 0 16px; font-size: 18px; line-height: 1.8; color: #cfe3d7; text-align: left; }
.side-banner .side-tel {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 4px; padding: 10px 8px;
  background: #fff; color: var(--navy); border-radius: 8px; text-decoration: none;
  font-size: 24px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.3;
  transition: background .2s;
}
.side-banner .side-tel svg { width: 20px; height: 20px; color: var(--gold-ink); flex: none; }
.side-banner .side-tel:hover { background: var(--gold-50); }
.side-banner .side-hours { position: relative; margin: 0 0 12px; font-size: 18px; color: #b9d3c4; line-height: 1.6; }
.side-banner .side-line {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 8px; border-radius: 8px;
  background: var(--green); color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: .05em; line-height: 1.5;
  transition: background .2s;
}
.side-banner .side-line::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s6-3.5 8.2-6.1C21.6 14.1 22 12.6 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s6-3.5 8.2-6.1C21.6 14.1 22 12.6 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.side-banner .side-line:hover { background: var(--green-700); }
.side-banner .side-note { position: relative; margin: 6px 0 0; font-size: 18px; color: #b9d3c4; line-height: 1.6; }
.side-tool {
  display: block; padding: 11px 14px; text-align: center; text-decoration: none;
  /* サイトのゴールド(「初回相談 無料」ラベルと同じ組み合わせ) */
  background: var(--gold); color: var(--navy);
  font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: .02em;
}
.side-tool:hover { background: var(--gold-soft); color: var(--navy); }

.side-toc-box { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 0 10px; }
.side-toc-box[hidden] { display: none; }
.side-toc-title { flex: none; margin: 0 18px 6px; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: .1em; line-height: 1.6; }
.side-toc { position: relative; list-style: none; margin: 0; padding: 0 10px 0 18px; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.side-toc li a {
  display: flex; gap: 6px; padding: 6px 4px 6px 12px; border-left: 2px solid var(--line);
  font-size: 18px; line-height: 1.6; color: var(--ink-sub); text-decoration: none;
}
.side-toc li a b { flex: none; color: var(--gold-ink); font-weight: 700; }
.side-toc li a:hover { color: var(--navy); background: var(--navy-50); }
.side-toc li a.is-active { color: var(--navy); font-weight: 700; border-left: 3px solid var(--gold); padding-left: 11px; background: var(--gold-50); }
/* 高さの低い画面(ノートPCなど)では、バナーを詰めて目次の場所を確保する */
@media (max-height: 820px) {
  .side-banner-logo { padding: 10px 18px; }
  .side-banner-logo img { height: 28px; }
  .side-banner-body { padding: 16px 20px 16px; }
  .side-banner-text { display: none; }
  .side-banner-title { font-size: 18px; margin-bottom: 12px; }
  .side-banner .side-tel { font-size: 22px; padding: 8px; }
  .side-banner .side-line { padding: 9px 8px; }
  .side-tool { padding: 8px 12px; }
}
@media (max-height: 560px) { .side-toc-box { display: none; } }

/* =========================================================
   トップページ
   ========================================================= */
.top-hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.top-hero .kicker { margin-bottom: 16px; }
.top-hero h1.title { font-size: 32px; margin-bottom: 16px; }
.top-hero .lead { margin: 0; font-size: 18px; line-height: 2; color: var(--ink-sub); }
.top-hero .meta { margin: 16px 0 0; font-size: 18px; color: var(--ink-mute); letter-spacing: .06em; }
.top-hero-figure { margin: 0; }
.top-hero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 420; border-radius: 10px; }
/* 事務所受付の写真(ロゴの壁が中央に来るように) */
.top-hero-figure.is-photo img { object-fit: cover; object-position: 30% 50%; box-shadow: var(--shadow); }

.portal { margin: 48px 0 0; }
.portal-title, .basics-head .portal-title {
  margin: 0 0 4px; padding: 0 0 0 14px; border-left: 5px solid var(--gold);
  font-size: 23px; font-weight: 700; line-height: 1.5; color: var(--navy);
}
.portal-sub { margin: 0 0 20px 19px; font-size: 18px; line-height: 1.8; color: var(--ink-sub); }

/* コラム一覧:監修者の顔写真つきの一文 */
.portal-supervisor {
  display: flex; align-items: center; gap: 14px; margin: 6px 0 20px;
  padding: 12px 18px 12px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.portal-supervisor img {
  flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--gold-50), 0 0 0 4px var(--gold-soft);
}
.portal-supervisor .portal-sub { margin: 0; color: var(--ink); }
.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.situation { display: flex; flex-direction: column; padding: 18px 20px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.situation-label { align-self: flex-start; margin: 0 0 8px; padding: 1px 10px; border-radius: 3px; background: var(--navy-50); color: var(--navy); font-size: 18px; font-weight: 700; letter-spacing: .1em; line-height: 1.8; }
.situation-q { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.55; }
.situation ul { list-style: none; margin: auto 0 0; padding: 0; }
.situation li { border-top: 1px solid var(--line); }
.situation li a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 10px; margin: 0 -10px; border-radius: 4px;
  font-size: 18px; line-height: 1.6; color: var(--navy); text-decoration: none;
  transition: background .15s, color .15s;
}
.situation li a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
/* マウスを乗せた行は紺に反転 */
.situation li a:hover, .situation li a:focus-visible { background: var(--navy); color: #fff; }
.situation li a:hover::after { border-color: var(--gold-soft); transform: translateX(3px) rotate(45deg); }

.tool-promo {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 18px 0 0; padding: 22px 24px;
  background: var(--gold-50); border: 1px solid var(--gold-soft); border-radius: var(--radius);
}
/* 期限リストの案内:記事末尾の「まずはご相談ください」と同じ紺地+金の細枠で目立たせる */
.tool-promo {
  position: relative; background: var(--navy); border: 0; border-radius: 12px; padding: 26px 28px;
  box-shadow: inset 0 0 0 1px rgba(217,199,154,.35);
}
.tool-promo::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217,199,154,.28); border-radius: 8px; pointer-events: none; }
.tool-promo > * { position: relative; }
.tool-promo .tool-promo-badge { background: var(--gold); color: var(--navy); }
.tool-promo .tool-promo-title { color: #fff; }
.tool-promo .tool-promo-text { color: #d7e8de; }
.tool-promo .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }
.tool-promo .btn.primary:hover { background: var(--gold-50); }
.tool-promo-body { flex: 1 1 320px; }
.tool-promo-badge, .dc-badge { display: inline-block; margin-bottom: 6px; padding: 1px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .1em; line-height: 1.8; }
.tool-promo-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.tool-promo-text { margin: 0; font-size: 18px; line-height: 1.8; color: var(--ink-sub); }
.tool-promo .btn { flex: none; }

.article-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.article-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--navy);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s;
}
/* マウスを乗せたカードは太い紺の枠+イラストを少し拡大+タイトルに下線 */
.article-card a:hover, .article-card a:focus-visible { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), var(--shadow); }
.article-card a:hover .ac-thumb { transform: scale(1.06); }
.article-card a:hover .ac-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ac-thumb-wrap { display: block; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--navy-50); }
.ac-thumb { display: block; width: 100%; height: auto; aspect-ratio: 800 / 420; transition: transform .35s ease; }
.ac-text { display: block; padding: 14px 18px 18px; }
.article-card .ac-tag { display: inline-block; margin-bottom: 6px; padding: 0 9px; border-radius: 3px; background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.8; }
.article-card .ac-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.6; }
.article-card .ac-desc { display: block; margin-top: 6px; font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--ink-sub); }

.basics-head { margin: 64px 0 0; padding-top: 36px; border-top: 1px solid var(--line-strong); }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 0; }
.toc, .keypoints { margin: 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.keypoints { border: 2px solid var(--navy); }
.toc-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: .08em; }
.toc ol, .keypoints ul { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 1.7; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--navy); text-decoration: none; border-bottom: 1px dashed var(--line); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--gold-ink); }
.toc-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.keypoints li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.keypoints li:last-child { margin-bottom: 0; }
.keypoints li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.keypoints strong { background: none; color: var(--orange); }
/* 本文中のイラスト(見出し画像と同じテイスト) */
.section-illust { margin: 0 auto 26px; max-width: 560px; }
.section-illust img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 420; border-radius: var(--radius); border: 1px solid var(--line); background: var(--navy-50); }

/* ---------- フッター ---------- */
/* 一番下の帯:事務所受付の写真に紺を重ねて、うっすら見せる */
footer {
  color: #b9d3c4;
  background:
    linear-gradient(rgba(20,74,52,.80), rgba(20,74,52,.80)),
    url("photo/office.jpg") 30% 45% / cover no-repeat,
    var(--navy);
}
footer .wrap { padding: 44px 24px 32px; text-align: center; font-size: 18px; line-height: 1.9; }
footer .foot-logo { display: inline-block; margin-bottom: 16px; padding: 16px 24px 10px; background: #fff; border-radius: 6px; }
footer .foot-logo img { display: block; height: 80px; width: auto; }
footer a { color: var(--gold-soft); text-decoration: none; }
footer .copyright { margin-top: 16px; font-size: 18px; color: #8fb09e; }

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (min-width: 1024px) {
  .section-nav { display: none; }
}
@media (max-width: 1023px) {
  .layout { display: block; max-width: 760px; padding-bottom: 56px; }
  .side-col { display: none; }
  .top-hero .wrap { max-width: 760px; grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .top-hero-figure { order: -1; }
  header.site .wrap, .section-nav .wrap { max-width: 760px; }
}
@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.95; }
  .wrap { padding: 0 16px; }
  .layout { padding-bottom: 48px; }
  header.site .wrap { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .brand img { height: 28px; }
  .header-tel-text, .header-line { display: none; }
  .header-tel-link { font-size: 18px; padding: 6px 12px; }
  h1.title, .top-hero h1.title { font-size: 23px; line-height: 1.55; }
  .eyecatch { margin-top: 18px; }
  .summary { padding: 26px 18px 18px; }
  article section { padding-top: 44px; }
  article h2 { font-size: 20px; padding: 12px 14px 12px 14px; border-left-width: 5px; }
  article h3 { font-size: 18px; margin-top: 30px; }
  .example-body { padding: 16px 16px 18px; }
  .example .row { font-size: 18px; }
  .example .row.total dd { font-size: 19px; }
  .faq-q { padding: 16px 14px; font-size: 18px; }
  .faq-a { padding: 0 14px 18px; font-size: 18px; }
  .inline-cta { padding: 22px 16px; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .consult { padding: 34px 18px 28px; }
  .author-badge.sv-photo { width: 72px; height: 72px; }
  .btn-col .btn { font-size: 18px; }
  .summary-box { padding: 22px 18px; }
  .supervisor, .author { padding: 18px; }
  .related-list, .situations, .article-cards, .toc-grid { grid-template-columns: 1fr; }
  /* 記事カードは横型にして一覧を短く */
  .article-cards { gap: 10px; }
  .article-card a { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; }
  .ac-thumb-wrap { flex: none; width: 112px; border: 0; border-radius: 4px; }
  .ac-text { padding: 0; min-width: 0; }
  .article-card .ac-title { font-size: 18px; line-height: 1.55; }
  .article-card .ac-desc { font-size: 18px; margin-top: 4px; }
  .article-card .ac-tag { font-size: 18px; margin-bottom: 4px; }
  /* トップの大きなイラストはスマホでは省き、入口を早く見せる */
  .top-hero-figure { display: none; }
  .top-hero .wrap { padding-top: 24px; padding-bottom: 26px; }
  /* 監修者と日付の並び */
  .article-meta { gap: 6px 16px; }
  .am-who { flex-basis: 100%; margin-bottom: 4px; }
  /* 表:1列目は折り返して横幅を節約 */
  .compare-table { min-width: 520px; font-size: 18px; }
  .compare-table tbody th { white-space: normal; min-width: 7em; }
  .compare-table th, .compare-table td { padding: 10px 11px; }
  .rl-thumb { width: 96px; }
  .portal-title, .basics-head .portal-title { font-size: 20px; }
  .tool-promo { padding: 18px; }
  .tool-promo .btn { width: 100%; }
  footer .foot-logo img { height: 64px; }
}

/* =========================================================
   ブラッシュアップ(2026-10-02 参考画像に合わせた調整)
   白地+薄いグレー青の面+紺のアクセント
   ========================================================= */
:root { --panel: #f3f6fa; }

/* パンくずは薄いグレーの帯に */
.crumb-band { background: var(--panel); border-bottom: 1px solid var(--line); }
.crumb-band .breadcrumb { padding: 10px 0; }

/* 記事の冒頭:左に見出し、右に見出し画像(左端を白に溶かす) */
.article-hero { border-bottom: 1px solid var(--line); }
.article-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.article-hero .article-head { padding: 0; }
.ah-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 16px; font-size: 18px; color: var(--ink-sub); line-height: 1.6; }
.ah-top .kicker { margin: 0; padding: 2px 16px; border-radius: 999px; }
.ah-date b { color: var(--navy); font-weight: 500; }
.article-hero h1.title { margin-bottom: 20px; font-size: 28px; }
.article-hero .eyecatch { margin: 0; }
.article-hero .eyecatch img {
  border: 0; border-radius: 0 10px 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}
.article-hero + .layout .main-col > .summary:first-child, .article-hero + .layout .summary { margin-top: 32px; }

/* 大見出し:大きな紺の番号「01」+見出し+紺の下線 */
article { counter-reset: sec; }
article section > h2 {
  counter-increment: sec; position: relative;
  margin: 0 0 24px; padding: 0 0 12px 76px; min-height: 44px;
  background: none; border: 0; border-bottom: 2px solid var(--navy); border-radius: 0;
  font-size: 24px; line-height: 1.5;
}
article section > h2 .h2-num { position: absolute; left: 0; top: -4px; margin: 0; font-size: 0; }
article section > h2 .h2-num::before {
  content: counter(sec, decimal-leading-zero);
  font-size: 40px; font-weight: 700; line-height: 1; color: var(--navy); letter-spacing: .02em;
}

/* この記事でわかること:薄い面に */
.summary { background: var(--panel); border: 0; border-radius: 8px; padding: 22px 26px 20px; }
.summary-title {
  position: static; display: block; margin: 0 0 12px; padding: 0 0 0 12px;
  background: none; color: var(--navy); border-left: 4px solid var(--navy); border-radius: 0;
  font-size: 18px; line-height: 1.5;
}

/* 目次:2列+「01」番号 */
.toc-acc { border-color: var(--line); }
.toc-acc summary { letter-spacing: .08em; }
.toc-acc summary > * , .toc-acc summary { border-left: 0; }
.toc-acc summary::before { content: ""; width: 4px; height: 1.1em; background: var(--navy); margin-right: 10px; flex: none; }
.toc-acc summary { justify-content: flex-start; }
.toc-acc summary::after { margin-left: auto; }
.toc-acc ol { columns: 2; column-gap: 32px; counter-reset: toc; padding-top: 10px; }
.toc-acc li { break-inside: avoid; counter-increment: toc; }
.toc-acc li a { border-bottom: 0; padding: 7px 0; }
.toc-acc li a b { font-size: 0; min-width: 2em; }
.toc-acc li a b::before { content: counter(toc, decimal-leading-zero); font-size: 18px; color: var(--navy); }

/* 箇条書き:紺のチェックマーク付きの薄い箱 */
article ul.plain, .summary-box ul.plain { background: var(--panel); border-radius: 8px; padding: 16px 20px; }
article ul.plain li { padding-left: 32px; margin-bottom: 10px; }
article ul.plain li:last-child { margin-bottom: 0; }
article ul.plain li::before {
  left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* 右側:追従部分の下に、監修者カードと関連記事 */
.side-col { display: flex; flex-direction: column; }
.side-sticky-area { flex: 1 0 auto; }
.side-extra { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; }
.side-box-title { margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--navy); font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; letter-spacing: .06em; }
.side-sv-body { display: flex; align-items: center; gap: 14px; }
.side-sv-body img { flex: none; width: 84px; height: 84px; object-fit: cover; border-radius: 6px; }
.side-sv-name { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.side-sv-org { margin: 0; font-size: 18px; color: var(--ink-sub); line-height: 1.6; }
.side-rel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.side-rel-list li + li { padding-top: 12px; border-top: 1px solid var(--line); }
.side-rel-list a { display: flex; align-items: flex-start; gap: 12px; color: var(--navy); text-decoration: none; }
.side-rel-list .rl-thumb { flex: none; width: 96px; height: auto; aspect-ratio: 800 / 420; border-radius: 4px; background: var(--navy-50); }
.side-rel-list .rl-body { font-size: 18px; font-weight: 700; line-height: 1.55; word-break: auto-phrase; }
.side-rel-list .rl-sub { font-size: 18px; margin-top: 2px; }
.side-rel-list a:hover .rl-body { text-decoration: underline; text-underline-offset: 3px; }

/* --- 見出しは明朝体(本文・ボタン・バナーはゴシック体のまま) --- */
:root { --font-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; }
h1.title, article h2, article h3, .portal-title, .basics-head .portal-title, .summary-box h2, .related h2 {
  font-family: var(--font-serif); font-weight: 700; letter-spacing: .03em;
}
article section > h2 .h2-num::before { font-family: var(--font-serif); }
.article-hero h1.title { font-size: 27px; letter-spacing: 0; }

/* --- トップページにも同じ要素を --- */
/* 冒頭:丸いバッジ、写真の左端を白に溶かす */
.top-hero .kicker { padding: 2px 16px; border-radius: 999px; }
.top-hero-figure.is-photo img {
  border-radius: 0 10px 10px 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}
/* 各章のタイトルの線は紺に */
.portal-title, .basics-head .portal-title { border-left-color: var(--navy); }
/* 目次:番号を「01」形式に */
.toc { border-color: var(--line); }
.toc-title { padding-left: 10px; border-left: 4px solid var(--navy); line-height: 1.5; }
.toc ol { counter-reset: tnum; }
.toc li { counter-increment: tnum; }
.toc-num { width: auto; height: auto; min-width: 2em; border-radius: 0; background: none; color: var(--navy); font-size: 0; justify-content: flex-start; }
.toc-num::before { content: counter(tnum, decimal-leading-zero); font-size: 18px; font-weight: 700; }
/* この記事のポイント:薄い面+紺のチェックマーク */
.keypoints { background: var(--panel); border: 0; }
.keypoints li { padding-left: 30px; margin-bottom: 10px; }
.keypoints li::before {
  left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --- 配色の統一(2026-10-05):紺+金をベースに --- */
/* 面は薄い青グレー、番号・ラベルは紺、金は線・点・バッジのアクセントだけ */
:root { --line: #e3e7ee; --line-strong: #cfd6e0; }
/* 強調もオレンジ→金系に(変数名はそのまま)。文字の金は白地で読める濃さ */
:root { --orange: #8a6d25; --orange-mark: rgba(185, 157, 82, .38); }
h2 .h2-num, h3 .h3-num { color: var(--navy); }
.compare-table tbody th { background: var(--panel); }
.compare-table .hl { background: var(--navy-100); }
.example .row.total { background: var(--panel); box-shadow: inset 0 0 0 1px var(--navy-100); }
.point-box { background: var(--panel); border-color: var(--navy-100); border-left-color: var(--gold); }
.faq-a .mark { background: var(--panel); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy-100); }
.side-toc li a b { color: var(--navy); }
.side-toc li a.is-active { background: var(--panel); }

/* --- 監修者は写真で統一(冒頭の小さな丸・記事末尾の監修者欄) --- */
.am-avatar.is-photo, .author-badge.is-photo { overflow: hidden; background: var(--navy-50); }
.am-avatar.is-photo img, .author-badge.is-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

/* --- あわせて読みたい:PCは右側だけに表示(右側が出ない画面幅では本文の下に残す) --- */
@media (min-width: 1024px) {
  .related { display: none; }
}
/* --- トップページの構成変更(2026-10-05):冒頭→注目の記事→コラム一覧→いまの状況から探す --- */
/* 冒頭:小さな「COLUMN」+大きな「相続コラム」 */
.hero-en { margin: 0 0 6px; font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: .24em; color: var(--gold-ink); }
.top-hero h1.hero-title { margin: 0 0 20px; font-size: 44px; line-height: 1.3; letter-spacing: .08em; }
.top-hero .lead { font-size: 18px; color: var(--ink); }
/* 各ブロックの見出し:見出し+右へ伸びる金の細線 */
.sec-head { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; }
.sec-title { flex: none; margin: 0; font-family: var(--font-serif); font-size: 23px; font-weight: 700; line-height: 1.5; color: var(--navy); letter-spacing: .08em; }
.sec-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--gold); order: 1; }
.sec-more { order: 2; flex: none; font-size: 18px; color: var(--navy); text-decoration: none; }
.sec-more::after, .ac-more::after { content: "→"; margin-left: 8px; color: var(--gold-ink); }
.sec-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.sec-head + .portal-sub { margin-left: 0; }
/* 「この記事を読む →」 */
.ac-more { display: inline-block; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--gold); font-size: 18px; font-weight: 700; color: var(--navy); }
/* 注目の記事:画像を左、文字を右に大きく */
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: center;
  color: var(--navy); text-decoration: none;
}
.featured-thumb { display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy-50); }
.featured-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 420; transition: transform .35s ease; }
.featured-text { display: block; }
.featured .ac-tag { display: inline-block; margin-bottom: 10px; padding: 0 10px; border: 1px solid var(--gold); border-radius: 3px; color: var(--gold-ink); font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.8; }
.featured-title { display: block; margin-bottom: 12px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.55; word-break: auto-phrase; }
.featured-desc { display: block; font-size: 18px; line-height: 1.9; color: var(--ink-sub); }
.featured:hover .featured-thumb img { transform: scale(1.04); }
.featured:hover .featured-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* コラム一覧:画像を左、文字を右の横長カードを2列で */
.article-cards.is-list { gap: 0; }
.article-cards.is-list .article-card { border-bottom: 1px solid var(--line); }
.article-cards.is-list .article-card:nth-child(odd) { border-right: 1px solid var(--line); }
.article-cards.is-list .article-card a { flex-direction: row; align-items: flex-start; gap: 14px; padding: 20px 18px; border: 0; border-radius: 0; background: none; }
.article-cards.is-list .article-card:nth-child(odd) a { padding-left: 0; }
.article-cards.is-list .article-card a:hover, .article-cards.is-list .article-card a:focus-visible { box-shadow: none; background: var(--panel); }
.article-cards.is-list .ac-thumb-wrap { flex: none; width: 42%; border: 0; border-radius: 4px; }
.article-cards.is-list .ac-text { padding: 0; min-width: 0; }
.article-cards.is-list .ac-tag { padding: 0 8px; border: 1px solid var(--gold); background: none; color: var(--gold-ink); }
.article-cards.is-list .ac-title { font-size: 18px; line-height: 1.6; }
.article-cards.is-list .ac-desc { font-size: 18px; }
.article-cards.is-list .ac-more { margin-top: 8px; font-size: 18px; }

@media (max-width: 700px) {
  .top-hero h1.hero-title { font-size: 32px; margin-bottom: 14px; }
  .top-hero .lead { font-size: 18px; }
  .sec-title { font-size: 20px; }
  .featured { grid-template-columns: 1fr; gap: 14px; }
  .featured-title { font-size: 19px; }
  .article-cards.is-list .article-card:nth-child(odd) { border-right: 0; }
  .article-cards.is-list .article-card a, .article-cards.is-list .article-card:nth-child(odd) a { padding: 14px 0; }
  .article-cards.is-list .ac-thumb-wrap { width: 112px; }
}

/* トップ冒頭の写真:PCでは右半分を画面の右端・上下の端までいっぱいに(左端は白になじませる) */
@media (min-width: 1024px) {
  .top-hero { position: relative; overflow: hidden; }
  .top-hero .wrap { display: flex; align-items: center; min-height: 400px; }
  .top-hero-text { position: relative; z-index: 1; max-width: 44%; }
  .top-hero-figure.is-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; margin: 0; }
  .top-hero-figure.is-photo img {
    width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 30% 50%;
    border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%);
  }
}

/* トップのカード画像:写真(3:2)はイラストと同じ枠に切り抜いて表示。注目の記事は写真の比率のまま大きく */
.ac-thumb-wrap.is-photo .ac-thumb { object-fit: cover; }
.featured-thumb.is-photo img { aspect-ratio: 3 / 2; object-fit: cover; }
/* 記事冒頭の見出し画像も写真(3:2)に。比率のまま表示し、左端は白になじませる(従来どおり) */
.eyecatch.is-photo img { aspect-ratio: 3 / 2; object-fit: cover; background: none; }

/* トップ冒頭の本の写真:本が右下寄りにあるので、切り抜きの基準を本に合わせる */
.top-hero-figure.is-books img { object-position: 70% 62%; }

/* --- 右バナー:ユーザー作成の画像(710×1130)+押せる範囲を重ねる --- */
.side-banner.is-image { background: none; border-radius: 8px; }
.side-banner.is-image img { display: block; width: 100%; height: auto; }
.sb-hit { position: absolute; display: block; border-radius: 10px; transition: background .15s; }
.sb-hit:hover { background: rgba(255,255,255,.14); }
.sb-hit:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* 位置は画像上の座標(px)÷画像サイズ */
.sb-tel  { left: 8.7%; width: 84.6%; top: 57.1%; height: 11.8%; }
.sb-line { left: 8.7%; width: 84.6%; top: 72.1%; height: 11.8%; }
.sb-tool { left: 0; width: 100%; top: 88.2%; height: 11.8%; border-radius: 0; }

/* --- 「まずはご相談ください」:ユーザー作成の画像(1424×903)+押せる範囲。スマホ用画像が届くまでスマホは従来の枠 --- */
.consult-banner { position: relative; margin: 48px 0 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.consult-banner img { display: block; width: 100%; height: auto; }
.cb-hit { position: absolute; display: block; border-radius: 8px; transition: background .15s; }
.cb-hit:hover { background: rgba(255,255,255,.14); }
.cb-hit:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* 位置は画像上の座標(px)÷画像サイズ */
.cb-tel  { left: 12.9%; width: 39.2%; top: 56.9%; height: 13.6%; }
.cb-line { left: 12.9%; width: 39.2%; top: 73.1%; height: 13.6%; }
.cb-tool { left: 0; width: 100%; top: 91.1%; height: 8.9%; border-radius: 0; }
@media (min-width: 701px) { .consult-banner + .consult { display: none; } }
@media (max-width: 700px) { .consult-banner { display: none; } }

/* 右側は1023px以下では出さない(上の .side-col { display: flex } がレスポンシブ指定を上書きしていたため再指定) */
@media (max-width: 1023px) {
  .side-col { display: none; }
}

@media (max-width: 1023px) {
  .top-hero-figure.is-photo img { border-radius: 10px; -webkit-mask-image: none; mask-image: none; }
  .article-hero .wrap { grid-template-columns: 1fr; gap: 20px; max-width: 760px; padding-top: 24px; padding-bottom: 24px; }
  .article-hero .eyecatch img { border-radius: 8px; -webkit-mask-image: none; mask-image: none; }
  .crumb-band .wrap { max-width: 760px; }
}
@media (max-width: 700px) {
  .article-hero .wrap { padding-left: 16px; padding-right: 16px; }
  article section > h2 { padding-left: 54px; font-size: 20px; min-height: 36px; }
  article section > h2 .h2-num::before { font-size: 30px; }
  .toc-acc ol { columns: 1; }
  .summary { padding: 18px 16px; }
  article ul.plain { padding: 14px 14px; }
}

/* =========================================================
   高齢者向けの調整(2026-10-05)
   ・配色:深緑を基調に(金はロゴと同じアクセントとして線・バッジに残す)
   ・文字:一番小さい文字を18pxに(上の指定で18px未満は18pxへ一括変更済み)、見出しも合わせて大きく
   ========================================================= */
:root {
  --navy: #1a6b4a; --navy-700: #13553a; --navy-50: #eef6f1; --navy-100: #dcebe2;
  --panel: #eef6f1; --line: #dfe7e2; --line-strong: #c8d6cd;
  --shadow: 0 10px 30px rgba(20,74,52,.10);
}
body { font-size: 19px; line-height: 1.95; }
.summary p { font-size: 19px; }
/* 見出し */
.top-hero h1.hero-title { font-size: 56px; }
.hero-en { font-size: 18px; }
.top-hero .lead { font-size: 20px; }
h1.title, .article-hero h1.title { font-size: 34px; }
article section > h2 { font-size: 30px; padding-left: 92px; min-height: 52px; }
article section > h2 .h2-num::before { font-size: 48px; }
article h3 { font-size: 24px; }
.sec-title { font-size: 30px; }
.featured-title { font-size: 28px; }
.featured-desc { font-size: 18px; }
.article-cards.is-list .ac-title, .article-card .ac-title { font-size: 20px; }
.situation-q { font-size: 22px; }
.summary-title { font-size: 20px; }
.toc-acc summary { font-size: 20px; }
.toc-acc ol { font-size: 18px; }
.summary-box h2, .related h2 { font-size: 26px; }
.consult-title { font-size: 28px; }
.dc-title { font-size: 24px; }
.example-head { font-size: 19px; }
.example .row.total dd { font-size: 26px; }
.faq-q { font-size: 19px; }
.step-card h4 { font-size: 21px; }
.side-box-title, .side-toc-title { font-size: 19px; }
@media (max-width: 700px) {
  body { font-size: 18px; }
  .top-hero h1.hero-title { font-size: 40px; }
  h1.title, .top-hero h1.title, .article-hero h1.title { font-size: 27px; }
  article section > h2 { font-size: 23px; padding-left: 62px; min-height: 40px; }
  article section > h2 .h2-num::before { font-size: 36px; }
  article h3 { font-size: 21px; }
  .sec-title { font-size: 24px; }
  .featured-title { font-size: 23px; }
  .situation-q { font-size: 20px; }
  .article-cards.is-list .ac-title, .article-card .ac-title { font-size: 19px; }
  .consult-title { font-size: 24px; }
}

/* コラム一覧:文字を大きくしたので、2列だとタイトルが細かく折れる → 1列(画像左・文字右)に */
.article-cards.is-list { grid-template-columns: 1fr; }
.article-cards.is-list .article-card:nth-child(odd) { border-right: 0; }
.article-cards.is-list .article-card a, .article-cards.is-list .article-card:nth-child(odd) a { gap: 24px; padding: 22px 0; }
.article-cards.is-list .ac-thumb-wrap { width: 260px; }
.article-cards.is-list .ac-title { font-size: 21px; }
@media (max-width: 700px) {
  .article-cards.is-list .article-card a, .article-cards.is-list .article-card:nth-child(odd) a { gap: 14px; padding: 16px 0; }
  .article-cards.is-list .ac-thumb-wrap { width: 120px; }
  .article-cards.is-list .ac-title { font-size: 19px; }
}
/* ロゴ(事務所マークの丸)と、一番下の住所の帯(フッター)は元の紺に戻す */
.author-badge:not(.is-photo):not(.sv-photo) { background: #121f3e; }
footer {
  color: #b9c1d3;
  background:
    linear-gradient(rgba(18,31,62,.80), rgba(18,31,62,.80)),
    url("photo/office.jpg") 30% 45% / cover no-repeat,
    #121f3e;
}
footer .copyright { color: #7d859a; }
/* --- いまの状況から探す:選択肢を選ぶと、すぐ下に記事が出る形(案B) --- */
.sit-finder { padding: 26px 26px 28px; background: var(--panel); border-radius: 12px; }
.sit-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sit-choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 18px 20px; text-align: left; cursor: pointer;
  font: inherit; color: var(--navy); background: #fff; border: 2px solid var(--line-strong); border-radius: 10px;
  transition: border-color .15s, background .15s, color .15s;
}
.sit-choice:hover { border-color: var(--navy); }
.sit-choice:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sit-choice[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sit-label { display: inline-block; padding: 0 10px; border-radius: 4px; background: var(--navy-100); color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.7; letter-spacing: .08em; }
.sit-choice[aria-selected="true"] .sit-label { background: rgba(255,255,255,.18); color: #fff; }
.sit-q { font-size: 21px; font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
/* 選んだあとに出る記事 */
.sit-panel { margin-top: 18px; padding: 20px 22px 8px; background: #fff; border: 2px solid var(--navy); border-radius: 10px; }
.sit-finder:not(.is-js) .sit-panel { border-width: 1px; border-color: var(--line-strong); }
.sit-panel-q { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--navy); }
.sit-links { list-style: none; margin: 0; padding: 0; }
.sit-links li + li { border-top: 1px solid var(--line); }
.sit-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 4px;
  font-size: 20px; font-weight: 700; line-height: 1.55; color: var(--navy); text-decoration: none; word-break: auto-phrase;
}
.sit-links a::after { content: ""; flex: none; width: 10px; height: 10px; border-top: 3px solid var(--gold); border-right: 3px solid var(--gold); transform: rotate(45deg); margin-right: 6px; }
.sit-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .sit-finder { padding: 18px 14px 20px; }
  .sit-choices { grid-template-columns: 1fr; gap: 10px; }
  .sit-choice { padding: 14px 16px; }
  .sit-q { font-size: 20px; }
  .sit-panel { padding: 14px 16px 4px; }
  .sit-links a { font-size: 19px; }
}
/* 状況から探す:横長のボタンを上から4つ。押したボタンのすぐ下に記事が開く */
.sit-finder { display: flex; flex-direction: column; gap: 14px; }
.sit-choice { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; }
.sit-choice .sit-q { flex: 1 1 auto; font-size: 22px; }
.sit-arrow { flex: none; width: 14px; height: 14px; margin-right: 6px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.sit-choice[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; border-radius: 10px 10px 0 0; }
.sit-choice[aria-expanded="true"] .sit-label { background: rgba(255,255,255,.18); color: #fff; }
.sit-choice[aria-expanded="true"] .sit-arrow { border-color: #fff; transform: rotate(-135deg) translate(-3px, -3px); }
.sit-item .sit-panel { margin-top: 0; padding: 8px 24px 6px; border: 2px solid var(--navy); border-top: 0; border-radius: 0 0 10px 10px; }
.sit-finder:not(.is-js) .sit-item .sit-panel { border: 1px solid var(--line-strong); border-top: 0; }
@media (max-width: 700px) {
  .sit-choice { gap: 10px; padding: 14px 16px; flex-wrap: wrap; }
  .sit-choice .sit-q { font-size: 20px; flex-basis: calc(100% - 40px); order: 2; }
  .sit-choice .sit-label { order: 1; }
  .sit-arrow { order: 3; }
  .sit-item .sit-panel { padding: 4px 16px 4px; }
}
/* =========================================================
   参考デザイン(やさしい案内ページ風)への調整 2026-10-05
   ・フォント:BIZ UDPゴシック(読みやすさ重視のUDフォント)。見出しもゴシックに統一
   ・字間と行間を広げる
   ・明るい若草系の緑+角の丸い薄緑の面、丸数字の見出し
   ・右バナーと「まずはご相談ください」の位置は変えない
   ========================================================= */
:root {
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: var(--font);
  --navy: #2e7d32; --navy-700: #23652a; --navy-50: #f1f7ec; --navy-100: #e1efd6;
  --panel: #f1f7ec; --line: #e3eadc; --line-strong: #cfdcc4;
  --head: #1e4227;
  --gold-ink: #7a6322;
  --radius: 12px;
}
body { font-family: var(--font); letter-spacing: .06em; line-height: 2.05; }
h1.title, article h2, article h3, .portal-title, .summary-box h2, .related h2, .sec-title, .featured-title, .hero-en, .top-hero h1.hero-title {
  font-family: var(--font); font-weight: 700; letter-spacing: .05em;
}
h1.title, .article-hero h1.title, .top-hero h1.hero-title, article h2, article h3, .sec-title, .featured-title, .summary-box h2, .related h2 { color: var(--head); }
h1.title { line-height: 1.45; }
p, li, td, th, dd, dt { letter-spacing: .06em; }
.ac-title, .sit-q, .sit-links a, .featured-title { letter-spacing: .05em; }

/* パンくず:先頭に家のマーク */
.crumb-band { background: none; border-bottom: 0; }
.breadcrumb li:first-child a::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11.5h3V21h5.5v-6h3v6H19v-9.5h3z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11.5h3V21h5.5v-6h3v6H19v-9.5h3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 冒頭:薄い緑の角丸カードの中に、文字と写真(写真の左側はカードになじませる) */
.kicker { padding: 4px 20px; border-radius: 999px; background: var(--navy); font-size: 19px; letter-spacing: .1em; }
.ah-date::before, .top-hero .meta::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.article-hero, .top-hero { border-bottom: 0; background: none; }
.article-hero .wrap, .top-hero .wrap { position: relative; }
.article-hero .wrap::before, .top-hero .wrap::before {
  content: ""; position: absolute; inset: 0 24px; z-index: 0; border-radius: 18px;
  background: linear-gradient(115deg, #f6faf1 0%, #eef6e6 55%, #e4f0d8 100%);
  box-shadow: 0 6px 24px rgba(46,125,50,.08);
}
.article-hero .wrap > *, .top-hero .wrap > * { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .article-hero { padding-top: 8px; }
  .article-hero .wrap { padding-top: 0; padding-bottom: 0; gap: 0; align-items: stretch; }
  .article-hero .article-head { padding: 40px 28px 40px 48px; align-self: center; }
  .article-hero .eyecatch { display: flex; }
  .article-hero .eyecatch img { height: 100%; min-height: 360px; border-radius: 0 18px 18px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
  .top-hero { padding: 24px 0 0; overflow: visible; }
  .top-hero .wrap { min-height: 420px; }
  .top-hero-text { padding-left: 48px; max-width: 50%; }
  .top-hero-figure.is-photo { top: 0; bottom: 0; right: 24px; width: 56%; z-index: 0; }
  .top-hero-figure.is-photo img { border-radius: 0 18px 18px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32%); mask-image: linear-gradient(to right, transparent 0, #000 32%); }
}
@media (max-width: 1023px) {
  .article-hero .wrap, .top-hero .wrap { padding-top: 20px; padding-bottom: 20px; }
  .article-hero .wrap::before, .top-hero .wrap::before { inset: 0 16px; }
  .article-hero .article-head, .top-hero-text { padding: 8px 20px 0; }
  .article-hero .eyecatch, .top-hero-figure { padding: 0 20px; }
  .top-hero { margin-top: 16px; }
}
@media (max-width: 700px) {
  .article-hero .wrap::before, .top-hero .wrap::before { inset: 0 8px; }
  .article-hero .article-head, .top-hero-text { padding: 8px 12px 0; }
  .article-hero .eyecatch, .top-hero-figure { padding: 0 12px; }
}

/* 大見出し:薄い緑の帯+緑の丸に白い数字 */
article section > h2 {
  margin: 0 0 26px; padding: 18px 24px 18px 96px; min-height: 0;
  background: var(--panel); border: 0; border-radius: 16px; line-height: 1.5;
}
article section > h2 .h2-num { left: 24px; top: 50%; transform: translateY(-50%); }
article section > h2 .h2-num::before {
  content: counter(sec); display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 28px; font-weight: 700; letter-spacing: 0;
}
article h3 { padding: 2px 0 2px 16px; border-bottom: 0; border-left: 6px solid var(--navy); border-radius: 0; }
@media (max-width: 700px) {
  article section > h2 { padding: 14px 16px 14px 70px; border-radius: 12px; }
  article section > h2 .h2-num { left: 14px; }
  article section > h2 .h2-num::before { width: 44px; height: 44px; font-size: 23px; }
}

/* この記事でわかること:芽のマークの丸+緑のラベル(参考の「簡単に言うと」の箱) */
.summary { position: relative; padding: 26px 28px 24px 116px; border-radius: 16px; background: var(--panel); }
.summary::before {
  content: ""; position: absolute; left: 26px; top: 26px; width: 66px; height: 66px; border-radius: 50%;
  background: #dfeed2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4 3-6 7-6 0 4-3 6-7 6zM12 13c0-3.5-2.6-5.2-6-5.2 0 3.5 2.6 5.2 6 5.2z' fill='%232e7d32'/%3E%3C/svg%3E") center / 38px no-repeat;
}
.summary-title { display: inline-block; padding: 2px 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; }
@media (max-width: 700px) {
  .summary { padding: 82px 18px 20px; }
  .summary::before { left: 18px; top: 16px; width: 54px; height: 54px; background-size: 30px; }
  .summary-title { position: absolute; left: 84px; top: 28px; }
}
/* ポイントの箱:同じ薄緑の面 */
.point-box { background: var(--panel); border: 0; border-radius: 14px; padding: 20px 24px; }
.point-box strong { color: var(--head); }
/* 箇条書き:緑の丸い点 */
article ul.plain, .summary-box ul.plain { background: none; padding: 4px 0; }
article ul.plain li { padding-left: 26px; }
article ul.plain li::before { top: .8em; width: 10px; height: 10px; background: var(--navy); }
.summary ul.plain li::before { background: var(--navy); }
/* 注意書き:薄いオレンジの箱+「!」の丸 */
.disclaimer {
  position: relative; margin-top: 28px; padding: 20px 24px 20px 84px; border-radius: 14px;
  background: #fdf3e6; color: var(--ink); line-height: 1.9;
}
.disclaimer::before {
  content: "!"; position: absolute; left: 24px; top: 20px; width: 42px; height: 42px; border-radius: 50%;
  background: #ea8a1e; color: #fff; font-size: 26px; font-weight: 700; line-height: 42px; text-align: center; letter-spacing: 0;
}

/* 本文の目次:緑の丸数字 */
.toc-acc { border-radius: 14px; }
.toc-acc li a b { min-width: 0; }
.toc-acc li a b::before {
  content: counter(toc); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 18px; letter-spacing: 0;
}

/* 右側の目次「この記事の目次」:本のマーク、緑の丸数字、右に「>」 */
.side-toc-box { border-radius: 14px; border-color: var(--line-strong); }
.side-toc-title { display: flex; align-items: center; gap: 10px; color: var(--head); }
.side-toc-title::before {
  content: ""; flex: none; width: 26px; height: 26px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 6c-2-1.5-5-2-9-2v14c4 0 7 .5 9 2 2-1.5 5-2 9-2V4c-4 0-7 .5-9 2zM12 6v14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 6c-2-1.5-5-2-9-2v14c4 0 7 .5 9 2 2-1.5 5-2 9-2V4c-4 0-7 .5-9 2zM12 6v14'/%3E%3C/svg%3E") center / contain no-repeat;
}
.side-toc li a { align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-left: 0; border-bottom: 1px solid var(--line); }
.side-toc li:last-child a { border-bottom: 0; }
.side-toc li a::after { content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid var(--ink-sub); border-right: 2px solid var(--ink-sub); transform: rotate(45deg); }
.side-toc li a b {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; letter-spacing: 0;
}
.side-toc li a.is-active { border-left: 0; padding-left: 14px; background: var(--panel); }

/* 右側の監修者・関連記事:角丸の薄緑カード。関連記事は文字が左・写真が右、右下に緑の丸い矢印 */
.side-box { border-radius: 14px; }
.side-box-title { color: var(--head); }
.side-rel-list { gap: 12px; }
.side-rel-list li + li { padding-top: 0; border-top: 0; }
.side-rel-list a {
  position: relative; flex-direction: row-reverse; align-items: center; gap: 12px; padding: 16px 16px 40px;
  border-radius: 12px; background: linear-gradient(115deg, #f6faf1, #e6f1db);
}
.side-rel-list a::after {
  content: ""; position: absolute; right: 14px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7l5 5-5 5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.side-rel-list .rl-body { color: var(--head); }
.side-rel-list .rl-thumb { width: 100px; border-radius: 8px; }

/* トップの各見出し:薄緑の帯+緑の縦線 */
.sec-head { padding: 14px 22px; background: var(--panel); border-radius: 14px; }
.sec-head::after { display: none; }
.sec-title { padding-left: 16px; border-left: 6px solid var(--navy); line-height: 1.4; }
.sec-more { margin-left: auto; }
.hero-en { color: var(--navy); }
/* 状況から探す・注目の記事・一覧の面も角丸に */
.sit-finder { border-radius: 16px; }
.sit-choice, .sit-item .sit-panel { border-radius: 12px; }
.sit-choice[aria-expanded="true"] { border-radius: 12px 12px 0 0; }
.sit-item .sit-panel { border-radius: 0 0 12px 12px; }
.featured-thumb, .article-cards.is-list .ac-thumb-wrap { border-radius: 12px; }
.ac-tag, .featured .ac-tag { border-color: var(--navy); color: var(--navy); border-radius: 999px; padding: 0 14px; }
.portal-supervisor { border-radius: 14px; background: var(--panel); border: 0; }
/* 表:角を丸く */
.table-wrap { border-radius: 12px; }
@media (max-width: 700px) {
  .sec-head { flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; }
  .sec-more { margin-left: 22px; }
}

/* トップの写真はカードの右半分いっぱいに(上の「中身をrelativeに」の指定より優先) */
@media (min-width: 1024px) {
  .top-hero .wrap > .top-hero-figure.is-photo { position: absolute; top: 0; bottom: 0; right: 24px; width: 56%; z-index: 0; }
}

/* 注目の記事:縦長の写真を文字の高さいっぱいに(上下の余白を出さない) */
.featured { align-items: stretch; }
.featured-thumb.is-photo { height: 100%; }
.featured-thumb.is-photo img { height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 68%; }
@media (max-width: 700px) {
  .featured-thumb.is-photo img { height: auto; aspect-ratio: 4 / 3; }
}
/* 基礎知識の記事の冒頭写真(縦長):机の上の本・砂時計が見える位置で切り抜く */
.article-hero .eyecatch.is-photo img[src*="thumb-souzoku-kiso"] { object-position: 50% 68%; }
@media (max-width: 1023px) {
  .article-hero .eyecatch.is-photo img[src*="thumb-souzoku-kiso"] { aspect-ratio: 3 / 2; }
}

/* トップ最下部の事務所名は紺に */
.author h3 { color: #121f3e; }

/* トップ冒頭の「相続コラム」をタイトルらしく:大きく・太く・緑の下線 */
.top-hero h1.hero-title {
  display: inline-block; margin-bottom: 26px; padding-bottom: 10px; font-size: 72px; line-height: 1.2; letter-spacing: .08em;
  color: var(--head); border-bottom: 6px solid var(--navy); text-shadow: 0 0 .5px var(--head), 0 0 1px var(--head);
}
.hero-en { font-size: 20px; font-weight: 700; letter-spacing: .3em; }
@media (max-width: 700px) {
  .top-hero h1.hero-title { font-size: 46px; border-bottom-width: 5px; }
}
/* --- スマホ版「まずはご相談ください」:縦長の画像(右バナーと同じ710×1130)+押せる範囲 --- */
.consult-sp { display: none; position: relative; margin: 40px 0 0; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.consult-sp img { display: block; width: 100%; height: auto; }
@media (max-width: 700px) {
  .consult-sp { display: block; }
  .consult-banner + .consult-sp + .consult { display: none; }
}
/* 画像版があるページでは、文字の旧枠はどの画面幅でも出さない */
.consult-sp + .consult { display: none; }

/* --- フォントをNoto Sans JPに(2026-10-05) --- */
:root { --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; --font-serif: var(--font); }

/* --- 左右の余白を詰める:PCは本文の幅を広げ、右側は固定幅に。スマホは外側の余白と箱の内側の余白を少し小さく --- */
.wrap { max-width: 1360px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; }
}
@media (max-width: 1023px) {
  .layout, header.site .wrap, .section-nav .wrap, .crumb-band .wrap { max-width: none; }
  .article-hero .wrap, .top-hero .wrap { max-width: none; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 12px; }
  .article-hero .wrap::before, .top-hero .wrap::before { inset: 0 4px; }
  .sit-finder { padding: 14px 10px 16px; }
  .summary { padding-left: 14px; padding-right: 14px; }
  .point-box, .disclaimer { padding-left: 16px; padding-right: 16px; }
  .disclaimer { padding-left: 70px; }
  .disclaimer::before { left: 16px; }
}
/* 注目の記事:写真の高さを右の文章の高さに合わせる(写真は上側を切って、机の上の本・砂時計を残す) */
@media (min-width: 701px) {
  .featured { align-items: stretch; }
  .featured-thumb.is-photo { position: relative; height: auto; min-height: 0; }
  .featured-thumb.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: 50% 92%; }
}
/* =========================================================
   小さなラベルの統一・角丸を控えめに・セクション間を広く(2026-10-05)
   ========================================================= */
/* 小さなラベル:注目の記事の「基礎知識」と同じ形(白地・緑の細い枠・緑の文字・丸い端) */
.ac-tag, .featured .ac-tag, .article-cards.is-list .ac-tag, .article-card .ac-tag, .sit-label {
  display: inline-block; padding: 0 14px; border: 1px solid var(--navy); border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 18px; font-weight: 700; line-height: 1.75; letter-spacing: .06em;
}
/* 選んで緑になったボタンの中では、白い枠・白い文字に */
.sit-choice[aria-expanded="true"] .sit-label, .sit-choice[aria-selected="true"] .sit-label { background: transparent; border-color: #fff; color: #fff; }

/* 角丸を控えめに */
:root { --radius: 8px; }
.article-hero .wrap::before, .top-hero .wrap::before { border-radius: 10px; }
@media (min-width: 1024px) {
  .article-hero .eyecatch img, .top-hero-figure.is-photo img { border-radius: 0 10px 10px 0; }
}
article section > h2, .summary, .sit-finder { border-radius: 10px; }
.sec-head, .point-box, .disclaimer, .toc-acc, .side-toc-box, .side-box, .portal-supervisor, .sit-choice { border-radius: 8px; }
.sit-choice[aria-expanded="true"] { border-radius: 8px 8px 0 0; }
.sit-item .sit-panel { border-radius: 0 0 8px 8px; }
.side-rel-list a, .consult-banner, .consult-sp, .side-banner.is-image, .dc, .example, .faq-box { border-radius: 8px; }
.featured-thumb, .article-cards.is-list .ac-thumb-wrap, .table-wrap, .side-rel-list .rl-thumb, .eyecatch img, .section-illust img { border-radius: 6px; }
@media (max-width: 700px) { article section > h2 { border-radius: 8px; } }

/* セクションの間を広く */
.portal { margin-top: 88px; }
.portal:first-child { margin-top: 56px; }
article section { padding-top: 80px; }
.summary-box, .related { margin-top: 80px; }
.consult-banner, .consult-sp { margin-top: 80px; }
.toc-acc { margin-top: 36px; }
.dc { margin-top: 40px; }
@media (max-width: 700px) {
  .portal { margin-top: 64px; }
  .portal:first-child { margin-top: 40px; }
  article section { padding-top: 60px; }
  .summary-box, .related, .consult-banner, .consult-sp { margin-top: 60px; }
}
/* コラム一覧の監修者カード(案A):白地+緑の細枠、写真は角丸の四角、ラベル・名前・一文を3段に */
.portal-supervisor.is-card { align-items: center; gap: 22px; margin: 4px 0 28px; padding: 18px 22px; background: #fff; border: 1px solid var(--navy); border-radius: 8px; }
.portal-supervisor.is-card img { width: 96px; height: 96px; border-radius: 6px; box-shadow: none; object-position: 50% 15%; }
.ps-body { min-width: 0; }
.ps-body .ac-tag { margin-bottom: 4px; }
.ps-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; color: var(--head); letter-spacing: .08em; }
.ps-text { margin: 2px 0 0; font-size: 18px; line-height: 1.8; color: var(--ink); }
@media (max-width: 700px) {
  .portal-supervisor.is-card { gap: 14px; padding: 14px; }
  .portal-supervisor.is-card img { width: 80px; height: 80px; }
  .ps-name { font-size: 21px; }
}
/* 監修者カードの「監修」を緑のリボンに(右端を燕尾形に切り込む) */
.portal-supervisor.is-card .ps-body .ac-tag {
  position: relative; margin-bottom: 6px; padding: 2px 30px 2px 16px; border: 0; border-radius: 0;
  background: var(--navy); color: #fff; letter-spacing: .14em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%);
  box-shadow: none;
}
/* =========================================================
   ヘッダー(2026-10-05):電話番号を大きく目立たせ、右に「メールで相談」「LINEで相談する」
   ========================================================= */
header.site .wrap { padding-top: 12px; padding-bottom: 12px; }
.header-tel { display: flex; align-items: center; gap: 14px; }
.header-tel-big { display: flex; flex-direction: column; align-items: stretch; text-decoration: none; text-align: center; }
.htb-label { display: block; padding: 0 12px; border-radius: 4px 4px 0 0; background: var(--navy); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: .1em; }
.htb-num { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; font-size: 38px; font-weight: 700; line-height: 1.25; letter-spacing: .02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.htb-num .tel-icon { width: 30px; height: 30px; color: var(--navy); }
.htb-hours { display: block; border: 1px solid var(--navy); border-radius: 0 0 4px 4px; color: var(--navy); font-size: 18px; line-height: 1.5; }
.header-tel-big:hover .htb-num { color: var(--navy-700); }
.header-mail, .header-line {
  display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 22px; border-radius: 8px;
  font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-decoration: none; white-space: nowrap;
}
.header-mail { background: #fff; color: var(--navy); border: 2px solid var(--navy); cursor: default; }
.header-mail[href] { cursor: pointer; }
.header-mail[href]:hover { background: var(--panel); }
.hm-icon { flex: none; width: 28px; height: 28px; background: currentColor;
  -webkit-mask: url("icon/mail.svg") center / contain no-repeat; mask: url("icon/mail.svg") center / contain no-repeat; }
.header-line { background: var(--green); color: #fff; border: 2px solid var(--green); }
.header-line:hover { background: var(--green-700); border-color: var(--green-700); }
.header-line img { flex: none; width: 32px; height: 32px; border-radius: 7px; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 1180px) and (min-width: 701px) {
  .htb-num { font-size: 30px; }
  .header-mail, .header-line { padding: 0 14px; font-size: 18px; }
}
@media (max-width: 960px) and (min-width: 701px) { .header-mail { display: none; } }
@media (max-width: 700px) {
  header.site .wrap { padding-top: 8px; padding-bottom: 8px; }
  .header-tel { gap: 8px; }
  .htb-label, .htb-hours, .header-mail { display: none; }
  .htb-num { padding: 4px 10px; border: 2px solid var(--navy); border-radius: 8px; font-size: 19px; }
  .htb-num .tel-icon { width: 18px; height: 18px; }
  .header-line { display: inline-flex; min-height: 0; padding: 4px; border-radius: 8px; font-size: 0; gap: 0; }
  .header-line img { width: 34px; height: 34px; box-shadow: none; }
}

/* 冒頭(相続コラム)の下の間隔を、注目の記事の下の間隔と同じに */
.portal:first-child { margin-top: 80px; }
@media (max-width: 700px) { .portal:first-child { margin-top: 56px; } }@media (max-width: 700px) { .portal:first-child { margin-top: 64px; } }

/* メールのアイコンはHTMLに直接埋め込んだSVG(ブラウザでファイルを直接開いたときも表示される)。色は文字と同じ緑 */
.hm-icon { flex: none; width: 28px; height: 28px; background: none; -webkit-mask: none; mask: none; color: var(--navy); }

/* ヘッダーをスクロールしても上に残す。高さ(--hh)はcolumn.jsで実測して、ほかの追従部分をその下にずらす */
header.site { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.section-nav { top: var(--hh, 0px); z-index: 80; }
.side-sticky { top: calc(var(--hh, 0px) + 20px); max-height: calc(100vh - var(--hh, 0px) - 40px); }
html { scroll-padding-top: calc(var(--hh, 0px) + var(--nh, 0px) + 16px); }
/* ヘッダーの受付時間は枠なしで */
.htb-hours { border: 0; border-radius: 0; color: var(--ink-sub); }

/* トップ:右バナーの上端を「注目の記事」の見出しの上端にそろえる(.portal:first-child の上の余白と同じ) */
.top-hero + main .side-col { padding-top: 80px; }

/* ヘッダー(参考:平安祭典):左にロゴ大きめ/中央に電話/右に受付時間+ボタン2つ。電話とボタン側の高さをそろえる */
header.site .wrap { align-items: center; gap: 24px; }
.brand img { height: 64px; width: auto; }
.header-tel { gap: 22px; align-items: stretch; }
.header-tel-big { justify-content: center; }
.htb-label { border-radius: 4px; }
.htb-num { font-size: 42px; line-height: 1.2; padding-top: 2px; }
.htb-num .tel-icon { width: 32px; height: 32px; }
.header-actions { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.header-hours { margin: 0; text-align: right; font-size: 18px; line-height: 1.5; color: var(--ink-sub); letter-spacing: .04em; }
.header-btns { display: flex; gap: 12px; }
.header-btns .header-mail, .header-btns .header-line { min-height: 58px; justify-content: center; min-width: 190px; }
@media (max-width: 1180px) and (min-width: 701px) {
  .brand img { height: 52px; }
  .htb-num { font-size: 32px; }
  .header-btns .header-mail, .header-btns .header-line { min-width: 0; }
}
@media (max-width: 960px) and (min-width: 701px) { .header-hours { display: none; } .header-actions { justify-content: center; } }
@media (max-width: 700px) {
  .brand img { height: 34px; }
  .header-hours { display: none; }
  .header-btns .header-line { min-height: 0; min-width: 0; }
}@media (max-width: 700px) {
  header.site .wrap { gap: 8px; }
  .header-tel { gap: 8px; align-items: center; }
  .htb-num { font-size: 19px; line-height: 1.4; padding: 4px 10px; white-space: nowrap; }
  .htb-num .tel-icon { width: 18px; height: 18px; }
  .header-actions { justify-content: center; }
  .brand img { height: 36px; }
}

/* 受付時間はボタン列の左端(メールで相談の上)にそろえる */
.header-hours { text-align: left; }

/* =========================================================
   改善(2026-10-06):タイトル/スマホのCTA/読みやすさ/診断の目立たせ方 ※文章は変えていない
   ========================================================= */
/* --- トップのタイトル --- */
.top-hero h1.hero-title { font-size: 56px; line-height: 1.35; letter-spacing: .06em; padding-bottom: 14px; margin-bottom: 18px; }
.hero-sub { margin: 0 0 18px; font-size: 24px; font-weight: 700; line-height: 1.6; color: var(--navy); letter-spacing: .08em; }
@media (max-width: 1180px) and (min-width: 1024px) { .top-hero h1.hero-title { font-size: 46px; } }
@media (max-width: 700px) {
  .top-hero h1.hero-title { font-size: 34px; }
  .hero-sub { font-size: 20px; }
}

/* --- 画面下の固定ボタン(右側のバナーが出ない1023px以下) --- */
.sp-cta-bar { display: none; }
@media (max-width: 1023px) {
  .sp-cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .sp-cta-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border-radius: 8px;
    font-size: 18px; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: #fff;
  }
  .sp-cta-tel { background: var(--navy); }
  .sp-cta-tel svg { width: 22px; height: 22px; }
  .sp-cta-line { background: var(--green); }
  .sp-cta-line img { width: 28px; height: 28px; border-radius: 6px; box-shadow: 0 0 0 2px #fff; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) { .sp-cta-bar a { font-size: 18px; gap: 5px; padding: 0 4px; } .sp-cta-bar a span { letter-spacing: 0; } }

/* --- 記事の途中の相談ボタン(右側のバナーが出ない画面だけ) --- */
.mid-cta { display: none; }
@media (max-width: 1023px) {
  .mid-cta { display: block; margin: 40px 0 0; padding: 20px 18px; border-radius: 8px; background: var(--panel); border-left: 6px solid var(--navy); }
  .mid-cta-title { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--head); }
  .mid-cta .cta-buttons { display: flex; flex-direction: column; gap: 10px; }
  .mid-cta .btn { width: 100%; justify-content: center; font-size: 18px; min-height: 56px; }
}
/* 既存の記事途中の相談欄も同じくらい目立つように */
.inline-cta { border-radius: 8px; }

/* --- 読みやすさ:段落・見出し前後の余白を広げ、強調をはっきり --- */
article p { margin-bottom: 26px; }
article h3 { margin-top: 48px; margin-bottom: 18px; }
article ul.plain { margin-bottom: 28px; }
article strong, .summary strong { background: linear-gradient(transparent 55%, rgba(255, 214, 102, .65) 55%); color: var(--head); }
.u-em { background: linear-gradient(transparent 55%, rgba(255, 214, 102, .65) 55%); color: var(--head); }
/* 要約が長い記事は、スマホでは最初に短く見せて「続きを読む」で開く */
.summary.is-folded { position: relative; max-height: 360px; overflow: hidden; }
.summary.is-folded::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(rgba(241,247,236,0), var(--panel) 70%); pointer-events: none; }
.summary-more { display: none; }
.summary.is-folded + .summary-more, .summary-more.is-open { display: flex; }
.summary-more {
  align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 10px 0 0; padding: 12px; cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 700; color: var(--navy); background: #fff; border: 2px solid var(--navy); border-radius: 8px;
}

/* --- 診断(期限リスト):色付きの面+太い枠+カレンダーのアイコンで、ほかの箱と区別 --- */
.dc { background: #fff8e8; border: 3px solid #e0a43a; border-radius: 10px; padding-top: 30px; box-shadow: 0 6px 20px rgba(224,164,58,.18); }
.dc::before { display: none; }
.dc-badge { background: #e07b1a; color: #fff; padding: 2px 16px; font-size: 18px; border-radius: 999px; }
.dc-title { display: flex; align-items: center; gap: 12px; font-size: 26px; color: #8a4b08; }
.dc-title::before {
  content: ""; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: #e07b1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 15l2.5 2.5L16 13'/%3E%3C/svg%3E") center / 26px no-repeat;
}
.dc-form { background: #fff; border: 1px solid #f0d3a0; }
.dc-run { background: #e07b1a; font-size: 20px; padding: 16px 40px; box-shadow: 0 4px 0 #b25e0d; }
.dc-run:hover { background: #c96a10; }
@media (max-width: 700px) {
  .dc-title { font-size: 22px; }
  .dc-title::before { width: 40px; height: 40px; background-size: 22px; }
  .dc-run { width: 100%; }
}
/* --- 診断(期限リスト)※deadline-calc.cssより優先:色付きの面+太い枠+カレンダーのアイコンで、ほかの箱と区別 --- */
body .dc { background: #fff8e8; border: 3px solid #e0a43a; border-radius: 10px; padding-top: 30px; box-shadow: 0 6px 20px rgba(224,164,58,.18); }
body .dc::before { display: none; }
body .dc-badge { background: #e07b1a; color: #fff; padding: 2px 16px; font-size: 18px; border-radius: 999px; }
body .dc-title { display: flex; align-items: center; gap: 12px; font-size: 26px; color: #8a4b08; }
body .dc-title::before {
  content: ""; flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: #e07b1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 15l2.5 2.5L16 13'/%3E%3C/svg%3E") center / 26px no-repeat;
}
body .dc-form { background: #fff; border: 1px solid #f0d3a0; }
body .dc-run { background: #e07b1a; font-size: 20px; padding: 16px 40px; box-shadow: 0 4px 0 #b25e0d; }
body .dc-run:hover { background: #c96a10; }
@media (max-width: 700px) {
  body .dc-title { font-size: 22px; }
  body .dc-title::before { width: 40px; height: 40px; background-size: 22px; }
  body .dc-run { width: 100%; }
}

/* =========================================================
   改善(2026-10-06 その2)
   ========================================================= */
/* 冒頭の相談欄(要約のすぐ下、スマホ・タブレットだけ) */
.mid-cta.is-early { margin-top: 20px; }

/* 診断の入口(期限リストがない記事の1章の終わり・トップ) */
.dc-entry-wrap { margin: 36px 0 0; }
.dc-entry {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: inherit;
  background: #fff8e8; border: 3px solid #e0a43a; border-radius: 10px; box-shadow: 0 4px 14px rgba(224,164,58,.16); transition: transform .15s, box-shadow .15s;
}
.dc-entry:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,164,58,.25); }
.dc-entry-icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: #e07b1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4M8 15l2.5 2.5L16 13'/%3E%3C/svg%3E") center / 28px no-repeat;
}
.dc-entry-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dc-entry .dc-badge { display: inline-block; margin: 0; padding: 1px 14px; border-radius: 999px; background: #e07b1a; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; }
.dc-entry-title { font-size: 20px; font-weight: 700; line-height: 1.5; color: #8a4b08; word-break: auto-phrase; }
.dc-entry-btn { flex: none; padding: 12px 22px; border-radius: 8px; background: #e07b1a; color: #fff; font-size: 18px; font-weight: 700; box-shadow: 0 4px 0 #b25e0d; white-space: nowrap; }
@media (max-width: 700px) {
  .dc-entry { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .dc-entry-icon { width: 44px; height: 44px; background-size: 24px; }
  .dc-entry-text { flex-basis: calc(100% - 60px); }
  .dc-entry-btn { flex-basis: 100%; text-align: center; padding: 14px; }
}

/* 下へスクロール中はページ内メニューを隠して、読める範囲を広げる(上へ戻ると再表示) */
.section-nav { transition: transform .25s ease; }
html.is-scrolling-down .section-nav { transform: translateY(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }

/* トップのタイトル・紹介文:言葉の途中で行が変わらないように */
.hero-sub, .top-hero .lead { word-break: auto-phrase; text-wrap: pretty; }
@media (max-width: 700px) {
  .top-hero .lead br { display: none; }
  .hero-sub { font-size: 19px; }
}
/* 記事の途中の「まずはご相談ください」を画像バナーに(右側のバナーが出ない1023px以下だけ)。幅701〜1023pxは横長、700px以下は縦長 */
.mid-banner { display: none; }
@media (max-width: 1023px) {
  .mid-banner { display: block; margin: 40px 0 0; }
  .mid-banner.is-early { margin-top: 24px; }
  .mid-banner .mb-wide, .mid-banner .mb-tall { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
  .mid-banner img { display: block; width: 100%; height: auto; }
  .mid-banner .mb-tall { display: none; }
}
@media (max-width: 700px) {
  .mid-banner .mb-wide { display: none; }
  .mid-banner .mb-tall { display: block; }
}

/* =========================================================
   調整(2026-10-06 その3)
   ========================================================= */
/* 診断:左右の入力欄の高さをそろえる(項目名が2行になっても、入力欄は下端でそろう) */
body .dc-form { align-items: end; }

/* 右側(記事ページ):バナーは上で止めず、目次だけを画面に付いてこさせて、目次を縦いっぱいに表示 */
@media (min-width: 1024px) {
  main:not(.is-top) .side-sticky { display: contents; }
  .side-toc-box {
    position: sticky; top: calc(var(--hh, 0px) + 20px); margin-top: 16px;
    max-height: calc(100vh - var(--hh, 0px) - 40px); padding: 16px 0 10px;
  }
  .side-toc { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .side-toc li a { padding-top: 12px; padding-bottom: 12px; line-height: 1.6; }
  .side-toc-title { font-size: 20px; padding: 0 18px 10px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
}
/* トップページは今までどおりバナーごと付いてくる */
.top-hero + main .side-sticky { display: flex; }

/* スマホの本文の目次:最初は閉じた状態にして、押すと開く */
@media (max-width: 1023px) {
  .toc-acc summary { min-height: 60px; padding: 14px 18px; font-size: 20px; background: var(--panel); border-radius: 8px; }
  .toc-acc[open] summary { border-radius: 8px 8px 0 0; }
  .toc-acc summary .toc-count { margin-left: 10px; font-size: 18px; font-weight: 400; color: var(--ink-sub); letter-spacing: .02em; }
  .toc-acc summary::after { width: 12px; height: 12px; border-width: 3px; border-color: var(--navy); }
}
/* =========================================================
   調整(2026-10-06 その4):スマホのメニューをアコーディオンに/PCは3列(左:目次・コラム一覧、右:バナー)
   ========================================================= */
/* 右側は元どおりバナーが付いてくる形に戻す */
@media (min-width: 1024px) { main:not(.is-top) .side-sticky, .side-sticky { display: flex; } }

/* ページ内メニュー:ヘッダーに貼り付けず、押すと開く「目次」に(1023px以下) */
details.section-nav { position: static; top: auto; transform: none !important; visibility: visible !important; background: #fff; border-bottom: 1px solid var(--line); }
details.section-nav summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font-size: 20px; font-weight: 700; color: var(--head); background: var(--panel);
}
details.section-nav summary::-webkit-details-marker { display: none; }
details.section-nav summary::before { content: ""; flex: none; width: 5px; height: 1.2em; background: var(--navy); }
details.section-nav .sn-count { font-size: 18px; font-weight: 400; color: var(--ink-sub); }
details.section-nav summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-left: auto; margin-right: 6px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
details.section-nav[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details.section-nav .wrap { display: flex; flex-direction: column; gap: 0; padding: 4px 16px 10px; overflow: visible; white-space: normal; }
details.section-nav .wrap a { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--navy); text-decoration: none; white-space: normal; }
details.section-nav .wrap a:last-child { border-bottom: 0; }
details.section-nav .wrap a::after { content: ""; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); margin-left: 12px; }
html { scroll-padding-top: calc(var(--hh, 0px) + 16px); }

/* PC 3列:画面が広いとき(1400px以上)は、左に「この記事の目次」と「コラム一覧」 */
.left-col { display: none; }
@media (min-width: 1400px) {
  .wrap { max-width: 1720px; }
  .layout { grid-template-columns: 280px minmax(0, 1fr) 360px; gap: 40px; }
  .left-col { display: block; min-width: 0; align-self: stretch; padding-top: 24px; }
  .top-hero + main .left-col { padding-top: 80px; }
  .left-sticky { position: sticky; top: calc(var(--hh, 0px) + 20px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--hh, 0px) - 40px); overflow-y: auto; }
  .left-col .side-toc-box { position: static; margin: 0; max-height: none; flex: none; }
  .left-col .side-toc { overflow: visible; }
  .left-box { padding: 16px 16px 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; }
  .left-list ul { list-style: none; margin: 0; padding: 0; }
  .left-list li + li { border-top: 1px solid var(--line); }
  .left-list a { display: block; padding: 10px 2px; font-size: 18px; line-height: 1.55; color: var(--navy); text-decoration: none; word-break: auto-phrase; }
  .left-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .left-list .is-current a { font-weight: 700; color: var(--head); background: var(--panel); padding-left: 10px; border-left: 4px solid var(--navy); }
}@media (min-width: 1400px) { .layout { grid-template-columns: 300px minmax(0, 1fr) 360px; } }

/* 左の欄:目次とコラム一覧を、スクロールせずに両方見えるように詰める(右のバナーと同じく付いてくる) */
@media (min-width: 1400px) {
  .left-sticky { gap: 14px; }
  .left-col .side-toc-box, .left-box { padding: 14px 14px 8px; }
  .left-col .side-toc-title, .left-box .side-box-title { margin: 0 0 6px; padding: 0 0 8px; font-size: 19px; border-bottom: 2px solid var(--navy); }
  .left-col .side-toc li a { padding: 7px 4px 7px 6px; line-height: 1.45; align-items: center; }
  .left-col .side-toc li a b { width: 26px; height: 26px; font-size: 18px; }
  .left-list a { padding: 7px 2px; line-height: 1.45; }
  .left-list .is-current a { padding-left: 8px; }
}@media (min-width: 1400px) {
  .left-sticky { gap: 10px; top: calc(var(--hh, 0px) + 14px); max-height: calc(100vh - var(--hh, 0px) - 24px); }
  .left-col .side-toc li a, .left-list a { padding-top: 5px; padding-bottom: 5px; }
  .left-col .side-toc-box, .left-box { padding: 10px 14px 6px; }
}
@media (min-width: 1400px) { .left-box .side-box-title { border-left: 0; padding-left: 2px; letter-spacing: .08em; } }

/* 画面下の固定ボタン:幅の狭いスマホでも1行に収める(アイコンを省き、字間を詰める) */
.sp-cta-bar a span { white-space: nowrap; }
@media (max-width: 400px) {
  .sp-cta-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .sp-cta-bar a { gap: 0; padding: 0 2px; letter-spacing: 0; }
  .sp-cta-bar a svg, .sp-cta-bar a img { display: none; }
}
@media (max-width: 700px) {
  .article-cards.is-list .article-card a { min-width: 0; }
  .article-cards.is-list .ac-text { flex: 1 1 auto; min-width: 0; }
  .article-cards.is-list .ac-title, .article-cards.is-list .ac-desc { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .article-cards.is-list .ac-thumb-wrap { width: 96px; }
  .example .row { flex-wrap: wrap; }
  .example .row dd { margin-left: auto; }
}
@media (max-width: 420px) {
  .example .row { flex-wrap: wrap; }
  .example .row dd { margin-left: auto; }
}

/* 章の写真(3:2)。イラストと同じ幅で、写真の比率のまま表示 */
.section-illust.is-photo img { aspect-ratio: 3 / 2; object-fit: cover; border: 0; background: none; }

/* ヘッダーのテキストロゴ「イージス相続ガイド」 */
.text-logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.25; white-space: nowrap; }
.tl-main { font-size: 32px; font-weight: 700; color: var(--head); letter-spacing: .06em; }
.tl-sub { margin-top: 4px; font-size: 18px; color: var(--ink-sub); letter-spacing: .08em; }
.text-logo:hover .tl-main { color: var(--navy); }
@media (max-width: 1180px) and (min-width: 701px) { .tl-main { font-size: 26px; } }
@media (max-width: 700px) {
  .tl-main { font-size: 19px; letter-spacing: .02em; }
  .tl-sub { display: none; }
}
@media (max-width: 360px) { .tl-main { font-size: 18px; letter-spacing: 0; } }/* テキストロゴ:画面幅に合わせて縮め、ヘッダーに収める */
.brand { flex: 0 1 auto; min-width: 0; }
@media (max-width: 1399px) and (min-width: 1024px) {
  .tl-main { font-size: 24px; letter-spacing: .03em; }
  .tl-sub { font-size: 18px; letter-spacing: 0; }
  header.site .wrap { gap: 16px; }
  .header-tel { gap: 14px; }
  .htb-num { font-size: 30px; }
  .header-btns { gap: 8px; }
  .header-btns .header-mail, .header-btns .header-line { min-width: 0; padding: 0 12px; font-size: 18px; }
  .header-btns .header-line img { width: 26px; height: 26px; }
  .hm-icon { width: 22px; height: 22px; }
}
@media (max-width: 1180px) and (min-width: 1024px) { .header-hours { display: none; } .header-actions { justify-content: center; } .tl-sub { display: none; } }
@media (max-width: 1023px) and (min-width: 701px) {
  .tl-main { font-size: 24px; }
  .tl-sub { font-size: 18px; }
  .htb-num { font-size: 28px; }
}
@media (max-width: 860px) and (min-width: 701px) { .tl-sub { display: none; } .header-line { padding: 0 12px; } }
@media (max-width: 700px) {
  header.site .wrap { gap: 6px; }
  .tl-main { font-size: 18px; letter-spacing: 0; line-height: 1.3; white-space: normal; word-break: keep-all; }
  .text-logo { white-space: normal; max-width: 5.2em; }
  .htb-num { font-size: 18px; padding: 4px 8px; gap: 4px; }
  .htb-num .tel-icon { width: 16px; height: 16px; }
  .header-line { padding: 3px; }
  .header-line img { width: 32px; height: 32px; }
}.brand a.text-logo { display: inline-flex; flex-direction: column; align-items: flex-start; }
.text-logo .tl-main, .text-logo .tl-sub { display: block; }
@media (max-width: 1180px) and (min-width: 1024px) { .text-logo .tl-sub { display: none; } }
@media (max-width: 860px) { .text-logo .tl-sub { display: none; } }
@media (max-width: 700px) { .brand { flex: 0 0 auto; } .brand a.text-logo { max-width: 5.2em; } }
.tl-w { display: inline-block; }
@media (max-width: 700px) {
  .brand a.text-logo { max-width: none; }
  .tl-main { white-space: normal; word-break: normal; font-size: 18px; line-height: 1.25; }
  .tl-w { display: block; }
  .header-tel { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 340px) { .htb-num { font-size: 18px; padding: 3px 6px; } .htb-num .tel-icon { display: none; } .header-line img { width: 28px; height: 28px; } }

/* ヘッダーのロゴ画像「イージス相続ガイド」(下に事務所名を小さく) */
.brand img.tl-img { display: block; height: 58px; width: auto; max-width: 100%; }
.text-logo .tl-sub { margin-top: 2px; font-size: 18px; }
@media (max-width: 1399px) and (min-width: 1024px) { .brand img.tl-img { height: 48px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 46px; } }
@media (max-width: 700px) { .brand img.tl-img { height: auto; width: 128px; } .brand a.text-logo { max-width: none; } }
@media (max-width: 360px) { .brand img.tl-img { width: 104px; } }@media (min-width: 1400px) { .brand img.tl-img { height: 70px; } }

/* ロゴを一回り小さく、事務所名はロゴの中央にそろえる */
.brand a.text-logo { align-items: center; text-align: center; }
@media (min-width: 1400px) { .brand img.tl-img { height: 56px; } }
@media (max-width: 1399px) and (min-width: 1024px) { .brand img.tl-img { height: 42px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 40px; } }
@media (max-width: 700px) { .brand img.tl-img { width: 116px; } }
@media (max-width: 360px) { .brand img.tl-img { width: 100px; } }

/* ロゴ第2版(英字入り・縦長め)に合わせた大きさ */
@media (min-width: 1400px) { .brand img.tl-img { height: 68px; } }
@media (max-width: 1399px) and (min-width: 1024px) { .brand img.tl-img { height: 56px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 52px; } }
@media (max-width: 700px) { .brand img.tl-img { width: 118px; height: auto; } }
@media (max-width: 360px) { .brand img.tl-img { width: 100px; } }

/* 事務所名を外し、その分ロゴを大きく */
.text-logo .tl-sub { display: none !important; }
@media (min-width: 1400px) { .brand img.tl-img { height: 92px; } }
@media (max-width: 1399px) and (min-width: 1181px) { .brand img.tl-img { height: 72px; } }
@media (max-width: 1180px) and (min-width: 1024px) { .brand img.tl-img { height: 60px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 60px; } }

/* ロゴ第3版(家族と木のマーク入り、横長) */
@media (min-width: 1400px) { .brand img.tl-img { height: 84px; } }
@media (max-width: 1399px) and (min-width: 1181px) { .brand img.tl-img { height: 66px; } }
@media (max-width: 1180px) and (min-width: 1024px) { .brand img.tl-img { height: 54px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 56px; } }
@media (max-width: 700px) { .brand img.tl-img { width: 132px; height: auto; } }
@media (max-width: 360px) { .brand img.tl-img { width: 108px; } }

/* ロゴ第4版(丸ゴシック・家族と葉、さらに横長 1000×182) */
@media (min-width: 1400px) { .brand img.tl-img { height: 72px; } }
@media (max-width: 1399px) and (min-width: 1181px) { .brand img.tl-img { height: 58px; } }
@media (max-width: 1180px) and (min-width: 1024px) { .brand img.tl-img { height: 46px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 50px; } }
@media (max-width: 700px) { .brand img.tl-img { width: 132px; height: auto; } }
@media (max-width: 360px) { .brand img.tl-img { width: 108px; } }

/* ロゴ第6版(SVG・2段)を一回り小さく、上下中心を電話番号の数字にそろえる */
.brand { display: flex; align-items: center; }
@media (min-width: 1400px) { .brand img.tl-img { height: 66px; } }
@media (max-width: 1399px) and (min-width: 1181px) { .brand img.tl-img { height: 54px; } }
@media (max-width: 1180px) and (min-width: 1024px) { .brand img.tl-img { height: 42px; } }
@media (max-width: 1023px) and (min-width: 701px) { .brand img.tl-img { height: 46px; } }
@media (max-width: 700px) { .brand img.tl-img { width: 124px; } }
@media (max-width: 360px) { .brand img.tl-img { width: 100px; } }
/* PC・タブレットはロゴの中心を「お電話でのご相談」の帯と電話番号の数字の間にそろえる(実測で調整) */
@media (min-width: 701px) { .brand { transform: translateY(1px); } }
@media (min-width: 1400px) { .brand { transform: translateY(-4px); } }
