#header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: background-color .5s;
}

#header.hover,
#header.scroll{
    box-shadow: 1px 1px 15px rgba(0, 0, 0, 0.1);
}

#header.hover .h01,
#header.scroll .h01{
    border: 0;
    background-color: #fff;
}

#header.hover .h01 .header_center>a img,
#header.scroll .h01 .header_center>a img{
    content: url(../images/logo_c.png);
}

#header.hover ul.mainmenu>li{
    margin-right: 130px;
}

#header.hover ul.mainmenu>li:last-child{
    margin-right: 0;
}

#header.hover ul.mainmenu>li>a,
#header.scroll ul.mainmenu>li>a{
    color: #111;
    font-family: 'Pretendard-Bold', sans-serif;
}

#header.hover ul.submenu{
    opacity: 1;
    visibility: visible;
    transition: all .3s .3s;
}

#header.hover .h02{
    height: 280px;
    transition: all .5s .2s;
}

.h01{
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: background-color .5s;
}

.header_center{
    width: 93%;
    min-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.h01 .header_center>a{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.mainmenu{
    width: max-content;
    height: 100%;
    display: flex;
    justify-content: space-between;
}

ul.mainmenu>li{
    height: 100%;
    text-align: center;
    margin-right: 40px;
    transition: margin .5s ease-in-out;
}

ul.mainmenu>li:last-child{
    margin-right: 0;
}

ul.mainmenu>li>a{
    font-size: 22px;
    color: #fff;
    font-family: 'Pretendard-SemiBold', sans-serif;
    padding: 0 25px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    position: relative;
}

ul.mainmenu>li>a span{
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: #104704;
    display: block;
    transition: all 0.3s ease-out;
}

ul.mainmenu>li.motion>a span{
    width: 100%;
    left: 0;
}

ul.submenu{
    width: 100%;
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
}

ul.submenu li{
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #111;
    font-family: 'Pretendard-Regular', sans-serif;
    margin-bottom: 15px;
    cursor: pointer;
}

ul.submenu li:last-child{
    margin-bottom: 0;
}

ul.submenu li:hover{
    color: #104704;
    font-family: 'Pretendard-SemiBold', sans-serif;
}

.h02{
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.85);
}
