/* head animation area */
header.active{
    background-color: transparent;
    border-bottom: none;
    transition: 0.8s;
}
header.active h1{
    visibility: hidden;
}
header.active a{
    color: #fff;
}
header.active span{
    color: #fff;
}
header.active #leng span::after{
    border-bottom: 0.3rem solid #fff;
    border-right: 0.3rem solid #fff;
}
/* //head animation area */


header{
    width: 100%;
    height: 8rem;
    background-color: #fff;
    border-bottom: 0.1rem solid #1A2039;
    position: fixed;
    z-index: 5;
    left: 0;
}

#head_wrapper{
    height: 100%;
    padding: 0 150px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#head_wrapper h1{
    width: 145px;
}

#head_wrapper h1 a{
    display: block;
    height: 32.5px;
}

#head_wrapper .right_area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}
#head_wrapper .main_menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
#head_wrapper .main_menu > li{
    position: relative;
}
#head_wrapper .main_menu > li > a{
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    box-sizing: border-box;
}
#head_wrapper .sub_menu{
    position: absolute;
    width: 100%;
    left: 0;
    top: 4rem;
    background-color: #fff;
    border-radius: 1.2rem;
    border: 0.1rem solid #1A2039;
    padding: 0.5rem 0;
    box-sizing: border-box;
    display: none;
}
#head_wrapper .sub_menu li{
    width: 100%;
}
#head_wrapper .sub_menu li a{
    display: block;
    text-align: center;
    margin: 1.5rem 0;
    color: #1A2039;
}

#leng{
    position: relative;
    
}
#leng span{
    display: block;
    width: 50px;
    padding: 1rem 0;
    cursor: pointer;
}
#leng ul{
    position: absolute;
    width: 60px;
    left: calc(50% - 60px/2);
    top: 4rem;
    background-color: #fff;
    border-radius: 1.2rem;
    border: 0.1rem solid #1A2039;
    padding: 0.5rem 0;
    display: none;
}

#leng ul li a{
    display: block;
    text-align: center;
    margin: 1rem 0;
    color: #1A2039;
}
#leng ul li:hover a{
    font-weight: bold;
}

#leng span::after{
    content: "";
    display: block;
    border-bottom: 0.3rem solid #1A2039;
    border-right: 0.3rem solid #1A2039;
    width: 0.7rem;
    height: 0.7rem;
     transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	-o-transform: rotate(45deg);
    position: absolute;
    right: 0;
    top: 1.3rem;
    transition: 0.3s;
}
#leng span.active::after{
    top: 1.7rem;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
	-moz-transform: rotate(-135deg); 
	-ms-transform: rotate(-135deg); 
	-o-transform: rotate(-135deg);
}
#head_wrapper .right_area .ham{
    display: none;
}



@media (hover: hover){
    #head_wrapper .sub_menu li:hover a{
        font-weight: bold;
    }
    #head_wrapper .main_menu > li:hover{
        background-color: #1A2039;
        border-radius: 0.8rem;
    }
    #head_wrapper .main_menu > li:hover > a{
        color: #fff;
    }
}



@media all and (max-width:1325px) {
    #head_wrapper{
        padding: 0 6rem;
    }
    #head_wrapper .right_area .ham{
        display: block;
        width: 4rem;
        height: 4rem;
        background-image: url("../img/svg/ham.svg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
    }
    #head_wrapper .right_area .ham.active{
        width: 3rem;
        height: 3rem;
        margin: 0 0.5rem;
        background-image: url("../img/svg/cross.svg");
    }


    #head_wrapper .main_menu{
        position: absolute;
        width: 30rem;
        height: calc(100vh - 8rem);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        right: -30rem;
        top: 8rem;
        gap: 0;
        overflow-y: scroll;
        background-color: #1a2039;
    }
    #head_wrapper .main_menu::-webkit-scrollbar{
        width: 0rem;
    }
    #head_wrapper .main_menu > li{
        width: 100%;
    }
    #head_wrapper .main_menu > li > a{
        color: #fff;
        padding: 2rem 5rem;
        border-bottom: 0.2rem solid #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #head_wrapper .main_menu > li > a::after{
        content: "";
        display: block;
        width: 2rem;
        height: 2rem;
        background-image: url("../img/svg/arrow_right_white.svg");
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }
    #head_wrapper .main_menu > li.active > a::after{
        transform: rotate(90deg);
        transition: 0.3s;
    }
    #head_wrapper .sub_menu{
        position: unset;
        width: 100%;
        background-color: #fff;
        border-radius: 0rem;
        border: unset;
        padding: 0;
        display: none;
    }
    #head_wrapper .sub_menu li{
        width: 100%;
    }
    #head_wrapper .sub_menu li a{
        display: block;
        width: 100%;
        margin: 0;
        padding: 1.5rem 0;
        font-family: "Pretendard_bold", serif;
        border-bottom: 0.1rem solid #1A2039;
    }
}

@media all and (max-width:830px){
    #head_wrapper{
        padding: 0 3rem;
    }
}
@media all and (max-width:550px){
    header{
        height: 6rem;
    }
    #head_wrapper{
        padding: 0 2rem;
    }
    #head_wrapper h1{
        width: 120px;
    }
    #head_wrapper h1 a{
        height: 26.89px;
    }
    #head_wrapper .right_area{
        gap: 2rem;
    }
    #leng span::after{
        right: 0.8rem;
    }
    #head_wrapper .main_menu{
        top: 6rem;
        height: calc(100vh - 6rem);
    }
}