/* Keep the existing PC layout and let narrower screens reflow. */
@media (max-width: 1199px) {
  .responsive .wrapper,
  .responsive #nt_body,
  .responsive .nt-container { min-width: 0; max-width: 100%; }
  .responsive #nt_body { overflow-wrap: anywhere; }
  .responsive #nt_body img, .responsive #nt_body video { max-width: 100%; height: auto; }
  .responsive #nt_body iframe { max-width: 100%; }
  .responsive #nt_body audio { max-width: 100%; }
  .responsive .legacy-home [style*="1200px"] { width: 100% !important; min-width: 0 !important; }
  .responsive .legacy-home > * { min-width: 0; max-width: 100%; }
  .responsive .legacy-home-hero .col-md-12 > div { min-width: 0; }
  .responsive .legacy-home-hero .xe-container { max-width: 100%; }
  .responsive .legacy-home .tab, .responsive .legacy-home .tabnav,
  .responsive .legacy-home .bfd { max-width: 100%; }
}
@media (max-width: 767px) {
  .responsive .legacy-side-column { width: 100% !important; }
  .responsive #header_mo h3 {
    min-height: 52px;
    line-height: 52px;
    font-size: 19px;
    margin: 0;
  }
  .responsive #header_mo h3 > a:first-child,
  .responsive #header_mo h3 > div > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 48px;
  }
  .responsive #nt_title > .nt-container { height: auto; padding-block: 10px; }
  .responsive #nt_title > .nt-container > .h-100 { height: auto !important; padding-bottom: 0 !important; }
  .responsive #nt_title .text-nowrap { white-space: normal !important; line-height: 1.65; word-break: keep-all; }
  .responsive #nt_body > .nt-container,
  .responsive #nt_body > .legacy-home { padding-inline: 15px !important; }
  .responsive .legacy-home-hero .col-md-12 { flex-direction: column; gap: 12px; }
  .responsive .legacy-home-hero .col-md-12 > div { width: 100% !important; padding-left: 0 !important; }
  .responsive .legacy-home .bfd-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .responsive .legacy-home .box-content { width: 100%; max-width: 100%; margin: 0; }
  .responsive .legacy-home .tab, .responsive .legacy-home .bfd { width: 100%; height: auto; float: none; }
  .responsive .legacy-home .tabcontent { height: auto; display: flow-root; }
  .responsive .legacy-home .tabnav li a { padding-inline: 6px; }
  .responsive .legacy-home .bookClubArea, .responsive .legacy-home .yWelYesTvGrp {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
  .responsive .bank-table, .responsive .bblist, .responsive .bbimg {
    width: 100%; flex-basis: 100%; float: none;
  }
  .responsive .bbimg { margin-bottom: 18px; }
  .responsive #nt_body .searchbartop, .responsive #nt_body .tp_m { flex-wrap: wrap; gap: 6px; }
  .responsive #nt_body .view_bible { display: block; }
  .responsive #nt_body .bible_view2 > div { display: grid; grid-template-columns: 2em minmax(0, 1fr); }
  .responsive #nt_body .bible_view2 > div p { width: auto; }
  .responsive #nt_body .bible_view2 .bible_eng { grid-column: 2; }
  .responsive #nt_body .layer-popup { max-width: calc(100% - 24px); }
  .responsive #nt_footer .nt-links ul > li { float: none; padding: 4px 8px; }
  .responsive #nt_footer .nt-links ul > li::after { content: none; }
  .responsive #sit .itemform, .responsive #sit table, .responsive #bo_list table { max-width: 100%; }
  .responsive .tbl_wrap { overflow-x: auto; }
  .responsive #nt_body input[type="text"], .responsive #nt_body input[type="password"],
  .responsive #nt_body select, .responsive #nt_body textarea { max-width: 100%; }
}

@media (max-width: 991px) {
  .responsive .legacy-home .bfd-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .responsive .legacy-home .box-content { width: 100%; height: auto; min-height: 165px; }
}
@media (max-width: 767px) {
  .responsive .legacy-home .bfd-section { grid-template-columns: minmax(0, 1fr); }
  .responsive .legacy-home-hero .col-md-12 > div:first-child,
  .responsive .legacy-home-hero .xf-main-slide-banner,
  .responsive .legacy-home-hero .banner-slide-item {
    height: auto !important;
    aspect-ratio: 6 / 1;
  }
  .responsive .legacy-home-hero .banner-slide-item {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center;
  }
  .responsive .legacy-home-hero .main-visual-banner-pagination-wrap {
    bottom: 0;
  }
  .responsive .legacy-shop-home .bookClubArea { overflow-x: auto; }
  .responsive .legacy-shop-home .bblist,
  .responsive .legacy-shop-home .bbimg { width: 100%; float: none; }
  .responsive .legacy-shop-home .bbimg img { width: auto; max-height: 340px; }
  .responsive #nt_body #sit_inf_explan iframe,
  .responsive #nt_body #bo_v_con iframe,
  .responsive #nt_body .video-container iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
}

@media (max-width: 1199px) {
  .responsive #sit {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }
  .responsive #sit #sit_price {
    position: static;
    width: 100%;
    margin: 16px 0 0;
  }
  .responsive #sit #sit_tab { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 991px) {
  .responsive #sit #sit_ov_wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px 15px;
  }
  .responsive #sit #sit_ov_wrap::after { content: none; }
  .responsive #sit :is(#sit_pvi, #sit_ov, #sit_price) {
    float: none;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
  }
  .responsive #sit #sit_pvi_big {
    float: none;
    width: min(100%, 240px);
    margin: 0 auto;
    padding: 0;
  }
  .responsive #nt_body #sit_pvi_big img { width: auto; max-height: 310px; object-fit: contain; }
  .responsive #sit #sit_ov { padding-bottom: 0; }
  .responsive #sit #sit_title { font-size: clamp(1.4rem, 5.5vw, 1.75rem); line-height: 1.3; }
  .responsive #sit #sit_ov > p { line-height: 1.55; }
  .responsive #sit .sit_ov_tbl { table-layout: fixed; }
  .responsive #sit .sit_ov_tbl .grid_3 { width: clamp(72px, 24%, 112px); }
  .responsive #sit .sit_ov_tbl th { vertical-align: top; }
  .responsive #sit .sit_ov_tbl2 { margin-top: 0; }
  .responsive #sit #sit_ov_btn { flex-wrap: wrap; gap: 8px; }
  .responsive #sit #sit_btn_alm { max-width: 100%; margin-inline: 0; }
  .responsive #sit #sit_info { display: block; min-height: 0; margin-top: 0; }
  .responsive #sit #sit_tab { display: block; width: 100%; overflow: visible; }
  .responsive #sit #sit_tab .tab_tit {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 0 16px;
  }
  .responsive #sit #sit_tab .tab_tit::after { content: none; }
  .responsive #sit #sit_tab .tab_tit li { float: none; }
  .responsive #sit #sit_tab .tab_tit a { padding: 8px; line-height: 1.5; }
  .responsive #sit #sit_tab :is(#sit_inf, #sit_inf_explan) { max-width: 100%; }
  .responsive #sit #sit_tab .ws_n { white-space: normal !important; }
}

.legacy-store-mobile { display: none; }
@media (max-width: 991px) {
  .responsive .legacy-store-desktop { display: none; }
  .responsive .legacy-store-mobile {
    display: block;
    margin: 0 auto;
    padding: 20px 0 6px;
    color: #252525;
  }
  .legacy-store-mobile h1 { margin: 0 0 16px; font-size: 24px; font-weight: 700; }
  .legacy-store-categories { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 26px; }
  .legacy-store-categories a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px;
    border: 1px solid #ddd; border-radius: 5px;
  }
  .legacy-store-section { margin-bottom: 25px; border-top: 1px solid #d9d9d9; padding-top: 14px; }
  .legacy-store-section h2 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
  .legacy-store-shelf {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(126px, 42%, 172px);
    gap: 12px; margin: 0; padding: 0 0 10px; list-style: none;
    overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity;
  }
  .legacy-store-shelf li { min-width: 0; scroll-snap-align: start; }
  .legacy-store-shelf a { display: flex; height: 100%; flex-direction: column; gap: 7px; }
  .legacy-store-cover {
    display: grid; place-items: center; padding: 12px; height: 160px; background: #f5f3ef;
  }
  .responsive #nt_body .legacy-store-cover img { max-height: 136px; width: auto; object-fit: contain; }
  .legacy-store-name { line-height: 1.45; font-weight: 600; }
  .legacy-store-price { color: #525252; margin-top: auto; }
  .responsive .legacy-store-magazine { display: flex; flex-direction: column; }
  .responsive .legacy-store-magazine .bbimg { width: 100%; order: 1; text-align: center; }
  .responsive .legacy-store-magazine .bbimg img { width: auto; max-height: 290px; }
  .responsive .legacy-store-magazine .bblist { width: 100%; order: 2; }
  .responsive #sct { min-height: 0 !important; width: 100%; }
  .responsive :is(#sct, #ssch) .lists-row {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
    margin: 0; padding: 0;
  }
  .responsive :is(#sct, #ssch) .lists-row::before, .responsive :is(#sct, #ssch) .lists-row::after { display: none; }
  .responsive :is(#sct, #ssch) .lists-row > .sct_li {
    width: auto !important; float: none; min-width: 0; margin: 0; padding: 0;
  }
}
@media (max-width: 599px) {
  .responsive :is(#sct, #ssch) .lists-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .responsive #nt_footer .work-banner > div {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 13px;
  }
  .responsive #nt_footer .work-banner img { max-width: 100%; height: auto; }
  .responsive #ssch, .responsive #sod_bsk { width: 100%; min-width: 0; }
  .responsive #ssch .ssch_scharea { display: flex; gap: 6px; }
  .responsive #ssch #ssch_q { min-width: 0; width: 100%; }
  .responsive #ssch .ssch_scharea button { flex: 0 0 auto; white-space: nowrap; }
  .responsive #sod_bsk .tbl_head01 { overflow-x: auto; }
  .responsive #sct_ct_1 ul, .responsive #ssch_cate ul, .responsive #ssch_sort_all {
    display: flex; flex-wrap: wrap;
  }
  .responsive #sct_ct_1 li, .responsive #ssch_cate li, .responsive #ssch_sort_all li {
    width: auto; float: none; max-width: 100%;
  }
}

@media (max-width: 991px) {
  .responsive .legacy-checkout-body > .nt-container { padding-inline: 16px !important; }
  .responsive .legacy-checkout-body .na-row { margin-inline: 0; }
  .responsive .legacy-checkout-body :is(#sod_bsk, #sod_frm, #sod_fin) {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .responsive .legacy-checkout-columns { flex-direction: column; gap: 18px; }
  .responsive .legacy-checkout-columns > :is(.sod_left, .sod_right) {
    float: none;
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .responsive .legacy-checkout-body .legacy-checkout-products {
    display: block;
    width: 100%;
  }
  .responsive .legacy-checkout-products > tbody { display: block; }
  .responsive .legacy-checkout-products > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .responsive #sod_bsk_list .legacy-checkout-products > thead {
    position: static;
    display: block;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .responsive #sod_bsk_list .legacy-checkout-products thead tr { display: block; }
  .responsive #sod_bsk_list .legacy-checkout-products thead th:not(.chk_box) { display: none; }
  .responsive #sod_bsk_list .legacy-checkout-products thead .chk_box {
    display: block;
    padding: 10px 12px;
    text-align: left;
    background: transparent;
    border: 0;
  }
  .responsive #sod_bsk_list label[for="ct_all"] b {
    position: static;
    width: auto;
    height: auto;
    margin-left: 5px !important;
    clip: auto;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: middle;
  }
  .responsive .legacy-checkout-body .legacy-checkout-products > tbody > tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid #e0e4e8;
    border-radius: 6px;
    background: #fff;
  }
  .responsive .legacy-checkout-body .legacy-checkout-products > tbody > tr > td {
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
  }
  .responsive .legacy-checkout-body .legacy-checkout-products td[data-label] {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid #edf0f2;
  }
  .responsive .legacy-checkout-products td[data-label]::before {
    content: attr(data-label);
    color: #606060;
    flex: 0 0 auto;
  }
  .responsive .legacy-checkout-products :is(.td_prd, .empty_table, [headers="th_itopt"]) { grid-column: 1 / -1; }
  .responsive .legacy-checkout-products .td_prd {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 0;
  }
  .responsive .legacy-checkout-products .td_prd .sod_img {
    position: static;
    flex: 0 0 56px;
    width: 56px;
  }
  .responsive .legacy-checkout-products .td_prd .sod_name { min-height: 0; min-width: 0; margin: 0; }
  .responsive #sod_bsk_list .legacy-checkout-products .td_chk {
    position: absolute;
    top: 14px;
    left: 14px;
  }
  .responsive #sod_bsk_list .legacy-checkout-products .td_prd { margin-left: 26px; }
  .responsive .legacy-checkout-body #sod_fin_list .legacy-checkout-item {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
  }
  .responsive .legacy-checkout-body #sod_fin_list .legacy-checkout-option { border-radius: 0 0 6px 6px; border-top: 0; }
  .responsive .legacy-checkout-body #sod_bsk #sod_bsk_tot li {
    float: none;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #71767c;
  }
  .responsive .legacy-checkout-body #sod_bsk #sod_bsk_tot li:last-child { border-bottom: 0; }
  .responsive .legacy-checkout-body :is(#sod_bsk_act, #display_pay_button) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .responsive .legacy-checkout-body :is(#sod_bsk_act, #display_pay_button) > :is(button, input, a) {
    flex: 1 1 auto;
    width: auto;
    min-height: 44px;
  }
  .responsive #sod_bsk_list #mod_option_frm {
    left: 50%;
    width: min(540px, calc(100vw - 24px));
    margin-left: 0;
    transform: translateX(-50%);
  }
  .responsive .legacy-checkout-body #sod_frm section h2 { padding: 14px; }
  .responsive .legacy-checkout-body #sod_frm :is(#sod_frm_orderer, #sod_frm_taker) { margin-bottom: 16px; }
  .responsive .legacy-checkout-body #sod_frm :is(#sod_frm_orderer, #sod_frm_taker) table { width: 100%; table-layout: fixed; }
  .responsive .legacy-checkout-body #sod_frm .tbl_frm01 :is(tr, th, td) { display: block; width: 100%; line-height: 1.5; }
  .responsive .legacy-checkout-body #sod_frm .tbl_frm01 th { padding: 12px 12px 4px; }
  .responsive .legacy-checkout-body #sod_frm .tbl_frm01 td { padding: 0 12px 10px; }
  .responsive .legacy-checkout-body #sod_frm :is(#sod_frm_orderer, #sod_frm_taker) :is(input.frm_input, textarea) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    font-size: 16px;
  }
  .responsive .legacy-checkout-body #sod_frm :is(#sod_frm_orderer, #sod_frm_taker) :is(#od_zip, #od_b_zip) { width: 88px; }
  .responsive .legacy-checkout-body #sod_frm .frm_address { margin-top: 6px; }
  .responsive .legacy-checkout-body #sod_frm .tbl_frm01 .frm_info { display: block; margin-bottom: 5px; }
  .responsive .legacy-checkout-body #od_pay_sl .lb_icon { float: none; width: 100%; margin: 0; }
  .responsive .legacy-checkout-body #settle_bank label { float: none; width: 100%; }
  .responsive .legacy-checkout-body #settle_bank :is(select, #od_deposit_name) { width: 100%; min-height: 42px; font-size: 16px; }
  .responsive .legacy-checkout-body #sod_fin .sod_left table { width: 100%; table-layout: fixed; }
  .responsive .legacy-checkout-body #sod_fin .sod_left th { width: 32%; padding-right: 8px; }
  .responsive :is(#mb_login_notmb, #mb_login_od_wr) :is(.form-control, button, .btn) { min-height: 44px; }
  .responsive #mb_login_od_wr .form-control { min-width: 0; font-size: 16px; }
}

.legacy-checkout-heading { display: none; }
@media (max-width: 767px) {
  .responsive .legacy-checkout-heading {
    display: block;
    margin: 0 0 16px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
  }
}

.responsive #sod_frm.legacy-mobile-checkout {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 20px 16px 32px;
  overflow-wrap: anywhere;
}
.responsive .legacy-mobile-checkout-title { margin: 0 0 16px; font-size: 23px; font-weight: 700; }
.responsive .legacy-mobile-checkout :is(.sod_list, .odf_list > ul) { padding: 0; list-style: none; }
.responsive .legacy-mobile-checkout .sod_list .sod_li {
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  overflow: hidden;
}
.responsive .legacy-mobile-checkout .sod_list .li_op_wr {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 12px;
  padding: 12px;
}
.responsive .legacy-mobile-checkout .sod_list .total_img { position: static; grid-row: span 2; }
.responsive .legacy-mobile-checkout .sod_list .total_img img { max-width: 100%; height: auto; }
.responsive .legacy-mobile-checkout .sod_opt { padding: 0; }
.responsive .legacy-mobile-checkout .li_prqty_sp { padding-inline: 6px; }
.responsive .legacy-mobile-checkout #m_sod_bsk_tot { border-radius: 6px; overflow: hidden; }
.responsive .legacy-mobile-checkout #m_sod_bsk_tot dd { margin: 0; }
.responsive .legacy-mobile-checkout :is(#sod_frm_orderer, #sod_frm_taker, #sod_frm_pay) {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #e0e4e8;
  border-radius: 6px;
  background: #fff;
}
.responsive .legacy-mobile-checkout :is(#sod_frm_orderer, #sod_frm_taker, #sod_frm_pay) h2 {
  position: static;
  margin: 0 0 12px;
  padding: 0 0 10px;
  font-size: 18px;
  line-height: 1.4;
}
.responsive .legacy-mobile-checkout .odf_list > ul > li + li { margin-top: 10px; }
.responsive .legacy-mobile-checkout :is(.odf_list, #settle_bank) :is(.frm_input, textarea, select, #od_deposit_name) {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 16px;
}
.responsive .legacy-mobile-checkout .odf_list .add_num {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.responsive .legacy-mobile-checkout .odf_list .btn_addsch {
  position: static;
  min-height: 44px;
  padding-inline: 12px;
}
.responsive .legacy-mobile-checkout #od_pwd_hint { display: block; color: #555; }
.responsive .legacy-mobile-checkout #m_sod_frm_paysel ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  gap: 6px;
}
.responsive .legacy-mobile-checkout #m_sod_frm_paysel li {
  float: none;
  width: auto;
  height: auto;
  min-height: 32px;
}
.responsive .legacy-mobile-checkout #settle_bank :is(label, #od_deposit_name) { float: none; width: 100%; }
