#chapter-rentbuy-app{
  --brand:#5edfd6; --brand-dark:#139f99; --brand-soft:#effcfb;
  --ink:#18313a; --muted:#6d8188; --line:#dce9eb; --soft:#f7fbfc;
  --warn:#fff7e8; --danger:#fff0f0; --good:#eefaf3;
  --shadow:0 16px 44px rgba(28,75,82,.10);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  color:var(--ink); line-height:1.65; background:transparent;
}
#chapter-rentbuy-app *{box-sizing:border-box}
#chapter-rentbuy-app button,#chapter-rentbuy-app input,#chapter-rentbuy-app select{font:inherit}
#chapter-rentbuy-app .shell{max-width:1100px;margin:0 auto;padding:20px 14px 64px}
#chapter-rentbuy-app .hero{background-image:linear-gradient(90deg,rgba(248,251,251,.96) 0%,rgba(248,251,251,.95) 34%,rgba(248,251,251,.88) 52%,rgba(248,251,251,.62) 70%,rgba(248,251,251,.32) 100%),url('./family-hero.png');background-size:cover;background-position:center right;border:1px solid var(--line);border-radius:24px;padding:34px 32px;box-shadow:var(--shadow);margin-bottom:18px;position:relative;overflow:hidden;min-height:280px;display:flex;align-items:center}
#chapter-rentbuy-app .hero-copy{position:relative;z-index:2;max-width:560px}
#chapter-rentbuy-app .brandline{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:800;letter-spacing:.08em;color:var(--brand-dark)}
#chapter-rentbuy-app .dot{width:14px;height:14px;border-radius:50%;background:var(--brand)}
#chapter-rentbuy-app h1{font-size:clamp(26px,4.6vw,46px);line-height:1.2;margin:10px 0 10px;letter-spacing:-.03em}
#chapter-rentbuy-app .hero p{margin:0;color:var(--muted);font-size:15px}
#chapter-rentbuy-app .progress{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:16px 0 18px}
#chapter-rentbuy-app .progress-item{font-size:12px;color:var(--muted);text-align:center}
#chapter-rentbuy-app .progress-bar{height:7px;border-radius:99px;background:#e9f1f2;margin-bottom:5px;overflow:hidden}
#chapter-rentbuy-app .progress-item.active .progress-bar,#chapter-rentbuy-app .progress-item.done .progress-bar{background:var(--brand)}
#chapter-rentbuy-app .progress-item.active{color:var(--ink);font-weight:800}
#chapter-rentbuy-app .card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 8px 26px rgba(28,75,82,.05)}
#chapter-rentbuy-app .step{display:none}
#chapter-rentbuy-app .step.active{display:block}
#chapter-rentbuy-app h2{font-size:24px;margin:0 0 5px}
#chapter-rentbuy-app h3{font-size:18px;margin:24px 0 10px}
#chapter-rentbuy-app .lead{margin:0 0 18px;color:var(--muted)}
#chapter-rentbuy-app .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#chapter-rentbuy-app .field{display:flex;flex-direction:column;gap:6px}
#chapter-rentbuy-app .field.full{grid-column:1/-1}
#chapter-rentbuy-app label{font-weight:800;font-size:14px}
#chapter-rentbuy-app input,#chapter-rentbuy-app select{width:100%;border:1px solid #cfe0e2;border-radius:12px;padding:12px 13px;background:#fff;color:var(--ink);outline:none}
#chapter-rentbuy-app input:focus,#chapter-rentbuy-app select:focus{border-color:var(--brand-dark);box-shadow:0 0 0 3px rgba(94,223,214,.18)}
#chapter-rentbuy-app .helper{font-size:12px;color:var(--muted)}
#chapter-rentbuy-app .mini-note{font-size:13px;background:var(--soft);border-radius:12px;padding:10px 12px;color:var(--muted)}
#chapter-rentbuy-app .actions{display:flex;justify-content:space-between;gap:10px;margin-top:24px;flex-wrap:wrap}
#chapter-rentbuy-app .btn{border:0;border-radius:999px;padding:12px 20px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#chapter-rentbuy-app .btn.primary{background:var(--brand-dark);color:#fff}
#chapter-rentbuy-app .btn.secondary{background:#eef5f6;color:var(--ink)}
#chapter-rentbuy-app .btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
#chapter-rentbuy-app .seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#chapter-rentbuy-app .seg label{font-weight:700}
#chapter-rentbuy-app .seg input{display:none}
#chapter-rentbuy-app .seg span{display:block;text-align:center;padding:11px 8px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-size:13px}
#chapter-rentbuy-app .seg input:checked+span{border-color:var(--brand-dark);background:var(--brand-soft);color:var(--brand-dark);font-weight:900}
#chapter-rentbuy-app .error{display:none;margin:0 0 14px;padding:12px 14px;background:var(--danger);border:1px solid #f2b8b8;border-radius:12px;color:#9b3131;font-weight:700;font-size:13px}
#chapter-rentbuy-app .error.show{display:block}
#chapter-rentbuy-app details{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:#fff;margin-top:16px}
#chapter-rentbuy-app summary{cursor:pointer;font-weight:900}
#chapter-rentbuy-app .result-hero{text-align:center;background:linear-gradient(135deg,#fff,var(--brand-soft));border:1px solid var(--line);border-radius:24px;padding:26px 18px}
#chapter-rentbuy-app .eyebrow{font-size:13px;color:var(--brand-dark);font-weight:900;letter-spacing:.06em}
#chapter-rentbuy-app .comparison{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin:18px 0}
#chapter-rentbuy-app .money-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}
#chapter-rentbuy-app .money-label{font-size:13px;color:var(--muted);font-weight:800}
#chapter-rentbuy-app .money{font-size:clamp(30px,6vw,48px);font-weight:950;line-height:1.1;margin-top:4px}
#chapter-rentbuy-app .vs{font-weight:950;color:var(--muted)}
#chapter-rentbuy-app .winner{font-size:18px;font-weight:950;margin-top:12px}
#chapter-rentbuy-app .section{margin-top:18px}
#chapter-rentbuy-app .section-title{font-size:22px;font-weight:950;margin:0 0 12px}
#chapter-rentbuy-app .metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
#chapter-rentbuy-app .metric{border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px}
#chapter-rentbuy-app .metric .k{font-size:12px;color:var(--muted)}
#chapter-rentbuy-app .metric .v{font-size:22px;font-weight:950;margin-top:3px}
#chapter-rentbuy-app .grade{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 12px;font-weight:950}
#chapter-rentbuy-app .grade.A{background:var(--good);color:#147443}
#chapter-rentbuy-app .grade.B{background:#eefaf8;color:#137a75}
#chapter-rentbuy-app .grade.C{background:var(--warn);color:#9b6917}
#chapter-rentbuy-app .grade.D{background:var(--danger);color:#9b3131}
#chapter-rentbuy-app .budget-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
#chapter-rentbuy-app .budget-box{border-radius:14px;padding:12px;border:1px solid var(--line);background:#fff}
#chapter-rentbuy-app .budget-box strong{display:block;font-size:18px}
#chapter-rentbuy-app .gauge{position:relative;height:18px;border-radius:999px;overflow:hidden;display:grid;grid-template-columns:40fr 20fr 20fr 20fr;margin:18px 0 8px;border:1px solid var(--line)}
#chapter-rentbuy-app .g1{background:#dff7e9}.g2{background:#dff8f6}.g3{background:#fff0c7}.g4{background:#ffdcdc}
#chapter-rentbuy-app .gauge-pin{position:absolute;top:-7px;width:2px;height:32px;background:var(--ink);transform:translateX(-1px)}
#chapter-rentbuy-app .gauge-pin:before{content:"▼";position:absolute;top:-18px;left:-8px;font-size:14px}
#chapter-rentbuy-app .chart-wrap{border:1px solid var(--line);border-radius:18px;background:#fff;padding:12px;overflow:hidden}
#chapter-rentbuy-app .chart-tabs{display:flex;gap:8px;margin-bottom:10px}
#chapter-rentbuy-app .chart-tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-weight:800;cursor:pointer}
#chapter-rentbuy-app .chart-tabs button.active{background:var(--brand-soft);border-color:var(--brand-dark);color:var(--brand-dark)}
#chapter-rentbuy-app svg{width:100%;height:auto;display:block}
#chapter-rentbuy-app .legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:8px}
#chapter-rentbuy-app .legend b{color:var(--ink)}
#chapter-rentbuy-app .scenario{width:100%;border-collapse:collapse;font-size:14px}
#chapter-rentbuy-app .scenario th,#chapter-rentbuy-app .scenario td{padding:10px;border-bottom:1px solid var(--line);text-align:right}
#chapter-rentbuy-app .scenario th:first-child,#chapter-rentbuy-app .scenario td:first-child{text-align:left}
#chapter-rentbuy-app .break-even{background:var(--brand-soft);border:1px solid #b9ebe7;border-radius:18px;padding:20px;text-align:center}
#chapter-rentbuy-app .break-even .big{font-size:34px;font-weight:950;color:var(--brand-dark)}
#chapter-rentbuy-app .comment{background:var(--soft);border-radius:18px;padding:18px}
#chapter-rentbuy-app .comment p{margin:0 0 10px}
#chapter-rentbuy-app .comment p:last-child{margin-bottom:0}
#chapter-rentbuy-app .cta-wrap{margin-top:24px;padding-top:6px}
#chapter-rentbuy-app .cta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
#chapter-rentbuy-app .cta{position:relative;border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff;display:flex;flex-direction:column;min-height:240px}
#chapter-rentbuy-app .cta.recommended{border:2px solid var(--brand-dark);box-shadow:0 10px 28px rgba(19,159,153,.12)}
#chapter-rentbuy-app .badge{position:absolute;top:-11px;left:14px;background:var(--brand-dark);color:#fff;border-radius:999px;padding:4px 9px;font-size:11px;font-weight:900}
#chapter-rentbuy-app .cta h4{font-size:18px;margin:3px 0 8px}
#chapter-rentbuy-app .cta p{font-size:13px;color:var(--muted);margin:0 0 12px}
#chapter-rentbuy-app .cta .data{font-size:13px;background:var(--soft);border-radius:10px;padding:9px;margin-top:auto;margin-bottom:12px}
#chapter-rentbuy-app .cta .btn{width:100%}
#chapter-rentbuy-app .disclaimer{font-size:11px;color:var(--muted);margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
#chapter-rentbuy-app .two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#chapter-rentbuy-app .pill{display:inline-block;background:var(--brand-soft);color:var(--brand-dark);padding:4px 9px;border-radius:999px;font-size:12px;font-weight:900}
@media(max-width:760px){
 #chapter-rentbuy-app .hero{padding:22px 18px;min-height:220px;background-position:68% center}
 #chapter-rentbuy-app .card{padding:18px 14px}
 #chapter-rentbuy-app .grid,#chapter-rentbuy-app .two-col{grid-template-columns:1fr}
 #chapter-rentbuy-app .metrics{grid-template-columns:1fr 1fr}
 #chapter-rentbuy-app .budget-grid{grid-template-columns:1fr 1fr}
 #chapter-rentbuy-app .cta-grid{grid-template-columns:1fr}
 #chapter-rentbuy-app .comparison{grid-template-columns:1fr}
 #chapter-rentbuy-app .vs{display:none}
 #chapter-rentbuy-app .progress-item span{display:none}
}
