/* Soollink responsive layout and mobile navigation fixes */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body,
#hd,
#ft,
#wrap,
#wrapper,
#container,
#container_wr,
#content,
main,
.inner,
.w_inner,
.sub_content,
.page_content {
  min-width: 0;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

iframe {
  width: 100%;
}

.inner,
.w_inner,
.banner_inner,
.inner_wrap {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.sub_content,
.sub_content .page_title,
.sub_content .page_content,
.sub_content .page_content > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sub_content table {
  max-width: 100%;
}

#bo_list,
#bo_v,
#bo_w,
#bo_vc,
#bo_vc_w,
#fregister,
#fregisterform,
#register_form {
  max-width: 100%;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
}

#bo_list[style*="width"],
#bo_v[style*="width"],
#bo_w[style*="width"] {
  width: 100% !important;
}

#bo_w form,
#bo_w .write_div,
#bo_w .wr_content,
#bo_w .cke,
#bo_w .cke_inner,
#bo_w iframe,
#bo_w textarea,
#bo_w input,
#bo_w select,
#fregister textarea,
#fregisterform input,
#fregisterform select,
#fregisterform textarea {
  max-width: 100% !important;
}

.policy_viewer,
.policy_box,
.policy_box textarea,
.bo_tit,
.bo_tit a {
  overflow-wrap: anywhere;
}

@media (max-width: 1682px) {
  .w_inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

@media (max-width: 1452px) {
  .inner,
  .banner_inner,
  .inner_wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
}

/* Keep both footer rows aligned with the main content column. */
#footer .ft_wrap {
  width: calc(100% - 6.4rem);
  max-width: 142rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

#footer .ft_top {
  align-items: flex-start;
}

#footer .lnk {
  flex: 1 1 auto;
  min-width: 0;
}

#footer .lnk > ul {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3.2rem clamp(2.4rem, 3.2vw, 6rem);
  width: 100%;
}

#footer .lnk > ul > li,
#footer .ft_bottom .left {
  min-width: 0;
}

#footer .customer_list,
#footer .info {
  flex-wrap: wrap;
}

/* Keep all six footer menu groups on a single row wherever the footer menu is visible. */
@media (min-width: 769px) {
  #footer .lnk > ul {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

  #footer .lnk > ul > li {
    grid-row: 1;
  }
}

@media (min-width: 1025px) and (max-width: 1500px) {
  #header .gnb > ul > li > a {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.65rem;
  }
}

@media (max-width: 1024px) {
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: pan-y;
  }

  #header,
  #header:hover {
    height: 11.2rem;
    overflow: visible;
  }

  #header .hd_wrap {
    align-items: center;
  }

  #header .gnb_container {
    position: fixed;
    inset: 0;
    left: auto;
    right: 0;
    z-index: 998;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  #header .gnb_container.on {
    left: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  #header .gnb {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: min(42rem, calc(100vw - 3.2rem));
    max-width: 100%;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin-left: auto;
    padding: 7.6rem 2.4rem 2.4rem;
    padding-bottom: max(2.4rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    background: var(--white-color, #fff);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }

  #header .gnb_container.on .gnb {
    transform: translateX(0);
  }

  #header .gnb > ul,
  #header:hover .gnb > ul {
    display: block;
    flex: 0 0 auto;
    height: auto;
    overflow: visible;
    border-top: 0;
  }

  #header .gnb > ul > li,
  #header:hover .gnb > ul > li {
    position: relative;
    border-left: 0;
    border-right: 0;
  }

  #header .gnb > ul > li > a {
    display: block;
    min-height: 4.8rem;
    padding: 1.2rem 4.4rem 1.2rem 0.8rem;
    border-bottom: 1px solid var(--line-color, #e5e5e5);
    color: var(--body-color, #222);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
  }

  #header .gnb > ul > li > a::after {
    display: none;
  }

  #header .gnb > ul > li ul {
    position: static;
    display: none;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--lightgray-color, #f7f7f7);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #header .gnb > ul > li ul li a {
    display: block;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--line-color, #e5e5e5);
    color: var(--body-color, #333);
    font-size: 1.5rem;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    word-break: keep-all;
  }

  #header .gnb > ul > li.open > a {
    color: var(--point-color, #8a613d);
  }

  #header .submenu-toggle {
    position: absolute;
    top: 0.6rem;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
  }

  #header .submenu-toggle::before,
  #header .submenu-toggle::after {
    content: "";
    position: absolute;
    width: 1.4rem;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  #header .submenu-toggle::after {
    transform: rotate(90deg);
  }

  #header .submenu-toggle[aria-expanded="true"]::after {
    transform: rotate(0deg);
  }

  #header .submenu-toggle:focus-visible,
  #header .gnb a:focus-visible,
  .mbtn:focus-visible {
    outline: 3px solid var(--point-color, #8a613d);
    outline-offset: 2px;
  }

  .mbtn {
    z-index: 1000;
  }
}

@media (min-width: 1025px) {
  #header .submenu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  #footer .ft_wrap {
    width: 100%;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .sub_title,
  .sub_nav,
  .sub_content,
  .sub_content .page_title,
  .sub_content .page_content {
    max-width: 100%;
  }

  .sub_nav {
    overflow: visible;
  }

  .sub_nav .inner {
    padding-left: 0;
    padding-right: 0;
  }

  .sub_content {
    margin-top: 6rem;
    margin-bottom: 8rem;
  }

  .sub_content .page_title h3 {
    white-space: normal;
  }

  .sub_content .page_title h3 strong {
    font-size: clamp(2.8rem, 9vw, 4rem);
    line-height: 1.25;
  }

  .sub_content #bo_list,
  .sub_content #bo_v,
  .sub_content #bo_w,
  .sub_content .tbl_frm01,
  .sub_content .tbl_head01 {
    max-width: 100%;
  }

  .dd_board_layout {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2.4rem 1.6rem !important;
    overflow: hidden !important;
    border-radius: 1.6rem !important;
  }

  .dd_board_layout .tbl_wrap,
  .dd_board_layout table,
  .dd_board_layout tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible;
  }

  .dd_board_layout thead,
  .dd_board_layout .td_name,
  .dd_board_layout .td_datetime,
  .dd_board_layout .td_num,
  .dd_board_layout .td_hit,
  .dd_board_layout .td_state {
    display: none !important;
  }

  .dd_board_layout tbody tr {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .dd_board_layout tbody td {
    display: block;
    min-width: 0;
    height: auto;
    padding: 1.6rem 0.8rem !important;
    line-height: 1.45;
  }

  .dd_board_layout .td_chk {
    flex: 0 0 3.2rem;
    width: 3.2rem !important;
  }

  .dd_board_layout .td_num2 {
    flex: 0 0 5.6rem;
    width: 5.6rem !important;
    text-align: center;
  }

  .dd_board_layout .td_subject {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
  }

  .dd_board_layout .bo_tit,
  .dd_board_layout .bo_tit a {
    display: block;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .dd_board_layout .m_con {
    display: block !important;
    margin-top: 0.6rem;
    font-size: 1.3rem;
    line-height: 1.45;
  }

  #bo_btn_top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
  }

  #bo_btn_top #bo_list_total {
    min-width: 0;
    margin-right: auto;
  }

  #mb_login {
    width: calc(100% - 3.2rem) !important;
    max-width: 42rem !important;
    margin: 2.4rem auto 5.6rem !important;
    padding: 3.2rem 2rem !important;
  }

  #login_info {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .register,
  #register_form {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .register_inner,
  .register_form_inner {
    max-width: 100%;
    padding-left: 1.8rem !important;
    padding-right: 1.8rem !important;
  }

  #bo_w .bo_w_info,
  #bo_w .btn_confirm,
  #bo_vc_w .btn_confirm {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  #bo_w .half_input,
  #bo_w .frm_input,
  #bo_w .btn_submit,
  #bo_w .btn_cancel,
  #bo_vc_w .frm_input {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #side_lnk {
    right: 1.2rem;
    bottom: 1.6rem;
  }

  #side_lnk a.consulting,
  #side_lnk a.naver,
  #side_lnk a.kakao,
  #side_lnk .d_btn,
  #side_lnk .d_tel {
    width: 5.2rem;
    height: 5.2rem;
    min-width: 5.2rem;
  }
}

@media (max-width: 480px) {
  #header h1 a {
    width: 16rem;
    background-size: 124px auto;
  }

  .sub_title .title h2 {
    font-size: 3.8rem;
  }

  .mbtn {
    top: 3.2rem;
  }

  .dd_board_layout {
    padding: 2rem 1.2rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header .gnb_container,
  #header .gnb,
  #header .submenu-toggle::after {
    transition: none;
  }
}

/* 2026-09-22: SOOLLINK 7개 상위 메뉴 표시 보정 */
@media (min-width:1025px) {
  #header .hd_wrap { width:100%; max-width:100%; padding-left:clamp(1.6rem,2vw,4rem); padding-right:clamp(1.6rem,2vw,4rem); }
  #header h1 { flex:0 0 auto; }
  #header h1 a { width:clamp(15rem,11vw,21rem); background-size:190px auto; }
  #header .gnb_container { flex:1 1 auto; min-width:0; margin-left:clamp(1rem,2vw,3rem); }
  #header .gnb { width:100%; min-width:0; }
  #header .gnb > ul { width:100%; justify-content:flex-end; }
  #header .gnb > ul > li { flex:0 1 auto; min-width:0; }
  #header .gnb > ul > li > a { padding-left:clamp(.9rem,1.15vw,2rem); padding-right:clamp(.9rem,1.15vw,2rem); font-size:2.2rem !important; font-weight:700 !important; }
}


/* 2026-09-22 v1.6: header logo visual size normalization */
@media (min-width: 1025px) {
  #header h1 a,
  #header.on h1 a,
  #header:hover h1 a {
    width: 22rem !important;
    background-size: 190px auto !important;
    background-position: left center !important;
  }
}
@media (max-width: 1024px) {
  #header h1 a,
  #header.on h1 a,
  #header:hover h1 a {
    background-size: 107px auto !important;
    background-position: left center !important;
  }
}


/* 2026-09-22 v1.7: requested header adjustments */
@media (min-width:1025px) {
  #header .gnb > ul > li > a {
    font-size:2.2rem !important; /* 기존 18px 대비 약 +3pt */
    font-weight:700 !important;
  }
  #header h1 a, #header.on h1 a, #header:hover h1 a {
    background-size:124px auto !important; /* 190px 대비 35% 축소 */
  }
}
@media (max-width:1024px) {
  #header h1 a, #header.on h1 a, #header:hover h1 a {
    background-size:107px auto !important; /* 165px 대비 35% 축소 */
  }
}


/* 2026-09-22 v1.8: logo -10%, top menu -1pt, normal weight */
@media (min-width:1025px) {
  #header .gnb > ul > li > a {
    font-size:19px !important; /* v1.9: 상단 대메뉴 19px 고정 */
    font-weight:400 !important;
  }
  #header h1 a, #header.on h1 a, #header:hover h1 a {
    background-size:112px auto !important; /* 124px에서 약 10% 축소 */
  }
}
@media (max-width:1024px) {
  #header h1 a, #header.on h1 a, #header:hover h1 a {
    background-size:96px auto !important; /* 107px에서 약 10% 축소 */
  }
}


/* 2026-09-22 v1.9: top-level desktop menu font fixed at 19px */
@media (min-width:1025px) {
  #header .gnb > ul > li > a {
    font-size:19px !important;
    font-weight:400 !important;
  }
}
