/* ============================================================
   カーケアグランツ 料金シミュレーター
   ============================================================ */

.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: #1c2229;
    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: #c4700d;
    color: #fff;
}
.sim-steps li.is-active,
.sim-steps li.is-done {
    color: #c4700d;
    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;
	background-color: #1c2229 !important;
    border-bottom: 2px solid #c4700d;
	color: #fff;
}
.sim-step_lead {
    font-size: 13px;
    color: #666;
    margin: 8px 0 20px;
}
.sim-size_inline {
    color: #c4700d;
    font-size: 15px;
}

/* ---------- Step1 車種選択 ---------- */
.sim-car_row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.sim-car_row label {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: bold;
}
.sim-car_row select {
    /*width: 100%;*/
    max-width: 100%;
    box-sizing: border-box; /* padding/border込みで100%に収め、はみ出しを防止 */
    padding: 10px 12px;
    font-size: 16px;        /* 16px未満だとiOSでフォーカス時に自動ズームするため */
    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: #c4700d;
    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: #c4700d;
    color: #c4700d;
}
.sim-size_btn input:checked + span {
    border-color: #c4700d;
    background: #c4700d;
    color: #fff;
}
.sim-size_manual_note {
    margin: 0;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}
.sim-size_manual_note a {
    color: #c4700d;
    text-decoration: underline;
}

/* ---------- ラジオ/チェックボックスカード ---------- */
.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: #c4700d;
    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: #c4700d;
    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: 15px;
    color: #c4700d;
    font-weight: bold;
}
.sim-card_note {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    line-height: 1.5;
}
.sim-card_delta {
    font-size: 13px;
    color: #c4700d;
    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 #c4700d;
}

/* ---------- ナビゲーションボタン ---------- */
.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: #c4700d;
    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 #c4700d;
    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 #c4700d;
    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: #c4700d;
    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 #c4700d;
    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: #c4700d;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #c4700d;
    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;
}

/* ---------- 注記 ---------- */
.sim-disclaimer {
    margin: 18px 4px 0;
    font-size: 11px;
    color: #999;
    line-height: 1.6;
}

/* ---------- スマホ ---------- */
@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; }
}

/* ============================================================
   よくあるご質問（FAQ アコーディオン）
   ※ <details>/<summary> 使用。JSなしで開閉可能。
   ============================================================ */
.sim-faq {
    margin-top: 28px;
}
.sim-faq_heading {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 16px;
    color: #1c2229;
    padding-bottom: 8px;
    border-bottom: 2px solid #c4700d;
}
.sim-faq_item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
}
.sim-faq_item[open] {
    border-color: #c4700d;
    box-shadow: 0 2px 8px rgba(196, 112, 13, 0.12);
}
.sim-faq_q {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-weight: bold;
    font-size: 14px;
    color: #1c2229;
    transition: background 0.15s;
}
/* Safari/Chrome の既定マーカーを除去 */
.sim-faq_q::-webkit-details-marker { display: none; }
.sim-faq_q::marker { content: ''; }
.sim-faq_q:hover {
    background: #fbf6ef;
}
.sim-faq_qmark,
.sim-faq_amark {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
}
.sim-faq_qmark { background: #c4700d; }
.sim-faq_amark { background: #1c2229; }
.sim-faq_qtext {
    flex: 1 1 auto;
}
.sim-faq_icon {
    flex: 0 0 auto;
    position: relative;
    width: 16px;
    height: 16px;
}
.sim-faq_icon::before,
.sim-faq_icon::after {
    content: '';
    position: absolute;
    background: #c4700d;
    transition: transform 0.2s;
}
.sim-faq_icon::before { top: 7px; left: 0; width: 16px; height: 2px; }   /* 横棒 */
.sim-faq_icon::after  { top: 0; left: 7px; width: 2px; height: 16px; }   /* 縦棒 */
.sim-faq_item[open] .sim-faq_icon::after { transform: scaleY(0); }       /* ＋ → － */
.sim-faq_a {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
    align-items: flex-start;
}
.sim-faq_item[open] .sim-faq_a {
    animation: simFaqOpen 0.2s ease;
}
@keyframes simFaqOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sim-faq_atext {
    flex: 1 1 auto;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.8;
    color: #444;
}
