
    :root{color-scheme:light;--ink:#142d39;--muted:#70818d;--line:#dce7ed;--bg:#f5f8fa;--teal:#0a857b;--teal-dark:#006f68;--sky:#b8e7dc;--amber:#cc7f38;--dark:#0c2934;--danger:#ad443f;--shadow:0 18px 60px rgba(17,48,59,.07)}
    *{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;font-variant-numeric:tabular-nums}
    button,input{font:inherit}button{cursor:pointer}a{color:var(--teal-dark)}a:hover{text-decoration-thickness:2px}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #e5a54b;outline-offset:3px}
    .topbar{background:var(--dark);color:white}.topbar-inner{max-width:1250px;margin:auto;padding:16px 28px;display:flex;justify-content:space-between;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:white;font-weight:800;letter-spacing:.02em}.brand-mark{width:35px;height:35px;display:inline-grid;place-items:center;background:#1a514f;border:1px solid #3c7d78;border-radius:12px;color:#b4f2d9;font-size:21px}.topmeta{font-size:12px;color:#bfd4d9;white-space:nowrap}
    .hero{background:radial-gradient(circle at 80% 1%,rgba(73,185,158,.22),transparent 34%),linear-gradient(135deg,#0c2934,#153a45);color:white;padding:38px 28px 90px}.hero-inner{max-width:1195px;margin:auto}.hero-kicker{font-size:12px;color:#bcf4dc;letter-spacing:.15em;font-weight:800}.hero h1{margin:8px 0 8px;font-weight:850;letter-spacing:-.04em;line-height:1.25;font-size:clamp(27px,3.7vw,43px)}.hero p{margin:0;color:#c3d6d9;font-size:14px;max-width:670px}.hero h1 em{font-style:normal;color:#9be0cd}
    main{max-width:1250px;padding:0 28px 52px;margin:-55px auto 0;position:relative}.app-layout{display:grid;grid-template-columns:minmax(285px,340px) minmax(0,1fr);gap:20px;align-items:start}.panel{background:#fff;border:1px solid #e3edf0;border-radius:20px;box-shadow:var(--shadow)}.controls{padding:25px}.panel-heading{display:flex;gap:10px;align-items:center;margin-bottom:20px}.panel-heading .section-icon{background:#e6f5f1;border-radius:10px;color:var(--teal-dark);display:inline-grid;place-items:center;width:34px;height:34px;font-size:19px}.panel-heading h2,.summary-title{font-size:17px;line-height:1.4;margin:0;font-weight:800}.panel-heading p{margin:2px 0 0;color:var(--muted);font-size:11px}.field{margin-bottom:20px}.field:last-of-type{margin-bottom:16px}.field-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:13px;font-weight:750;color:#284453}.field-label small{font-size:11px;font-weight:600;color:#8194a0}.input-wrap{position:relative}.input-wrap input{width:100%;height:44px;padding:0 56px 0 13px;border:1px solid #d5e3e9;border-radius:10px;background:#fbfdfd;color:var(--ink);font-size:16px;font-weight:750;transition:border .2s,box-shadow .2s}.input-wrap input:focus{outline:none;border-color:#15998b;box-shadow:0 0 0 3px #e5f6f1}.input-wrap input[aria-invalid="true"]{border-color:var(--danger)}.unit{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:12px;color:#7e919b;font-weight:700;pointer-events:none}.radio-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:9px}.radio-row label{display:flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid #d7e5e9;border-radius:8px;color:#59717f;font-size:12px;font-weight:650;cursor:pointer;background:#fff;transition:all .2s}.radio-row label:has(input:checked){border-color:#9bcfc5;background:#e8f7f3;color:#006b63}.radio-row input{margin:0;accent-color:var(--teal);width:14px;height:14px}.field-help{font-size:11px;color:#81909b;margin-top:6px;line-height:1.5}.message{font-size:12px;color:var(--danger);min-height:19px;line-height:1.45;margin:0 0 8px}.actions{display:flex;gap:8px}.primary{flex:1;min-height:42px;border:0;border-radius:10px;background:var(--teal);color:white;font-weight:750;font-size:13px}.primary:hover{background:var(--teal-dark)}.secondary{border:1px solid var(--line);border-radius:10px;background:#fff;color:#49636f;padding:0 13px;font-size:12px;font-weight:700}.secondary:hover{background:#f5f9fa}.controls-foot{border-top:1px solid #edf2f5;margin-top:20px;padding-top:14px;color:#80919b;font-size:11px;line-height:1.65}
    .results{display:flex;flex-direction:column;gap:18px}.result-panel{padding:25px 27px}.eyebrow{font-size:12px;letter-spacing:.08em;font-weight:800;color:#748b98;margin:0 0 5px}.result-value{color:#0d605c;letter-spacing:-.05em;font-size:clamp(32px,4.4vw,50px);font-weight:850;line-height:1.22;word-break:break-word}.result-value span{font-size:.45em;letter-spacing:0;margin-left:6px}.mini-tag{display:inline-block;border-radius:30px;padding:4px 9px;background:#eaf6f1;color:#0e7a70;font-size:11px;font-weight:700;margin-top:9px}.stats{margin-top:22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat{border-radius:12px;border:1px solid #e9f0f2;background:#f9fbfc;padding:13px 11px}.stat-label{font-size:11px;color:#7b8e99;font-weight:700}.stat-value{margin-top:5px;font-size:clamp(14px,1.7vw,19px);font-weight:800;letter-spacing:-.03em;word-break:break-word}.stat-value.pos{color:var(--teal-dark)}.stat-value.neg{color:var(--danger)}.chart-title-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.chart-head h2{margin:0;font-size:17px}.chart-head p{font-size:11px;color:#85959d;margin:2px 0 0}.legend{display:flex;align-items:center;gap:14px;font-size:11px;font-weight:700;color:#647984}.legend-item{display:flex;align-items:center;gap:6px}.legend-line{width:21px;height:0;border-top:3px solid #0a9589;border-radius:3px}.legend-line.dashed{border-color:#e1a35e;border-top-style:dashed}.chart-holder{position:relative;margin:10px -6px 0;touch-action:pan-y}.chart-holder canvas{display:block;width:100%;height:300px;cursor:crosshair}.chart-holder canvas:focus{outline:2px solid #31afa1;outline-offset:-3px}.chart-under{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #edf2f4;margin-top:7px;padding-top:16px}.scrub-control{display:flex;gap:14px;align-items:center;flex:1;min-width:0}.scrub-label{font-size:12px;font-weight:750;color:#45616d;white-space:nowrap}input[type="range"]{accent-color:var(--teal);width:100%;min-width:0}.scrub-value{min-width:135px;text-align:right;font-size:12px;color:#526d79;font-weight:750}.scrub-value b{display:block;font-size:16px;color:var(--ink)}.chart-hint{font-size:11px;color:#93a1a8;margin-top:11px}.table-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.table-head h2{margin:0;font-size:17px}.table-head p{margin:2px 0 0;color:#81939e;font-size:11px}.table-scroller{margin-top:17px;overflow-x:auto;border-radius:10px;border:1px solid #e4edf0}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}.data-table th{background:#f3f8f9;color:#627d89;text-align:right;padding:10px 13px;font-size:11px;font-weight:800}.data-table td{padding:9px 13px;text-align:right;border-top:1px solid #edf2f5}.data-table tr:nth-child(even) td{background:#fbfdfd}.data-table th:first-child,.data-table td:first-child{text-align:left}.download{border:1px solid #d6e7e7;background:white;padding:9px 12px;border-radius:10px;color:#0b766f;font-size:12px;font-weight:750}.download:hover{background:#eff9f6}.explanation{margin:24px 0 0;padding:25px 28px;background:#fff;border:1px solid #e3edf0;border-radius:20px}.explanation h2{font-size:18px;margin:0 0 9px}.explanation h3{margin:20px 0 7px;font-size:14px}.explanation p,.explanation li{font-size:13px;line-height:1.85;color:#526874}.explanation ul{padding-left:20px;margin:9px 0}.explanation p{margin:9px 0}.notice{border-left:3px solid #b9d9d3;background:#f6faf8;padding:10px 14px;margin:17px 0;color:#657e85;font-size:12px;line-height:1.7}.bottom{max-width:1250px;margin:0 auto;padding:20px 28px 38px;display:flex;gap:16px;align-items:center;justify-content:space-between;color:#8fa0a8;font-size:12px}.footer-links{display:flex;gap:17px;flex-wrap:wrap}.footer-links a{text-decoration:none;color:#687e89}#toast{position:fixed;bottom:23px;left:50%;transform:translateX(-50%) translateY(16px);background:var(--dark);border-radius:11px;color:white;padding:11px 17px;font-size:12px;box-shadow:0 10px 25px #10334033;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:10}#toast.active{opacity:1;transform:translateX(-50%) translateY(0)}
    @media(max-width:980px){.app-layout{grid-template-columns:300px minmax(0,1fr)}.controls{padding:21px}.result-panel{padding:21px}.stats{grid-template-columns:1fr;gap:7px}.stat{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px}.stat-value{margin:0;font-size:16px}.legend{width:100%}}
    @media(max-width:750px){.topbar-inner{padding:12px 18px}.topmeta{font-size:10px}.hero{padding:28px 18px 75px}.hero p{font-size:12px}.hero h1{font-size:30px}main{padding:0 13px 35px;margin-top:-46px}.app-layout{grid-template-columns:minmax(0,1fr);gap:14px}.controls{padding:19px}.result-panel{padding:19px}.panel{border-radius:16px}.controls .field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.controls .field-grid .field{margin-bottom:12px}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.stat{display:block;padding:11px 8px}.stat-value{margin-top:5px;font-size:clamp(13px,3.5vw,19px)}.chart-holder canvas{height:275px}.explanation{padding:20px 18px;border-radius:16px}.bottom{padding:14px 19px 25px;flex-wrap:wrap}}
    @media(max-width:440px){.controls .field-grid{grid-template-columns:1fr}.controls .field-grid .field{margin-bottom:5px}.hero h1{font-size:27px}.hero-kicker{font-size:10px}.result-value{font-size:35px}.stat-label{font-size:10px}.stat-value{font-size:13px}.chart-holder canvas{height:255px}.chart-under{flex-wrap:wrap}.scrub-value{min-width:0}.scrub-value b{font-size:14px}.chart-title-row{align-items:flex-start}.legend{gap:10px}}
    @media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

    .mode-short{display:none}
    .mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px;padding:6px;border:1px solid #d9e8e8;background:#eff5f5;border-radius:17px;box-shadow:var(--shadow)}
    .mode-btn{border:1px solid transparent;border-radius:12px;padding:13px 16px;background:transparent;color:#5c737d;font-size:15px;font-weight:800;text-align:center;min-height:51px}
    .mode-btn[aria-selected="true"]{background:white;border-color:#b8d9d2;color:#006e66;box-shadow:0 4px 18px #163f3c11}
    .mode-btn:not([aria-selected="true"]):hover{background:#e2eeee}
    [hidden]{display:none!important}
    .method-note{font-size:12px;line-height:1.75;padding:11px 12px;background:#f0f8f6;border-left:3px solid #8ac8bd;color:#486d70;margin:6px 0 18px;border-radius:0 8px 8px 0}
    .handoff{width:100%;padding:11px 13px;border:1px dashed #93bcb4;background:#f1faf7;color:#0a766c;border-radius:10px;font-size:12px;font-weight:750;margin-bottom:16px}
    .handoff:hover{background:#e4f6f0}
    .draw-alert{margin-top:14px;font-size:12px;color:#956037;font-weight:700}
    .chart-legend-description{font-size:11px;color:#8a9da5;margin:8px 0 0}
    @media(max-width:440px){.mode-full{display:none}.mode-short{display:inline}.hero h1 em{display:inline-block}.mode-switch{gap:5px;margin-bottom:13px;padding:4px}.mode-btn{font-size:13px;padding:10px 6px;min-height:48px}}
  
    /* FIRE */
    .mode-switch{grid-template-columns:repeat(4,minmax(0,1fr))}
    .fire-intro{background:#e9f5f3;border:1px solid #cfe7e3;border-radius:12px;padding:12px;margin:0 0 16px;font-size:12px;color:#42686a}
    .fire-details{border:1px solid #dce8eb;border-radius:12px;margin:0 0 12px;overflow:hidden}
    .fire-details>summary{list-style:none;cursor:pointer;padding:12px 13px;background:#f5faf9;font-size:13px;font-weight:800;color:#244b56}
    .fire-details>summary::-webkit-details-marker{display:none}
    .fire-details>summary:after{content:'⌄';float:right;font-size:17px;line-height:1}
    .fire-details[open]>summary:after{content:'⌃'}
    .fire-details>summary span{display:block;font-size:10px;font-weight:500;color:#8297a0}
    .fire-group-content{padding:14px 12px 2px}
    .fire-group-content .field{margin-bottom:14px}
    .fire-group-content .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .fire-group-content .field-grid .field{min-width:0}
    .fire-group-content .field-label{font-size:12px}
    .fire-group-content .input-wrap input{padding-right:43px}
    .fire-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;margin-bottom:15px;cursor:pointer}
    .fire-check input{margin-top:4px;accent-color:var(--teal);width:17px;height:17px}
    .fire-check strong{display:block}.fire-check small{display:block;color:#8297a0;font-size:11px}
    .fire-caveat{font-size:11px;color:#718891;line-height:1.65;margin:8px 0 16px}
    .fire-legend{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:16px;font-size:11px;font-weight:650;color:#617783}
    .fire-legend span{display:inline-flex;align-items:center;gap:5px}.fire-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
    .tax-group{margin:2px 0 17px;padding:13px;background:#f8fafb;border:1px solid #dbe8ec;border-radius:12px}
    .tax-group .field{margin-bottom:11px}
    .tax-group .field:last-child{margin-bottom:3px}
    .tax-title{font-size:13px;font-weight:800;color:#284c59;margin-bottom:4px}
    .tax-summary{margin:13px 0 0;padding:11px 13px;background:#eef7f3;border:1px solid #cfe6dd;border-radius:10px;font-size:12px;color:#315e5a;line-height:1.65}
    .tax-summary b{font-size:15px;color:#0b665e}
    .fire-results .chart-holder canvas{height:320px}
    /* 高配当シミュレーター */
    .dividend-results{gap:16px}.dividend-results .chart-holder canvas{height:245px}
    .dividend-legend{display:flex;gap:8px 15px;flex-wrap:wrap;margin:10px 0 0;font-size:11px;color:#66808a;font-weight:650}
    .dividend-legend span{display:inline-flex;align-items:center;gap:6px}
    .dividend-legend i{display:inline-block;width:19px;height:0;border-top:3px solid var(--teal);border-radius:2px}
    .dividend-legend i.gold{border-color:#d49b43;border-top-style:dashed}.dividend-legend i.blue{border-color:#286491}.dividend-legend i.purple{border-color:#9677bb;border-top-style:dashed}
    .dividend-note{font-size:12px;color:#657e85;background:#f1f8f6;padding:12px;border-radius:10px;line-height:1.75;margin:12px 0 0}
    .dividend-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
    .dividend-chart-grid>.panel:first-child{grid-column:1/-1}
    .dividend-results .result-panel{min-width:0}
    .dividend-results .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
    @media(max-width:800px){.dividend-chart-grid{grid-template-columns:minmax(0,1fr)}.dividend-chart-grid>.panel:first-child{grid-column:auto}.dividend-results .stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
    @media(max-width:500px){.dividend-results .chart-holder canvas{height:240px}.dividend-results .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dividend-results .stat-value{font-size:14px}.mode-btn{letter-spacing:-.03em}}
    @media(max-width:500px){.fire-group-content .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fire-group-content{padding:12px 9px 1px}.fire-results .chart-holder canvas{height:260px}}


/* 個別ページナビゲーション */
.mode-btn {text-decoration:none;display:flex;align-items:center;justify-content:center}
.mode-btn[aria-current="page"]{background:white;border-color:#b8d9d2;color:#006e66;box-shadow:0 4px 18px #163f3c11}
.seo-summary{margin:6px 0 20px;padding:17px 20px;background:#f0f8f6;border:1px solid #d4e9e6;border-radius:14px;color:#275b59;line-height:1.85}
.seo-summary h2{margin:0 0 9px;font-size:18px}
.seo-summary p{margin:0 0 8px}
.seo-summary p:last-child{margin-bottom:0}

/* 定率法では「毎月」を視覚的にも無効として表示 */
.radio-row label:has(input:disabled){opacity:.42;cursor:not-allowed;background:#f4f6f7;border-color:#e1e6e9}
.radio-row label:has(input:disabled) input{cursor:not-allowed}

/* Ver.5.2: 具体的な入力例とFAQを、計算フォームの後に掲載 */
.learning-guide{margin:24px 0 0;padding:26px 28px;background:#fff;border:1px solid #e3edf0;border-radius:20px;box-shadow:var(--shadow)}
.learning-label{color:#0a8177;font-size:11px;font-weight:800;letter-spacing:.08em}
.learning-head h2{font-size:clamp(19px,2.1vw,25px);letter-spacing:-.02em;line-height:1.45;margin:6px 0 9px}
.learning-head p{font-size:13px;color:#526874;line-height:1.9;margin:0 0 17px}
.sample-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:17px 0 20px}
.sample-card{border:1px solid #dbe9e9;border-radius:14px;padding:19px;display:flex;flex-direction:column;background:#fbfdfc;min-width:0}
.sample-card h3{font-size:16px;margin:0 0 8px;line-height:1.45}
.sample-card p{font-size:13px;color:#4f6570;line-height:1.8;margin:0 0 12px}
.sample-card .sample-meta{font-size:12px;color:#60817e;font-weight:700}
.sample-apply{margin-top:auto;align-self:flex-start;border:1px solid #088478;color:#087368;border-radius:9px;background:#ecf7f3;font-size:13px;font-weight:800;padding:10px 14px;min-height:42px}
.sample-apply:hover{background:#d9f0e8}
.learning-table-scroll{overflow-x:auto;border:1px solid #e2eded;border-radius:12px}
.learning-table{width:100%;border-collapse:collapse;font-size:13px;min-width:480px}
.learning-table caption{font-size:11px;caption-side:bottom;padding:8px 12px;text-align:left;color:#7a8d96}
.learning-table th,.learning-table td{padding:12px 14px;text-align:right;border-bottom:1px solid #e6eeee}
.learning-table th{font-size:12px;color:#456873;background:#f1f7f6}
.learning-table th:first-child,.learning-table td:first-child{text-align:left}
.learning-table tbody tr:last-child td{border-bottom:0}
.learning-note{background:#eef8f5;border-radius:12px;padding:13px 16px;color:#456b63;font-size:13px;line-height:1.9}
.faq-heading{font-size:17px;margin:24px 0 11px}
.faq-list{display:grid;gap:9px}
.faq-list details{border:1px solid #e2eaee;border-radius:10px;padding:12px 15px}
.faq-list summary{cursor:pointer;font-weight:750;font-size:13px;color:#264d5a;line-height:1.6}
.faq-list details[open]{background:#fbfdfd}
.faq-list p{font-size:13px;color:#546c75;margin:10px 0 2px;line-height:1.9}
.learning-caution{font-size:11px;color:#778d94;margin:18px 0 0;line-height:1.8}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tool-selector-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.tool-selector-grid a{display:grid;gap:5px;text-decoration:none;border-radius:12px;border:1px solid #dfebe8;padding:17px;background:#f8fcfa;color:#24575b}
.tool-selector-grid a:hover{border-color:#0b8d81;background:#eef9f6}
.tool-selector-grid strong{font-size:14px}.tool-selector-grid span{font-size:12px;color:#6a8487}
@media(max-width:650px){.learning-guide{padding:19px 16px;border-radius:16px;margin-top:16px}.sample-grid,.tool-selector-grid{grid-template-columns:minmax(0,1fr)}.sample-card{padding:16px}.sample-apply{width:100%}.learning-table th,.learning-table td{padding:10px}.learning-head h2{font-size:20px}}
