#header {
    width: 100%;
    height: 100px;
    padding: 0 5%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
}

#header>a {
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.mainmenu {
    display: flex;
    height: 100%;
}

ul.mainmenu>li {
    margin-right: 50px;
    height: 100%;
    position: relative;
}

ul.mainmenu>li:last-child {
    margin-right: 0;
}

ul.mainmenu>li a {
    font-weight: 500;
    font-size: 22px;
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
}

ul.submenu {
    width: 180px;
    /* background-color: rgba(0, 17, 56, 0.6); */
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 25px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .5s;
}

ul.submenu.on {
    opacity: 1;
    visibility: visible;
}

ul.submenu li {
    width: 100%;
    margin-bottom: 20px;
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
}

ul.submenu li:last-child {
    margin-bottom: 0;
}

#m_header{
    display: none;
}




















/* mobile */
@media screen and (max-width: 767px){

    #header{
        display: none;
    }

    #m_header{
        display: block;
        width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        transition: background-color .5s;
    }

    #m_header.scroll{
        background-color: rgba(0, 0, 0, 0.4);
    }

    #m_header .center{
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #m_header .center>a{
        width: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #m_header .center>a img{
        width: 100%;
    }

    #m_header .center>i{
        font-size: 26px;
        color: #fff;
    }

    .menubox{
        width: 280px;
        height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        background-color: #111;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }

    .menubox.on{
        opacity: 1;
        visibility: visible;
    }

    ul.m_main{
        display: table;
        margin: 55% auto 0;
    }

    ul.m_main>li{
        margin-bottom: 40px;
    }

    ul.m_main>li:last-child{
        margin-bottom: 0;
    }

    ul.m_main>li>a{
        font-size: 20px;
        color: #fff;
        font-family: 'GmarketSansBold', sans-serif;
    }

    ul.m_sub{
        padding-left: 18px;
        display: none;
    }

    ul.m_sub li{
        padding-top: 20px;
        color: #fff;
        font-family: 'GmarketSansMedium', sans-serif;
        font-size: 16px;
    }

    .menubox>i.close_btn{
        position: absolute;
        top: 20px;
        right: 5%;
        color: #fff;
        font-size: 24px;
    }


}























/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px){

    #header{
        display: none;
    }

    #m_header{
        display: block;
        width: 100%;
        height: 70px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        transition: background-color .5s;
    }

    #m_header.scroll{
        background-color: rgba(0, 0, 0, 0.4);
    }

    #m_header .center{
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #m_header .center>a{
        width: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #m_header .center>a img{
        width: 100%;
    }

    #m_header .center>i{
        font-size: 26px;
        color: #fff;
    }

    .menubox{
        width: 40%;
        height: 100%;
        position: fixed;
        top: 0;
        right: 0;
        background-color: #111;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }

    .menubox.on{
        opacity: 1;
        visibility: visible;
    }

    ul.m_main{
        display: table;
        margin: 60% auto 0;
    }

    ul.m_main>li{
        margin-bottom: 40px;
    }

    ul.m_main>li:last-child{
        margin-bottom: 0;
    }

    ul.m_main>li>a{
        font-size: 20px;
        color: #fff;
        font-family: 'GmarketSansBold', sans-serif;
    }

    ul.m_sub{
        padding-left: 18px;
        display: none;
    }

    ul.m_sub li{
        padding-top: 20px;
        color: #fff;
        font-family: 'GmarketSansMedium', sans-serif;
        font-size: 16px;
    }

    .menubox>i.close_btn{
        position: absolute;
        top: 20px;
        right: 9%;
        color: #fff;
        font-size: 24px;
    }

}
