#hd{
    position: fixed !important;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 130px;
    z-index: 120;
    
}

/* #hd:hover{
    background: rgba(255,255,255, 1);
    transition: all 0.5s ease-in-out;
    height: 480px;
} */

#hd:hover #gnb {
    background-color: #fff;
    height: 480px;
}
#hd:hover #gnb .gnb_2dul{
    height: 480px;
}

#hd.active #logo .logo_w{
    display: none;
}

#hd.on .gnb_1dli a{
    /* -webkit-text-stroke: 0.5px #000; */
    color: #000;
    text-shadow: 1px 1px 1px #fff;
}

#hd.active .gnb_1dli a{
    color: #21333f;
}

#hd.active .gnb_1dli a{
    text-shadow: unset;
}


#hd.active .logo_b{
    display: block;
}

#logo.on .logo_w{
    display: block;
}

#logo{
    position: fixed;
    left: 55px;
    top: 55px;
    width: 215px;
}

#logo a{
    width: 100%;
    height: 100%;
}

#logo a img{
    width: 100%;
}

#gnb{
    width: 100%;
    transition: all 0.5s ease-in-out;
    height: 125px;
    overflow: hidden;
}


#hd.on .logo_b{
    display: block;
}

#hd .logo_w{
    display: none;
}

#hd.on .logo_w{
    display: none;
}

.logo_b{
    display: none;
}

.logo_m{
    display: none;
}


#gnb_1dul{
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

.gnb_1dli{

}

.gnb_1dli{
    text-align: center;
    font-family: 'Dela Gothic One', cursive;
    font-size: 18px;
    color: #fff;
    padding-top: 15px;
}

.gnb_1dli a{
    color: #fff;
    text-shadow: 1px 1px 1px black;
    padding: 0 20px;
}

.gnb_2dul{
    width: 100%;
    font-family: 'NanumBarunGothic', sans-serif;
    padding-top: 30px;
    height: 0;
    transition: all 0.5s ease-in-out;
}

.gnb_2dli{
    padding: 4px 0;
}

.gnb_2dli a {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #21333f;
    opacity: 0.4;
    font-weight: 600;
}

/* hover */



@media screen and (max-width: 1366px) {
    #hd:hover #gnb{
        height: auto;
    }
    #hd:hover #gnb .gnb_2dul{
        height: auto
    }

    #hd{
      height: 0;
    }

    #hd.open #gnb{
        right: 0;
        overflow: auto;
        height: 100vh;
    }

    #hd.open #btn-menu .line.no1{
        transform: rotate(45deg);
        top: 50%;
    }

    #hd.open #btn-menu .line.no2{
        opacity: 0;
    }

    #hd.open #btn-menu .line.no3{
        transform: rotate(-45deg);
        top: 50%;
    }
    #btn-menu{
        position: fixed;
        right: 30px;
        top: 40px;
        width: 30px;
        height: 15px;
        z-index: 1500;
        cursor: pointer;
    }

    #hd.open #btn-menu .line{
        background-color: #000;
    }

    #hd.on #btn-menu .line{
        background-color: #000;
    }

    #btn-menu .wrapper{
        height: 100%;
    }

    #btn-menu .line{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
        transition: all 0.5s ease-in-out;
    }
    #btn-menu .line.no1{}
    #btn-menu .line.no2{
        top: 50%;
    }
    #btn-menu .line.no3{
        top: 100%;
    }

    #gnb{
        position: absolute;
        right: -100%;
        top: 0;
        width: 30%;
        height: 100vh;
        background-color: rgba(255,255,255, 1);
        transition: all 0.5s ease-in-out;
    }

    #gnb_1dul{
        flex-direction: column;
        padding-top: 70px;
        height: 100vh;
        overflow: auto;
    }

    .gnb_1dli{
        color: #000;

    }

    .gnb_1dli a{
        color: #000;
    }

    .gnb_1dli>a{
        display: block;
        margin-bottom: 15px;
    }

    .gnb_2dul{
        height: 100%;
        padding-top: 0;
        overflow: unset;
    }

    #hd:hover{
        height: 0;
        background-color: transparent;
    }

    #hd:hover .gnb_2dul{
        height: unset
    }

    #logo{
        top: 29px;
        width: 155px;
    }

}


@media screen and (max-width: 768px){
    #logo{
        top:35px;
        width: 140px;
        left: 30px;
    };

    #gnb{
        width: 45%;
    }

}


@media screen and (max-width: 560px) {
    #hd{
        
    }

    #gnb{
        width: 80%;
        overflow: auto;
    }

    #logo{
        width: 80px;
        left: 15px;
        top: 26px;
    }

    #hd .logo_w{
        display: block;
    }

    #btn-menu{
        right: 15px;
        top: 30px;
        width: 20px;
        height: 10px;
    }
    /* #hd.on .logo_w{
        display: none;
    } */
}