.sub #top_logo img {
    filter: invert(1);
}

#topmenu_wrapper {
    position: relative;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 95px;
    margin: 0 auto;
}

/* Top Menu */
#top_nav {
    margin-left: auto;
}
#top_nav li {
    float: left;
    position: relative;
    color: #dfdfdf;
    font-size: 16px;
    font-weight: 600;
}
#top_nav li a {
    display: block;
    padding: 0 40px;
    color: #fff;
    line-height: 100px;
    zoom: 1;
}
.sub #top_nav li a {
    color: #111;
}
#top_nav ul {
    display: none;
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 130px;
    width: max-content;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
}
#top_nav ul li {
    float: none;
    margin-left: 0;
    font-size: 14px;
    text-align: center;
}
#top_nav ul a {
    display: block;
    padding: 0;
    color: #fff;
    line-height: 28px;
    text-transform: uppercase;
}
.sub #top_nav ul a {
    color: #fff;
}

/* 상단 버튼 및 오픈메뉴 */
#topmenuM {
    display: none;
    width: 100%;
    line-height: 1.8;
    padding: 15px;
}
#m_navBtn {
    position: absolute;
    top: 50%;
    right: 15px;
    z-index: 30;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
}
#m_navBtn span {
    display: block;
    position: relative;
    top: 50%;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}
#m_navBtn span::before {
    display: block;
    position: absolute;
    top: -6px;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    content: '';
}
#m_navBtn span::after {
    display: block;
    position: absolute;
    top: 6px;
    right: 0%;
    width: 40%;
    height: 100%;
    background-color: var(--primary);
    content: '';
}
#m_navBtn.on {
    position: fixed;
    top: 27px;
}
#m_navBtn.on span:before {
    top: 0;
    right: -4px;
    transform: rotate(45deg);
    background-color: #000;
}
#m_navBtn.on span:after {
    top: 0;
    right: -4px;
    width: 100%;
    transform: rotate(-45deg);
    background-color: #222;
}
#navWrap {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 15;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}
#navWrap .inner {
    overflow-y: scroll;
    opacity: 0;
    position: fixed;
    right: -40px;
    top: 0;
    z-index: 999;
    min-width: 300px;
    width: 75%;
    height: 100%;
    padding: 60px 0;
    background-color: #fff;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
}
#navWrap.on .inner {
    opacity: 1;
    right: 0;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
}
#navWrap .inner:before,
#navWrap .inner:after {
    opacity: 0;
    display: block;
    position: fixed;
    top: 0;
    right: -40px;
    z-index: 1;
    content: '';
    min-width: 300px;
    width: 70%;
    height: 60px;
    background-color: #fff;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
}
#navWrap .inner:after {
    top: auto;
    bottom: 0;
}
#navWrap.on .inner:before,
#navWrap.on .inner:after {
    opacity: 1;
    right: 0;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
}
#navWrap .inner .mo_hd_copy {
    position: fixed;
    right: 0;
    bottom: 15px;
    z-index: 2;
    min-width: 300px;
    width: 70%;
    font-size: 12px;
    text-align: center;
    color: #888;
}
#navWrap .user_tip {
    padding: 10px 20px;
    background-color: #f5f5f5;
}
#navWrap .user_tip li {
    display: inline-block;
}
#navWrap .user_tip li + li {
    margin-left: 10px;
}

/* 대분류 */
#topmenuM .m_lnb .m_bmenu {
    display: block;
    position: relative;
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: none;
    border-bottom: 1px solid #ddd;
    background: none;
    font-size: 16px;
    line-height: 52px;
    color: #222;
    text-align: left;
    font-weight: 500;
    font-family: 'Noto Sans KR';
}
#topmenuM .m_lnb .m_bmenu:after {
    float: right;
    content: '\f107';
    font-family: 'fontawesome';
}
#topmenuM .m_lnb .m_bmenu.on:after {
    content: '\f106';
}

/* 소분류 */
#topmenuM .m_smenu {
    display: none;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f2f3f5;
}
#topmenuM .m_smenu li a {
    font-size: 14px;
    color: #777;
}

/* 모바일 회원 메뉴 */
.m_member_menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}
.m_member_menu .m_member_link {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s;
}
.m_member_menu .m_member_link:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* 회원 메뉴 */
#top_member_menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}
#top_member_menu .member_link {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s;
}
.sub #top_member_menu .member_link {
    color: #111;
    border-color: rgba(0, 0, 0, 0.2);
}
#top_member_menu .member_link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.sub #top_member_menu .member_link:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

/* 반응형 [s] */
@media (hover: hover) {
    #top_nav > li > a:hover {
        color: #aaa;
        transition: all 0.3s;
    }
    #top_nav ul a:hover {
        opacity: 0.75;
    }
}
@media (max-width: 1024px) {
    #topmenu_wrapper {
        display: none;
    }
    #topmenuM {
        display: block;
    }
    #navWrap {
        display: none;
    }
    #top_member_menu {
        display: none;
    }
}
/* 반응형 [e] */
