@charset "utf-8";
@import url('./font/PretendardGOV/font_PretendardGOV.css');
/*
 * 서브 레이아웃 전용: 헤더/푸터/사이드바 격리 CSS
 * - .header / .footer / .quick-menu 영역에만 스코프 한정
 * - rem → px 변환 (서브의 html font-size 영향 없이 동작)
 * - 작성일: 2026-04-28
 */

/* ============================================================
   0. 옛 CSS 충돌 override (style2.css, default.css, knaf_mngr.css)
   ============================================================ */

/* 옛 .footer { width:1000px; position:relative; left:50%; margin-left:-495px } 무력화 */
body .footer.footer {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

/* 옛 .footer_container 의 border-top, padding 무력화 */
body .footer_container.footer_container {
    border-top: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 옛 #header .logo { float:left; padding:36px 0 0 7px } 무력화 (새 시안 헤더) */
header#header.header .logo {
    float: none;
    padding: 0;
    margin: 0;
}

/* 새 헤더는 항상 전체 너비 차지하도록 보장 */
body > .header,
#wrap > .header,
header.header {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* 헤더 라인(border-bottom) 강제 */
header#header.header,
header.header {
    border-bottom: 1px solid #CDD1D5 !important;
    background: #fff !important;
}

/* ⭐ 옛 #header { width:985px; height:130px; margin:0 auto } 무력화 (default.css:29) ⭐ */
header#header.header {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* .header-main 명시 (옛 룰이 부모 height 제한할 가능성 차단) */
header#header.header .header-main,
.header .header-main {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
}

/* .gnb-bg 위치/크기 명시 + bottom 보정 */
header#header.header .gnb-bg,
.header .gnb-bg {
    display: none;
    position: absolute !important;
    top: 72px !important;
    bottom: auto !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    height: 150px !important;
    background: #fff !important;
    border-top: 1px solid #CDD1D5 !important;
    border-bottom: 1px solid #CDD1D5 !important;
    z-index: 20 !important;
}
.header-main.is-open .gnb-bg {
    display: block !important;
}

/* 옛 body { font-size:12px } 영향 차단 - 헤더/푸터/사이드바 내부 폰트 명시 */
.header, .header * ,
.footer, .footer *,
.quick-menu, .quick-menu * {
    font-family: 'Pretendard GOV', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
}

/* 로고 영역 명시적 크기/배경 (옛 #header .logo 침범 차단) */
header#header.header .logo,
.header .logo {
    width: 195px !important;
    height: 48px !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
header#header.header .logo a,
.header .logo a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: url("../images_new/main/logo.png") no-repeat left center / contain !important;
}

/* GNB 메뉴 폰트 명시 (옛 글로벌 12px 차단) */
.gnb-list > li > a {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
.gnb-depth2 a {
    font-size: 17px !important;
    font-weight: 500 !important;
}
.util-link {
    font-size: 15px !important;
}

/* 푸터 폰트 명시 */
.footer {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #464C53 !important;
    background: #F4F5F6 !important;
}
.footer-link a {
    font-size: 15px !important;
}

/* 푸터 address 이탤릭 제거 + 폰트 강제 */
.footer address,
footer.footer address {
    font-style: normal !important;
    font-family: 'Pretendard GOV', 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #464C53 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 푸터 로고 명시 (.footer .logo / .footer-logo) */
.footer .logo,
.footer .footer-logo,
footer.footer h1.logo,
footer.footer .footer-logo {
    width: 180px !important;
    height: 48px !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
}
.footer .logo a,
.footer .footer-logo a,
footer.footer h1.logo a,
footer.footer .footer-logo a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 180px !important;
    background: url("../images_new/main/logo.png") no-repeat left center / contain !important;
    text-indent: -9999px !important;   /* 만약 sr-only 텍스트가 보이면 가림 */
    overflow: hidden !important;
}

/* 푸터 섹션 레이아웃 명시 */
.footer .footer-link,
footer.footer .footer-link {
    background: #fff !important;
    border-bottom: 1px solid #CDD1D5 !important;
    padding: 0 !important;
}
.footer .footer-link .inner,
footer.footer .footer-link .inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
.footer .footer-link a,
footer.footer .footer-link a {
    display: inline-block !important;
    padding: 15px 0 !important;
    color: #464C53 !important;
    font-weight: 500 !important;
}
.footer .footer-info,
footer.footer .footer-info {
    padding: 40px 0 !important;
    background: #F4F5F6 !important;
}
.footer .footer-info .inner,
footer.footer .footer-info .inner {
    max-width: 1200px !important;
    margin: 0 auto !important;
}
.footer .footer-info p,
footer.footer .footer-info p {
    margin-top: 12px !important;
    font-size: 15px !important;
    color: #464C53 !important;
}

/* quick-menu 폰트 명시 */
.quick-menu a {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

/* header-util 하단 라인 강제 */
.header .header-util,
header.header .header-util {
    border-bottom: 1px solid #CDD1D5 !important;
}

/* GNB hover / 현재 페이지(is-active) 강조 색상 강제 */
.gnb-list > li > a:hover,
.gnb-list > li > a:focus-visible,
.gnb-list > li.is-active > a,
.header .gnb-list > li.is-active > a {
    color: #256EF4 !important;
}

/* GNB depth1/depth2 가로 너비 고정 (옛 flex 늘림 방지) */
.gnb-list {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.gnb-list > li {
    position: relative !important;
    width: 192px !important;
    flex: 0 0 192px !important;       /* grow=0, shrink=0, basis=192px */
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.gnb-depth2 {
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    right: auto !important;
    width: 192px !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    text-align: center !important;
}
.gnb-depth2 li {
    width: 100% !important;
    text-align: center !important;
}
.gnb-depth2 a {
    display: block !important;
    text-align: center !important;
}

/* 반응형 1200px 이하: 160px 동기화 */
@media (max-width: 1200px) {
    .gnb-list > li {
        width: 160px !important;
        flex: 0 0 160px !important;
    }
    .gnb-depth2 {
        width: 160px !important;
    }
}

/* 반응형 980px 이하 (모바일): quick-menu 숨김 */
@media (max-width: 980px) {
    .quick-menu {
        display: none !important;
    }
}

/* GNB 호버 시 2depth/bg 표시 강제 (옛 CSS 충돌 시) */
.header-main.is-open .gnb-depth2,
.header-main.is-open .gnb-bg {
    display: block !important;
}

/* 2depth 메뉴 hover 색상 강제 */
.gnb-depth2 a:hover,
.gnb-depth2 a:focus-visible {
    color: #256EF4 !important;
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
}

/* ============================================================
   1. 색상/공통 변수 (스코프 한정)
   ============================================================ */
.header,
.footer,
.quick-menu {
    --color-primary-5:  #ECF2FE;
    --color-primary-50: #256EF4;
    --color-gray-5:  #F4F5F6;
    --color-gray-70: #464C53;
    --color-gray-90: #1E2124;
    --color-border: #CDD1D5;
    --color-border-gray-dark: #58616A;
    --color-text-subtle: #464C53;
    --transition-base: 0.2s ease-in-out;
}

/* ============================================================
   2. 격리 reset (헤더/푸터/사이드바 내부 요소만)
   ============================================================ */
.header, .header *, .header *::before, .header *::after,
.footer, .footer *, .footer *::before, .footer *::after,
.quick-menu, .quick-menu *, .quick-menu *::before, .quick-menu *::after {
    box-sizing: border-box;
}
.header, .header h1, .header h2, .header h3, .header h4,
.header ul, .header li, .header a, .header p, .header div,
.header nav, .header header, .header span, .header button, .header img,
.footer, .footer h1, .footer h2, .footer ul, .footer li,
.footer a, .footer p, .footer div, .footer footer, .footer span, .footer address,
.quick-menu, .quick-menu ul, .quick-menu li, .quick-menu a, .quick-menu span {
    margin: 0;
    padding: 0;
    border: 0;
    word-break: keep-all;
}
.header ul, .footer ul, .quick-menu ul {
    list-style: none;
}
.header a, .footer a, .quick-menu a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease-in-out;
}
.header img, .footer img, .quick-menu img {
    max-width: 100%;
    border: 0;
    vertical-align: middle;
}
.header button, .footer button, .quick-menu button {
    background: none;
    border: 0;
    font: inherit;
    padding: 0;
    cursor: pointer;
}
.header h1, .header h2, .header h3, .header strong,
.footer h1, .footer h2, .footer h3, .footer strong {
    font-weight: 700;
}

.header .sr-only, .footer .sr-only, .quick-menu .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   3. 헤더
   ============================================================ */
.header {
    position: relative;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    font-size: 17px;
    line-height: 1.5;
    color: var(--color-gray-90);
    font-family: 'Pretendard GOV', 'Malgun Gothic', sans-serif;
}
.header .inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* util */
.header-util { border-bottom: 1px solid var(--color-border); }
.header-util .inner {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.util-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    color: var(--color-text-subtle);
    font-size: 15px;
}
.util-link::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("../images_new/main/myinfo.svg") no-repeat center / contain;
}

/* main */
.header-main { position: relative; }
.header-main .inner {
    height: 72px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header .logo {
    width: 195px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
}
.header .logo a {
    display: block;
    width: 100%;
    height: 100%;
    background: url("../images_new/main/logo.png") no-repeat left center / contain;
}

/* gnb */
.gnb { position: relative; z-index: 30; }
.gnb-list {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}
.gnb-list > li {
    position: relative;
    width: 192px;
    text-align: center;
}
.gnb-list > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    color: var(--color-text-subtle);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.7px;
}
.gnb-list > li > a:hover,
.gnb-list > li > a:focus-visible,
.gnb-list > li.is-active > a {
    color: var(--color-primary-50);
}

/* 2depth */
.gnb-depth2 {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 192px;
    padding: 16px 0;
    margin: 0;
    z-index: 40;
}
.gnb-depth2 a {
    display: block;
    padding: 16px 8px;
    color: var(--color-text-subtle);
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    border-radius: 4px;
}
.gnb-depth2 a:hover,
.gnb-depth2 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
    color: var(--color-primary-50);
}

.gnb-bg {
    display: none;
    position: absolute !important;
    top: 72px !important;
    left: 0 !important;
    width: 100% !important;
    height: 150px !important;
    background: #fff !important;
    border-top: 1px solid var(--color-border) !important;
    border-bottom: 1px solid var(--color-border) !important;
    z-index: 20 !important;
    padding: 0 !important;
    margin: 0 !important;
    bottom: auto !important;
}
.header-main.is-open .gnb-depth2,
.header-main.is-open .gnb-bg {
    display: block;
}

.btn-menu-open,
.btn-menu-close { display: none; }

/* skip-link (헤더 위 접근성 링크) */
#skip-link {
    position: absolute;
    left: -9999px;
}
#skip-link:focus-within a:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   4. 푸터
   ============================================================ */
.footer {
    background: var(--color-gray-5);
    font-size: 15px;
    color: var(--color-text-subtle);
    line-height: 1.5;
    font-family: 'Pretendard GOV', 'Malgun Gothic', sans-serif;
}
.footer .inner {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-link {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}
.footer-link a {
    display: inline-block;
    padding: 15px 0;
}
.footer-info { padding: 40px 0; }
.footer-logo { margin-bottom: 20px; }
.footer-logo a {
    display: block;
    max-width: 180px;
}
.footer p { margin-top: 12px; }

/* ============================================================
   5. quick-menu (오른쪽 사이드바)
   ============================================================ */
.quick-menu {
    position: fixed;
    right: 0;
    top: 40%;
    width: 100px;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    z-index: 1000;
    font-family: 'Pretendard GOV', 'Malgun Gothic', sans-serif;
}
.quick-menu li {
    width: 100%;
    height: 75px;
    border-bottom: 1px solid var(--color-border);
}
.quick-menu li:last-child { border-bottom: 0; }
.quick-menu a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-subtle);
    transition: 0.2s ease-in-out;
}
.quick-menu a:hover,
.quick-menu a:focus-visible {
    background-color: var(--color-primary-50);
    color: #fff;
}

/* ============================================================
   6. 반응형
   ============================================================ */
@media (max-width: 1200px) {
    .header-main .inner { padding: 8px 40px; }
    .header .inner,
    .footer .inner { padding: 0 40px; }
    .gnb-list > li,
    .gnb-depth2 { width: 160px; }
    .gnb-list > li > a {
        font-size: 17px;
        letter-spacing: -1px;
    }
}

@media (max-width: 980px) {
    .header .logo { width: 150px !important; }
    .header-util { display: none !important; }
    .header-main .inner {
        height: 64px !important;
        padding: 8px 20px !important;
    }
    .header-main .gnb {
        position: fixed !important;
        top: 0 !important;
        right: -400px !important;
        display: block !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        padding-top: 64px !important;
        background: #fff !important;
        z-index: 1001 !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15) !important;
    }
    .header-main.is-mobile-open .gnb { right: 0 !important; }

    .gnb-list {
        display: block !important;
    }
    .gnb-list > li {
        width: 100% !important;
        flex: 0 0 100% !important;
        text-align: left !important;
    }
    .gnb-list > li > a {
        height: auto !important;
        padding: 18px 20px !important;
        justify-content: flex-start !important;
        font-size: 18px !important;
    }
    .gnb-depth2 {
        display: block !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        padding: 0 !important;
        background: var(--color-gray-5) !important;
    }
    .gnb-depth2 li {
        width: 100% !important;
        text-align: left !important;
    }
    .gnb-depth2 a {
        text-align: left !important;
        padding: 12px 24px !important;
        display: block !important;
    }
    .gnb-bg { display: none !important; }

    .btn-menu-open {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 56px;
        height: 56px;
        border: 0;
        cursor: pointer;
    }
    .btn-menu-open span {
        position: relative;
        height: auto;
        background: transparent;
        color: var(--color-gray-90);
        font-size: 14px;
    }
    .ico-menu {
        width: 24px;
        height: 24px;
    }
    .btn-menu-close {
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .btn-menu-close::before,
    .btn-menu-close::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 2px;
        background: #222;
    }
    .btn-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
    .btn-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
    .header-main::after {
        content: "";
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
    }
    .header-main.is-mobile-open::after { display: block; }
}

@media (max-width: 600px) {
    .header .inner,
    .footer .inner { padding: 0 28px; }
    .footer-logo img { max-width: 160px; }
}
