/* ============================================================
   IIC 料金シミュレーター
   ============================================================ */

.sim-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-size: 15px;
    line-height: 1.6;
    color: #222;
}

/* ---------- 合計金額バー（上部 sticky） ---------- */
.sim-total {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #291c55;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.sim-total_label {
    font-size: 14px;
    letter-spacing: 0.05em;
}
.sim-total_price {
    font-size: 28px;
    font-weight: bold;
    color: #ffd54a;
}
.sim-total_price .yen {
    font-size: 18px;
    margin-right: 2px;
}
.sim-total_tax {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 6px;
}

/* ---------- ステップインジケーター ---------- */
.sim-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    list-style: none;
    padding: 0;
    counter-reset: step;
}
.sim-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 12px;
    color: #999;
}
.sim-steps li::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto 6px;
    background: #e5e5e5;
    color: #999;
    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s;
}
.sim-steps li::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e5e5e5;
    z-index: -1;
}
.sim-steps li:last-child::after {
    display: none;
}
.sim-steps li.is-active::before,
.sim-steps li.is-done::before {
    background: #c9a14a;
    color: #fff;
}
.sim-steps li.is-active,
.sim-steps li.is-done {
    color: #c9a14a;
    font-weight: bold;
}

/* ---------- ステップ本体 ---------- */
.sim-step {
    display: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 20px;
}
.sim-step.is-active {
    display: block;
}
.sim-step_title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a14a;
}
.sim-step_lead {
    font-size: 13px;
    color: #666;
    margin: 8px 0 20px;
}

/* ---------- Step1 車種選択 ---------- */
.sim-car_row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.sim-car_row label {
    flex: 1;
    min-width: 200px;
    font-size: 13px;
    font-weight: bold;
}
.sim-car_row select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    margin-top: 4px;
}
.sim-size_display {
    background: #f6f2e8;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
}
.sim-size_display strong {
    font-size: 20px;
    color: #c9a14a;
    margin-left: 8px;
}

/* ---------- Step1 : サイズ直接選択（フォールバック） ---------- */
.sim-size_manual {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px dashed #d0c8b0;
    border-radius: 6px;
    background: #fdfcf7;
}
.sim-size_manual_lead {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
    font-weight: bold;
}
.sim-size_buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.sim-size_btn {
    position: relative;
    flex: 1;
    min-width: 60px;
    cursor: pointer;
}
.sim-size_btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sim-size_btn span {
    display: block;
    padding: 10px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #d0c8b0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    transition: all 0.15s;
}
.sim-size_btn:hover span {
    border-color: #c9a14a;
    color: #c9a14a;
}
.sim-size_btn input:checked + span {
    border-color: #c9a14a;
    background: #c9a14a;
    color: #fff;
}
.sim-size_manual_note {
    margin: 0;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}

/* ---------- ラジオ/チェックボックスカード ---------- */
.sim-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.sim-card {
    position: relative;
    display: block;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}
.sim-card:hover {
    border-color: #c9a14a;
    background: #fffbf0;
}
.sim-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.sim-card input:checked ~ .sim-card_body {
    color: #1a1a1a;
}
.sim-card:has(input:checked) {
    border-color: #c9a14a;
    background: #fffbf0;
    box-shadow: 0 2px 8px rgba(201, 161, 74, 0.25);
}
.sim-card_name {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
}
.sim-card_desc {
    font-size: 11px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 8px;
}
.sim-card_price {
    font-size: 13px;
    color: #c9a14a;
    font-weight: bold;
}
.sim-card_note {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}
.sim-card_delta {
    font-size: 13px;
    color: #c9a14a;
    font-weight: bold;
    margin-top: 6px;
    min-height: 1.2em;
}

/* ---------- コーティングブランド見出し ---------- */
.sim-brand {
    margin-bottom: 28px;
}
.sim-brand_title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 4px solid #c9a14a;
}

/* ---------- ナビゲーションボタン ---------- */
.sim-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.sim-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s;
}
.sim-btn_prev {
    background: #e5e5e5;
    color: #666;
}
.sim-btn_prev:hover {
    background: #d5d5d5;
}
.sim-btn_next {
    background: #c9a14a;
    color: #fff;
    margin-left: auto;
}
.sim-btn_next:hover {
    background: #b38d36;
}
.sim-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- 見積もり詳細（Step4の下） ---------- */
.sim-summary {
    background: #f9f7f1;
    border-radius: 6px;
    padding: 18px 20px;
    margin-top: 16px;
    font-size: 14px;
}
.sim-summary dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    margin: 0;
    align-items: baseline;
}
.sim-summary dt {
    color: #333;
}
.sim-summary dd {
    margin: 0;
    text-align: right;
    font-weight: bold;
    color: #222;
    white-space: nowrap;
}
.sim-sum_meta {
    font-size: 11px;
    color: #888;
    font-weight: normal;
    margin-left: 4px;
}
.sim-sum_muted {
    color: #aaa;
}
.sim-sum_minus {
    color: #c0392b;
}
.sim-sum_opt {
    color: #555;
    font-size: 13px;
    padding-left: 4px;
}
.sim-sum_total {
    border-top: 2px solid #c9a14a;
    padding-top: 10px;
    margin-top: 4px;
    font-size: 16px !important;
    color: #1a1a1a !important;
    font-weight: bold !important;
}

/* ---------- お問い合わせ誘導ブロック ---------- */
.sim-contact {
    margin-top: 28px;
    padding: 22px 24px;
    background: #fffbf0;
    border: 2px solid #c9a14a;
    border-radius: 8px;
}
.sim-contact_title {
    margin: 0 0 6px;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: bold;
}
.sim-contact_lead {
    margin: 0 0 14px;
    font-size: 13px;
    color: #666;
}
.sim-contact_text {
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.7;
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", monospace;
    border: 1px solid #d0c8b0;
    border-radius: 4px;
    background: #fff;
    color: #333;
    resize: vertical;
    box-sizing: border-box;
}
.sim-contact_actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.sim-btn_contact {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9a14a;
    color: #fff !important;
    padding: 16px 22px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.15s;
    border: 2px solid #c9a14a;
    box-sizing: border-box;
    cursor: pointer;
}
.sim-btn_contact:hover {
    background: #b38d36;
    border-color: #b38d36;
    transform: translateY(-1px);
}
.sim-contact_note {
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 13px;
    color: #c9a14a;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #c9a14a;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s;
    min-height: 0;
    overflow: hidden;
}
.sim-contact_note.is-show {
    opacity: 1;
    transform: translateY(0);
    min-height: 1em;
}

/* ---------- スマホ ---------- */
@media (max-width: 600px) {
    .sim-wrap { padding: 12px 10px 40px; }
    .sim-total_price { font-size: 22px; }
    .sim-steps li { font-size: 10px; }
    .sim-steps li::before { width: 28px; height: 28px; line-height: 28px; font-size: 13px; }
    .sim-step { padding: 20px 16px; }
    .sim-cards { grid-template-columns: 1fr; }
    .sim-btn { padding: 10px 18px; font-size: 14px; }
    .sim-contact { padding: 18px 16px; }
}
