@import url('/responsive.css');
@import url('/extensions.css');
:root{--forest:#173c2c;--ink:#20382c;--lime:#c1f17c;--paper:#f8faf5;--line:#dce4d7;--muted:#5d6d62;--radius:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button,a,input,select{touch-action:manipulation}
button,select{cursor:pointer}
button{border:0}
button:disabled{opacity:.45;cursor:not-allowed}
button:not(:disabled):hover,.primary:hover{filter:brightness(.94)}
a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #698b37;outline-offset:4px}
h1,h2,h3,p{margin-top:0}
h2{font-size:24px;letter-spacing:-.025em}
h3{font-size:18px}
p{line-height:1.8}
small{line-height:1.7}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.skip{position:fixed;top:-100px;z-index:10;background:var(--lime);padding:16px}
.skip:focus{top:0}
.site-header{border-bottom:1px solid var(--line);background:var(--paper)}
.header-inner{max-width:1200px;min-height:88px;margin:auto;padding:0 32px;display:flex;align-items:center;gap:48px}
.brand{font-size:30px;letter-spacing:-1.8px;font-weight:800;display:inline-flex;align-items:center;gap:9px}
.brand-mark{background:var(--forest);color:var(--lime);font-size:30px;font-style:italic;width:36px;height:36px;border-radius:11px;text-align:center;line-height:34px;letter-spacing:-3px;padding-right:4px}
.brand-period{color:#607b36;margin-left:-9px}
.header-inner nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:650}
.header-inner nav a{padding:12px 0;white-space:nowrap}
.header-inner nav a[aria-current]{color:var(--forest);box-shadow:0 2px var(--forest)}
.language{margin-left:auto}
.language select{background:transparent;border:1px solid var(--line);padding:9px 14px;border-radius:30px;color:var(--ink);max-width:130px}
main{max-width:1200px;margin:auto;padding:0 32px;min-height:70vh}
.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;align-items:center;padding:68px 0 62px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;margin-bottom:20px;color:#48613f}
.hero h1{font-size:clamp(38px,4.6vw,62px);line-height:1.32;letter-spacing:-.055em;font-weight:800;margin-bottom:24px}
.hero-copy>p:not(.eyebrow){color:var(--muted);font-size:17px;line-height:1.9;margin-bottom:30px}
.primary{background:var(--forest);color:var(--lime);padding:15px 24px;border-radius:40px;display:inline-flex;align-items:center;justify-content:center;gap:24px;font-size:14px;font-weight:700;text-decoration:none!important;min-height:48px}
.free-note{font-size:12px;margin-left:18px;color:var(--muted)}
.hero-art{position:relative;min-height:340px;display:flex;align-items:center;justify-content:center}
.art-card{background:var(--lime);width:300px;padding:26px 30px;border-radius:26px;transform:rotate(-7deg);box-shadow:12px 15px 0 #dfe8d3;position:relative}
.art-card>span{font-size:14px;font-weight:600}
.art-card strong{font-size:55px;line-height:1.05;letter-spacing:-3px;display:block;margin:26px 0}
.art-card strong span{font-weight:400;position:absolute;right:24px;top:94px}
.art-equation{font-size:25px;border-top:1px solid #99c460;padding-top:18px}
.orbit{position:absolute;border:1px solid #b6c7a3;width:390px;height:260px;border-radius:50%;transform:rotate(-30deg)}
.art-stamp{position:absolute;right:4px;bottom:4px;width:100px;height:100px;border-radius:50%;background:var(--forest);color:var(--lime);font-size:12px;line-height:1.4;font-weight:800;display:grid;place-content:center;text-align:center;transform:rotate(12deg)}
.tools-section{padding:20px 0 54px;scroll-margin-top:24px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px}
.section-heading h2{margin:0}
.tool-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tool-card{border:1px solid var(--line);border-radius:var(--radius);padding:24px 22px;background:#fff;transition:transform .18s,border-color .18s;display:flex;flex-direction:column}
.tool-card:hover{transform:translateY(-4px);border-color:#678446;text-decoration:none}
.card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}
.tool-mark{font-size:36px;line-height:1}
.card-index{font-size:12px;color:var(--muted)}
.tool-card h3{font-size:23px;letter-spacing:-.04em;margin-bottom:12px}
.tool-card p{font-size:13px;line-height:1.8;color:var(--muted);margin-bottom:28px}
.card-action{margin-top:auto;display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:700}
.card-currency{background:#edf4e5}
.card-units{background:#f0f2eb}
.home-note{display:flex;gap:32px;align-items:center;border-top:1px solid var(--line);padding:44px 0 60px}
.note-symbol{font-size:70px;color:#678b46}
.home-note h2{margin-bottom:10px}
.home-note p{color:var(--muted);font-size:14px;margin-bottom:0;max-width:640px}
.tool-intro{padding:34px 0 28px}
.back{font-size:12px;color:var(--muted);display:inline-block;margin-bottom:30px}
.tool-intro .eyebrow{margin-bottom:12px}
.tool-intro h1{font-size:clamp(29px,3.4vw,44px);line-height:1.4;letter-spacing:-.04em;margin-bottom:12px}
.tool-intro>p:last-child{color:var(--muted);font-size:15px;margin:0}
.workspace{display:grid;grid-template-columns:1fr 1.2fr;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:white}
.input-panel{padding:32px;border-right:1px solid var(--line)}
.input-panel h2{font-size:18px;margin-bottom:26px}
.output-panel{padding:36px;background:#f0f5e9;min-width:0}
.output-panel>.eyebrow{color:#4b6240}
.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650;margin-bottom:20px;flex:1;min-width:0}
.field input,.field select,.section-heading select{width:100%;padding:14px;background:white;border:1px solid #aebfa7;border-radius:12px;color:var(--ink);min-height:51px;min-width:0}
.field input{font-size:20px;font-weight:500;font-variant-numeric:tabular-nums}
.field select{font-size:14px}
.field-row{display:flex;gap:12px;align-items:flex-end}
.field-row .swap{margin-bottom:21px;flex:none}
.swap{width:44px;height:48px;border-radius:50%;background:#e4eed9;color:var(--forest);font-size:25px}
.standalone{display:block;margin:-12px auto 4px;position:relative;z-index:1;border:4px solid white}
.check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.8;margin:10px 0 26px}
.check input{width:19px;height:19px;accent-color:var(--forest);flex-shrink:0;margin:2px 0}
.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.secondary{padding:12px 18px;border:1px solid #aebfa7;border-radius:30px;background:transparent;color:var(--ink);font-size:12px;font-weight:600;min-height:44px}
.text-button{padding:12px 4px;background:none;color:var(--ink);text-decoration:underline;text-underline-offset:4px;font-size:12px;min-height:44px}
.big-number{font-size:clamp(34px,4.6vw,58px);font-weight:750;letter-spacing:-.045em;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:12px 0 22px}
.big-number small{font-size:20px;font-weight:500;letter-spacing:0}
.muted{color:var(--muted);font-size:13px}
.result>.muted:first-child{margin-bottom:10px}
.result{min-height:130px}
.error{color:#9b2828;font-size:13px;line-height:1.7}
.error:empty{display:none}
.notice{color:#345b24;font-size:12px;margin:12px 0}
.hint{font-size:11px;color:var(--muted);line-height:1.8}
.result-tag{display:inline-block;padding:8px 16px;border-radius:30px;background:#d6e9be;color:#244121;font-weight:650;font-size:14px}
.bmi-scale{height:10px;border-radius:10px;margin-top:35px;background:linear-gradient(90deg,#c8d2c0 0 25%,#99bc6e 25% 43%,#b9bb80 43% 65%,#c0ab88 65%);position:relative}
.bmi-scale span{position:absolute;width:3px;height:22px;background:var(--forest);top:-6px}
.scale-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:10px 0 24px}
.categories>div{display:flex;justify-content:space-between;gap:16px;padding:10px 12px;font-size:12px;border-radius:8px}
.categories>div.selected{background:#dcebc9}
.categories b{font-weight:600}
.rate-line{padding:18px 0;border-top:1px solid #d6e1ca;font-size:18px;font-variant-numeric:tabular-nums}
.warning{padding:12px;border-radius:10px;background:#f7eac8;font-size:12px;color:#625019}
.loading{font-size:14px;color:var(--muted)}
.result-stats{display:grid;gap:14px}
.result-stats>div{display:flex;justify-content:space-between;gap:18px;font-size:13px}
.result-stats span{color:var(--muted)}
.result-stats b{font-variant-numeric:tabular-nums}
.balance-chart{margin:25px 0 0;color:#4b7236}
.balance-chart figcaption{font-size:12px;color:var(--muted);margin-bottom:12px}
.balance-chart svg{width:100%;max-height:120px}
.detail-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-top:24px}
.detail-panel h2{font-size:20px}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.comparison-grid>div{padding:20px;background:#f5f7f1;border-radius:12px}
.comparison-grid p{font-size:12px}
.comparison-grid strong{display:block;font-size:23px}
.difference{margin:20px 0 0;font-size:14px}
.table-scroll{overflow:auto;max-height:400px}
table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
th,td{padding:12px 14px;text-align:right;border-bottom:1px solid #edf0e9;font-variant-numeric:tabular-nums}
th:first-child{text-align:left}
thead th{background:#f0f5e9;position:sticky;top:0}
tbody th{font-weight:400}
.section-heading select{width:auto;font-size:12px;min-height:42px;padding:10px}
.explanation{max-width:850px;padding:40px 0 55px}
.explanation h2{font-size:20px;margin-bottom:14px}
.explanation p{color:var(--muted);font-size:13px}
.explanation details{border-top:1px solid var(--line);padding-top:20px}
.explanation summary{cursor:pointer;font-size:13px;font-weight:650;margin-bottom:16px}
.source-links{display:flex;flex-wrap:wrap;gap:22px;font-size:12px;text-decoration:underline}
.output-panel>#save-a{margin-top:8px}
footer{max-width:1136px;margin:auto;border-top:1px solid var(--line);display:flex;align-items:center;gap:40px;padding:30px 0 40px;color:var(--muted)}
footer .brand{font-size:25px;color:var(--ink)}
footer p{font-size:12px;margin:0}
footer small{font-size:10px}
footer>span{margin-left:auto;font-size:11px;white-space:nowrap}

:lang(ja) .art-card strong{font-size:42px;line-height:1.3;letter-spacing:-2px}

/* Public Footer and Support keep their component layouts inside the calculator shell. */
footer.website-footer{display:block;max-width:none;margin:0;border-top:1px solid var(--line);font-size:inherit}
body footer.website-footer>div{width:auto}
[data-support-page]{max-width:1100px;margin:32px auto;padding:0 24px}
.tool-pricing{--brand:var(--ink);--pricing-surface:#fff}
.static-checkout{margin:48px auto}
@media print{[data-typebot-support]{display:none!important}}
