:root{--green:#345c48;--ink:#273b32;--muted:#7d857e;--bg:#f7f8f3;--border:#e7eae2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Noto Sans JP',sans-serif}button,input,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b39d60;outline-offset:4px}aside{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--border);padding:38px 26px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:26px;font-weight:700;letter-spacing:3px}.brand small{font-size:9px;letter-spacing:2px}.logo{background:var(--green);color:white;border-radius:13px;padding:6px 10px;font-size:23px}.tagline{font-size:10px;color:var(--muted);margin:18px 0 42px}nav{display:grid;gap:10px}nav button{text-align:left;padding:15px 16px;border-radius:9px;font-size:19px;display:flex;gap:16px;align-items:center}nav span{font-size:13px}nav .active{background:#edf2e9;color:var(--green);font-weight:700}.sidebar-note{margin-top:auto;background:#f7f8f2;border-radius:12px;padding:20px 14px;font-size:11px}.sidebar-note span{display:block;color:#9fae7c;font-size:30px;margin-bottom:12px}.sidebar-note b{font-size:11px}.sidebar-note p{line-height:2;color:var(--muted)}.local-note{font-size:9px;color:var(--muted);margin-top:20px;text-align:center}main{margin-left:232px;padding:42px 48px;max-width:1550px}header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:32px}.eyebrow{font-size:10px;letter-spacing:2px;color:#85937e}h1{font-size:25px;font-weight:600;margin:12px 0}header p{color:var(--muted);font-size:12px;margin:0}.primary{background:var(--green);color:white;border-radius:9px;padding:13px 20px;font-size:12px;font-weight:600;white-space:nowrap}.primary:hover{background:#244433}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:12px}.periods{padding:4px;background:#e9ede5;border-radius:8px;display:flex}.periods button{padding:7px 22px;font-size:12px;border-radius:6px}.periods .selected{background:white;box-shadow:0 1px 4px #0001}.date-nav{display:flex;gap:15px;align-items:center;font-size:13px}.date-nav button{font-size:22px}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.card{background:white;border:1px solid var(--border);border-radius:16px;padding:26px}.hero{background:#eaf0e3;border:0;position:relative;overflow:hidden;min-height:250px}.hero:after{content:'✳';position:absolute;right:24px;top:28px;font-size:160px;line-height:1;color:#d6e1c6;transform:rotate(12deg);pointer-events:none}.hero>*{position:relative;z-index:1}.kicker{font-size:12px;color:#64745d}.money{font-size:44px;font-weight:600;letter-spacing:-1px;margin:15px 0 20px}.money small{font-size:22px;margin-right:6px}.hero-bottom{display:flex;justify-content:space-between;font-size:11px;margin-top:12px}.bar{height:7px;background:#e8ece4;border-radius:8px;overflow:hidden}.bar i{height:100%;display:block;background:#789368;border-radius:8px}.hero .bar{background:#d6e0ce}.hero .bar i{background:#345c48}.status{display:inline-block;border-radius:30px;padding:5px 10px;font-size:10px;background:#ffffffa8;margin-bottom:8px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:0}.stat{padding:14px}.stat:nth-child(2n){border-left:1px solid var(--border)}.stat:nth-child(n+3){border-top:1px solid var(--border)}.stat p{font-size:11px;color:var(--muted)}.stat strong{font-size:23px;font-weight:500}.stat small{display:block;font-size:10px;color:var(--muted);margin-top:10px}.tip{margin:20px 0 25px;padding:15px 20px;background:#f0f2e8;border-radius:10px;font-size:12px;line-height:1.8;display:flex;gap:13px}.tip b{font-weight:500}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}h2{font-size:15px;font-weight:600;margin:0}.text-button{font-size:11px;color:var(--green);text-decoration:underline;text-underline-offset:4px}.category-row{margin-bottom:23px}.row-top{display:flex;align-items:center;gap:11px;margin-bottom:11px}.icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:var(--tint,#eef1e8);font-size:17px}.row-top strong{font-size:12px;font-weight:500}.row-top .value{margin-left:auto;font-size:12px}.value small{color:var(--muted);font-size:10px}.row-foot{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:7px}.transaction{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f1ed}.transaction:last-child{border:0}.transaction .description{flex:1;min-width:0}.transaction b{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.transaction small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.transaction strong{font-size:13px;white-space:nowrap}.empty{text-align:center;padding:36px 15px;color:var(--muted);line-height:2;font-size:12px}.empty .sprout{font-size:32px;color:#9bad89;margin-bottom:10px}.outline{border:1px solid #cdd6c8;border-radius:8px;padding:10px 17px;font-size:12px}.empty button{display:block;margin:18px auto 0}footer{display:flex;justify-content:space-between;color:#a3aaa0;font-size:9px;letter-spacing:1px;margin-top:32px}dialog{border:1px solid var(--border);border-radius:18px;padding:28px;width:450px;max-width:calc(100% - 28px);color:var(--ink);max-height:90vh}dialog::backdrop{background:#172c2366;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-heading h2{font-size:19px}.close{font-size:25px}label{display:block;font-size:12px;margin:15px 0}input,select{display:block;width:100%;border:1px solid #dbe1d7;background:#fff;border-radius:8px;padding:12px;color:var(--ink);margin-top:7px}#amount{font-size:30px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.full{width:100%;margin-top:15px}.warning{background:#fff2e4;padding:13px;border-radius:8px;color:#a35d28;font-size:12px}.muted{font-size:12px;color:var(--muted);line-height:1.8}.danger{color:#b9654b}.settings{max-width:700px}.settings section{padding:22px 0;border-bottom:1px solid var(--border)}.settings section:first-child{padding-top:0}.settings p{line-height:1.9;color:var(--muted);font-size:12px}.settings .outline{margin:5px 8px 5px 0}.filter{display:flex;gap:10px;margin-bottom:18px}.filter input,.filter select{margin:0}.chart{display:flex;height:170px;align-items:flex-end;gap:7px;padding-top:15px;border-bottom:1px solid var(--border)}.chart-bar{flex:1;background:#9cb18b;min-height:2px;border-radius:4px 4px 0 0}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:10px}.donut{width:160px;height:160px;border-radius:50%;margin:20px auto;display:grid;place-items:center}.donut:before{content:'支出の内訳';width:115px;height:115px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:12px}.delete{font-size:11px;color:#b9654b}.edit{font-size:11px;color:var(--green)}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#273b32;color:white;padding:12px 24px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10;font-size:12px}#toast.show{opacity:1}.badge{font-size:10px;background:#edf2e9;padding:5px 10px;border-radius:20px;color:var(--green)}
@media(min-width:1500px){main{margin-right:auto;margin-left:260px}}@media(max-width:1050px){aside{width:190px;padding:30px 18px}main{margin-left:190px;padding:30px 25px}.grid{grid-template-columns:1fr}.hero{min-height:245px}.stats{min-height:190px}}@media(max-width:650px){aside{inset:auto 0 0;width:100%;height:72px;padding:5px 8px 8px;z-index:5;border-right:0;border-top:1px solid var(--border)}.brand,.tagline,.sidebar-note,.local-note{display:none}nav{display:flex;justify-content:space-around;gap:0}nav button{display:flex;flex-direction:column;gap:3px;padding:7px 10px;font-size:20px}nav span{font-size:9px}main{margin:0;padding:25px 18px 90px}header{align-items:flex-start;margin-bottom:26px}h1{font-size:20px}header p{font-size:10px;max-width:210px;line-height:1.8}header .primary{font-size:11px;padding:11px 12px;margin-top:20px}.eyebrow{font-size:8px}.date-nav{gap:8px;font-size:12px}.periods button{padding:7px 16px}.card{padding:22px}.money{font-size:41px}.hero:after{font-size:140px;right:15px}.grid{gap:16px}.tip{font-size:11px;padding:14px}.stat strong{font-size:21px}footer span{display:none}.filter{flex-direction:column}.transaction{gap:8px}.transaction strong{font-size:12px}.edit,.delete{padding:4px}#toast{bottom:88px;width:max-content;max-width:90%}}
