@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* -----------------------------------------
   1. 헤더 (PC) - 3컬럼 grid로 교체
----------------------------------------- */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    height: 11.2rem; transition: 0.4s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    overflow: visible !important;
}
#header.on {
    background: transparent !important;
    border: none !important;
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none;
}

#header .hd_wrap {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    height: 11.2rem;
    padding: 0 3.2rem !important;
    max-width: 100%;
    box-sizing: border-box;
}

#header h1 {
    flex-shrink: 0;
    grid-column: 1;
}
#header h1 a {
    display: flex; align-items: center; height: 11.2rem; padding-top: 0 !important;
}

#header .sitemap_btn {
    color: #ffffff !important;
    width: 36px !important;
    height: 36px !important;
}
#header .sitemap_btn svg {
    width: 36px !important;
    height: 36px !important;
}

#header .adm {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    grid-column: 3 !important;
}
#header .sitemap {
    grid-column: 3 !important;
}


/* -----------------------------------------
   2. GNB 컨테이너
----------------------------------------- */
#header .gnb_container {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    transform: none !important;
    height: 11.2rem;
    gap: 0;
}

#header .gnb { display: flex; align-items: center; height: 100%; }
#header .gnb > ul {
    display: flex !important;
    justify-content: center;
    gap: 0;
    height: 11.2rem;
    width: auto !important;
    padding: 0; margin: 0; list-style: none;
}
#header .gnb > ul > li {
    position: relative !important;
    list-style: none;
    height: 100%;
}
#header .gnb > ul > li > a {
    display: block; line-height: 11.2rem; text-align: center;
    font-size: 1.9rem; color: #f5f0e8; font-weight: 700;
    padding: 0 3.2rem !important;
    white-space: nowrap;
    transition: color 0.3s;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 2px 12px rgba(0,0,0,0.6);
    letter-spacing: -0.01em;
}

/* ★ 메뉴 호버 시 오렌지색 */
#header .gnb > ul > li > a:hover,
#header .gnb > ul > li.current > a,
#header .gnb > ul > li.active > a {
    color: #ff6600 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8) !important;
}

/* ★ 밑줄 인디케이터 오렌지색 */
#header .gnb > ul > li > a::after {
    content: ""; position: absolute; bottom: 1.4rem; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: #ff6600; /* 파란색 #004695 → 오렌지 */
    transition: 0.3s;
}
#header .gnb > ul > li:hover > a::after { width: 40%; }

/* adm은 grid 3번째 칸 */
#header .adm {
    grid-column: 3 !important;
    display: flex; align-items: center; gap: 30px;
    color: #fff; height: 11.2rem; white-space: nowrap; flex-shrink: 0;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* -----------------------------------------
   3. 서브메뉴 — 반투명 회색 + 흰 글씨
----------------------------------------- */
#header .gnb > ul > li ul {
    position: absolute !important;
    top: 11rem;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 16rem !important;
    width: max-content !important;
    background: rgba(90, 90, 90, 0.88) !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    border-radius: 0 0 8px 8px;
    border-top: 2px solid #ff6600;
    border-left: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    opacity: 0; visibility: hidden; pointer-events: none;
    padding: 0.8rem 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}
#header .gnb > ul > li:hover ul {
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
}
#header .gnb > ul > li ul li a {
    display: block;
    padding: 1.1rem 2.5rem !important;
    text-align: center;
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: none;
    font-weight: 500;
    white-space: nowrap !important;
    transition: all 0.2s ease;
    /* ★ border-left 절대 넣지 않음 — 메인 GNB 깨짐 원인 */
}
#header .gnb > ul > li ul li a:hover {
    color: #ffffff !important;
    font-weight: 700;
    background: rgba(180, 180, 180, 0.30) !important;
    border-radius: 0;
}
/* -----------------------------------------
   4. ADM (로그인/언어)
----------------------------------------- */
#header .adm {
    display: flex; align-items: center; gap: 30px;
    color: #fff; height: 11.2rem; white-space: nowrap; flex-shrink: 0;
    margin-left: 0 !important; padding-left: 4rem !important;
}
#header.on .adm, #header:hover .adm { color: #333; }
#header .adm > a { display: flex; align-items: center; font-size: 1.6rem; font-weight: 500; transition: 0.3s; }
#header .adm > a:hover { color: #ff6600; } /* ★ 오렌지 */
.lang-switcher { display: flex; align-items: center; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 6px; overflow: hidden; height: 4.4rem; }
.lang-btn { padding: 0 40px; line-height: 4.4rem; font-size: 1.6rem; font-weight: 500; color: #fff; transition: 0.3s; }
.lang-divider { color: rgba(255, 255, 255, 0.5); margin: 0 -10px; z-index: 1; }
#header.on .lang-btn, #header:hover .lang-btn { color: #ff6600; } /* ★ 오렌지 */
.lang-btn.active { background: rgba(255, 255, 255, 0.25); }

/* -----------------------------------------
   5. 왼쪽 사이드바 (LNB)
----------------------------------------- */
#aside_l { position: fixed; top: 50%; left: 2.4rem; z-index: 9999; transform: translate(0, -50%); }
#aside_l .lnb li { list-style: none; margin: 1.8rem 0; }
#aside_l .lnb li a { position: relative; display: block; line-height: 4rem; color: rgba(255, 255, 255, 0.6); text-align: left; padding: 0 0 0 4.5rem; font-size: 1.2rem; font-weight: 500; text-transform: uppercase; transition: all 0.3s; }
#aside_l .lnb li.on a { color: #fff !important; font-weight: 700; }
#aside_l.on .lnb li a { color: rgba(0, 0, 0, 0.5); }
#aside_l.on .lnb li.on a { color: #000 !important; }
#aside_l .lnb li a::before { content: ""; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: #fff; transition: 0.4s; opacity: 0.8; }
#aside_l.on .lnb li a::before { background: #000; }
#aside_l .lnb li.on a::after { content: ""; position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%); width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; transition: 0.3s; }
#aside_l.on .lnb li.on a::after { border: 2px solid #000 !important; }

/* -----------------------------------------
   6. 플로팅 버튼 (#side_lnk)
----------------------------------------- */
#side_lnk {
    position: fixed;
    bottom: 8rem;
    right: 3rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
}

#side_lnk a.c_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    width: 5.4rem;
    height: 5.4rem;
    padding: 0;
    margin-bottom: 0;
    padding-top: 0;
    transition:
        width 0.38s cubic-bezier(0.4,0,0.2,1),
        padding 0.38s cubic-bezier(0.4,0,0.2,1),
        background 0.2s;
}

#side_lnk a.c_btn.open {
    width: 28rem;
    padding: 0 0.6rem 0 2rem;
    justify-content: space-between;
    background: #d97706;
}

#side_lnk a.c_btn .btn_txt {
    color: #111;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: "Pretendard Variable", Pretendard, sans-serif;
    letter-spacing: -0.02em;
    text-align: right;
    flex: 1;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.22s 0.15s, max-width 0.38s;
    order: 1;
}
#side_lnk a.c_btn .btn_txt strong {
    font-weight: 900;
    color: #111;
}

#side_lnk a.c_btn.open .btn_txt {
    opacity: 1;
    max-width: 22rem;
    pointer-events: auto;
}

#side_lnk a.c_btn .icon_box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 5.4rem;
    height: 5.4rem;
    min-width: 5.4rem;
    order: 2;
}
#side_lnk a.c_btn .icon_box svg {
    pointer-events: none;
}

#side_lnk a.t_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.4rem;
    height: 5.4rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border: none;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
#side_lnk a.t_btn:hover {
    background: #f0f4ff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #side_lnk { bottom: 4rem; right: 1.6rem; }
    #side_lnk a.c_btn { width: 4.8rem; height: 4.8rem; }
    #side_lnk a.c_btn.open { width: 24rem; }
    #side_lnk a.c_btn .icon_box { width: 4.8rem; height: 4.8rem; min-width: 4.8rem; }
    #side_lnk a.t_btn { width: 4.8rem; height: 4.8rem; }
}

/* -----------------------------------------
   7. 서브 페이지 본문
----------------------------------------- */
.sub_title { position: relative; background-color: #004695; text-transform: uppercase; color: #fff; overflow: hidden; min-height: 48rem; }
.sub_title::before {
    content: ""; position: absolute; inset: 0 0 0 0; z-index: 2;
    background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, transparent 100%) !important;
}
.sub_title::after { content: ""; position: absolute; inset: 0 0 0 0; z-index: 3; background: url(../images/pt-bg01.png); }
.sub_title .title { position: absolute; top: 60%; left: 50%; z-index: 4; transform: translate(-50%, -50%); width: calc(100% - 3.2rem); text-align: right; }

.sub_title .title h2,
.sub_title .w_inner .title h2,
div.sub_title div.title h2 {
    font-size: 7rem !important;
    font-family: 'Noto Sans KR', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: -0.03em !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    display: inline-block !important;
    text-shadow:
        2px 2px 0px rgba(0,0,0,0.9),
        3px 3px 6px rgba(0,0,0,0.8),
        0 1px 3px rgba(0,0,0,0.95),
        0 4px 16px rgba(0,0,0,0.5) !important;
}
.sub_title .title .bar,
.sub_title .title h2 + *,
.sub_title .bar {
    background: rgba(255,255,255,0.7) !important;
    height: 1px !important;
    width: 60px !important;
    border: none !important;
}

/* -----------------------------------------
   8. 회사연혁 원 위치 수정
----------------------------------------- */
#company_history .itm .con::before {
    content: "";
    position: absolute;
    top: 0.5rem !important;
    left: -9px;
    width: 16px;
    height: 16px;
    border: 4px solid #004695;
    background: #fff;
    border-radius: 50%;
    z-index: 2;
}

/* -----------------------------------------
   서브페이지 본문 배경 강제 흰색
----------------------------------------- */
.content,
#container,
#wrap > div {
    background: #ffffff !important;
}

/* -----------------------------------------
   9. 푸터 & 기타
----------------------------------------- */
#footer { padding: 4rem 0 5.6rem 0; background: #ffffff; color: #444444; font-size: 1.5rem; }
#footer .w_inner { width: calc(100% - 80px); max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* -----------------------------------------
   10. 반응형 모바일 햄버거
----------------------------------------- */
.mbtn { display: none !important; }
.mbtn span { background: #ffffff !important; }
@media (max-width: 1200px) {
    #header {
        height: 7rem !important;
        background: rgba(0,0,0,0.85) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    #header .hd_wrap {
        height: 7rem !important;
        grid-template-columns: 1fr auto !important;
    }
    #header .gnb_container {
        position: fixed !important;
        top: 0 !important; left: -100vw !important;
        width: 100vw !important; height: 100vh !important;
        background: rgba(0,0,0,0.92) !important;
        transition: 0.4s !important;
        flex-direction: column !important;
        grid-column: auto !important;
    }
    #header .gnb_container.on { left: 0 !important; }
    #header .adm { display: none !important; }

    .mbtn {
        display: flex !important;
        position: fixed;
        top: 1.6rem; right: 1.6rem;
        z-index: 10000;
        width: 36px; height: 36px;
        background: transparent !important;
        border: none !important;
        flex-direction: column;
        align-items: center; justify-content: center;
        gap: 5px; padding: 0; cursor: pointer;
    }

    .mbtn::before,
    .mbtn::after {
        display: none !important;
        content: none !important;
    }

    .mbtn span {
        font-size: 0 !important;
        display: block !important;
        width: 24px !important;
        height: 2px !important;
        background: #ffffff !important;
        border-radius: 1px !important;
    }
}

/* -----------------------------------------
   11. 메인 비주얼 화살표 숨김
----------------------------------------- */
#main_visual_slide02 .arrows { display: none !important; }
.visual_nav_wrap { display: none !important; }