*{box-sizing:border-box} :root{font-family:"Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;color:#233e3b;background:#f5f8f7;font-synthesis:none;--green:#16756b}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;min-height:44px;border:0;border-radius:10px;padding:12px 19px;font-weight:700;transition:background .15s,transform .15s}button:hover{filter:brightness(.95)}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible{outline:3px solid #e6a73d;outline-offset:3px}.primary{background:var(--green);color:white}.secondary{background:#eff3f2;color:#354c49}.danger{background:#b73e45;color:white}.header{height:88px;background:white;border-bottom:1px solid #e3ebe8;display:flex;align-items:center;justify-content:space-between;padding:0 max(5%,calc((100% - 1200px)/2))}.brand{display:flex;align-items:center;gap:11px;color:#24423c;text-decoration:none;font-size:21px;font-weight:800;letter-spacing:.03em}.logo{background:var(--green);color:white;width:38px;height:38px;border-radius:11px;text-align:center;line-height:38px;font-size:26px}.private{font-size:12px;color:#687d76}.private:before{content:"";display:inline-block;width:7px;height:7px;background:#5b9c76;border-radius:50%;margin-right:7px}main{max-width:1200px;margin:auto;padding:44px 24px 20px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.eyebrow{font-size:11px;letter-spacing:.18em;color:var(--green);font-weight:800;margin:0 0 12px}h1{font-size:29px;letter-spacing:.03em;margin:0 0 12px}p{line-height:1.8}.muted{color:#75847f;font-size:13px}.intro p:last-child{margin-bottom:0}.summary{display:grid;grid-template-columns:1.2fr 1.1fr 1fr;gap:20px;margin-bottom:28px}.card{background:white;border:1px solid #e3ebe7;border-radius:17px;padding:26px;box-shadow:0 4px 16px #234b3c03}.summary .card{position:relative;overflow:hidden;min-width:0}.summary-label{font-size:13px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:6px}.summary-label>span{font-size:9px;letter-spacing:.12em;opacity:.6}.amount{font-size:36px;font-weight:800;letter-spacing:-.025em;margin:17px 0 2px;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.amount small{font-size:15px;margin-left:8px;font-weight:500}.summary article>p:last-of-type{font-size:11px;margin:8px 0 0}.monthly{background:var(--green);border-color:var(--green);color:white}.monthly>p:last-of-type{color:#c9e3da}.decoration{position:absolute;right:22px;bottom:15px;font-size:64px;color:#ffffff12}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-size:16px;margin:0;letter-spacing:.02em}.badge{font-size:11px;background:#f1f5f3;color:#73827d;padding:5px 10px;border-radius:7px;white-space:nowrap}.empty{padding:51px 0 37px;text-align:center}.empty-icon{display:block;border:1px dashed #a5c6b9;background:#f2f8f5;border-radius:17px;width:62px;height:62px;line-height:58px;font-size:32px;color:#689c88;margin:auto auto 21px}.empty h3{font-size:15px;margin:0}.empty p{font-size:12px;color:#7b8c84;margin:12px 0 23px}.chart{width:194px;height:194px;margin:30px auto 21px;border-radius:50%;background:#edf3f0;display:grid;place-items:center}.chart-center{width:146px;height:146px;background:white;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}.chart-center span{font-size:11px;color:#7b8c84}.chart-center strong{font-size:23px;margin-top:8px;max-width:140px;overflow-wrap:anywhere;text-align:center}.chart-caption{text-align:center;font-size:12px}.chart-note{font-size:10px;color:#8b9791;line-height:1.8;border-top:1px solid #edf1ef;padding-top:17px;margin:24px 0 0}.legend,.items{padding:0;list-style:none;margin:0}.legend li{display:flex;align-items:center;gap:9px;font-size:12px;margin-top:15px}.legend strong{margin-left:auto;font-size:13px}.dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.items li{display:flex;align-items:center;gap:12px;padding:20px 0;border-bottom:1px solid #edf1ef}.items li:last-child{border:0;padding-bottom:0}.item-info{flex:1;min-width:0}.item-info strong{font-size:14px;display:block;overflow-wrap:anywhere}.item-info p{margin:6px 0 0;font-size:11px;color:#819188}.item-price{text-align:right;white-space:nowrap;font-size:16px;font-weight:700}.item-price small{font-size:10px;color:#819188;display:block;font-weight:400;margin-top:6px}.item-actions{display:flex;gap:4px}.item-actions button{font-size:11px;padding:8px;min-height:44px;background:#f3f7f5;color:#4d6f62}.item-actions .delete{color:#ae5960;background:#fbf3f3}footer{text-align:center;font-size:11px;color:#87958d;padding:37px 0 0}footer span{margin:0 8px}footer p{font-size:10px;margin-top:12px}dialog{border:1px solid #e1e9e5;border-radius:20px;padding:28px;width:min(460px,calc(100% - 32px));color:#233e3b;box-shadow:0 24px 90px #16392b33}dialog::backdrop{background:#1d383b66;backdrop-filter:blur(3px)}dialog h2{font-size:20px}label{display:block;font-size:13px;font-weight:700;margin:21px 0 9px}input,select{width:100%;height:48px;border:1px solid #d6e0da;background:white;border-radius:9px;padding:10px 12px;color:#29443d}input:focus,select:focus{outline:2px solid #69ac98;outline-offset:1px}.field-note{font-size:11px;color:#84948b;margin:7px 0 0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.icon-button{background:transparent;font-size:24px;padding:0;min-width:44px}.error{color:#b13f46;font-size:12px}.notice{padding:14px 18px;margin-bottom:20px;border-radius:10px;background:#fff3df;color:#805315;font-size:13px}[hidden]{display:none!important}
@media(min-width:1400px){main{padding-top:55px}}@media(max-width:900px){.summary{gap:12px}.card{padding:22px}.summary-label>span{display:none}.amount{font-size:30px}.content-grid{grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr)}.item-actions{flex-direction:column}.item-actions button{min-height:36px}.intro h1{font-size:25px}}@media(max-width:650px){.header{height:70px;padding:0 20px}.brand{font-size:17px;gap:8px}.logo{width:31px;height:31px;line-height:31px;font-size:23px}.private{font-size:0}.private:before{width:8px;height:8px}main{padding:28px 16px}.intro{align-items:stretch;flex-direction:column;gap:20px;margin-bottom:22px}.intro h1{font-size:23px}.intro .muted{font-size:12px}.intro button{align-self:flex-start}.summary{grid-template-columns:1fr 1fr;gap:12px}.summary .monthly{grid-column:1/-1;padding:24px}.monthly .amount{font-size:43px}.summary .card:not(.monthly){padding:19px 16px}.summary-label{font-size:11px}.amount{font-size:26px}.summary article>p:last-of-type{font-size:10px}.content-grid{grid-template-columns:1fr;gap:20px}.empty{padding:34px 0}.items li{gap:9px;flex-wrap:wrap}.item-info{min-width:45%}.item-price{font-size:15px}.item-actions{flex-direction:row;margin-left:auto;flex-basis:100%;justify-content:flex-end}.item-actions button{min-height:44px;padding:8px 15px}.chart{margin-top:25px}.chart-card{padding-bottom:22px}footer{line-height:1.8}dialog{padding:23px}.dialog-actions button{flex:1}}
/* Keep forms usable when a mobile keyboard or landscape viewport reduces height. */
.payments-card{margin-bottom:24px}.payments,.simulation-items{list-style:none;padding:0;margin:0}.payment-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #edf1ef}.payment-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.payment-row p{margin:5px 0 0}.payment-row strong{font-size:14px}.due-label{border-radius:7px;padding:7px 10px;background:#f0f6f2;color:#427c61;font-size:12px;white-space:nowrap}.due-today{background:#fff0d9;color:#8b5911}.payment-price{overflow-wrap:anywhere}.simulation-card{margin-top:24px}.simulation-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center;border-top:1px solid #edf1ef;padding:18px 0}.simulation-row label{margin:0;font-size:12px;min-width:0}.simulation-choice{display:flex;gap:10px;align-items:center;min-height:48px;cursor:pointer}.simulation-choice input{width:22px;height:22px;flex-shrink:0;accent-color:var(--green)}.simulation-choice span{overflow-wrap:anywhere;font-size:14px}.simulation-field select,.simulation-field input{margin-top:8px}.simulation-row :disabled{background:#f4f6f5;color:#8a958f;cursor:default}.simulation-result{padding:22px;border-radius:12px;background:#f0f7f3}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px}.comparison span{font-size:12px;color:#718279}.comparison strong{display:block;font-size:15px;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}.saving-amount{font-weight:800;color:var(--green);font-size:21px;margin:18px 0 0;overflow-wrap:anywhere}.simulation-result .muted{margin-bottom:0}@media(max-width:650px){.simulation-row{grid-template-columns:1fr 1fr;gap:12px}.simulation-choice{grid-column:1/-1}.payment-row{gap:9px;flex-wrap:wrap}.payment-row>div{flex-basis:60%}.payment-price{margin-left:auto}.comparison{grid-template-columns:1fr;gap:14px}.saving-amount{font-size:19px}.simulation-result{padding:18px}}@media(max-width:360px){.simulation-row{grid-template-columns:1fr}}
.backup-card{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.backup-card .muted{margin-bottom:0}.backup-actions{display:flex;gap:10px;flex-wrap:wrap}.backup-status{flex-basis:100%;font-size:13px;margin:0;overflow-wrap:anywhere}.backup-status:empty{display:none}@media(max-width:650px){.backup-actions{width:100%;flex-direction:column}.backup-actions button{width:100%;min-height:48px}}
dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overflow-wrap:anywhere}
@media(max-width:650px){input,select{font-size:16px}.content-grid>section{min-width:0}.legend li{flex-wrap:wrap}.legend strong{overflow-wrap:anywhere;min-width:0}.item-price{white-space:normal;overflow-wrap:anywhere;max-width:100%}}
@media(max-width:360px){.form-row{grid-template-columns:1fr;gap:0}.section-heading{flex-wrap:wrap}.chart{width:min(194px,100%);height:auto;aspect-ratio:1}.chart-center{width:75%;height:auto;aspect-ratio:1}.intro h1{font-size:21px}}
