@charset "utf-8";

/* ================================
   Header 공통
================================ */
header {
    z-index: 100;
    position: fixed;
    top: 0;
    width: 100vw;
    background-color: #fff;
    color: #111;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

#header a {
    text-decoration: none;
    color: #111;
}

#header.hover {
    border-bottom: 1px solid #eeeeee;
    background-color: #fff;
}

/* ================================
   PC Header - h01
================================ */

#header .h01 {
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

#header .h01 .header_logo .header_img {
    display: block;
}

/* ================================
   GNB 메뉴
================================ */
#header .menuarea {
    position: relative;
}

#header .h01 ul.menu {
    display: flex;
    align-items: center;
    gap: 2vw;
    height: 80px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .h01 ul.menu>li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

#header .h01 ul.menu>li>a {
    color: #111;
    white-space: nowrap;
    transition: color 0.2s;
}

#header .h01 ul.menu>li>a:hover {
    color: #555;
}

/* ================================
   드롭다운 메가메뉴
================================ */
#header .h01 dl {
    display: none;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 20px 0;
    text-align: center;
    z-index: 95;
    background-color: transparent;
    min-width: 150px;
}

#header .h01 dl dt {
    margin-bottom: 16px;
}

#header .h01 dl dt:last-child {
    margin-bottom: 0;
}

#header .h01 dl dt a {
    color: #444;
    font-size: 16px;
    transition: color 0.2s;
    position: relative;
    display: inline-block;
}

#header .h01 dl dt a:hover {
    color: #111;
}

#header .h01 dl dt a:hover::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    left: 0;
    bottom: -2px;
    background-color: #111;
}

/* gnb blur 배경 */
#header .gnb_bg {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: 360px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: -1;
}

/* ================================
   Mobile Header - 기본 숨김
================================ */
#m_header {
    display: none;
}

#fixed {
    position: fixed;
    z-index: 999;
    right: 3%;
    bottom: 5%;

    display: flex;
    justify-content: center;
    align-items: center;
}

#fixed .top {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px;
    background-color: #2D2D2D;
    color: #F8F9FA;
    border-radius: 50%;
    cursor: pointer;
}

/* ================================
   1550px 이하 → 햄버거
================================ */
@media screen and (max-width: 1550px) {

    /* PC 헤더 숨김 */
    #header .header_center {
        display: none;
    }

    /* 모바일 헤더 표시 */
    #m_header {
        display: block;
        width: 100%;
        height: 80px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        background-color: #fff;
        box-sizing: border-box;
        border-bottom: 1px solid #eee;
    }

    #m_header .header_center {
        width: 90%;
        margin: 0 auto;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #m_header .header_center>a img {
        height: 28px;
        display: block;
    }

    /* 햄버거 아이콘 */
    .m_menu_icon {
        width: 26px;
        height: 18px;
        position: relative;
        cursor: pointer;
    }

    .m_menu_icon span {
        width: 26px;
        height: 2px;
        background-color: #111;
        display: block;
        position: absolute;
        transition: transform 0.4s, opacity 0.3s;
    }

    .m_menu_icon span:first-child {
        top: 0;
    }

    .m_menu_icon span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .m_menu_icon span:last-child {
        bottom: 0;
    }

    .m_menu_icon.on span:first-child {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .m_menu_icon.on span:nth-child(2) {
        opacity: 0;
    }

    .m_menu_icon.on span:last-child {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* 모바일 메뉴 박스 */
    .m_menu_box {
        width: 100%;
        height: calc(100vh - 80px);
        position: fixed;
        top: 80px;
        left: 0;
        background-color: rgba(255, 255, 255, 0.97);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.5s;
    }

    .m_menu_box.on {
        transform: translateX(0);
    }

    ul.m_main_menu {
        width: 60%;
        margin: 60px auto;
        list-style: none;
        padding: 0;
    }

    ul.m_main_menu>li {
        margin-bottom: 30px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    ul.m_main_menu>li>p {
        font-size: 18px;
        font-weight: 700;
        color: #111;
        cursor: pointer;
        padding: 10px 0;
    }

    ul.m_sub_menu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    ul.m_sub_menu li {
        padding: 8px 10px;
        font-size: 14px;
        color: #555;
        cursor: pointer;
    }

    ul.m_sub_menu li:hover {
        color: #111;
    }
}

/* ================================
   Mobile (767px 이하) 추가 조정
================================ */
@media screen and (max-width: 767px) {

    #m_header {
        height: 60px;
    }

    .m_menu_box {
        top: 60px;
        height: calc(100vh - 60px);
    }

    #m_header .header_center>a img {
        height: 22px;
    }

    ul.m_main_menu {
        width: 80%;
        margin: 40px auto;
    }
}