@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로 교체 */
    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;   /* 기존 24px × 1.5 */
    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 컨테이너 - absolute 제거, grid 중앙칸 사용
----------------------------------------- */
#header .gnb_container {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;     /* ✅ 중앙정렬 */
    position: static !important;            /* ✅ absolute 해제 */
    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::after {
    content: ""; position: absolute; bottom: 1.4rem; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px; background: #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(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-radius: 0 0 8px 8px;
    opacity: 0; visibility: hidden; pointer-events: none;
    padding: 1.2rem 0; transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
#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: 1rem 2.5rem !important; text-align: center;
    font-size: 1.5rem; color: #f5f0e8 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    font-weight: 500; white-space: nowrap !important; transition: 0.3s ease;
}
#header .gnb > ul > li ul li a:hover {
    color: #fff !important; font-weight: 700;
    background: rgba(255, 255, 255, 0.18) !important; border-radius: 4px;
}
/* -----------------------------------------
   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: #f39c12; }
.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: #004695; }
.lang-btn.active { background: rgba(255, 255, 255, 0.25); }

/* -----------------------------------------
   5. ✅ 왼쪽 사이드바 (LNB)
----------------------------------------- */

/* [1] 잔상 제거 */
#aside_l .lnb li a::before,
#aside_l .lnb li a::after,
#aside_l .lnb li.on a::before,
#aside_l .lnb li.on a::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* [2] 사이드바 위치 */
#aside_l {
    position: fixed;
    top: 50%;
    left: 2.4rem;
    z-index: 9999;
    transform: translate(0, -50%);
}
#aside_l .lnb {
    display: flex;
    flex-direction: column;
    gap: 6px !important;
}
#aside_l .lnb li {
    list-style: none;
    margin: 0 !important;
}

/* [3] 비활성 버튼 — 투명하게 */
body #aside_l .lnb li a,
body #aside_l .lnb li a:link,
body #aside_l .lnb li a:visited {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 130px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(200, 220, 240, 0.30) !important;
    color: rgba(220, 220, 220, 0.50) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
}

/* [4] 활성(on) + 호버 + 클릭 — 밝은 회색 */
body #aside_l .lnb li.on a,
body #aside_l .lnb li.on a:link,
body #aside_l .lnb li.on a:visited,
body #aside_l .lnb li a:hover,
body #aside_l .lnb li a:active,       /* ← 이거 추가 */
body #aside_l .lnb li.on a:active {   /* ← 이거 추가 */
    background: rgba(215, 218, 222, 0.88) !important;
    border: 1px solid rgba(210, 215, 220, 0.95) !important;
    color: #111111 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

/* [4] 활성화(on) 및 호버: 청색 → 밝은 회색 */
#aside_l .lnb li.on a,
#aside_l .lnb li a:hover {
    background: rgba(210, 215, 220, 0.85) !important;
    border: 1px solid rgba(200, 210, 220, 0.9) !important;
    color: #1a1a1a !important;          /* 어두운 글자 */
    font-weight: 800 !important;
}

/* 다크 모드 대응 */
#aside_l.on .lnb li a {
    color: rgba(80, 80, 80, 0.5) !important;
    border-color: rgba(150, 150, 150, 0.3) !important;
}
#aside_l.on .lnb li.on a {
    background: rgba(210, 215, 220, 0.85) !important;
    color: #1a1a1a !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;
}

/* 클릭(open) 시 텍스트 펼쳐짐 */
#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;
}

/* open 시 텍스트 표시 */
#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;       /* 기존 8rem → 더 크게 */
    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;
}

/* -----------------------------------------
   9. 푸터 & 기타
----------------------------------------- */
#footer { padding: 4rem 0 5.6rem 0; background: #2b3541; color: #cbd5e0; 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;
    }

    /* ✅ ::before ::after 완전 제거 - span 3개만 사용 */
    .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; }