/* 2026 개편 공통 레이아웃 (헤더 / 퀵메뉴 / 푸터) - 메인 + 서브페이지 공통 (기존 css 이후 로드) */
/* 미디어쿼리 분기점 (기존 사이트 media.css 기준) - 이 값만 사용
   max-width: 1200px / 1024px / 800px
   min-width: 1201px / 1025px / 801px (위 max 값 +1, 데스크톱 전용 규칙) */

/* ===== 공통 레이아웃 : 헤더 영역 ===== */

header .header {margin-left: 0;margin-right: 0;padding-left: max(2rem, calc((100% - 1400px) / 2));padding-right: max(2rem, calc((100% - 1400px) / 2));}
@media screen and (min-width: 1930px) {
  header .header {padding-left: max(2rem, calc((100% - 1800px) / 2));padding-right: max(2rem, calc((100% - 1800px) / 2));}
}
@media screen and (min-width: 1201px) {
  header {width: calc(100% - 88px);padding-left: 0;padding-right: 0;}
  .hd_div {margin-left: 0;margin-right: 0;}
}
@media screen and (max-width: 1200px) {
  header .header {margin-left: 0;margin-right: 0;padding-left: 0;padding-right: 0;}
}

/* ===== 헤더 ===== */
.toggle-head {background-color: #f5f5f5;}
.nuri-txt {font-size: 0.8125rem;}
.toggle-head-btn {font-size: 0.8125rem;}
header {border-bottom: none;}
header .gnb > li > h2 a {font-family: "Pretendard-SemiBold";font-weight: 600;font-size: 1.125rem;}
header .gnb > li > h2 a:before {background: #009db0;}
/* 메뉴가 많아 2줄로 보이는 경우 */
header .gnb > li:nth-child(1) > ul {left: -26rem;}
header .gnb > li:nth-child(2) > ul {padding-left: 2.5rem;text-align: center;}
header .gnb > li:nth-child(3) > ul {left: -8rem;}
/* header .gnb > li:nth-child(5) > ul {padding-right: 38rem;} */
header .gnb > li:nth-child(5) > ul {padding-right: 0;padding-left: 22rem;text-align: center;}
header .gnb > li:nth-child(6) > ul {padding-top: 1.65rem;padding-right: 2.5rem;text-align: left;}
header .gnb > li > ul li a {color: #333;}
header .user ul li {width: 32px;height: 32px;margin: 0 12px;}
header .user ul li:first-child {margin-left: 0;}
header .user ul li.hd-sr button.search {width: 32px;height: 32px;background: url(../images/main_2026_new/btn_search.svg) no-repeat 50%;background-size: contain;}
header .user ul li.login {width: 32px;height: 32px;background: url(../images/main_2026_new/btn_my.svg) no-repeat 50%;background-size: contain;}
header .user ul li.login a {height: 100%;}
header .user .sitemap {width: 32px;height: 32px;margin-left: 12px;background: url(../images/main_2026_new/btn_menu.svg) no-repeat 50%;background-size: contain;}
header .user .sitemap.show {background: url(../images/main_2026_new/btn_close.svg) no-repeat 50%;background-size: contain;}
@media screen and (min-width: 1801px) {
  header .gnb > li:nth-child(6) > ul {text-align: center;}
}
@media screen and (max-width: 800px) {
  header .user ul li{margin: 0 8px;}
  header .user .sitemap {margin-left: 8px;}
}

/* ===== 퀵메뉴 ===== */
.quick_menu {width: 88px;height: 100%;border-left: 1px solid #f0f0f0;box-shadow: -4px 0 12px rgba(0, 0, 0, 0.03);}
.quick_menu > div .inmun_link {height: 122px;background: #009db0;border-radius: 0 0 0 24px;}
.quick_menu > div .inmun_link > a {font-family: "Pretendard-Bold";font-weight: 700;font-size: 1rem;line-height: 1.4;text-align: center;color: #fff;}
.quick_menu > div .inmun_link > a:after {content: "";display: block;width: 20px;height: 20px;padding-top: 0;margin: 6px auto 0;color: #fff;background: url(../images/main_2026_new/icon_go_03.svg) center center no-repeat;background-size: cover;}
.quick_menu > div > p {padding: 40px 0 0;font-size: 1rem;line-height: 1.3;color: #111;}
.quick_menu > div > ul > li {margin-top: 30px;}
.quick_menu > div > ul > li:first-child {margin-top: 24px;}
.quick_menu > div > ul > li a span {width: 1.5rem;height: 1.5rem;margin-bottom: 6px;background-position: 50%;}
.quick_menu > div > ul > li a p {font-size: 14px;line-height: 1.4;letter-spacing: -0.35px;color: #666;word-break: keep-all;}
.quick_menu > div > ul > li:nth-of-type(1) a span, .quick_menu > div > ul > li:hover:nth-of-type(1) a span {background: url(../images/main_2026_new/icon_quick_01.svg) no-repeat 50%;background-size: contain;}
.quick_menu > div > ul > li:nth-of-type(2) a span, .quick_menu > div > ul > li:hover:nth-of-type(2) a span {background: url(../images/main_2026_new/icon_quick_02.svg) no-repeat 50%;background-size: contain;}
.quick_menu > div > ul > li:nth-of-type(3) a span, .quick_menu > div > ul > li:hover:nth-of-type(3) a span {background: url(../images/main_2026_new/icon_quick_03.svg) no-repeat 50%;background-size: contain;}
.top_btn {right: 1.9rem;}

/* ===== 푸터 ===== */
footer {border-top: 1px solid #eee;background: #fff;z-index: 100;}
footer .ft_inner {display: flex;justify-content: space-between;align-items: flex-start;gap: 3rem;padding: 40px 0;margin-left: max(2rem, calc((100% - 1400px) / 2) - 44px);}
footer .ft_left {display: flex;flex-direction: column;}
footer .ft_logo {display: flex;align-items: center;gap: 2rem;}
footer .ft_logo a {display: block;}
footer .ft_logo a:first-child img {height: 34px;}
footer .ft_logo a:last-child img {height: 30px;}
footer .ft_logo img {display: block;width: auto;}
footer .ft_ad {display: flex;flex-direction: column;gap: 4px;margin-top: 16px;}
footer .ft_ad ul li, footer .ft_ad ul li a, footer .ft_ad p {margin-top: 0;color: #666;font-size: 16px;line-height: 1.5;}
footer .ft_ad ul:nth-child(2) {display: flex;align-items: center;flex-wrap: wrap; column-gap: 5px;}
footer .ft_ad ul:nth-child(2) li:last-child:before {content: '|';display: inline-block;vertical-align: baseline;color: #ccc;padding-left: 6px;padding-right: 11px;}
footer .social {display: flex;align-items: center;gap: 16px;margin-top: 36px;}
footer .social li {display: block;width: 32px;height: 32px;margin: 0;}
footer .social li a {display: flex;justify-content: center;align-items: center;width: 100%;height: 100%;padding: 4px;}
footer .social li img {display: block;max-width: 100%;max-height: 100%;transition: opacity 0.2s;}
footer .ft_right {display: flex;flex-direction: column;gap: 40px;}
footer .ft_link {display: flex;align-items: flex-start;gap: 40px;}
footer .ft_link > li {margin: 0;}
footer .ft_link > li > p {margin-bottom: 12px;color: #777;font-size: 0.9375rem;font-family: "Pretendard-Medium";font-weight: 500;}
footer .ft_link > li ul li {min-width: 150px;}
footer .ft_link > li ul li a {display: inline-block;padding: 0.3125rem 0;color: #222;font-size: 0.9375rem;}
footer .ft_link > li ul li a:before {content: "";display: inline-block;width: 3px;height: 3px;margin-right: 0.5rem;vertical-align: middle;background: #ccc;}
footer .ft_link > li ul li.privacy a {color: #009DB0;font-weight: 600;}
footer .ft_cert {display: flex;align-items: center;justify-content: end;gap: 32px;margin-top: auto;}
footer .ft_cert li {display: block;margin: 0;}
footer .ft_cert li a {display: block;}
footer .ft_cert li img {display: block;height: 28px;width: auto;}
footer .ft_cert li.webWatch_logo img {height: 36px;}
@media screen and (min-width: 1930px) {
  footer .ft_inner {margin-left: max(2rem, calc((100% - 1800px) / 2) - 44px);}
}
@media screen and (max-width: 1024px) {
  footer .ft_inner {flex-direction: column;gap: 2.5rem;margin: 0 2rem;}
  footer .ft_link {gap: 3rem;}
  footer .ft_cert {justify-content: flex-start;}
}
@media screen and (max-width: 800px) {
  footer .ft_inner {gap: 32px;padding: 24px 0 40px;margin: 0 20px;}
  footer .ft_logo {gap: 16px;flex-wrap: wrap;}
  footer .ft_logo a:first-child img {height: 24px;}
  footer .ft_logo a:last-child img {height: 21px;}
  footer .ft_ad {gap: 2px;margin-top: 20px;}
  footer .ft_ad ul li, footer .ft_ad ul li a, footer .ft_ad p {font-size: 14px;line-height: 1.6;}
  footer .social {gap: 8px;margin-top: 16px;}
  footer .ft_right {width: 100%;gap: 32px;}
  footer .ft_link {display: grid;grid-template-columns: repeat(3, auto);justify-content: space-between;gap: 0 12px;}
  footer .ft_link > li > p {font-size: 13px;}
  footer .ft_link > li ul li {min-width: 0;}
  footer .ft_link > li ul li a {font-size: 14px;}
  footer .ft_cert {gap: 24px;}
}
