@charset "utf-8";

/* ============================================================
   user_info_mobile_upgrade_pid.html 専用スタイル
   - 旧UI (style_responsive.css / styles3.css) に乗せた上で、
     本フォーム固有の補完・調整を行うためのファイル
   ============================================================ */

/* ---- 共通ユーティリティ ---- */
.stepBar {
  font-size: 14px;
}

.mobile_color {
  border: 1px solid #d2d1d2;
}

.tips {
  margin-left: 10px;
}

.tips img {
  width: 24px;
}

/* ---- STEP2 端末選択: 動的表示行（mobile_info） ----
   端末未選択時は非表示。JS の showLi() で is-mobile-shown が付与されると表示。
   SP: block (項目名上、選択肢下) / PC: flex (項目名左、選択肢右) */
body.mobile_step .form-list > li.mobile_info {
  display: none;
}
body.mobile_step .form-list > li.mobile_info.is-mobile-shown {
  display: block !important;
}
@media screen and (min-width: 768px) {
  body.mobile_step .form-list > li.mobile_info.is-mobile-shown {
    display: flex !important;
  }
}

body.user_info #input_v2 .inner label.select.disabled {
  cursor: not-allowed;
  background-color: #F2F2F2;
}

/* 新UI CSS が .select 内の native radio/checkbox を opacity:0 で隠しているため、
   mobile_upgrade_pid 内では全 .select で native input を表示する（pseudo-radio スタイルが無いため）
   色・縦位置揃えは #mobileList と同じ accent-color / vertical-align を適用 */
body.mobile_step .form-group label.select > input[type='radio'],
body.mobile_step .form-group label.select > input[type='checkbox'] {
  position: relative;
  opacity: 1;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  accent-color: #e93817;
  vertical-align: middle;
  cursor: pointer;
}

/* ---- 端末を追加するボタン（囲み + ＋アイコン） ---- */
.mobile_add_area .btn-add-terminal {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 1px solid #d2d1d2;
  border-radius: 8px;
  background: #fff;
  color: #333;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.mobile_add_area .btn-add-terminal:hover {
  background: #f7f7f7;
  border-color: #999;
}
.mobile_add_area .btn-add-terminal .icon-plus {
  display: inline-block;
  margin-right: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #e93817;
}

/* radio-box / check-box にも .select と同等の枠線を付与（外枠統一） */
.form-group label.radio-box,
.form-group label.check-box,
.cmn-box-body label.radio-box,
.cmn-box-body label.check-box {
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  padding: 8px 10px;
  position: relative;
  border: 1px solid #d2d1d2;
  margin: 4px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}
/* form-group は flex 化しない。.cf 配下のみ flex で高さ揃え（float なし + clearfix 不要） */
.form-group > .cf,
.form-group.cf {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}
/* form-group.radio / .check は子に .cf がない直配置の場合だけ flex で高さ揃え */
.form-group.radio:not(:has(> .cf)),
.form-group.check:not(:has(> .cf)) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
/* radio/check 配下の radio-box/check-box は flex item として高さ揃え */
.form-group.radio > label.radio-box,
.form-group.check > label.check-box,
.form-group > .cf > label.radio-box,
.form-group > .cf > label.check-box {
  display: flex;
  align-items: center;
}
/* mobileList カード（端末選択）: 高さ揃え、中央寄せ */
.mobileList {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.mobileList > .cf {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}
/* カード形式 (.radio-box 内に .mobile_body あり) の場合のみ列方向 flex */
.mobileList label.radio-box {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: center;
}
.mobileList label.radio-box .mobile_body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 10px;
  gap: 6px;
}
/* .c1〜c4 配下の radio-box / check-box / select にも幅を適用 */
.c1 label.radio-box, .c1 label.check-box, .c1 label.select { width: calc(100% - 8px); }
.c2 label.radio-box, .c2 label.check-box, .c2 label.select { width: calc(50% - 8px); }
.c3 label.radio-box, .c3 label.check-box, .c3 label.select { width: calc(33.33% - 8px); }
.c4 label.radio-box, .c4 label.check-box, .c4 label.select { width: calc(25% - 8px); }
@media screen and (max-width: 767px) {
  .sp_c1 label.radio-box, .sp_c1 label.check-box, .sp_c1 label.select { width: calc(100% - 8px); }
  .sp_c2 label.radio-box, .sp_c2 label.check-box, .sp_c2 label.select { width: calc(50% - 8px); }
}

/* ---- 端末追加/削除ボタン（cmn-box-header 内の × アイコン） ---- */
.cmn-box-header {
  position: relative;
}
.cmn-box-header .close_btn {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -10px;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.cmn-box-header .close_btn::before,
.cmn-box-header .close_btn::after {
  display: block;
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #fff;
}
.cmn-box-header .close_btn::before {
  transform: rotate(-45deg);
}
.cmn-box-header .close_btn::after {
  transform: rotate(45deg);
}
.cmn-box-header .close_btn:hover {
  opacity: 0.8;
}

/* ---- 料金内訳セクション（#priceList）
   style_responsive.css 由来の旧UIスタイルをモバイル/PC両方に適用 ---- */
#priceList {
  padding-top: 10px;
  border-top: 1px solid #e2e2e2;
}
#priceList .priceTable {
  border: 2px solid #e2e2e2;
  border-radius: 10px;
}
#priceList .priceTable .InBox {
  padding: 0 15px;
}
body.mobile_step #priceList .priceTable .totalPrice,
body.mobile_step #priceList .MorePriceBox {
  background: none;
}
body.mobile_step #priceList .MorePriceBox {
  padding: 0;
}
/* 旧UIの em スタイル（金額大きく赤）をモバイル/PC両方で適用 */
#priceList .priceTable .totalPrice {
  padding: 15px 0 10px;
  text-align: center;
  line-height: 1.1;
  font-size: 18px;
  border-bottom: 1px solid #e2e2e2;
}
#priceList .priceTable .totalPrice em {
  padding: 0 3px;
  display: inline-block;
  font-size: 36px;
  color: #e73518;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-style: normal;
}
body.mobile_step #priceList .price_h3 {
  position: relative;
  color: #e73518;
  font-size: 16px;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  margin: 0;
  padding: 5px 0;
}
body.mobile_step #priceList .price_h3:before {
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 100%;
  height: 1px;
  content: '';
  background: #e73518;
}
body.mobile_step #priceList .price_h3 span {
  position: relative;
  padding: 0 0.5rem;
  background: #fff;
}
body.mobile_step #priceList .price_h4 {
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #e2e2e2;
}
body.mobile_step #priceList .priceTable .normalPrice {
  border: 0;
}
body.mobile_step #priceList .priceTable .MorePriceBox {
  margin-bottom: 10px;
}
body.mobile_step #priceList .priceTable .MorePriceBox:last-child {
  margin-bottom: 0;
}
body.mobile_step #priceList .priceTable section .normalPrice {
  padding-top: 10px;
  margin-top: 15px;
  border-top: 1px solid #e2e2e2;
}
body.mobile_step #priceList .priceTable section .normalPrice:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in .sn p {
  display: flex;
  flex-direction: column;
}
body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in .price {
  text-align: right;
  font-size: 12px;
}
body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in .price .num {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 20px;
}
body.mobile_step #priceList .priceTable .MorePriceBox .priceBox {
  border: 1px solid #cacaca;
  background: #edeeef;
  border-radius: 10px;
  padding: 5px 10px;
  margin-top: 5px;
}
body.mobile_step #priceList .priceTable .MorePriceBox .priceBox .detail {
  display: flex;
  justify-content: space-between;
}
@media screen and (min-width: 768px) {
  body.mobile_step #priceList .price_h3,
  body.mobile_step #priceList .price_h4 {
    padding: 10px 0;
  }
  body.mobile_step #priceList .priceTable .totalPrice {
    font-size: 18px;
  }
  body.mobile_step #priceList .priceTable section .normalPrice {
    padding-top: 20px;
    margin-top: 20px;
  }
  body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in {
    display: flex;
    justify-content: space-between;
  }
  body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in .sn p {
    font-size: 20px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
  }
  body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in .price {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  #priceList .priceTable .totalPrice em {
    font-size: 44px;
  }
  body.mobile_step #priceList .priceTable .MorePriceBox .normalPrice .in .price .num {
    font-size: 24px;
  }
}

/* ---- 端末選択により表示/非表示が切り替わる li の境界線
   表示状態によって border-top の位置が動的に変わって見えるため、
   mobile_info 系 li の上罫線を消して、視覚的なブレを抑える */
body.mobile_step .form-list > li.mobile_info,
body.mobile_step .form-list > li.mobile_info.is-mobile-shown,
body.mobile_step .form-list > li.mobile_info + li {
    border-top: 0;
}

/* ---- 機種のカラー (#mobile_color) 専用 -----
   SP では各カラーを1行ずつ縦並びにする (sp_c1 相当)。
   各 mobile_color_* div の c2 (2列) を上書き */
@media screen and (max-width: 767px) {
    body.mobile_step #mobile_color .form-group.radio label.select {
        width: 100%;
        float: none;
        margin: 4px 0;
    }
}

/* ---- お申し込みの同意について
   配送情報の入力と同じ cmn-box 構造を採用するため、内部の checkbox レイアウト調整のみ ---- */
#confirm_checks_box .checkbox.c1 label.select {
  float: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 5px;
}
/* 同意チェックボックスの native input を表示
   new_form.css の label.select > input[type='checkbox'] { opacity:0 } を上書き */
#confirm_checks_box .checkbox label.select > input[type='checkbox'] {
  position: relative;
  opacity: 1;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  accent-color: #e93817;
  vertical-align: middle;
  cursor: pointer;
}

/* ---- 別タブで開くリンク (.link_blank) - style_responsive.css 由来。新UIには未定義のため補完 ---- */
.link_blank {
  position: relative;
  text-decoration: underline;
  padding-right: 20px;
  color: #406faf;
}
.link_blank:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-block;
  background: url(/common_v10/images/icn-link-blank-blue.svg) no-repeat center;
  background-size: 16px;
  width: 16px;
  height: 16px;
}

/* ---- アコーディオン内のリンクテキスト (.linktxt / .link2)
   旧UI common.css 由来。新UIには未定義のため補完 ---- */
.accordion .linktxt {
  list-style: none;
  margin-bottom: 8px;
}
.accordion .linktxt a.link2 {
  color: #226bc4;
  text-decoration: none;
  padding-left: 23px;
  background: url(/sim_contact/sim_entry_oc/img/share/icon_link.png) no-repeat 0 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.accordion .linktxt a.link2:hover {
  text-decoration: underline;
}
/* PDF アイコンを改行させず横並びに表示する
   ※ new_form.css の @media(min-width:768px) で .sp_hide{display:block} になっているため上書き */
.accordion .linktxt a.link2 img.sp_hide {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================================
   WSC-2525 第10弾FB（ハフクロ指示書 画面①端末選択）
   - 「端末・アクセサリのお支払総額」見出し＋総額は枠(priceTable)の外に表示
   - 毎月・一括の金額は総額より少し小さく（両者は同サイズ）
   - 「毎月のお支払額」と「一括お支払額」の間のマージンを広げる
   ============================================================ */
/* 枠外に出した総額（.priceTable配下でなくなるため同等スタイルを直接定義） */
#priceList .totalPrice--out {
  padding: 0 0 12px;
  text-align: center;
  line-height: 1.1;
  font-size: 18px;
}
#priceList .totalPrice--out em {
  padding: 0 3px;
  display: inline-block;
  font-size: 36px;
  color: #e73518;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-style: normal;
}
/* 毎月・一括の金額は総額(36px)より少し小さい同サイズ */
#priceList #monthTerminalPrice .totalPrice em,
#priceList #lumpPrice .totalPrice em {
  font-size: 28px;
}
/* 毎月ブロックと一括ブロックの間隔を広げる */
#priceList #lumpPrice {
  margin-top: 40px;
}
