@charset "utf-8";

/* ============================================================
   シミュレーター変数
============================================================ */
.simulator {
    --step: 0;
}

/* ============================================================
   ステップバー
============================================================ */
.simulationStepbar {
    width: 100%;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    position: relative;
    list-style: none;
    padding: 0;
}

.simulationStepbar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #cccccc;
    transform: translateY(-50%);
    z-index: -1;
}

.simulationStepItem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 257px;
    min-height: 42px;
    background-color: #cccccc;
    color: #ffffff;
    font-weight: bold;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1;
    box-shadow: 0 3px 6px #00000029;
    cursor: pointer;
}

.simulationStepItem.active {
    background-color: #333333;
}

.simulationStepItem.prev {
    border: solid 1px #888888;
    background-color: #fff;
    color: #666666;
}

/* ============================================================
   ステップ表示制御
============================================================ */
.simulationViewport {
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease-out;
}

.stepWrapper {
    display: flex;
    align-items: flex-start;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateX(calc(var(--step) * -100%));
}

.stepContent {
    width: 100%;
    height: 0;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    padding-bottom: 24px;
}

.simulator[data-current-step="0"] .simulationStepbar,
.simulator[data-current-step="0"] .stickyInfo {
    display: none;
}

/* data-current-step に連動して該当ステップのみ表示 */
.simulator[data-current-step="0"] .stepContent:nth-child(1),
.simulator[data-current-step="1"] .stepContent:nth-child(2),
.simulator[data-current-step="2"] .stepContent:nth-child(3),
.simulator[data-current-step="3"] .stepContent:nth-child(4) {
    height: auto;
}

/* ============================================================
   simulationTop
============================================================ */
.simulationTop .containerInner {
    width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

.simulationTop_img {
    width: 380px;
    margin: 40px auto 0;
}

/* ============================================================
   simulationDevice（端末選択）
============================================================ */
.selectDeviceType_list {
    margin-top: 40px;
}

.selectDevice[data-select-type="0"] {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.simulation_wrapper section:not(:nth-of-type(1)).selectDevice[data-select-type="0"] {
    border-top: none;
}

.selectDevice .deviceSimSet,
.selectDevice .simOnly {
    display: none;
}

.selectDevice[data-select-type="device"] .deviceSimSet,
.selectDevice[data-select-type="sim"] .simOnly {
    display: block;
}

.deviceItem_campaignWrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-bottom: 8px;
}

.choice input+.choice_inner .choice_top .deviceItem_campaignWrap p.deviceItem_campaign {
    width: fit-content;
    background: #FFEC04;
    border: 1px solid #333;
    color: #333;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    padding: 4px;
}

#itemDevice .choice_top,
.simItem .choice_top {
    flex-wrap: wrap;
}

#itemDevice .choice input+.choice_inner,
.simItem .choice input+.choice_inner {
    justify-content: center;
}

/* ============================================================
   simulationPlan（プラン選択）
============================================================ */
.sellType {
    margin-top: 64px;
}

/* ============================================================
   simulationPayment（支払い情報）
============================================================ */
.userAge {
    margin-top: 64px;
}

.simulation_wrapper section.currentPrice {
    padding-top: 64px;
}

.input_form-currentPrice {
    display: flex;
    align-items: center;
    gap: 0 10px;
}

.input_form-currentPrice .input_form-tableData {
    width: 100%;
    border: none;
    padding: 0;
}

/* チェックボックス */
.simuCheckbox {
    display: inline-block;
    margin-top: 24px;
}

.simuCheckbox_text {
    position: relative;
    padding-left: 32px;
    font-size: 20px;
    font-weight: bold;
    color: #666666;
}

.simuCheckbox_text::before,
.simuCheckbox_text::after {
    content: "";
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.simuCheckbox>input[type="checkbox"] {
    display: none;
}

.simuCheckbox input[type="checkbox"]+.simuCheckbox_text::before {
    z-index: 1;
}

.simuCheckbox input[type="checkbox"]+.simuCheckbox_text::after {
    border: 2px solid #dbdbdb;
    z-index: 2;
}

.simuCheckbox input[type="checkbox"]:checked+.simuCheckbox_text::before {
    background-color: var(--color-main);
}

.simuCheckbox input[type="checkbox"]:checked+.simuCheckbox_text::after {
    background: transparent url(https://mvno.geo-mobile.jp/v2/img/pc/components/simulation_wrapper/simulation_checked.svg) no-repeat center / contain;
    border: none;
}

/* ============================================================
   入力フォーム（読み取り専用）
============================================================ */
input:read-only {
    background-color: #CCCCCC;
    border-color: #CCCCCC;
    pointer-events: none;
}