#hd{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    height: 80px;
    font-family: 'arita-l';
    z-index: 9999;
}

#hd:after{
    content: "";
    position: absolute;
    left: 0;
    top: -150px;
    right: 0;
    height: 250px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
    z-index: 0;
    transition: 1s ease;
    -webkit-transition: 1s ease;
}

#hd:hover:after{
    height: 350px;
}

#hd #logo{
    position: absolute;
    left: 30px;
    top: 15px;
    z-index: 9999;
}

@keyframes btnEffect{
    0%{
        opacity: 1;
        transform: translateX(-50%) translateY(-50%) scale(1);
    }

    100%{
        opacity: 0;
        transform: translateX(-50%) translateY(-50%) scale(1.3);
    }
}

#hd #btn-reserve{
    position: absolute;
    right: 25px;
    top: 25px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 10px;
    background: #000;
    border: 1px solid #000;
    border-radius: 100%;
    text-align: center;
    z-index: 9999;
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
}

#hd #btn-reserve:before{
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: rgba(0, 0, 0, 1);
    width: 50px;
    height: 50px;
    border-radius: 100%;
    z-index: -1;
    animation: btnEffect 1s ease infinite;
}

#hd #btn-reserve:hover{
    background: #fff;
}

#hd #btn-reserve:hover a{
    color: #000;
    opacity: 1;
}

#hd #btn-reserve a{
    color: #fff;
    display: block;
    transition: 0.5s ease;
    -webkit-transition: 0.5s ease;
}

#gnb,
#gnb a{
    color: #fff;
}


@media(min-width: 769px){

    #gnb{
        text-align: center;
        position: relative;
        padding-top: 17.5px;
        z-index: 10;
    }

    #gnb>ul{
        display: inline-block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        padding: 0 80px;
    }

    #gnb>ul>li{
        float: left;
        position: relative;
    }

    #gnb>ul>li.home{
        padding-right: 10px;
    }

    #gnb>ul>li>a{
        position: relative;
        display: block;
        padding: 12.5px;
    }

    #gnb>ul>li:not(.home)>a:before{
        content: ".";
        position: absolute;
        left: 0;
        bottom: 13px;
        display: block;
    }

    #gnb>ul>li>ul{
        position: absolute;
        top: 45px;
        left: 0;
        display: none;
        width: 150px;
        text-align: left;
        padding: 10px;
        font-size: 12px;
    }

    #gnb>ul>li:hover>ul{
        display: block;
    }

    #gnb>ul>li>ul>li{
        padding: 2px 0;
    }
}

@media(max-width: 996px){
    #hd #btn-reserve{
        top: 20px;
    }

    #gnb>ul{
        padding: 0;
    }
}

@media(max-width: 768px){
    #hd:hover:after{
        height: 0px;
    }
    
    #hd #btn-reserve{
        right: 15px;
        top: 15px;
        border: 1px solid #000;
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd.on #btn-reserve{
        border: 1px solid #fff;
    }

    #btn-menu{
        position: absolute;
        right: 75px;
        top: 15px;
        width: 50px;
        height: 50px;
        border-radius: 100%;
        border: 1px solid #fff;
        cursor: pointer;
        padding: 10px;
        z-index: 9999;
    }

    #btn-menu>.wrapper{
        position: relative;
    }

    #btn-menu>.wrapper>div{
        position: absolute;
        height: 1px;
        background: #fff;
        width: 100%;
    }

    #btn-menu .no1{
        top: 7px;
    }

    #btn-menu .no2{
        top: 14px;
    }

    #btn-menu .no3{
        top: 21px;
    }

    #gnb{
        /* display: none; */
        position: fixed;
        top:0;
        right: -100%;
        bottom: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 0;
        overflow: auto;
        transition: 0.5s ease;
        -webkit-transition: 0.5s ease;
    }

    #hd.on #gnb{
        /* display: block; */
        right: 0;
    }

    #gnb>ul{
        border-bottom: none;
        padding: 100px 35px;
    }

    #gnb>ul>li{
        padding: 10px 0;
    }

    #gnb>ul>li.home{
        display: none;
    }

    #gnb>ul>li>a{
        display: block;
        position: relative;
        padding-left: 10px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 3px;
    }

    #gnb>ul>li>a:after{
        content: ".";
        position: absolute;
        left: 0;
        top: -5px;
    }

    #gnb>ul>li>ul{
        margin-top: 5px;
        padding-left: 20px;
        max-height: 0px;
        transition: 1s ease;
        -webkit-transition: 1s ease;
        overflow: hidden;
        opacity: 0;
        visibility: collapse;
    }

    #gnb>ul>li:hover>ul{
        max-height: 200px;
        opacity: 1;
        visibility: visible;
    }

    #gnb>ul>li>ul>li{
        display: inline-block;
        padding: 5px;
    }


}
