/* 헤더(head 블럭) 스타일 — 2026-07-28 index.html 의 <style> 에서 분리.
   index.html 4행 add_stylesheet() 가 이 파일을 부른다. 수정하면 filemtime 으로 캐시가 자동 갱신된다. */

    :root {
        --ease-custom: cubic-bezier(0.16, 1, 0.3, 1);
        --header-height: 80px;
        --dropdown-height: 210px; 
        --theme-color: #333; 
    }

.mobileMenu_style1 .mobileMenu_top .close {
    right: 20px !important;
	}



    /* =========================================
       [PC] 헤더 스타일 (1024px 이상)
       ========================================= */
    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--header-height);
        background-color: var(--c-bg);
        z-index: 50;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: height 0.5s var(--ease-custom);
        overflow: hidden;
    }

    .nav-container.active {
        height: calc(var(--header-height) + var(--dropdown-height));
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: var(--header-height);
        width: 100%;
        padding: 0 80px;
        position: relative;
        z-index: 52;
        transition: padding 0.8s var(--ease-custom);
        transition-delay: 0.3s;
    }

    .nav-container.active .nav-inner {
        padding: 0 30px;
    }

    /* 로고 */
    .logo {
        font-weight: 700;
        font-size: 1.5rem;
        color: #111;
        white-space: nowrap;
        z-index: 55; 
        position: relative;
        transition: transform 0.8s var(--ease-custom);
        transition-delay: 0.3s;
    }
    .logo a { display: inline-block; vertical-align: middle; }
    .logo img { height: 45px; width: auto; vertical-align: middle; }

    /* GNB 메뉴 영역 */
    .gnb-area {
        display: flex;
        height: 100%;
        gap: 50px;
        flex-grow: 0; 
        margin: 0 auto;
        transition: gap 0.8s var(--ease-custom);
        transition-delay: 0.3s;
    }

    .nav-container.active .gnb-area {
        gap: 80px;
    }

    .menu-item {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 15px; 
        cursor: pointer;
    }

    /* 대메뉴 텍스트 (문법 오류 수정 완료) */
    .menu-link {
        font-size: 1.1rem;
        color: #333;
        position: relative;
        padding-bottom: 4px;
        text-decoration: none;
        transition: color 0.3s;
		font-weight: 900;
    }

    /* 대메뉴 클릭 영역 — 글자 폭만 눌리던 것을 메뉴칸 전체로 넓힌다(모양 변화 없음) */
    .menu-link::before {
        content: '';
        position: absolute;
        top: -28px;
        bottom: -28px;
        left: -15px;
        right: -15px;
    }

    .menu-link::after {
        content: '';
        position: absolute;
        z-index: 1;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background-color: var(--theme-color);
        transition: width 0.4s var(--ease-custom);
    }

    .menu-item:hover .menu-link,
    .menu-link.active {
        color: var(--theme-color);
    }

    .menu-item:hover .menu-link::after {
        width: 100%;
    }

    /* 서브메뉴 */
    .submenu-wrapper {
        position: absolute;
        top: var(--header-height);
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: auto; 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 15px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-custom);
        pointer-events: none;
    }

    .nav-container.active .submenu-wrapper {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        animation: slideUpFade 0.5s var(--ease-custom) forwards;
        animation-delay: 0.05s;
    }

    @keyframes slideUpFade {
        from { opacity: 0; transform: translateX(-50%) translateY(10px); }
        to { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    /* 서브메뉴 텍스트 (문법 오류 수정 완료) */
    .submenu-link {
        font-size: 0.9rem;
        color: #888;
        padding: 7px 0;
        text-align: center;
        width: 100%;
        display: block;
        text-decoration: none;
        transition: all 0.2s;
		font-weight: 900;
    }

    .submenu-link:hover {
        color: var(--theme-color);
        font-weight: 700;
        transform: scale(1.05);
    }

    .head-right { display: flex; align-items: center; gap: 16px; }

    /* 언어 전환 KO/EN - pqs.co.kr 원본 이식(2026-07-28). 원본은 화면 고정이라 헤더 안 배치로만 바꿨다. */
/* 디자인: 헤더보다 높은 우선순위(z-index) 및 최상단 고정 */
.custom-translate-container {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    transition: box-shadow .28s ease, border-color .28s ease;
}
/* 2026-08-05: 마우스를 올리면 그림자가 부드럽게 걷히도록.
   사라지는 쪽도 none이 아니라 투명값으로 둬야 transition이 걸린다. */
.custom-translate-container:hover {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    border-color: #e2e6ec;
}
@media (max-width: 1024px) { .custom-translate-container { display: none; } }

.lang-btn {
    background: none; border: none; padding: 8px 12px;
    font-size: 13px; font-weight: 800; color: #ccc; 
    cursor: pointer; outline: none;
}
/* 클릭·포커스 때 브라우저가 그리는 검은 사각 테두리 제거 */
.lang-btn:focus,
.lang-btn:focus-visible,
.lang-btn:active {
    outline: none !important;
    border: 0 !important;
    box-shadow: none !important;
}
.lang-btn::-moz-focus-inner { border: 0 !important; padding: 0 !important; }

/* 활성화 상태: 파란색 */
.lang-btn.active {
    color: #007AFF !important;
    text-decoration: underline !important;
    text-underline-offset: 5px;
}
.divider { width: 1px; height: 10px; background: #eee; }

/* 구글 UI 강제 배제 */
body { top: 0 !important; position: static !important; }
.skiptranslate, .goog-te-banner-frame, #goog-gt-tt { display: none !important; }

    /* 온라인 문의 버튼 */
    .inquiry-btn {
        background-color: #111;
        color: var(--c-bg);
        padding: 12px 28px;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: 500;
        white-space: nowrap;
        text-decoration: none;
        display: inline-block;
        transition: background-color 0.3s, transform 0.8s var(--ease-custom);
        transition-delay: 0s, 0.3s;
        z-index: 55; 
        position: relative; 
    }

    .inquiry-btn:hover {
        background-color: var(--theme-color);
        color: var(--c-bg) !important; 
    }

    /* =========================================
       [Mobile] 모바일 헤더 및 메뉴 (1023px 이하)
       ========================================= */
    .mobile-header-bar {
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--c-bg);
        border-bottom: 1px solid #eee;
        z-index: 1000;
        padding: 0 20px;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-logo img {
        height: 35px;
        width: auto;
        vertical-align: middle;
    }

    .mobile-hamburger {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        position: relative;
        z-index: 1001; 
    }

    .mobileMenu_style1 {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--c-bg);
        z-index: 3000;
        transform: translateX(100%); 
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        visibility: hidden;
    }

    .mobileMenu_style1.show {
        transform: translateX(0);
        visibility: visible;
    }

    .light_box {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .light_box.show {
        opacity: 1;
        visibility: visible;
    }

    .mobileMenu_top {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #333; 
        border-bottom: 1px solid #444;
    }

    .mobileMenu_top_content {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 15px;
    }
    .mobileMenu_top_content li a {
        color: var(--c-bg); 
        font-size: 0.9rem;
        text-decoration: none;
        font-weight: 500;
    }

    /* 닫기 버튼: 왼쪽으로 더 이동 (margin-right 25px) */
    .mobileMenu_top .close {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--c-bg) !important; 
        text-decoration: none;
        z-index: 3001;
        margin-right: 25px; /* 왼쪽으로 더 이동 */
    }

    .mobile_menu_content {
        padding: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .navclass {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile_sub_menu {
        border-bottom: 1px solid #f1f1f1;
        position: relative;
    }

    .mobile_sub_menu > a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
        text-decoration: none;
    }

    .mobile_sublink_button {
        position: absolute;
        top: 0;
        right: 0;
        width: 60px; 
        height: 55px; 
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10; 
    }
    .mobile_sublink_button iconify-icon {
        font-size: 1.2rem;
        color: #999;
        pointer-events: none; 
    }

    .mobile_sub_nvi {
        display: none; 
        background: #fcfcfc;
        padding: 10px 0;
    }
    
    .mobile_sub_nvi.active {
        display: block;
    }

    .mobile_sub_nvi ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .mobile_sub_nvi li a {
        display: block;
        padding: 8px 30px;
        font-size: 0.9rem;
        color: #666;
        text-decoration: none;
    }

    /* =========================================
       [Media Queries] 반응형 분기점 처리
       ========================================= */

    @media (max-width: 1240px) {
        .inquiry-btn {
            display: none !important;
        }
    }

    @media (max-width: 1023px) {
        .nav-container {
            display: none !important;
        }
        .mobile-header-bar {
            display: flex !important;
        }
    }

    @media (min-width: 1024px) {
        .mobile-header-bar,
        .mobileMenu_style1,
        .light_box {
            display: none !important;
        }
    }
