:root {
  --ink: #18333d;
  --muted: #5a7078;
  --brand: #087f78;
  --brand-dark: #075d59;
  --brand-fill: #08766f;
  --brand-fill-hover: #075d59;
  --on-brand: #fff;
  --top-bar-bg: #075d59;
  --top-bar-ink: #e8f6f4;
  --brand-soft: #e7f5f2;
  --navy: #183e50;
  --cream: #fbfaf5;
  --paper: #fff;
  --line: #dbe7e4;
  --yellow: #f0c85a;
  --on-yellow: #0e3a3c;
  --orange: #d9784c;
  --blue: #4a7eb9;
  --purple: #806cae;
  --caution-ink: #a45d3c;
  --footer-sub: #7fd3ca;
  --shadow: 0 20px 55px rgba(23, 65, 69, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; line-height: 1.75; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #e4a72f; outline-offset: 3px; }
.skip { position: fixed; left: -9999px; top: .5rem; z-index: 100; background: var(--paper); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { left: .5rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--brand); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }

.information-bar { min-height: 34px; padding: .32rem max(1rem, calc((100vw - 1200px) / 2)); display: flex; justify-content: space-between; gap: 1rem; color: var(--top-bar-ink); background: var(--top-bar-bg); font-size: .72rem; letter-spacing: .03em; }
.information-bar b { color: var(--on-brand); }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(19,80,76,.1); backdrop-filter: blur(12px); }
.header-inner { width: min(1200px, calc(100% - 2rem)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; line-height: 1.15; flex-shrink: 0; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy b { font-size: 1.03rem; letter-spacing: .02em; white-space: nowrap; }
.brand-copy small { margin-top: .3rem; color: var(--brand); font-size: .58rem; font-weight: 900; letter-spacing: .22em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 1.65rem; margin-left: auto; }
.desktop-nav a { position: relative; color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 2px; background: var(--brand); transition: right .2s; }
.desktop-nav a:hover::after { right: 0; }
.header-cta { padding: .65rem 1rem; color: var(--on-brand); background: var(--brand-fill); border-radius: 10px; text-decoration: none; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.settings-toggle { min-height: 42px; padding: .55rem .8rem; display: inline-flex; align-items: center; gap: .35rem; flex: 0 0 auto; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.settings-toggle[aria-expanded="true"] { color: var(--on-brand); background: var(--brand-fill); border-color: var(--brand-fill); }
.display-settings[hidden] { display: none; }
.display-settings { position: relative; z-index: 20; background: #eef7f5; border-bottom: 1px solid #c9ded9; }
.settings-inner { width: min(1200px, calc(100% - 2rem)); margin: auto; padding: 1.5rem 0 1.2rem; }
.settings-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.settings-title-row h2 { margin: 0; font-size: 1rem; }
.settings-close { padding: .35rem .55rem; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: .74rem; }
.settings-grid { margin-top: .9rem; display: grid; grid-template-columns: 1fr 1fr 1.1fr; align-items: end; gap: 2rem; }
.settings-grid fieldset { margin: 0; padding: 0; border: 0; }
.settings-grid legend { margin-bottom: .45rem; font-size: .78rem; font-weight: 800; }
.segmented-control { width: max-content; padding: 3px; display: flex; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 10px rgba(23,65,69,.06); }
.segmented-control button { min-width: 62px; min-height: 39px; padding: .45rem .7rem; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: .76rem; font-weight: 800; }
.segmented-control button[aria-pressed="true"] { color: var(--on-brand); background: var(--brand-fill); }
.print-button { min-height: 48px; padding: .65rem 1rem; color: var(--brand-dark); background: white; border: 1px solid #aed9d3; border-radius: 10px; cursor: pointer; font-weight: 800; }
.settings-date { margin: .9rem 0 0; color: var(--muted); font-size: .68rem; }

.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #f7f9f1 0%, #f0f7f3 70%, #e8f3ef 100%); }
.hero::before { content: ""; position: absolute; width: 470px; height: 470px; right: -100px; top: -180px; border: 85px solid rgba(8,127,120,.055); border-radius: 50%; }
.hero-inner { position: relative; width: min(1200px, calc(100% - 2rem)); min-height: 0; margin: auto; padding: 4.5rem 0 6.5rem; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 4.5rem; }
.audience-label { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: .35rem .8rem; color: var(--brand-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; font-weight: 800; }
.audience-label::before { content: ""; width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; }
.hero-copy h1 { margin: .25rem 0 1.4rem; font-size: clamp(36px, 4.2vw, 52px); line-height: 1.25; letter-spacing: -.055em; font-weight: 850; }
.hero-line { display: block; white-space: nowrap; }
.hero-line.hero-accent { color: var(--brand); }
.hero-copy h1 > span:not(.hero-accent) { color: var(--ink); }
.hero-lead { max-width: 640px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 2; }
.hero-actions { margin-top: 2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 54px; padding: .8rem 1.35rem; color: var(--on-brand); background: var(--brand-fill); border-radius: 12px; box-shadow: 0 10px 25px rgba(8,127,120,.2); font-weight: 800; text-decoration: none; }
.primary-button:hover { background: var(--brand-fill-hover); transform: translateY(-1px); }
.text-link { color: var(--brand-dark); font-weight: 800; text-underline-offset: .35rem; }
.hero-side { position: relative; min-width: 0; }
.hero-visual { aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: white; border: 10px solid white; border-radius: 26px; box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.future-card { position: relative; z-index: 2; width: 100%; margin: 1.25rem 0 0; padding: 1.65rem 1.8rem; color: white; background: var(--navy); border-radius: 22px 22px 58px 22px; box-shadow: var(--shadow); }
.future-card::before { content: ""; position: absolute; right: 1.7rem; top: 1.7rem; width: 45px; height: 45px; border: 2px solid rgba(240,200,90,.75); border-radius: 50%; }
.future-card::after { content: ""; position: absolute; right: 3.3rem; top: 3.25rem; width: 9px; height: 9px; background: var(--yellow); border-radius: 50%; }
.future-card-label { margin: 0 0 .5rem; color: #9bd3cd; font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.future-card h2 { margin: 0 0 .4rem; font-size: 1.5rem; line-height: 1.4; }
.future-card > p:not(.future-card-label) { margin: 0; color: #bed0d6; font-size: .8rem; }
.future-card ol { list-style: none; padding: .8rem 0 0; margin: .85rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; border-top: 1px solid rgba(255,255,255,.14); }
.future-card li { display: flex; gap: .55rem; align-items: flex-start; padding: 0; }
.future-card li > span { color: var(--yellow); font-family: Georgia, serif; font-size: .8rem; }
.future-card li div { display: flex; flex-direction: column; }
.future-card li b { font-size: .84rem; }
.future-card li small { color: #aebfc5; font-size: .67rem; }

.reassurance { position: relative; z-index: 2; width: min(1080px, calc(100% - 2rem)); margin: 2rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(23,65,69,.08); }
.reassurance > div { display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.6rem; }
.reassurance > div + div { border-left: 1px solid var(--line); }
.reassurance > div > span { color: var(--muted); font-family: Georgia, serif; font-size: .78rem; }
.reassurance p { display: flex; flex-direction: column; margin: 0; }
.reassurance b { font-size: .95rem; }
.reassurance small { color: var(--muted); }

.related-sites { width: min(1200px, calc(100% - 2rem)); margin: 4.5rem auto 0; padding: 2rem 1.5rem 1.6rem; background: linear-gradient(110deg, #eaf7f4, #f7faf6); border: 1px solid #a9d9d2; border-radius: 22px; }
.related-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.4; }
.related-heading > p:last-child { margin: .25rem 0 1rem; color: var(--muted); font-size: .82rem; }
.related-card { min-height: 116px; padding: 1.3rem 1.4rem; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 1.2rem; background: white; border: 1px solid #d9e5e3; border-radius: 15px; box-shadow: 0 8px 22px rgba(23,65,69,.05); text-decoration: none; }
.related-card:hover { border-color: #96cec6; box-shadow: 0 12px 28px rgba(23,65,69,.09); }
.related-logo { width: 58px; height: 58px; padding: .65rem; display: grid; place-items: center; background: #edf8f6; border-radius: 17px; }
.related-logo img { width: 100%; height: 100%; object-fit: contain; }
.related-copy { display: flex; flex-direction: column; line-height: 1.55; }
.related-copy small { color: var(--brand); font-size: .72rem; font-weight: 900; }
.related-copy b { font-size: 1.12rem; }
.related-copy > span { margin-top: .1rem; color: var(--muted); font-size: .76rem; }
.related-card i { color: var(--brand-dark); font-size: .72rem; font-style: normal; font-weight: 900; white-space: nowrap; }

.section { width: min(1200px, calc(100% - 2rem)); margin: auto; padding: 7rem 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 2.7rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.35; letter-spacing: -.035em; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); }
.section-heading.centered { display: block; max-width: 820px; margin: 0 auto 3.2rem; text-align: center; }
.section-heading.centered > p:last-child { max-width: 760px; margin: 1rem auto 0; }
.intro .section-heading.centered { max-width: none; }
.intro .section-heading.centered > p:last-child { max-width: none; font-size: clamp(9px, 1.25vw, 16px); white-space: nowrap; }
.intro .section-heading h2 { font-size: clamp(.95rem, 3.4vw, 2.8rem); white-space: nowrap; }
.roadmap-inner .section-heading { gap: 2rem; }
.roadmap-inner .section-heading > div { flex: 0 0 auto; }
.roadmap-inner .section-heading h2 { font-size: clamp(1rem, 3.1vw, 2.5rem); white-space: nowrap; }
.roadmap-inner .section-heading > p { max-width: none; font-size: clamp(.72rem, 1.25vw, .94rem); white-space: nowrap; }
.compare-section .section-heading { gap: 2rem; }
.compare-section .section-heading > p { max-width: none; font-size: clamp(9px, 1.25vw, 16px); white-space: nowrap; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.work-card { position: relative; min-height: 430px; padding: 2rem 1.5rem 1.6rem; background: white; border: 1px solid var(--line); border-top: 5px solid var(--card-color); border-radius: 18px; box-shadow: 0 12px 30px rgba(23,65,69,.055); }
.card-teal { --card-color: var(--brand); --card-ink: #075e59; --card-soft: #e8f6f3; }
.card-blue { --card-color: var(--blue); --card-ink: #315f96; --card-soft: #eaf1fa; }
.card-orange { --card-color: var(--orange); --card-ink: #914521; --card-soft: #fbede7; }
.card-purple { --card-color: var(--purple); --card-ink: #66518f; --card-soft: #f0edf7; }
.work-number { position: absolute; right: 1.3rem; top: 1rem; color: #c7d5d3; font: 1.1rem Georgia, serif; }
.work-tag { display: inline-block; padding: .25rem .65rem; color: var(--card-ink); background: var(--card-soft); border-radius: 99px; font-size: .72rem; font-weight: 800; }
.work-card h3 { margin: 1.2rem 0 .8rem; font-size: 1.55rem; }
.work-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.work-card ul { padding: 1rem 0 0; margin: 1.2rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.work-card li { position: relative; padding: .35rem 0 .35rem 1rem; font-size: .82rem; font-weight: 700; }
.work-card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 5px; height: 5px; background: var(--card-color); border-radius: 50%; }
.prepare-note { margin-top: 1.2rem; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.2rem; background: #f2f5e9; border: 1px solid #dfe7c5; border-radius: 14px; }
.prepare-note > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #5d7323; background: white; border-radius: 50%; font-size: 1.4rem; }
.prepare-note b { font-size: .95rem; }
.prepare-note p { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; }
.option-heading { margin: 3.5rem 0 1.3rem; }
.option-heading h3 { margin: 0; font-size: 1.55rem; }
.more-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.more-options article { padding: 1.4rem; background: #f4f7f1; border: 1px solid #dfe8db; border-radius: 14px; }
.more-options article > span { color: var(--brand); font-size: .7rem; font-weight: 900; }
.more-options h3 { margin: .45rem 0 .6rem; font-size: 1.12rem; }
.more-options p { margin: 0 0 .9rem; color: var(--muted); font-size: .82rem; }
.more-options a { color: var(--brand-dark); font-size: .76rem; font-weight: 800; text-underline-offset: .2rem; }
.inline-source { margin: .8rem 0 0; color: var(--muted); font-size: .7rem; }

.roadmap-section { color: white; background: var(--navy); }
.roadmap-inner { padding-top: 6.5rem; padding-bottom: 6.5rem; }
.section-heading.light h2 { color: white; }
.section-heading.light > p { color: #bed0d6; }
.section-heading.light .eyebrow { color: #91d0c9; }
.stage-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; background: rgba(255,255,255,.08); border-radius: 14px; }
.stage-tabs button { min-height: 52px; padding: .65rem .4rem; color: #bcd0d5; background: transparent; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; }
.stage-tabs button[aria-selected="true"] { color: var(--navy); background: white; box-shadow: 0 7px 20px rgba(0,0,0,.17); }
.stage-panel { margin-top: 1.3rem; padding: 2.5rem; color: var(--ink); background: white; border-radius: 22px; }
.stage-main { max-width: 850px; }
.stage-kicker { margin: 0 0 .3rem; color: var(--brand); font-size: .8rem; font-weight: 900; }
.stage-main h3 { margin: 0 0 .7rem; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.45; }
.stage-main > p:last-child { margin: 0; color: var(--muted); }
.stage-columns { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 1rem; margin-top: 2rem; }
.stage-columns section { padding: 1.35rem; background: #f6f8f6; border-radius: 14px; }
.stage-columns h4 { margin: 0 0 .7rem; font-size: .85rem; color: var(--brand-dark); }
.stage-columns ul { margin: 0; padding-left: 1.2rem; }
.stage-columns li { margin: .35rem 0; font-size: .84rem; }
.stage-columns .stage-action { color: var(--on-brand); background: var(--brand-fill); }
.stage-action h4 { color: var(--on-brand); }
.stage-action p { margin: 0 0 1rem; font-weight: 800; line-height: 1.6; }
.stage-action span { display: block; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .75rem; }
.roadmap-caption { margin: 1rem 0 0; color: #aac0c5; font-size: .75rem; }

.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 40px rgba(23,65,69,.06); }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 1.05rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { color: var(--on-brand); background: var(--brand-fill-hover); font-size: .82rem; }
thead th:first-child { background: #244753; }
tbody th { width: 17%; background: #f4f7f5; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.yes, .no { display: inline-block; min-width: 44px; padding: .18rem .4rem; text-align: center; border-radius: 99px; font-size: .73rem; }
.yes { color: var(--brand-dark); background: var(--brand-soft); }
.no { color: #7b527f; background: #f2eaf3; }
.table-note { margin: 1rem 0 0; padding-left: 1rem; color: var(--muted); border-left: 3px solid var(--yellow); font-size: .82rem; }
.table-note a { color: var(--brand-dark); font-weight: 700; }
.income-row td { background: #fffdf3; }
.income-row strong, .income-row small { display: block; }
.income-row strong { color: var(--brand-dark); font-size: .92rem; }
.income-row small { color: var(--muted); font-size: .7rem; }

.money-section { color: white; background: #173e4e; }
.money-inner { padding-top: 6.5rem; padding-bottom: 6.5rem; }
.income-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: .7rem; }
.income-formula > div { min-height: 125px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.income-formula > div span { color: #90cfc7; font: .75rem Georgia, serif; }
.income-formula > div b { margin-top: .25rem; }
.income-formula > div small { color: #afc6cc; }
.income-formula > i { color: var(--yellow); font-size: 1.4rem; font-style: normal; }
.pension-card { margin-top: 1.3rem; display: grid; grid-template-columns: 1.1fr .9fr; color: var(--ink); background: white; border-radius: 20px; overflow: hidden; }
.pension-copy { padding: 2.3rem; }
.pension-copy h3 { margin: 0 0 .8rem; font-size: 1.65rem; }
.pension-copy > p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.pension-copy ul { padding-left: 1.2rem; margin: 1rem 0 0; }
.pension-copy li { margin: .35rem 0; font-size: .82rem; }
.pension-amounts { padding: 2rem; background: #edf6f3; }
.pension-amounts > p:first-child { margin: 0 0 .8rem; color: var(--brand-dark); font-size: .78rem; font-weight: 900; }
.pension-amounts > div { padding: .9rem 0; display: grid; grid-template-columns: 48px 1fr; border-bottom: 1px solid #cce0db; }
.pension-amounts > div span { grid-row: 1 / 3; width: 37px; height: 37px; display: grid; place-items: center; color: var(--on-brand); background: var(--brand-fill); border-radius: 50%; font-size: .77rem; font-weight: 800; }
.pension-amounts strong { font-size: 1.12rem; }
.pension-amounts small { color: var(--muted); }
.pension-amounts .amount-note { margin: .9rem 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.pension-amounts a { color: var(--brand-dark); font-size: .77rem; font-weight: 800; }
.pension-amounts .checked-date { display: block; margin-top: .35rem; font-size: .68rem; }
.budget-tool { margin-top: 1.3rem; padding: 2rem; color: var(--ink); background: #f9fbf6; border-radius: 20px; }
.budget-intro { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 2rem; align-items: end; }
.budget-intro .eyebrow { grid-column: 1 / -1; }
.budget-intro h3 { margin: 0; font-size: 1.5rem; }
.budget-intro > p:last-child { margin: 0; color: var(--muted); font-size: .82rem; }
.budget-inputs { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.budget-inputs label { color: #4b626b; font-size: .75rem; font-weight: 800; }
.budget-inputs label span { margin-top: .35rem; padding: .25rem .65rem; display: flex; align-items: center; gap: .35rem; background: white; border: 1px solid var(--line); border-radius: 9px; }
.budget-inputs input { width: 100%; min-width: 0; padding: .5rem .2rem; border: 0; outline: 0; font-size: 1rem; font-weight: 800; }
.budget-result { margin-top: 1rem; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 2rem; background: #e6f3ef; border-radius: 10px; }
.budget-result p { margin: 0; display: flex; flex-direction: column; color: var(--muted); font-size: .7rem; }
.budget-result strong { color: var(--brand-dark); font-size: 1.2rem; }
.budget-result strong.is-negative { color: #b34e3f; }
.budget-result small { margin-left: auto; max-width: 430px; color: var(--muted); }
.budget-caution { margin: .8rem 0 0; color: var(--muted); font-size: .68rem; }

.family-section { background: #eef5f0; }
.family-section .eyebrow { color: var(--brand-dark); }
.family-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6rem; align-items: start; }
.family-lead { position: sticky; top: 125px; }
.family-lead h2 { margin: 0 0 1.3rem; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.4; letter-spacing: -.04em; }
.family-lead h2 span { color: var(--brand); }
.family-lead > p:last-child { color: var(--muted); }
.family-list article { display: grid; grid-template-columns: 50px 1fr; gap: 1.2rem; padding: 1.7rem 0; border-bottom: 1px solid #cdded7; }
.family-list article:first-child { padding-top: 0; }
.family-list article > span { width: 43px; height: 43px; display: grid; place-items: center; color: var(--on-brand); background: var(--brand-fill); border-radius: 50%; font: .8rem Georgia, serif; }
.family-list h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.family-list p { margin: 0; color: var(--muted); font-size: .88rem; }

.conversation-card { position: relative; overflow: hidden; padding: 3.3rem; display: grid; grid-template-columns: .72fr 1.28fr; gap: 4rem; color: var(--on-brand); background: var(--brand-fill); border-radius: 24px; }
.conversation-card::after { content: "?"; position: absolute; left: 28%; bottom: -85px; color: rgba(255,255,255,.065); font: bold 230px Georgia, serif; }
.conversation-card .eyebrow { color: #ddf3ef; }
.conversation-card h2 { margin: 0; font-size: 2rem; line-height: 1.5; }
.conversation-card ol { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.conversation-card li { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.2); font-weight: 700; }
.conversation-card li:first-child { padding-top: 0; }
.conversation-card li span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: var(--on-yellow); background: var(--yellow); border-radius: 50%; font-size: .75rem; font-weight: 800; }

.support-route { padding-top: 3rem; }
.support-route .section-heading.centered { max-width: none; }
.support-route .section-heading h2 { font-size: clamp(14px, 3.1vw, 40px); white-space: nowrap; }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.route-grid article { padding: 1.7rem; background: white; border: 1px solid var(--line); border-radius: 16px; }
.route-grid article > span { color: var(--brand); font-size: .75rem; font-weight: 900; }
.route-grid h3 { margin: .55rem 0 .7rem; font-size: 1.08rem; line-height: 1.55; }
.route-grid p { margin: 0; color: var(--muted); font-size: .84rem; }
.library-section { color: white; background: var(--navy); }
.library-inner { padding-top: 6.5rem; padding-bottom: 6.5rem; }
.library-controls { margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem; }
.library-controls label { color: #bcd0d5; font-size: .78rem; font-weight: 800; }
.library-controls select { min-height: 42px; padding: .45rem 2.4rem .45rem .8rem; color: var(--ink); background: white; border: 0; border-radius: 9px; }
.library-controls span { margin-left: auto; color: #aac3c8; font-size: .75rem; }
.support-library { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; align-items: start; }
.support-record { color: var(--ink); background: white; border-radius: 12px; overflow: hidden; }
.support-record summary { padding: 1.2rem; display: flex; align-items: center; gap: 1rem; cursor: pointer; list-style: none; }
.support-record summary::-webkit-details-marker { display: none; }
.record-heading { display: flex; flex: 1; flex-direction: column; }
.record-heading small { color: var(--brand); font-size: .68rem; font-weight: 900; }
.record-heading b { margin: .15rem 0 .35rem; font-size: 1.05rem; }
.record-heading > span { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.support-record summary i { color: var(--brand); font-size: .7rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.support-record[open] summary { background: #f1f7f5; }
.support-record[open] summary i::after { content: " −"; }
.record-body { padding: 1.2rem; border-top: 1px solid var(--line); }
.record-body dl { margin: 0; }
.record-body dl > div { padding: .65rem 0; display: grid; grid-template-columns: 130px 1fr; gap: 1rem; border-bottom: 1px solid var(--line); }
.record-body dt { color: var(--brand-dark); font-size: .72rem; font-weight: 900; }
.record-body dd { margin: 0; color: var(--muted); font-size: .76rem; }
.record-steps { margin-top: 1rem; padding: 1rem; background: #f4f7f5; border-radius: 9px; }
.record-steps h3 { margin: 0 0 .5rem; font-size: .8rem; }
.record-steps ol { margin: 0; padding-left: 1.2rem; }
.record-steps li { font-size: .75rem; }
.record-caution { color: var(--muted); font-size: .72rem; }
.record-caution b { color: var(--caution-ink); }
.record-source { padding-top: .8rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.record-source a { color: var(--brand-dark); font-size: .7rem; font-weight: 800; }
.record-source time { color: var(--muted); font-size: .67rem; white-space: nowrap; }
.library-note { margin: 1rem 0 0; color: #aac3c8; font-size: .72rem; }
.source-section { padding-top: 2rem; }
.source-section > div:first-child { display: flex; justify-content: space-between; align-items: end; gap: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; }
.source-section h2 { margin: 0; font-size: 1.45rem; }
.source-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.2rem; }
.source-links a { padding: 1rem 1.1rem; display: flex; justify-content: space-between; gap: .8rem; background: white; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.source-links b { font-size: .82rem; }
.source-links span { color: var(--brand); font-size: .72rem; white-space: nowrap; }
.source-caution { color: var(--muted); font-size: .74rem; }

.footer { color: white; background: #15323c; }
.footer-main { width: min(1200px, calc(100% - 2rem)); margin: auto; padding: 2.8rem 0; display: flex; justify-content: space-between; gap: 3rem; }
.footer-brand { color: white; }
.footer-brand .brand-copy small { color: var(--footer-sub); }
.footer-main > div > p { max-width: 500px; margin: 1rem 0 0; color: #a9bec5; font-size: .8rem; }
.footer-main nav { display: flex; align-items: center; gap: 1.4rem; }
.footer-main nav a { color: #c8d7db; font-size: .78rem; text-decoration: none; }
.footer-legal { padding: 1.5rem max(1rem, calc((100vw - 1200px) / 2)); color: #48616a; background: #f4f7f8; border-top: 1px solid #dce7e5; }
.footer-legal nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal nav button { padding: 0; color: var(--brand-dark); background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: .78rem; font-weight: 800; }
.footer-legal > p { margin: 1.3rem 0 0; text-align: center; font-size: .75rem; }
.footer-legal > p span { margin: 0 .7rem; color: #a8b5ba; }
.footer-legal > p a { color: var(--brand-dark); text-underline-offset: .2rem; }
.legal-dialog { width: min(700px, calc(100% - 2rem)); max-height: min(80vh, 720px); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(8,34,42,.24); }
.legal-dialog::backdrop { background: rgba(7,31,39,.58); backdrop-filter: blur(3px); }
.legal-dialog-inner { padding: 1.8rem; }
.legal-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.legal-dialog-head h2 { margin: 0; font-size: 1.35rem; }
.legal-dialog-head button { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); background: #f1f5f4; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.25rem; }
.legal-dialog section { padding-top: 1rem; }
.legal-dialog section p { margin: 0 0 .9rem; color: var(--muted); font-size: .86rem; }
.legal-dialog section a { color: var(--brand-dark); font-weight: 800; }
.mobile-nav { display: none; }

/* 小さな単独リンクのタップ領域を確保（WCAG 2.5.8 最低24px） */
.more-options article a,
.record-source a,
.pension-amounts a,
.table-note a,
.inline-source a { display: inline-block; padding-block: .35rem; }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-inner { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .more-options { grid-template-columns: repeat(2, 1fr); }
  .budget-inputs { grid-template-columns: repeat(2, 1fr); }
  .work-card { min-height: 360px; }
  .family-inner { gap: 3rem; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: 66px; }
  .information-bar { justify-content: center; text-align: center; }
  .information-bar b { display: none; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-copy b { font-size: .88rem; }
  .brand-copy small { font-size: .5rem; }
  .header-cta { display: none; }
  .hero-inner { min-height: 0; padding: 3.5rem 0 4.5rem; grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-copy h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
  .hero-lead { font-size: .95rem; line-height: 1.9; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: .8rem; }
  .primary-button { width: 100%; }
  .text-link { text-align: center; }
  .hero-visual { border-width: 6px; border-radius: 18px; }
  .future-card { width: 100%; margin-top: 1rem; padding: 1.5rem 1.3rem; border-radius: 18px 18px 48px 18px; }
  .future-card ol { grid-template-columns: 1fr; }
  .future-card li { align-items: center; }
  .reassurance { margin-top: 1.25rem; grid-template-columns: 1fr; }
  .reassurance > div { padding: 1rem 1.3rem; }
  .reassurance > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .related-sites { margin-top: 3.5rem; padding: 1.4rem 1rem 1rem; }
  .related-card { padding: 1rem; grid-template-columns: 52px 1fr; gap: .8rem; }
  .related-logo { width: 50px; height: 50px; }
  .related-card i { grid-column: 2; }
  .section { padding: 5rem 0; }
  .section-heading, .section-heading.light { display: block; }
  .section-heading > p { margin-top: .8rem; }
  .section-heading h2 { font-size: 2rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 0; }
  .prepare-note { align-items: flex-start; }
  .stage-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .stage-tabs button { min-width: 132px; flex: 1 0 auto; scroll-snap-align: start; }
  .stage-panel { padding: 1.5rem; }
  .stage-columns { grid-template-columns: 1fr; }
  .family-inner { grid-template-columns: 1fr; }
  .family-lead { position: static; }
  .conversation-card { padding: 2rem 1.4rem; grid-template-columns: 1fr; gap: 2rem; }
  .more-options, .route-grid, .source-links, .support-library { grid-template-columns: 1fr; }
  .income-formula { grid-template-columns: 1fr; }
  .income-formula > i { text-align: center; line-height: 1; }
  .pension-card { grid-template-columns: 1fr; }
  .budget-intro { display: block; }
  .budget-intro > p:last-child { margin-top: .5rem; }
  .budget-inputs { grid-template-columns: 1fr; }
  .budget-result { align-items: flex-start; flex-wrap: wrap; gap: 1rem 2rem; }
  .budget-result small { width: 100%; margin-left: 0; }
  .library-controls { align-items: stretch; flex-direction: column; }
  .library-controls span { margin-left: 0; }
  .record-body dl > div { grid-template-columns: 1fr; gap: .2rem; }
  .record-source { flex-direction: column; gap: .3rem; }
  .source-section > div:first-child { display: block; }
  .footer-main { flex-direction: column; padding-top: 2rem; padding-bottom: 2rem; }
  .footer-main nav { flex-wrap: wrap; }
  .footer-legal { padding-bottom: 1.5rem; }
  .footer-legal nav { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .footer-legal > p { text-align: left; }
  .legal-dialog-inner { padding: 1.3rem; }
  .mobile-nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; min-height: 62px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 25px rgba(23,65,69,.08); }
  .mobile-nav a { min-width: 0; padding: .65rem .25rem; color: var(--muted); text-align: center; text-decoration: none; font-size: .67rem; font-weight: 800; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

html[data-font-size="large"] { font-size: 112.5%; }
html[data-font-size="xlarge"] { font-size: 125%; }
html[data-font-size="xlarge"] .header-inner { gap: .7rem; }
html[data-font-size="xlarge"] .desktop-nav { gap: .75rem; }
html[data-font-size="xlarge"] .header-cta { display: none; }
html[data-font-size="xlarge"] .settings-toggle { width: 48px; padding: .55rem; justify-content: center; overflow: hidden; font-size: 0; }
html[data-font-size="xlarge"] .settings-toggle span { font-size: .76rem; }
html[data-theme="dark"] { color-scheme: dark; --ink: #edf7f6; --muted: #c2d2d5; --brand: #6dd4ca; --brand-dark: #9ce3dc; --brand-fill: #08726c; --brand-fill-hover: #075b57; --on-brand: #fff; --top-bar-bg: #0b4545; --top-bar-ink: #edf8f7; --brand-soft: #183e3e; --cream: #10252d; --paper: #18333c; --line: #39535b; --caution-ink: #f0a97e; --footer-sub: #7fd3ca; }
html[data-theme="dark"] body { background: #10252d; }
html[data-theme="dark"] .header,
html[data-theme="dark"] .display-settings,
html[data-theme="dark"] .reassurance,
html[data-theme="dark"] .related-card,
html[data-theme="dark"] .work-card,
html[data-theme="dark"] .stage-panel,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .pension-card,
html[data-theme="dark"] .budget-tool,
html[data-theme="dark"] .budget-inputs label span,
html[data-theme="dark"] .route-grid article,
html[data-theme="dark"] .source-links a,
html[data-theme="dark"] .support-record,
html[data-theme="dark"] .settings-toggle,
html[data-theme="dark"] .segmented-control,
html[data-theme="dark"] .print-button { color: var(--ink); background: #18333c; border-color: var(--line); }
html[data-theme="dark"] .hero { background: linear-gradient(120deg, #10272e, #173c3b); }
html[data-theme="dark"] .related-sites { background: linear-gradient(110deg, #153633, #183139); border-color: #35635f; }
html[data-theme="dark"] .prepare-note,
html[data-theme="dark"] .more-options article,
html[data-theme="dark"] .stage-columns section,
html[data-theme="dark"] .record-steps,
html[data-theme="dark"] tbody th { background: #213d45; }
html[data-theme="dark"] .family-section { background: #142e35; }
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .record-body { border-color: var(--line); }
html[data-theme="dark"] .income-row td,
html[data-theme="dark"] .pension-amounts,
html[data-theme="dark"] .budget-result { background: #1c3b40; }
html[data-theme="dark"] .support-record[open] summary { background: #1d4043; }
html[data-theme="dark"] .budget-inputs label { color: var(--muted); }
html[data-theme="dark"] .library-controls select { color: var(--ink); background: #18333c; border: 1px solid var(--line); }
html[data-theme="dark"] .mobile-nav { background: rgba(24,51,60,.98); }
html[data-theme="dark"] .footer-legal,
html[data-theme="dark"] .legal-dialog { color: var(--ink); background: #18333c; border-color: var(--line); }
html[data-theme="dark"] .legal-dialog-head button { color: var(--ink); background: #274650; }

@media (max-width: 760px) {
  .settings-toggle { width: 42px; padding: .5rem; justify-content: center; overflow: hidden; font-size: 0; }
  .settings-toggle span { font-size: .76rem; }
  .settings-grid { grid-template-columns: 1fr; gap: 1rem; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; }
  .print-button { width: 100%; }
}

@media print {
  .information-bar, .header, .display-settings, .mobile-nav { display: none !important; }
  html, body { color: #17313d !important; background: white !important; font-size: 10pt !important; }
  .hero, .roadmap-section, .money-section, .library-section, .family-section { color: #17313d !important; background: white !important; }
  .section, .hero-inner { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  a { text-decoration: none; }
}
