@charset "utf-8";

/* 변수 설정: 보라색 포인트를 한 곳에서 관리하세요 */
:root {
    --primary: #8e44ad; /* 메인 퍼플 컬러 */
    --primary-light: #a29bfe; /* 연한 퍼플 (호버용) */
}

#shGnb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 130px;
    padding: 20px 170px 0;
    transition: all .2s;
}

/* 메인 상태: 블랙 투명 -> 화이트 투명 또는 완전 화이트 */
#shGnb.main {
    background: rgba(255, 255, 255, 0.9); /* 화이트 반투명 */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 스크롤 시 또는 온 상태 */
#shGnb.on {
    border-bottom: 1px solid #eee;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 약간의 그림자로 입체감 */
}

.sh_lnb_bg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 320px;
    background: #fff;
}

/* 로고 */
#shGnb .sh_logo {
    position: relative;
    z-index: 20;
}

/* 대분류 */
#shGnb .sh_nav > ul > li {
    float: left;
    position: relative;
    line-height: 110px;
}

/* 텍스트 컬러: 화이트 -> 다크 그레이(#333) */
#shGnb .sh_nav > ul > li > a {
    position: relative;
    z-index: 20;
    display: block;
    padding: 0 27.5px;
    font-size: 17px;
    color: #333; /* 밝은 배경에 맞춰 어둡게 변경 */
    transition: all .2s;
    font-family: var(--eng-font), var(--ko-font);
}

#shGnb .sh_nav > ul > li:last-child > a {
    padding-right: 0;
}

#shGnb.on .sh_nav > ul > li > a {
    padding: 0 35px;
    color: #111;
}

/* 호버 시 보라색 포인트 */
#shGnb .sh_nav > ul > li:hover > a {
    color: var(--primary) !important;
}

#shGnb .sh_nav > ul > li:hover .sh_lnb_s:before {
    width: calc(100% + 40px);
    opacity: 1;
}

#shGnb .sh_nav > ul > li:hover .sh_lnb_s a {
    color: #777;
}

#shGnb .sh_nav > ul > li:hover .sh_lnb_s a:hover {
    color: var(--primary);
}

/* 소분류 (드롭다운) */
#shGnb .sh_lnb_s {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    width: max-content;
    padding-top: 25px;
    min-height: 145px;
}

#shGnb .sh_lnb_s:before {
    opacity: 0;
    display: block;
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    z-index: -1;
    transform: translateX(-50%);
    width: 0;
    height: 2px; /* 라인 두께 살짝 보강 */
    background: var(--primary); /* 보라색 라인 */
    transition: all .2s;
}

#shGnb .sh_lnb_s li a {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
    color: #555;
    transition: all .2s;
}

#shGnb .sh_lnb_s li a:hover {
    color: var(--primary);
}

/* 모바일 메뉴 버튼 */
#topmenuM {
    display: none;
    width: 100%;
    line-height: 1.8;
    padding: 15px;
    background-color: #fff !important; /* 모바일 헤더 화이트로 변경 */
    border-bottom: 1px solid #eee;
}

#m_navBtn span::before,
#m_navBtn span::after {
    background-color: #333; /* 햄버거 버튼 색상 어둡게 */
}

/* 모바일 메뉴 열렸을 때 */
#navWrap .inner {
    background-color: #fff;
}

/* 모바일 메뉴 대분류 호버/활성화 */
#topmenuM .m_lnb .m_bmenu.on {
    color: var(--primary);
}

/* 반응형 수정 */
@media (max-width:1024px) {
    #shGnb { display: none; }
    #topmenuM { 
        display: flex; 
        padding: 15px; 
        background-color: #ffffff !important; /* 블랙 -> 화이트 */
    }
    #navWrap { display: none; }
}