/*  プラン選択
-------------------------------------------------------*/
.select_wrapper {
    display: flex;
    column-gap: 2%;
}

/*  共通箇所
-------------------------------------------------------*/
.list_title {
    display: flex;
    align-items: center;
    font-size: calc(14 / 1200 * 100vw);
    font-weight: 900;
    margin: 30px 0 10px 0;
}

/*  プラン選択 製品選択
-------------------------------------------------------*/
.select_product {
    border: 3px solid #F0F5F9;
    border-radius: 10px;
    flex-basis: 50%;
}
.select_product_inner {
    font-weight: 900;
}
.select_product_inner img {
    display: block;
    float: left;
    padding: 1vw 2vw;
}
.select_product_inner .plan_info {
    padding-top: 5%;
}
.select_product_inner .plan_info .plan_size {
    font-size: 1.7em;
}
.select_product_inner .plan_info .plan_kakaku {
    font-size: 2.2em;
}
.select_plan {
    border: 3px solid #F0F5F9;
    border-radius: 10px;
    flex-basis: 50%;
    padding: 1vw 2vw;
    text-align: center;
}
.plan_name {
    font-weight: 900;
    font-size: 1.3em;
}

/* お申し込みプラン：3カード形式（端末一括/分割/レンタル） */
.select_wrapper--plan {
    display: flex;
    gap: 12px;
}

.select_wrapper--plan .plan_card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
}

.plan_card_title {
    display: block;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.plan_card_badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
}

.plan_card_badge--pink {
    background-color: #ff1462;
}

.plan_card_badge--green {
    background-color: #27b7b3;
}

.plan_card_divider {
    width: 100%;
    margin: 0 0 12px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.plan_card_price {
    display: block;
    font-weight: bold;
    font-size: 1em;
}

@media screen and (max-width: 750px) {
    .list_title {
        font-size: calc(32 / 900 * 100vw);
    }
    .select_product_inner img {
        width: 35%;
    }
    .select_product_inner .plan_info .plan_size {
        margin-top: 15%;
    }
    .select_product_inner .plan_info .plan_size,
    .select_product_inner .plan_info .plan_kakaku {
        font-size: calc(22 / 750 * 100vw);
    }
    .plan_name {
        font-size: calc(22 / 750 * 100vw);
    }
}

/*  価格表示
-------------------------------------------------------*/
.kakaku {
    font-size: calc(28 / 1440 * 100vw);
    padding-left: 1%;
}

@media screen and (max-width: 750px) {
    .kakaku {
        font-size: calc(52 / 1440 * 100vw);
    }
}

.overseas_kakaku {
    padding-top: 2%;
}

/*  補足箇所
-------------------------------------------------------*/
.cancellation-fee_explanation {
    font-weight: 700;
    margin: 1% 0 2% 0;
}
.service_explanation {
    font-weight: 700;
    margin: 1% 0 2% 0;
}
.delivery_explanation {
    font-weight: 700;
    margin-top: 3%;
}

/*  モーダルウィンドウ
-------------------------------------------------------*/
.modal-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,50%);
	padding: 40px 20px;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
    box-sizing: border-box;
}
.modal-container:before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
.modal-container.active {
	opacity: 1;
	visibility: visible;
    z-index: 1000;
}
.modal-body {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 500px;
	width: 90%;
}
.modal-close {
    background-color: #2E93E6;
    border-radius: 50%;
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -20px;
	right: -20px;
	width: 40px;
	height: 40px;
	font-size: 1.3em;
	color: #fff;
	cursor: pointer;
}
.modal-content {
	background: #fff;
	text-align: left;
	/* padding: 30px; */
}
.modal-content .modal_title {
    border-bottom: 1px solid #2E93E6;
    text-align: center;
}
.modal-content .modal_title img {
    vertical-align: baseline;
}

/*  モーダルコンテンツ
-------------------------------------------------------*/
.option_box {
    width: 100%;
}
.option_box tr {
    border-bottom: 1px solid #CCCCCC;
}
.option_box tr:first-child {
    border-top: 1px solid #CCCCCC;
}
.option_box tr td {
    padding: 2% 0;
    text-align: center;
}
.content_explanation {
    margin-top: 2%;
}
/* ----------------- 補足 - */
.box_supplement {
    text-align: right;
}

/* 20220520追加修正 */
@media screen and (max-width: 750px) {
    .select_wrapper {
        flex-direction: column;
        gap: 12px;
    }
    .select_wrapper--plan .plan_card {
        padding: 14px 12px;
    }
    .plan_card_title {
        font-size: 0.95em;
    }
    .plan_card_price {
        font-size: 0.95em;
    }
}

.select_terminal_box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.select_terminal_box img {
    width: 76px;
}

.select_terminal_box .right-ttl-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.select_terminal_box .left-ttl-box .wrap-ttl {
    padding: 4px 24px;
    color: #fff;
    font-size: 80%;
    font-weight: bold;
    background-color: #2E93E6;
}

.select_terminal_box .left-ttl-box .name-ttl {
    font-size: 200%;
    font-weight: bold;
    line-height: 1;
}

.select_terminal_box .right-ttl-flex .big-ttl {
    font-size: 450%;
    font-weight: bold;
    line-height: 1;
}

.select_terminal_box .right-box .terminal-list {
    font-size: 80%;
    font-weight: bold;
    text-align: left !important;
}

.select_terminal_box .right-box .terminal-list .red {
    font-size: 110%;
    font-weight: bold;
}

/* MR5G用：サブタイトル・キャリア表示（テキスト＋背景色のみ） */
.select_terminal_box .mr5g-subtitle {
    font-size: 80%;
    font-weight: bold;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.select_terminal_box .mr5g-carrier {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.select_terminal_box .carrier-tag {
    display: block;
    padding: 6px 10px;
    font-size: 75%;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.select_terminal_box .carrier-tag.carrier-docomo {
    background-color: #E60012;
}

.select_terminal_box .carrier-tag.carrier-au {
    background-color: #FF6600;
}

.select_terminal_box .carrier-tag.carrier-softbank {
    background-color: #9e9e9e;
}

.select_terminal_box .carrier-tag.carrier-rakuten {
    background-color: #E6007E;
}

@media screen and (max-width: 750px) {
    .select_terminal_box {
        gap: 12px;
        padding: 16px 0;
    }
            
    .select_terminal_box img {
        width: 70px;
    }
    
    .select_terminal_box .right-ttl-flex {
        margin-bottom: 8px;
    }
    
    .select_terminal_box .left-ttl-box .wrap-ttl {
        padding: 4px 12px;
    }
    
    .select_terminal_box .left-ttl-box .name-ttl {
        font-size: 170%;
    }
    
    .select_terminal_box .right-ttl-flex .big-ttl {
        font-size: 400%;
    }
        
    .select_terminal_box .right-box .terminal-list .red {
        font-size: 110%;
        font-weight: bold;
    }    

    .select_terminal_box .mr5g-subtitle {
        margin-bottom: 8px;
    }

    .select_terminal_box .mr5g-carrier {
        gap: 6px;
    }

    .select_terminal_box .carrier-tag {
        padding: 4px 8px;
        font-size: 70%;
    }
}

/* 2023年1月お申込みフォーム改修時 */
.campaign__box {
    padding: 16px;
    border-radius: 8px;
    background-color: #2E93E6;
    margin-bottom: 32px;
}

.campaign__box .campaign__desc {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 16px;
}

.campaign__box .campaign__list {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

@media screen and (max-width: 768px) {
    .campaign__box {
        padding: 12px;
    }

    .campaign__box .campaign__desc {
        font-size: 16px;
    }

    .campaign__box .campaign__list {
        font-size: 14px;
    }
}
/* 2023年1月お申込みフォーム改修時 */

/* 金額シミュレート（お申し込み内容・ご利用料金） */
.simulate_summary {
    margin-bottom: 20px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.simulate_summary_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.simulate_summary_label {
    font-weight: bold;
    margin-right: 12px;
}

.simulate_summary_value {
    text-align: right;
}

.simulate_fees_heading {
    font-weight: bold;
    font-size: 1em;
    margin: 16px 0 12px 0;
}

.simulate_tab_wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.simulate_tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}

.simulate_tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.simulate_tab:hover {
    background: #eee;
}

.simulate_tab.is-active {
    background: #48A0E9;
    color: #fff;
}

.simulate_panels {
    padding: 16px;
    background: #fff;
}

.simulate_panel {
    display: none;
}

.simulate_panel.is-visible {
    display: block;
}

.simulate_panel[hidden] {
    display: none !important;
}

.simulate_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.simulate_row:last-of-type {
    border-bottom: none;
}

.simulate_row--total {
    font-weight: bold;
    font-size: 1em;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.simulate_label {
    flex-shrink: 0;
    margin-right: 12px;
}

.simulate_value {
    text-align: right;
}

.simulate_note {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #666;
}

@media screen and (max-width: 750px) {
    .simulate_summary_row,
    .simulate_row {
        font-size: 13px;
    }
    .simulate_tab {
        padding: 8px 6px;
        font-size: 12px;
    }
}