/* =========================================
   IIJmio Simulator CSS (Ver 65.0)
   Fix: 2-column Grid & Margin Adjustment
   ========================================= */

.iijmio-sim-wrapper {
    background: #ffffff; border-radius: 20px; padding: 35px; max-width: 640px; margin: 30px auto;
    font-family: 'Poppins', 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1); border: 1px solid #f0f0f0; box-sizing: border-box; color: #333; line-height: 1.6;
}
.iijmio-sim-wrapper * { box-sizing: border-box; }

.sim-title { text-align: center; font-size: 1.7rem; font-weight: 800; margin-bottom: 50px; padding-bottom: 15px; border-bottom: 4px solid #ff008c; display: inline-block; width: 100%; }

.sim-radio-btn input, .sim-radio-btn-long input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; padding: 0; pointer-events: none; }

/* ★★★ Q4 グリッドを1行2つに変更 ★★★ */
.data-capa-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.data-capa-group .sim-radio-btn { width: 100%; min-width: auto; }

.sim-step { margin-bottom: 35px; }
#step-current-cost { margin-top: 40px; }

.sim-label { display: flex; align-items: center; margin-bottom: 18px; font-weight: 700; color: #333; font-size: 1.15rem; }
.q-badge { background: #ff008c; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.1rem; padding: 2px 12px; border-radius: 50px; margin-right: 12px; box-shadow: 0 4px 10px rgba(255, 0, 140, 0.25); letter-spacing: 0.05em; }

.sim-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.sim-radio-btn { position: relative; cursor: pointer; flex: 1 1 auto; }
.btn-text { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px 10px; border: 2px solid #e5e5e5; border-radius: 12px; font-weight: 700; transition: all 0.25s ease; height: 100%; background: #fff; text-align: center; }
.sim-radio-btn:hover .btn-text { border-color: #ffb3db; background: #fffbfd; }
.sim-radio-btn input:checked + .btn-text { background: #ff008c; border-color: #ff008c; color: #fff; }

/* Q4 詳細表示用 */
.cap-label { font-size: 1.3rem; font-weight: 800; font-family: 'Poppins'; display: block; margin-bottom: 4px; }
.cap-desc { font-size: 0.7rem; line-height: 1.3; font-weight: 600; opacity: 0.9; display: block; }
.sim-radio-btn input:checked + .btn-text .cap-desc { color: #fff; }

.sim-radio-group-vertical { display: flex; flex-direction: column; gap: 10px; }
.btn-text-long { display: flex; justify-content: space-between; align-items: center; padding: 18px 25px; border: 2px solid #e5e5e5; border-radius: 10px; font-weight: 700; transition: 0.25s; background: #fff; }
.sim-radio-btn-long input:checked + .btn-text-long { background: #ff008c; border-color: #ff008c; color: #fff; }
.sim-radio-btn-long input:checked + .btn-text-long .opt-price { color: #ffffff !important; }
.opt-price { color: #ff008c; font-size: 1.15rem; font-weight: 800; font-family: 'Poppins'; }

.current-cost-input-wrap { display: flex; align-items: center; gap: 10px; background: #fff5fa; padding: 15px; border-radius: 12px; margin-bottom: 30px; }
#current-cost { flex: 1; padding: 8px; font-size: 1.2rem; border: 2px solid #ddd; border-radius: 8px; text-align: right; font-weight: 700; color: #ff008c; outline: none; font-family: 'Poppins'; }
#start-sim-btn { background: #1a1a2e; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }

/* ★★★ 結果表示エリアの上部マージンを20pxに設定 ★★★ */
.sim-result-container { margin-top: 20px; overflow: hidden; padding: 0; }

.saving-banner { background: #ff008c; color: #fff; text-align: center; padding: 20px 20px; border-radius: 18px; margin-bottom: 20px; box-shadow: 0 10px 25px rgba(255, 0, 140, 0.2); }
.saving-main { font-size: 2.3rem; font-weight: 800; margin-bottom: 10px; line-height: 1.2; font-family: 'Poppins'; }

.result-header { background: #1a1a2e; color: #fff; font-weight: 800; padding: 18px 0; text-align: center; border-radius: 10px; margin-bottom: 20px; font-size: 1.15rem; letter-spacing: 0.1em; margin-top: 10px; }
.selected-plan-box { background: #f8f9fa; padding: 25px 20px; text-align: center; border-radius: 12px; margin-bottom: 20px; border: 1px solid #eee; }
.plan-name-text { font-size: 1.5rem; font-weight: 800; color: #111; }
.data-increase-badge { margin-top: 15px; background: #fff0f7; color: #ff008c; border: 2px solid #ff008c; padding: 10px 15px; border-radius: 50px; font-weight: 800; display: inline-block; font-size: 1.1rem; }

.price-breakdown { width: 100%; max-width: 440px; margin: 0 auto 20px; padding: 20px; background: #fff; border-radius: 10px; border: 1px solid #f9f9f9; }
.breakdown-item { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 6px 0; color: #444; }
.discount-item { color: #e60033; font-weight: 800; }

.sim-price-row { display: flex; flex-direction: column; align-items: center; padding: 15px 15px; border: 1px solid #f0f0f0; border-radius: 15px; margin-bottom: 10px; }
.campaign-row { background: #fffbfd; border: 1px solid #ffb3db; }
.sim-price-part { display: flex; align-items: center; justify-content: center; gap: 12px; line-height: 1; width: 100%; padding-bottom: 15px; }
.price-num-large { font-size: 3.4rem; font-weight: 900; color: #e60033; transform: translateY(-3px); letter-spacing: -0.02em; font-family: 'Poppins'; }
.price-num-medium { font-size: 2.4rem; font-weight: 800; color: #555; transform: translateY(-3px); font-family: 'Poppins'; }

.apply-button { display: inline-block; background: #ff008c; color: #fff; font-size: 1.4rem; font-weight: 800; padding: 20px 40px; border-radius: 100px; text-decoration: none; box-shadow: 0 10px 25px rgba(255, 0, 140, 0.35); width: 100%; max-width: 480px; text-align: center; }

@media (max-width: 480px) {
    .iijmio-sim-wrapper { padding: 20px 10px; }
    .data-capa-group { gap: 8px; }
    .btn-text { padding: 15px 8px; }
    .cap-label { font-size: 1.2rem; }
    .cap-desc { font-size: 0.65rem; }
    .saving-main { font-size: 2rem; }
}