#hd{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    z-index: 9999;
    height: 104px;
    padding: 20px 50px;
    transition: 1s ease;
    -webkit-transition: 1s ease;
    overflow: hidden;
}

#hd #logo{
    width: 100px;
    height: 78px;
    position: relative;
    transition: 1s ease;
    -webkit-transition: 1s ease;
}

#hd .logo1{
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
}

#hd.active{
    /* background: rgba(255, 255, 255, 0.8); */
}



#hd #btn-menu{
    position: absolute;
    top: 30px;
    right: 50px;
    color: #002749;
    font-size: 30px;
    font-style: italic;
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
    cursor: pointer;
    z-index: 9999;
}

#hd #btn-menu .wrapper>div{
    float: left;
}

#hd #btn-menu .linebox{
    width: 35px;
    height: 18px;
    margin-right: 17px;
    padding-top: 12px;
}

#hd #btn-menu .linebox>div{
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
    background: #002749;
    height: 2px;
    margin: 4px 0px;
    width: 26px;
}

#hd #btn-menu .linebox .no1{
    margin-left: 2px;
}

#hd #btn-menu .linebox .no2{
    margin-left: 8px;
}


#hd #gnb a{
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #002749;
    text-transform: uppercase;
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
}

#hd #gnb>ul>li>ul>li{
    padding: 2px 0;
}

#hd #gnb>ul>li>ul a{
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 100;
}

.color-active #hd #gnb a,
.color-active #hd #btn-menu{
    color: #fff;
}

.color-active #hd.on #gnb a,
.color-active #hd.on #btn-menu{
    color: #002749;
}

.color-active #hd.on #btn-menu .linebox>div{
    background: #002749;
}


.color-active #hd #btn-menu .linebox>div{
    background: #fff;
}

.color-active .logo1{
    display: none;
}

.color-active .logo2{
    display: block;
}

.logo2{
    display: none;
}

.color-active #hd:hover .logo1{
    display: block;
}

.color-active #hd:hover .logo2{
    display: none;
}

/* #hd.active #gnb a,
#hd.active #btn-menu{
    color: #fff;
}

#hd.active #btn-menu .linebox>div,
#hd.active #gnb>ul>li:after{
    background: #fff;
} */





@media(min-width: 1200px){
    #hd:hover{
        background: rgba(255, 255, 255, 0.8);
    }

    #hd:hover{
        height: 300px;
    }

    #hd:hover #gnb a,
    #hd:hover #btn-menu{
        color: #002749;
    }

    #hd:hover #btn-menu .linebox>div,
    #hd:hover #gnb>ul>li:after{
        background: #002749;
    }

    #hd #btn-menu{
        cursor: default;
    }

    #hd #gnb{
        position: absolute;
        top: 25px;
        right: 200px;
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd #gnb>ul>li{
        float: left;
        padding: 20px 43px;
        position: relative;
    }

    #hd #gnb>ul>li:after{
        content: "";
        display: block;
        width: 4px;
        height: 1px;
        background: #002749;
        position: absolute;
        top: 30px;
        right: 0;
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd #gnb>ul>li:last-child:after{
        display: none;
    }

    #hd #gnb>ul>li>ul{
        position: absolute;
        left: 40px;
        top: 50px;
        width: 140px;
        letter-spacing: -1px;
        font-size: 13px;
        opacity: 0;
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd:hover #gnb>ul>li>ul{
        opacity: 1;
    }

    #hd.active{
        height: 85px;
    }

    #hd.active:hover{
        height: 300px;
    }

    #hd.active #logo{
        width: 60px;
        height: 50px;
    }

    #hd.active #btn-menu{
        top: 20px;
    }

    #hd.active #gnb{
        top: 15px;
    }

    .color-active #hd #gnb>ul>li:after{
        background: #fff;
    }

    .color-active #hd:hover #gnb>ul>li:after{
        background: #002749;
    }
}

@media(max-width: 1199px){
    #hd.active.on,
    #hd.on{
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
    }

    /* #hd.on #gnb a,
    #hd.on #btn-menu{
        color: #fff;
    }

    #hd.on #btn-menu .linebox>div,
    #hd.on #gnb>ul>li:after{
        background: #fff;
    } */

    #hd #gnb{
        text-align: right;
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        overflow: auto;
        left: 0;
        opacity: 0;
        visibility: collapse;
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd.on #gnb{
        opacity: 1;
        visibility: visible;
        transition: 0.5s ease 0.5s;
        -webkit-transition: 0.5s ease 0.5s;
    }

    #hd,
    #hd #logo{
        transition: 0.5s ease 0.5s;
        -webkit-transition: 0.5s ease 0.5s;
    }

    #hd.on{
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd #gnb>ul{
        padding: 100px 50px;
        padding-top: 150px;
        padding-bottom: 50px;
    }

    #hd #gnb>ul>li{
        margin-bottom: 30px;
    }

    #hd #gnb>ul>li>a{
        font-size: 25px;
        padding-bottom: 2px;
        border-bottom: 1px solid rgba(0, 39, 73, 0.5);
    }

    #hd #gnb>ul>li>ul{
        width: 50%;
        margin-left: 50%;
        margin-top: 10px;
    }

    #hd #gnb>ul>li>ul>li{
        display: inline-block;
        padding: 2px 7px;
    }

    #hd #gnb>ul>li>ul a{
        font-weight: 300;
    }

    #hd.active{
        height: 80px;
        padding-top: 15px;
    }

    #hd.active #logo{
        width: 60px;
    }

    #hd.active #btn-menu{
        top: 20px;
    }

}

@media(max-width: 768px){
    #hd{
        padding: 10px 20px;
    }

    #hd #logo{
        width: 60px;
        height: 50px;
    }

    #hd.active{
        height: 63px;
    }

    #hd.active #logo{
        width: 40px;
        height: 40px;
    }

    #hd #btn-menu{
        top: 20px;
        right: 20px;
        font-size: 16px;
    }

    #hd #btn-menu .linebox{
        padding-top: 2px;
        margin-right: 2px;
    }

    #hd #btn-menu .linebox>div{
        width: 20px;
    }

    #hd #gnb>ul{
        padding-top: 100px;
    }

    #hd #gnb>ul>li>ul{
        width: 100%;
        margin-left: 0;
    }

    #hd #gnb>ul>li>a{
        font-size: 20px;
    }

    .color-active #hd.on #gnb a{
        color: #002748;
    }
}
