@charset "utf-8";

body {
    position: relative;
}

.nav-btn {
    position: fixed;
    right: 50px;
    top: 50px;
    z-index: 100000000;
    cursor: pointer;
    padding: 15px;
    /* background-color: #fff; */
    /* background-color: rgba(0, 0, 0, 0.185); */
}

/* main img 어둡게 */
.main-bgB{
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #0000009c;

}
/* main text */
.main-bgB .main-text{
    position: absolute;
    width: 100%;
    color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.main-bgB .main-text h4{
    font-size: 4vmin;
    line-height: 5vmin;
}
.main-bgB .main-text h1{
    width: 100%;
    font-size: 10vmin;
    font-weight: 800;
}



.nav-btn span {
    display: block;
    width: 35px;
    height: 3px;
    border-radius: 5px;
    background-color: #eee;
    transition: .3s;
    text-align: right;
}

.nav-btn .bar2 {
    margin: 9px 0px;
    width: 20px;
}

.nav-btn:hover .bar2 {
    width: 35px;
}



/* 마우스 클릭시 햄버거메뉴설정 */

.on .bar1 {
    transform: rotate(45deg) translateY(17px);
    background-color: #000;

}

.on .bar2 {
    opacity: 0;
}

.on .bar3 {
    transform: rotate(-45deg) translateY(-17px);
    background-color: #000;

}


/* 클릭시 메뉴설정 */

nav {
    background-color: #fff;
    position: fixed;
    right: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 10000000;
}

nav ul {
    position: absolute;
    left: 25%;
    top: 40%;
    transform: translate(-50%, -50%);
}

nav ul:hover li a {
    color: rgba(0, 0, 0, 0.36);
}

nav ul li a:hover {
    color: #000;
}

nav ul li {
    margin-bottom: 30px;
}

nav ul li a {
    font-size: 45px;
    font-weight: 700;
    transition: .3s;
}

.sub_menu {
    position: absolute;
    left: 25%;
    top: 70%;
    transform: translate(-50%, -50%);
}

.sub_menu li {
    display: inline-block;
    vertical-align: top;
}

.sub_menu li a {
    font-size: 20px;
    font-weight: 700;
    color: #747474;
    padding: 0 5px;
}




.nav img {
    width: 55px;
    position: absolute;
    left: 3%;
    top: 97%;
    transform: translate(-50%, -50%);
}

/* 클릭시 nav 이동 설정 */
.active {
    top: 0;
}



/*nav scrool bar*/
nav::-webkit-scrollbar {
    width: 0px;
}

nav::-webkit-scrollbar-track {
    background-color: rgba(240, 240, 240, 0.8);
}










@media screen and (max-width:1024px) {
    .nav-btn {
        right: 30px;
        top: 50px;
    }

    nav ul li {
        margin-bottom: 30px;
    }

    nav ul li a {
        font-size: 40px;
    }

    .sub_menu {
        top: 70%;
    }

    .sub_menu li a {
        font-size: 18px;
    }

    .nav img {
        left: 5%;
        top: 97%;
    }
}


@media screen and (max-width:768px) {
    .nav-btn {
        right: 20px;
        top: 30px;
        /* background-color: rgba(255, 255, 255, 0.5); */
    }

    nav ul li {
        margin-bottom: 30px;
    }

    nav ul li a {
        font-size: 35px;
    }

    .sub_menu {
        left: 27%;
        top: 70%;
    }

    .sub_menu li a {
        font-size: 18px;
    }

    .nav img {
        left: 10%;
    }

    .nav-btn .bar2 {
        margin: 9px 0px;
        width: 35px;
    }


}

@media screen and (max-width:425px) {
    .nav-btn {
        right: 0px;
        top: 10px;
    }

    nav ul {
        left: 35%;
    }

    .sub_menu li {
        padding: 5px;
    }

    .sub_menu li a {
        font-size: 18px;
    }

    .sub_menu {
        left: 40%;
    }


    .nav-btn span {
        height: 2px;
        width: 30px;
    }

    .nav-btn .bar2 {
        width: 30px;
    }

    .nav-btn:hover .bar2 {
        width: 30px;
    }

    .on .bar1 {
        transform: rotate(45deg) translateY(15px);
    }

    .on .bar3 {
        transform: rotate(-45deg) translateY(-15px);
    }
}