:root{
    --navy:#1a2b6b;
    --blue1:#6fd7f0;
    --blue2:#a48cf5;
    --bg-page:#eef2f9;
    --bg-panel:#ffffff;
    --bg-soft:#dce6f7;
    --text-main:#1f2937;
    --text-sub:#5b6472;
    --border-soft:#c9d6ee;
    --radius-lg:24px;
    --radius-md:16px;
    --radius-sm:10px;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
    background:var(--bg-page);
    color:var(--text-main);
    -webkit-font-smoothing:antialiased;
  }
  .app{
    max-width:480px;
    margin:0 auto;
    background:var(--bg-page);
    min-height:100vh;
    padding-bottom:48px;
  }

  
  header.brand{
    background:#fff;
    padding:18px 20px;
    display:flex;
    align-items:center;
    gap:10px;
    border-bottom:1px solid #eef0f4;
  }
  .brand-logo-img{
    height:44px;
    width:auto;
    display:block;
    object-fit:contain;
  }
  .brand-logo-link{
    display:inline-block;
    line-height:0;
    cursor:pointer;
  }

  
  .breadcrumb{
    background:#fff;
    padding:10px 20px;
    font-size:12.5px;
    border-bottom:1px solid #eef0f4;
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
  }
  .breadcrumb a{
    color:#3f7fd6;
    text-decoration:none;
  }
  .breadcrumb a:hover{ text-decoration:underline; }
  .breadcrumb .sep{
    color:#b7c0cc;
  }
  .breadcrumb .current{
    color:var(--text-sub);
  }

  
  .hero{
    width:100%;
    line-height:0;
  }
  .hero-title{
    margin:0;
    padding:0;
    font-weight:normal;
    line-height:0;
  }
  .hero-img{
    display:block;
    width:100%;
    height:auto;
  }

  .update-date{
    padding:10px 20px 0;
    margin:0;
    font-size:12px;
    color:var(--text-sub);
  }

  .lead{
    padding:12px 20px 4px;
    font-size:15.5px;
    line-height:1.9;
    color:var(--text-main);
  }

  
  .tool-area{
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height 0.55s cubic-bezier(.4,0,.2,1), opacity 0.5s ease, margin 0.5s ease;
    margin-top:0;
  }
  .tool-area.open{
    max-height:2600px;
    opacity:1;
    margin-top:18px;
  }

  
  .compare-wrap{
    margin:0 20px;
    background:#fff;
    border-radius:var(--radius-lg);
    box-shadow:0 6px 20px rgba(30,50,120,0.08);
    overflow:hidden;
  }
  .compare-table{
    width:100%;
    border-collapse:collapse;
    font-size:13.5px;
    table-layout:fixed;
  }
  .compare-table th{
    background:linear-gradient(100deg,var(--blue2),var(--blue1));
    color:#fff;
    font-weight:800;
    padding:12px 6px;
    text-align:center;
    white-space:nowrap;
  }
  .compare-table th:first-child{
    text-align:left;
    padding-left:10px;
  }
  .compare-table td{
    padding:12px 6px;
    text-align:center;
    border-bottom:1px solid var(--bg-soft);
    color:var(--text-main);
    font-weight:700;
    white-space:nowrap;
  }
  .compare-table td:first-child{
    text-align:left;
    padding-left:10px;
    padding-right:4px;
    white-space:normal;
  }
  .compare-table td:first-child .type-name{
    display:block;
    font-weight:800;
    color:var(--navy);
    font-size:14px;
  }
  .compare-table td:first-child .type-coef{
    display:block;
    font-weight:600;
    color:var(--text-sub);
    font-size:11.5px;
    margin-top:2px;
  }
  .compare-table tr:last-child td{ border-bottom:none; }
  .compare-table tr.standard-row td{
    background:#f3f7ff;
  }
  .compare-table td .unit-small{
    font-size:11px;
    font-weight:600;
    color:var(--text-sub);
    margin-left:2px;
  }

  .compare-note{
    margin:10px 20px 0;
    font-size:12px;
    color:var(--text-sub);
    line-height:1.7;
    background:#fff;
    padding:10px 14px;
    border-radius:10px;
  }

  
  .input-card{
    margin:16px 20px 0;
    background:var(--bg-soft);
    border-radius:var(--radius-lg);
    padding:22px 18px 26px;
  }
  .input-card h3{
    text-align:center;
    font-size:16.5px;
    color:var(--navy);
    line-height:1.6;
    margin:0 0 18px;
  }
  .field-label{
    font-size:15px;
    font-weight:800;
    color:var(--navy);
    margin-bottom:10px;
  }
  .field-label small{
    font-weight:500;
    font-size:12px;
    color:var(--text-sub);
    margin-left:4px;
  }
  .size-input{
    width:100%;
    padding:16px;
    font-size:20px;
    text-align:center;
    border:2px solid var(--border-soft);
    border-radius:14px;
    background:#fff;
    color:var(--navy);
    font-weight:700;
    outline:none;
    transition:border-color 0.2s, box-shadow 0.2s;
    -moz-appearance:textfield;
  }
  .size-input::-webkit-outer-spin-button,
  .size-input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
  }
  .size-input:focus{
    border-color:var(--blue1);
    box-shadow:0 0 0 4px rgba(91,141,239,0.15);
  }

  .radio-group{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin-top:18px;
  }
  .radio-option{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:16px;
    font-weight:700;
    color:var(--text-main);
    cursor:pointer;
  }
  .radio-option input{
    appearance:none;
    width:22px;height:22px;
    border-radius:50%;
    border:2px solid var(--border-soft);
    background:#fff;
    display:grid;
    place-content:center;
    cursor:pointer;
    transition:border-color 0.2s;
  }
  .radio-option input::after{
    content:"";
    width:12px;height:12px;
    border-radius:50%;
    background:linear-gradient(100deg,var(--blue2),var(--blue1));
    transform:scale(0);
    transition:transform 0.15s ease;
  }
  .radio-option input:checked{ border-color:var(--blue1); }
  .radio-option input:checked::after{ transform:scale(1); }

  .arrow-down{
    text-align:center;
    font-size:34px;
    color:var(--blue1);
    margin:14px 0 0;
  }

  
  .result-card{
    margin:14px 20px 0;
    background:#fff;
    border:2px solid var(--bg-soft);
    border-radius:var(--radius-lg);
    padding:24px 22px;
  }
  .result-row{
    display:flex;
    justify-content:space-between;
    align-items:baseline;
    padding:14px 0;
    border-bottom:1px dashed var(--border-soft);
  }
  .result-row:last-child{border-bottom:none;}
  .result-row .label{
    font-size:16px;
    font-weight:800;
    color:var(--navy);
  }
  .result-row .value{
    font-size:26px;
    font-weight:900;
    color:var(--text-main);
  }
  .result-row .value span.unit{
    font-size:15px;
    font-weight:700;
    color:var(--text-sub);
    margin-left:4px;
  }

  .footer-note{
    text-align:center;
    font-size:11.5px;
    color:#9aa3b2;
    margin:26px 20px 0;
    line-height:1.7;
  }

  
  @media (min-width:600px){
    body{
      padding:32px 16px;
    }
    .app{
      max-width:640px;
      border-radius:28px;
      overflow:hidden;
      box-shadow:0 20px 60px rgba(30,50,120,0.12);
    }
  }

  @media (min-width:900px){
    body{
      padding:48px 16px;
    }
    .app{
      max-width:760px;
    }
    header.brand{
      padding:22px 32px;
    }
    .breadcrumb{
      padding:12px 32px;
      font-size:13.5px;
    }
    .update-date{
      padding:12px 32px 0;
      font-size:13px;
    }
    .lead{
      padding:14px 32px 6px;
      font-size:17px;
    }
    .input-card{
      margin:20px 32px 0;
      padding:28px 26px 32px;
    }
    .input-card h3{
      font-size:18px;
    }
    .size-input{
      font-size:22px;
      padding:18px;
    }
    .radio-option{
      font-size:17px;
    }
    .compare-wrap{
      margin:0 32px;
    }
    .compare-table{
      font-size:15px;
    }
    .compare-table th{
      padding:16px 10px;
      font-size:14.5px;
    }
    .compare-table td{
      padding:16px 10px;
    }
    .compare-table td:first-child .type-name{
      font-size:15.5px;
    }
    .compare-table td:first-child .type-coef{
      font-size:12.5px;
    }
    .compare-note{
      margin:12px 32px 0;
      padding:14px 18px;
      font-size:13px;
    }
    .footer-note{
      margin:30px 32px 0;
    }
  }

  @media (min-width:1024px){
    .app{
      max-width:820px;
    }
  }
