#header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transition: background-color .5s;
}

#header.show,
#header.hover{
    background-color: #fff;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}

.h1{
    width: 100%;
    height: 110px;
}

.h1 .center{
    width: 92%;
    min-width: 1400px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h1 .center>a{
    display: flex;
    align-items: center;
    justify-content: center;
}

#header.show .h1 .center>a img,
#header.hover .h1 .center>a img{
    content: url(../images/logo_hover.png);
}

.menubox{
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0 60px;
}

ul.main_menu{
    height: 100%;
    display: flex;
    align-items: center;
}

ul.main_menu>li{
    width: 150px;
    height: 100%;
    position: relative;
}

ul.main_menu>li a{
    width: max-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 19px;
    color: #fff;
    font-family: 'Pretendard-Bold', sans-serif;
    transition: color .3s;
}

#header.show ul.main_menu>li a,
#header.hover ul.main_menu>li a{
    color: #454546;
}

ul.main_menu>li a:after{
    content: " ";
    width: 0;
    height: 2px;
    background-color: #72992a;
    position: absolute;
    left: 50%;
    bottom: -1px;
    transition: width .3s, left .3s;
}

ul.main_menu>li:hover a:after{
    width: 100%;
    left: 0;
}

.menu_icon{
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.menu_icon span{
    height: 2px;
    background-color: #fff;
    position: absolute;
    right: 0;
    transition: width .3s, background-color .3s;
}

#header.show .menu_icon span,
#header.hover .menu_icon span{
    background-color: #454546;
}

.menu_icon span:first-child{
    width: 30px;
    top: 0;
}

.menu_icon span:nth-child(2){
    width: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.menu_icon span:last-child{
    width: 20px;
    bottom: 0;
}

.menu_icon:hover span{
    width: 100%;
}

ul.sub_menu{
    width: 100%;
    position: absolute;
    top: 110px;
    left: 0;
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
}

ul.main_menu:hover ul.sub_menu{
    opacity: 1;
    visibility: visible;
    transition: all .3s .2s;
}

ul.sub_menu li{
    font-size: 17px;
    color: #656565;
    font-family: 'Pretendard-Regular', sans-serif;
    margin-bottom: 20px;
    cursor: pointer;
    transition: color .3s;
}

ul.sub_menu li:last-child{
    margin-bottom: 0;
}

ul.sub_menu li:hover{
    color: #72992a;
}

.h2{
    width: 100%;
    height: 200px;
    border-top: 1px solid #d7d7d7;
    display: none;
}






































/* mobile */
@media screen and (max-width: 767px){
    
    .h1{
        height: 60px;
    }
    
    .h1 .center{
        width: 90%;
        min-width: auto;
    }

    .h1 .center>a{
        width: 170px;
    }

    .h1 .center>a img{
        width: 100%;
    }

    .menubox{
        gap: 0;
    }
    
    ul.main_menu{
        display: none;
    }
    
    .menu_icon{
        width: 20px;
        height: 15px;
        cursor: inherit;
    }
    
    .menu_icon span{
        transition: none;
    }
    
    .menu_icon span:first-child{
        width: 20px;
    }
    
    .menu_icon span:nth-child(2){
        width: 10px;
    }
    
    .menu_icon span:last-child{
        width: 15px;
    }
    
    .menu_icon:hover span:first-child{
        width: 20px;
    }

    .menu_icon:hover span:nth-child(2){
        width: 10px;
    }

    .menu_icon:hover span:last-child{
        width: 15px;
    }
    
    ul.sub_menu{
        display: none;
    }
    
    .h2{
        display: none !important;
    }

}
































/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px){

    .h1{
        height: 60px;
    }
    
    .h1 .center{
        width: 90%;
        min-width: auto;
    }

    .h1 .center>a{
        width: 170px;
    }

    .h1 .center>a img{
        width: 100%;
    }

    .menubox{
        gap: 0;
    }
    
    ul.main_menu{
        display: none;
    }
    
    .menu_icon{
        width: 20px;
        height: 15px;
        cursor: inherit;
    }
    
    .menu_icon span{
        transition: none;
    }
    
    .menu_icon span:first-child{
        width: 20px;
    }
    
    .menu_icon span:nth-child(2){
        width: 10px;
    }
    
    .menu_icon span:last-child{
        width: 15px;
    }
    
    .menu_icon:hover span:first-child{
        width: 20px;
    }

    .menu_icon:hover span:nth-child(2){
        width: 10px;
    }

    .menu_icon:hover span:last-child{
        width: 15px;
    }
    
    ul.sub_menu{
        display: none;
    }
    
    .h2{
        display: none !important;
    }

}







































/* pc */
@media screen and (min-width: 1025px) and (max-width: 1400px){
    
    .h1 .center{
        width: 95%;
        min-width: auto;
    }

}