/*==================================================================================================================*/
/* 畳替え見積もりシミュレーション */
/*==================================================================================================================*/

/* ---- セクション共通 ---- */
.sim-section {
    margin-bottom: 48px;
}

.sim-step-title {
    margin: 0 0 16px;
    padding: 8px 14px;
    background: var(--th_background_color);
    border: 1px solid var(--border_color);
    font-size: 17px;
    font-weight: bold;
    color: var(--th_character_color);
    line-height: 1.5;
}

.sim-option-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    color: var(--basic_background_color);
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    vertical-align: middle;
}

/* ---- テーブル共通 ---- */
.sim-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sim-table td,
.sim-table th {
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border_color);
    vertical-align: middle;
    line-height: 1.6;
}

.sim-table td {
    background: var(--td_background_color);
}

.sim-table th {
    background: var(--th_background_color);
    color: var(--th_character_color);
    font-weight: bold;
}

/* ---- 選択肢 横並びコンテナ ---- */
.sim-items-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
    width: 100%;
    box-sizing: border-box;
}

/* ---- 各選択肢セル ---- */
.sim-item-cell {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--border_color);
    border-radius: 6px;
    overflow: hidden;
}

/* ---- ラジオ・チェックボックスのlabel ---- */
.sim-item-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    padding: 10px 8px;
    height: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
    text-align: center;
}

.sim-item-label:hover {
    opacity: 0.8;
}

/* ---- オプション画像 ---- */
.sim-option-image {
    display: block;
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border_color);
}

/* 画像なし時の空スペース */
.sim-image-empty {
    background: transparent;
    border: none;
}

/* ---- 選択肢テキスト ---- */
.sim-option-text {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

.sim-price-label {
    font-size: 14px;   
    font-weight: normal;
}

/* ---- input ---- */
.sim-item-label input[type="radio"],
.sim-item-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ---- 枚数入力 ---- */
.sim-number-wrap {
    padding: 8px 12px;
}

.sim-number-wrap label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-number {
    padding: 6px 12px;
    width: 120px;
    font-size: 20px;
    text-align: right;
    border: 1px solid var(--border_color);
    border-radius: 4px;
}

.sim-unit {
    font-size: 18px;
    font-weight: bold;
}

/* ---- 結果テーブル ---- */
.sim-result-wrap {
    margin-top: 20px;
}

.sim-result-table {
    margin-bottom: 20px;
}

.sim-result-table thead th {
    /* background: var(--th_character_color); */
    /* color: var(--basic_background_color); */
    font-size: 16px;
    text-align: left;
}

.sim-result-table .sim-bd-label {
    font-size: 14px;
}

.sim-amount {
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.sim-total-row td {
    background: var(--th_background_color);
    color: var(--th_character_color);
    font-weight: bold;
    font-size: 16px;
}

.sim-grand-table {
    margin-top: 10px;
}

.sim-grand-row td {
    font-weight: bold;
    font-size: 20px;
}

.sim-grand-row .sim-amount {
    font-size: 22px;
    color: var(--td_character_color);
}

/*==================================================================================================================*/
/* SP（スマートフォン）対応 */
/*==================================================================================================================*/
.sp .sim-step-title {
    font-size: 15px;
}

.sp .sim-option-image {
    max-width: 100%;
    height: 85px;
}
/* ---- 畳べり・オプションは画像を高く ---- */
.sim-step4 .sim-option-image,
.sim-step5 .sim-option-image,
.sim-step6 .sim-option-image {
    height: 180px;
}

.sp .sim-option-text {
    font-size: 13px;
}

.sp .sim-number {
    width: 80px;
    font-size: 16px;
}

.sp .sim-grand-row td {
    font-size: 16px;
}

.sp .sim-grand-row .sim-amount {
    font-size: 18px;
}

/*==================================================================================================================*/
/* 価格表(非公開)ブロック非表示 */
/*==================================================================================================================*/
#lz5v3hj1zqy08u0uxfdp {
    display: none;
}
