:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#202938;background:#f7f8fa;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8ba5dc;outline-offset:2px}.wrap{max-width:690px;margin:auto;padding:0 17px 45px}header{display:flex;gap:12px;align-items:center;padding:calc(23px + env(safe-area-inset-top)) 0 22px}header>div{flex:1}h1{font-size:23px;line-height:1.35;margin:0}header p{font-size:12px;color:#66758b;margin:5px 0 0}.iconbtn{border:1px solid #e1e6ee;background:white;color:#4263a7;border-radius:12px;min-width:42px;height:42px;font-size:24px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.tile,.card{background:white;border:1px solid #e1e6ee;border-radius:17px;box-shadow:0 2px 9px #20293808}.tile{text-align:left;padding:20px 15px;min-height:150px}.tile .emoji{font-size:29px;display:block;margin-bottom:14px}.tile strong{font-size:17px;display:block}.tile small{display:block;color:#66758b;line-height:1.6;margin-top:8px}.card{padding:20px;margin-bottom:15px}.card h2{font-size:17px;margin:0 0 17px}.field{display:block;margin:13px 0}.field span,.field>label{display:block;color:#66758b;font-size:13px;font-weight:600;margin-bottom:8px}input,select{width:100%;border:1px solid #ccd4e1;background:white;border-radius:11px;padding:13px;color:#202938;min-height:48px}input[type=number]{font-variant-numeric:tabular-nums}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.switch{display:flex;gap:8px;margin-bottom:16px}.switch button{flex:1;background:#edf1f9;color:#4263a7;border:1px solid transparent;border-radius:10px;padding:12px 8px;font-weight:700}.switch button.active{background:#4263a7;color:white}.result{background:#edf1f9;border-radius:13px;padding:19px;text-align:center;margin:16px 0}.result small{display:block;color:#66758b;margin-bottom:8px}.result strong{display:block;font-size:33px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.result p{font-size:13px;color:#66758b;margin:8px 0 0}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 0}.row .left{font-weight:650}.stepper{display:flex;align-items:center;gap:9px}.stepper strong{min-width:55px;text-align:center;font-variant-numeric:tabular-nums}.stepper button{width:44px;height:44px;border-radius:11px;background:#4263a7;color:white;border:0;font-size:24px}.stepper button.minus{background:white;border:1px solid #ccd4e1;color:#4263a7}.hint{color:#66758b;font-size:12px;line-height:1.7;margin:12px 0}.btn{border:0;background:#4263a7;color:white;padding:13px 16px;border-radius:11px;font-weight:700;min-height:47px}.btn.alt{background:#edf1f9;color:#4263a7}.btn.danger{background:#fff0ef;color:#a43f37}.btn.full{width:100%}.statline{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #edf1f9;padding:10px 0;font-size:14px}.statline:last-child{border:0}.statline b{font-variant-numeric:tabular-nums}.muted{color:#66758b}.section-title{font-size:14px;color:#66758b;margin:19px 0 11px}.stars{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.stars label{text-align:center;font-size:13px}.stars input{padding:9px 3px;text-align:center;margin-top:5px}.months{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.months button{border:1px solid #e1e6ee;background:white;border-radius:9px;padding:10px 4px;color:#202938}.months button.active{background:#4263a7;color:white}.note{background:#fff8e5;border-radius:10px;padding:12px;font-size:12px;line-height:1.6;color:#6c5420}.spaced{margin-top:17px}.hidden{display:none!important}footer{text-align:center;color:#8893a4;font-size:11px;line-height:1.8;margin:32px 0}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#202938;color:white;padding:11px 18px;border-radius:10px;opacity:0;pointer-events:none;transition:opacity .2s;white-space:nowrap}#toast.show{opacity:1}@media(max-width:380px){.grid{gap:9px}.tile{padding:15px 11px}.tile strong{font-size:15px}.card{padding:15px}.stepper{gap:5px}.stepper button{width:40px}.stepper strong{min-width:43px}}@media(min-width:560px){.tile{min-height:180px;padding:25px}}

/* 手取り計算機：決済費用・税確保の入力 */
.check-row{display:flex;align-items:center;gap:12px;margin:16px 0 8px;line-height:1.5;font-weight:650;font-size:14px}.check-row input{width:22px;height:22px;min-height:22px;flex:none;accent-color:#4263a7}.statline.total{font-weight:800;font-size:16px;border-top:2px solid #b5c5dd;padding-top:16px;margin-top:10px}.statline b{text-align:right;white-space:nowrap}.card .note{margin:15px 0}.field select{background-color:white}

/* 手取り計算機：以前のiPhone版に合わせたフォーム・結果カード */
.fee-screen .card{border-radius:22px;border-color:#e1e5ee;padding:23px 20px;margin-bottom:20px;box-shadow:0 2px 9px #20293808}
.fee-screen .card h2{font-size:19px;font-weight:750;margin:0 0 21px}
.fee-screen .field{margin:19px 0 22px}
.fee-screen .field span{font-size:14px;font-weight:650;line-height:1.5;color:#65748d;margin-bottom:10px}
.fee-screen input:not([type=checkbox]),.fee-screen select{height:55px;min-height:55px;padding:12px 15px;border:1px solid #cbd2e0;border-radius:12px;background:white;font-size:18px;color:#242c3b}
.fee-screen input::placeholder{color:#a8b3c6}
.fee-screen .twocol{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.fee-screen .twocol .field span{font-size:13px}
.fee-screen .switch{gap:9px;margin-bottom:20px}
.fee-screen .switch button{min-height:52px;padding:12px 8px;font-size:15px;border-radius:11px;background:#eaf0fa;color:#4263a7}
.fee-screen .switch button.active{background:#4263a7;color:#fff}
.fee-screen .hint{font-size:13px;line-height:1.85;color:#748097;margin:14px 0}
.fee-screen .payment-explanation{margin:5px 0 22px}
.fee-screen .tax-block{margin-top:27px}
.fee-screen .tax-block h3{font-size:15px;font-weight:700;color:#63728a;margin:0 0 17px}
.fee-screen .tax-block .switch{margin-bottom:20px}
.fee-screen .tax-block .field{margin:14px 0}
.fee-screen .result{border-radius:14px;background:#eaf0fa;margin:10px 0 27px;padding:22px 12px;text-align:center}
.fee-screen .result small{color:#687b96;font-size:14px;margin-bottom:12px}
.fee-screen .result strong{font-size:clamp(29px,9vw,39px);line-height:1.35;overflow-wrap:normal}
.fee-screen .statline{font-size:14px;line-height:1.6;padding:13px 0;border-bottom:1px solid #e8edf5}
.fee-screen .statline span{min-width:0}
.fee-screen .statline b{white-space:nowrap;text-align:right;font-weight:700}
.fee-screen .statline.total{border-top:0;margin-top:0;padding-top:13px;font-size:15px}
.fee-screen .result-card .hint{margin-top:23px}
#feeResultCard[hidden]{display:none}
@media(max-width:390px){.fee-screen .card{padding:20px 16px}.fee-screen .twocol{gap:10px}.fee-screen .switch button{font-size:13.5px}.fee-screen .field span{font-size:13.5px}.fee-screen .statline{font-size:13.5px}}

/* トップ画面：LINE内ブラウザから通常ブラウザ・ホーム画面への追加案内 */
.launch-note{margin:0 0 17px;padding:15px 17px;background:#edf3fc;border:1px solid #d4e1f4;border-radius:14px;color:#284771}
.launch-note strong{display:block;font-size:15px;line-height:1.5}
.launch-note p{font-size:13px;line-height:1.75;margin:7px 0 5px}
.launch-note small{display:block;font-size:11.5px;line-height:1.65;color:#66758b}
