:root{--green:#315b40;--deep:#263c2e;--muted:#536658;--pale:#edf3e9;--line:#d5dfd3;--red:#a32525}*{box-sizing:border-box}body{margin:0;color:var(--deep);background:#f7f9f5;font-family:system-ui,-apple-system,"Segoe UI","Noto Sans JP",sans-serif;line-height:1.7}a{color:var(--green);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,summary,textarea{touch-action:manipulation}button{min-height:48px;border-radius:9px;padding:10px 18px;font-weight:700;cursor:pointer}button:disabled{opacity:.65;cursor:default}button:hover:not(:disabled){filter:brightness(.96)}:focus-visible{outline:3px solid #b36619;outline-offset:3px}input,select,textarea{min-height:48px;width:100%;min-width:0;border:1px solid #a9b8a9;border-radius:7px;background:white;color:var(--deep);padding:10px 12px;font-size:16px}input[aria-invalid=true],select[aria-invalid=true]{border:2px solid var(--red);background:#fff6f4}label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}label small{font-weight:400;color:var(--muted)}.container{width:min(1120px,calc(100% - 40px));margin:auto}header{background:white;border-bottom:1px solid var(--line)}.header{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:10px;font-weight:750;text-decoration:none}.mark{display:grid;place-items:center;background:var(--green);color:white;width:36px;height:36px;border-radius:8px}.header nav{display:flex;gap:24px}.header a,footer a{min-height:44px;display:inline-flex;align-items:center}.intro{padding:32px 0 22px}.eyebrow,.step{color:var(--green);font-size:12px;font-weight:750;letter-spacing:.1em;margin:0 0 6px}h1{font-size:36px;line-height:1.4;margin:0 0 10px;letter-spacing:.01em}h1 span{font-size:17px;display:block;font-weight:600;margin-top:8px}.intro p{margin:8px 0}.privacy{font-size:13px;color:var(--muted)}h2{font-size:22px;line-height:1.4;margin:0 0 12px}h3{margin:8px 0;font-size:19px;overflow-wrap:anywhere}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:28px;margin-bottom:24px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.section-head h2{margin-bottom:0}.example{background:var(--pale);padding:14px 16px;border-radius:8px;font-size:14px;margin:20px 0 10px}.hint{font-size:13px;color:var(--muted)}.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.products.three{grid-template-columns:repeat(3,minmax(0,1fr))}.product{min-width:0;margin:12px 0 0;border:1px solid var(--line);border-radius:10px;padding:18px}.product legend{padding:0 8px;color:var(--green);font-weight:800}.field{margin-bottom:16px;min-width:0}.pair{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px}.error{color:var(--red);font-size:13px;display:block;overflow-wrap:anywhere}.error:empty{display:none}.help{font-size:12px;color:var(--muted);display:block;margin:5px 0}.primary{background:var(--green);color:white;border:1px solid var(--green)}.secondary{background:white;color:var(--green);border:1px solid #adbeab}.add{width:100%;margin-top:18px;border:1px dashed #829b81;background:#f4f8f0;color:var(--green)}.actions{display:flex;gap:12px;margin-top:20px}.actions .primary{min-width:240px}.remove{width:100%;margin-top:8px}.result-panel{border-top:4px solid var(--green);scroll-margin-top:20px}.result-card{padding:22px;border:1px solid var(--line);border-radius:12px;min-width:0}.result-card.best{background:var(--pale);border:2px solid var(--green)}.badge{font-size:13px;font-weight:750;display:inline-block;border-radius:6px;padding:4px 10px;background:#f1f3ef;color:var(--muted)}.best .badge{background:var(--green);color:white}.unit-price{font-size:36px;font-weight:750;line-height:1.4;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:16px 0}.unit-price small{font-size:16px;font-weight:500;letter-spacing:0}.basis{font-size:13px;color:var(--muted)}.payment{border-top:1px solid var(--line);padding-top:12px;font-size:14px;overflow-wrap:anywhere}.difference{font-size:14px;overflow-wrap:anywhere}.notice{background:#fff5de;padding:14px;border-left:3px solid #97701d;font-size:14px}.limit-note{font-size:13px;color:var(--muted);margin-top:22px}.notes{margin:24px 0 32px;font-size:14px}.notes summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:650}.notes li{margin:10px 0}.notes ul{padding-left:22px}footer{border-top:1px solid var(--line);padding:20px 0 32px;font-size:13px}footer a{margin-right:24px}footer p{color:var(--muted)}.mobile{display:none}.skip{position:absolute;top:-100px;left:12px;background:white;padding:10px;z-index:20}.skip:focus{top:8px}[hidden]{display:none!important}#copy-fallback{margin-top:16px}textarea{resize:vertical}#result-status{color:var(--muted)}@media(max-width:900px){.products.three{grid-template-columns:1fr}.products.three .product{margin-top:10px}}@media(max-width:620px){.container{width:calc(100% - 28px)}.header{flex-wrap:wrap;gap:0;padding-top:12px;padding-bottom:8px}.header nav{gap:24px;font-size:13px;width:100%;padding-left:46px}.brand{font-size:15px}.intro{padding:24px 4px 18px}h1{font-size:30px}.intro>p:not(.eyebrow){font-size:13px}.panel{padding:20px 16px}.section-head{align-items:flex-start;flex-direction:column;gap:12px}h2{font-size:20px}.section-head button{font-size:13px}.products{grid-template-columns:1fr;gap:12px}.product{padding:16px 12px}.example{padding:12px;font-size:13px}.mobile{display:block}.actions{flex-direction:column}.actions .primary{min-width:0;width:100%}.result-card{padding:18px}.unit-price{font-size:38px}.header a{max-width:100%}.notes{padding:0 4px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.storage-panel{background:#f3f7f0;border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0}.save-choice{display:flex;align-items:center;gap:12px;min-height:48px;margin:0;cursor:pointer}.save-choice input{width:24px;height:24px;min-height:24px;flex-shrink:0;accent-color:var(--green)}.save-choice span{min-width:0}.storage-panel .hint{margin:8px 0}.storage-panel button{font-size:13px}
.time-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rate-field{max-width:440px;margin-top:22px}.source{max-width:850px}.products:has(>.product:only-child){grid-template-columns:minmax(0,560px)}.products:has(>.result-card:only-child){grid-template-columns:minmax(0,560px)}.unit-price{font-size:clamp(24px,3vw,36px)}.time-pair label{font-size:13px}
