:root{color-scheme:light;--paper:#f5f7f5;--ink:#182d29;--muted:#52655f;--line:#dce4df;--green:#075e50;--soft:#e8f2ed;--num:"Inter","DIN Alternate","Helvetica Neue",Arial,sans-serif;font-family:"Inter",-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:82px}
body{margin:0;font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
button:disabled{opacity:.42;cursor:default}
a{color:inherit;text-decoration:none}
button,a,input{outline-offset:3px}
:focus-visible{outline:3px solid #d89536}
[hidden],.symbols{display:none!important}
h1,h2,p,dl,dd{margin:0}
h1{font-size:clamp(1.85rem,3vw,2.35rem);line-height:1.23;letter-spacing:-.05em;font-weight:750}
h2{font-size:1.21rem;line-height:1.45;letter-spacing:-.035em;font-weight:700}
.icon{width:19px;height:19px;display:inline-block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wrap{max-width:1180px;margin:0 auto;padding-inline:36px}
.top{position:sticky;z-index:4;top:0;border-bottom:1px solid #dce4df;background:rgba(249,251,249,.97)}
.bar{display:flex;align-items:center;min-height:66px;gap:46px}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:1.14rem;font-weight:750;letter-spacing:.015em;white-space:nowrap}
.brand-mark{display:grid;place-items:center;background:#104e42;color:#fff;border-radius:11px;width:36px;height:36px}
.brand-mark .icon{width:23px;height:23px;stroke-width:1.65}
nav{display:flex;gap:26px;align-self:stretch}
nav a{display:flex;align-items:center;font-size:.9rem;color:var(--muted)}
nav a:hover{color:var(--green)}
.clock{margin-left:auto;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.85rem;white-space:nowrap}
.clock time{font:600 .87rem var(--num);letter-spacing:.02em}
.clock .icon{width:16px;height:16px}
main{padding-block:31px 28px}
.page-title,.section-head,.dialog-head,.next-top,.hero-top,.ledger-foot,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #cfdad3;background:#fff;border-radius:9px;min-height:38px;padding:6px 14px;white-space:nowrap;font-size:.875rem;font-weight:580}
.btn:hover:enabled,.icon-btn:hover{background:#edf4f0;border-color:#9ebbb0}
.btn .icon{width:17px;height:17px}
.planbar{display:inline-flex;gap:3px;padding:4px;background:#e8ede9;border:1px solid #dfe6e0;border-radius:12px;margin:18px 0 16px}
.planbar button{border:1px solid transparent;border-radius:8px;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:5px 18px;font-weight:620;font-size:.92rem;color:#4a6159}
.planbar button:hover{background:#f4f7f4}
.planbar button[aria-pressed=true]{background:#fff;border-color:#dbe4dd;color:#104f42;box-shadow:0 1px 4px #183c2520}
.planbar .icon{width:17px;height:17px}
.top-grid,.mid-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px}
.mid-grid,.ledger{margin-top:18px}
.panel{border:1px solid var(--line);border-radius:19px;background:#fff;min-width:0}
.hero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;padding:24px 28px 23px;min-height:231px;background:linear-gradient(108deg,#104d42 0,#145a4c 63%,#226857 100%);color:white;border-radius:19px}
.hero:after{content:"";position:absolute;z-index:-1;inset:0 0 0 28%;background:repeating-radial-gradient(ellipse at 121% 130%,transparent 0,transparent 20px,#c0e8cb23 21px,transparent 22px,transparent 32px);pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000 40%)}
.hero-top{align-items:center}
.hero h2{display:flex;gap:8px;align-items:center;color:#e2efe7;font-size:1rem;font-weight:570;letter-spacing:0}
.hero-tag{border:1px solid #9fc8b85c;background:#184f44a8;border-radius:24px;padding:3px 9px;color:#eef7ed;font-size:.78rem;white-space:nowrap}
.balance{margin-top:15px;display:flex;align-items:baseline;gap:8px;min-width:0;line-height:1}
.balance strong{font:600 clamp(2.65rem,4.5vw,4.25rem)/1.12 var(--num);letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.yen{font:450 1.77rem var(--num);color:#d6eae0}
.cutoff{margin-top:5px;color:#d4e8dc;font-size:.87rem}
.hero-foot{margin-top:auto;padding-top:21px}
.prog-label{display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:#d6e8dd;gap:8px}
.prog-label b{font:650 .94rem var(--num);color:#fff;margin-left:4px}
.progress{height:6px;border-radius:20px;background:#a8cfb846;overflow:hidden;margin-top:9px}
.progress i{display:block;height:100%;border-radius:inherit;background:#c1ecae}
.next,.chart-card,.compare,.ledger{padding:22px 24px}
.next{display:flex;flex-direction:column;justify-content:space-between}
.tag{font-size:.8rem;background:#edf4ef;color:#296342;border-radius:20px;padding:4px 10px;font-weight:600}
.next-head{display:flex;align-items:center;gap:15px;margin:15px 0 17px}
.calendar{width:50px;height:55px;border:1px solid #cbd9cf;border-radius:10px;display:flex;flex-direction:column;align-items:center;overflow:hidden;background:#f5f8f4}
.calendar span{width:100%;text-align:center;background:#dcebdc;color:#365b44;font-size:.72rem;line-height:19px;font-weight:650}
.calendar b{font:650 1.46rem/33px var(--num);letter-spacing:-.05em}
.next-date,.sub{font-size:.86rem;color:var(--muted)}
.next-total{display:block;margin-top:3px;font:650 clamp(1.55rem,2.4vw,2.15rem)/1.15 var(--num);letter-spacing:-.045em}
.breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);padding-top:13px}
.breakdown>div{display:flex;flex-direction:column;gap:3px}
.breakdown>div+div{border-left:1px solid var(--line);padding-left:12px}
.breakdown span{color:var(--muted);font-size:.81rem}
.breakdown b{font:610 .98rem/1.35 var(--num);font-variant-numeric:tabular-nums}
.complete{margin:auto;display:flex;align-items:center;gap:8px;color:var(--green)}
.complete .icon{padding:6px;width:32px;height:32px;border-radius:50%;background:var(--soft)}
.sub{margin-top:4px}
.toggle{display:inline-flex;align-items:stretch;border:1px solid #dfe6df;border-radius:8px;padding:3px;background:#f2f5f2;flex-shrink:0}
.toggle button{background:none;border:1px solid transparent;padding:4px 10px;border-radius:5px;color:var(--muted);font-size:.82rem;white-space:nowrap}
.toggle button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #1c39211a;border-color:#dce5dd;color:#214c3e;font-weight:650}
.plot{position:relative;height:194px;margin:14px -2px 5px;touch-action:pan-y}
.plot svg{display:block;width:100%;height:100%;overflow:visible}
.axis-text{fill:#65766e;font:12px var(--num)}
.chart-marker{stroke:#657c71;stroke-dasharray:3 4}
.tooltip{position:absolute;pointer-events:none;background:#fff;border:1px solid #c5d3c9;border-radius:8px;box-shadow:0 4px 15px #24433114;padding:7px 9px;font-size:.76rem;line-height:1.6;white-space:nowrap}
.tooltip b{display:block;font:650 .84rem var(--num);color:#263c32}
.legend{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;font-size:.79rem;color:#4e6258}
.legend span{display:inline-flex;gap:5px;align-items:center}
.swatch{display:inline-block;width:18px;border-top:3px solid var(--green);border-radius:3px}
.swatch.lower{border-color:#ac670e;border-top-style:dashed}
.swatch.shorter{border-color:#4662aa}
.compare{display:flex;flex-direction:column}
.compare-table,.schedule{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.compare-table{margin-top:13px}
.compare-table th,.schedule th{text-align:right;font-weight:500;color:var(--muted);font-size:.8rem;white-space:nowrap}
.compare-table :is(td,th):first-child,.schedule :is(td,th):first-child{text-align:left}
.compare-table th,.compare-table td{padding:8px 0;border-bottom:1px solid #e7ece7}
.compare-table td{font:550 .92rem var(--num);text-align:right;white-space:nowrap}
.plan-link{font-family:inherit;font-size:.87rem;background:none;color:var(--ink);border:0;padding:3px 0;display:inline-flex;align-items:center;gap:7px}
.plan-link::before{content:"";width:7px;height:7px;background:var(--series);border-radius:50%}
.plan-link:hover{text-decoration:underline}
.compare-table .active .plan-link{font-weight:700}
.saving{margin-top:auto;padding:11px 13px;border-radius:9px;background:#edf5ef;color:#315b43;font-size:.83rem;line-height:1.55}
.saving strong{font-weight:710}
.ledger .section-head{margin-bottom:19px}
.schedule thead{background:#f3f6f3}
.schedule th{padding:10px 9px}
.schedule th:first-child{border-radius:6px 0 0 6px}
.schedule th:last-child{border-radius:0 6px 6px 0}
.schedule td{border-bottom:1px solid #e8ede9;padding:11px 9px;text-align:right;font:500 .93rem/1.45 var(--num);white-space:nowrap}
.schedule .money-total{font-weight:650}
.schedule .extra-money{color:var(--green);font-weight:650}
.date-button{display:inline-flex;align-items:center;gap:4px;padding:0;background:none;border:0;font:550 .93rem/1.5 var(--num);color:var(--ink)}
.date-button .icon{width:15px;height:15px;color:#66796d}
.date-button[aria-expanded=true] .icon{transform:rotate(180deg)}
.detail td,.schedule .detail td:first-child{font-family:inherit;font-size:.85rem;font-weight:400;line-height:1.6;text-align:left;background:#f4f8f5;color:#425e50;white-space:normal}
.row-breakdown{display:flex;flex-wrap:wrap;gap:4px 20px;font-family:inherit;font-size:.83rem}
.ledger-foot{margin-top:15px;font-size:.81rem;color:var(--muted)}
.ledger-foot>div{display:flex;gap:6px}
.btn.page{min-height:32px;font-size:.81rem;padding:4px 10px}
.empty{color:var(--muted);padding:22px 4px;font-size:.91rem}
.note{display:flex;align-items:flex-start;justify-content:center;gap:7px;color:#52685c;font-size:.81rem;margin:21px 5px 0}
.note .icon{width:15px;height:15px;margin-top:2px}
dialog{width:min(450px,calc(100% - 26px));max-height:90dvh;padding:23px;border:1px solid #d5ded5;border-radius:17px;box-shadow:0 15px 70px #112c2040;color:var(--ink);background:#fff}
dialog::backdrop{background:#152f28a8}
.dialog-head{margin-bottom:18px}
.icon-btn{width:34px;height:34px;min-height:34px;padding:0}
dialog label{display:block;font-weight:650;font-size:.94rem;margin-bottom:7px}
.field{display:flex;align-items:center;gap:8px;border:1px solid #a5beb0;border-radius:8px;padding:8px 12px}
.field:focus-within{outline:2px solid #73a891}
.field input{border:0;background:transparent;min-width:0;width:100%;outline:none;font:600 1.2rem var(--num)}
.field span,.field-hint,.facts dt{color:var(--muted);font-size:.86rem}
.field-hint{line-height:1.65;margin-top:8px}
.facts{border-block:1px solid var(--line);margin:15px 0;padding:8px 0}
.facts>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0;font-size:.87rem}
.facts dd{font-weight:570}
.dialog-actions{margin-top:17px}
.btn.primary{background:var(--green);border-color:var(--green);color:white}
.btn.primary:hover{background:#094c40}
@media(min-width:1200px){.bar{min-height:70px}main{padding-top:37px}.hero{min-height:242px;padding:26px 30px 24px}.next,.chart-card,.compare,.ledger{padding:24px 26px}}
@media(max-width:900px){.wrap{padding-inline:24px}.bar{gap:25px}.top-grid,.mid-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:13px}.mid-grid,.ledger{margin-top:13px}.hero{padding:20px}.next,.chart-card,.compare,.ledger{padding:19px}.breakdown b{font-size:.9rem}.compare-table td{font-size:.85rem}.saving{margin-top:14px}.plot{height:175px}.section-head{gap:6px}.toggle button{padding:4px 7px}.prog-label{font-size:.78rem}nav{gap:18px}.schedule td,.schedule th{padding-inline:6px}}
@media(max-width:720px){html{scroll-padding-top:62px}.bar{min-height:55px;gap:10px}.brand{font-size:1.04rem;gap:8px}.brand-mark{width:31px;height:31px;border-radius:9px}.brand-mark .icon{width:20px;height:20px}nav{display:none}.wrap{padding-inline:16px}main{padding-block:21px}.page-title .btn{min-height:34px}.planbar{display:flex;margin:14px 0 12px}.planbar button{flex:1;padding:5px 3px;gap:5px;min-height:36px;font-size:.89rem}.top-grid,.mid-grid{grid-template-columns:1fr;gap:12px}.mid-grid,.ledger{margin-top:12px}.hero{min-height:195px;padding:19px 21px}.balance{margin-top:12px}.balance strong{font-size:clamp(2.48rem,9.5vw,3.85rem)}.yen{font-size:1.36rem}.hero-foot{padding-top:15px}.next,.chart-card,.compare,.ledger{padding:18px}.panel,.hero{border-radius:15px}.next-head{margin:12px 0}.next-total{font-size:1.65rem}.calendar{width:43px;height:49px}.calendar b{font-size:1.3rem;line-height:28px}.breakdown{padding-top:10px}.breakdown>div+div{padding-left:18px}.breakdown b{font-size:.96rem}.plot{height:185px}.legend{gap:15px}.compare-table td{font-size:.96rem}.saving{margin-top:13px}.wide{display:none}.schedule td,.schedule th{padding:10px 3px}.schedule td,.date-button{font-size:.86rem}.note{justify-content:flex-start}.clock{font-size:.75rem;gap:5px}.clock time{font-size:.78rem}}
@media(max-width:360px){.wrap{padding-inline:10px}.clock .icon{display:none}.planbar .icon{display:none}.next,.compare,.chart-card,.ledger{padding:14px}.breakdown>div+div{padding-left:8px}.compare-table td,.schedule td,.date-button{font-size:.8rem}.axis-text{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
