.plantitle{
    padding-left: 50px;
    margin: 30px 0;
    font-size: 28px;
    font-weight: bold;
    border-bottom: 2px solid;
    position: relative;
}
.plantitle::after{
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 2px #e01647;
    left: 0;
    bottom: -2px;
    width: 3%;
}
.plantitle::before{
    content: "";
    width: 50px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.japan .plantitle::before{
    background: url(../../../../img/form/flag_japan.png) left center / 80% no-repeat;
}
.korea .plantitle::before{
    background: url(../../../../img/form/flag_korea.png) left center / 80% no-repeat;
}

.korea{
  margin-bottom: 15px;
}

.section_app_in.terminals .imagebox img {
  max-width: 220px;
}

.w_slider_plan .planbox .text1_1 {
  display: inline;
  margin-right: 15px;
  font-size: 16px;
}

.w_slider_plan .planbox .pay1 {
  display: inline;
}

.w_slider_plan .planbox .text1 {
  min-height: auto;
}

.eSIM{
  line-height: 1.4;
  margin: 10px 0;
}
.eSIM>span{
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  color: #CC0000;
  display: block;
}

.tab-link span {
  font-size: 20px;
}

#selected_plan_label {
  font-size: 20px;
  font-weight: 600;
}

#selected_plan_label span {
  font-size: 24px;
}

.text1_1 span {
  font-size: 20px;
}

.section_app_in.terminals .imagebox .btn_more {
  margin-top: 5px;
}

.section_app_in.terminals .imagebox .btn_more.js_popup_1_open{
  margin-top: 10px;
}

 html[lang="en"] .section_app_in.terminals .imagebox .btn_more.js_popup_1_open{
  padding: 4px 10px
}

.w_slider_plan .planbox .pay1 .price-amount {
  font-size: 20px !important;
}

.group-border-wrapper {
  border: 2px solid #FFEF5D;
  position: relative;
  padding: 20px 10px 10px 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: #fffce2;
}

.recomended_badge {
  top: -28px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.recomend_jp_badge {
  top: -24px !important;
}

.recomend_en_badge {
  top: -33px !important;
}

/* ご注文プランの選択 見出し横の有効期限（小さい文字） */
/* PC: maintitle の * の右にインライン表示 */
.plan_validity_text_pc {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.4;
}
.plan_validity_main {
  font-weight: bold;
}
.plan_validity_note {
  font-size: 0.85em;
}
/* SP用は PC では非表示 */
.plan_validity_text_sp {
  display: none;
}

@media screen and (max-width: 799px) {

  .plan_title_row .title_app1 {
    margin-bottom: 5px;
  }
  .plan_validity_text_pc {
    display: none;
  }
  .plan_validity_text_sp {
    display: block;
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
  }

  .section_app_in.terminals{
    border-radius: 8px;
  }

  .plantitle{
    margin-bottom: 20px;
    font-size: 24px;
  }

  /* モバイル(デフォルト)は3列グリッドにする */
  .tab-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
    margin-bottom: 15px;
    list-style: none;
  }

  .tab-menu .plan_tab_label {
    justify-content: center;
    border-radius: 8px;
  }

  .tab-menu .plan_tab_label>span {
    font-size: 1.3rem;
    margin-right: 1px;
  }

  .tab-link {
    padding: 4px 0;
  }

  .tab-menu .plan_tab_label.active {
    background: #d6001c;
    border-color: #d6001c;
    color: #fff;
  }

  .tab-menu .plan_tab_label:focus {
    outline: 2px solid #d6001c;
    outline-offset: 2px;
  }

  .section_app_in.terminals .imagebox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .japan .section_app_in.terminals .imagebox{
    margin-bottom: 35px;
  }

  .section_app_in.terminals .imagebox img {
    width: auto;
    max-width: 160px;
    height: auto;
    margin: 0;
  }

  .section_app_in.terminals .imagebox>div {
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    display: flex;
  }

  .imagebox .btn_more {
    display: inline-block;
  }

  .w_slider_plan .planbox .pay1{
    display: block;
  }

   html[lang="en"] .section_app_in.terminals .imagebox .btn_more.js_popup_1_open{
    width: auto;
  }

}