/*   공통  */
.active{
    color:#000;
}
.active_first_depth{
    background-color: #fca278;
}

main{
    margin-top: 100px;
}

.buffer{
    height: 80px;
}
body{
    display: flex;
    flex-direction: column;
}
footer {
    margin-top: auto;
}

/****************************** header nav 시작 ******************************/
nav {
    width:100%;
    position: fixed;
    top:0;
    background-color: #fff;
    box-shadow: 0 5px 20px #ddd;
    z-index: 20;
}
.hamburger {
    display: none;
}
.logo{
    float: left;
    margin-left: 15%;
    height: 80px;
}
.main_menu {
    display: flex;
    flex-direction: row;
    width: 60%;
}
.main_menu> .first_depth {
    width: 20%;
    height: 80px;
    color: #000;
    padding: 10px;
    margin-left: 5%;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}
.first_depth> a{
    display: flex;
    width: 100%;
    height: 80px;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}
.first_depth:hover {
    background-color: #f8af67;
    color: #000;
    transform: scale(1.2);
}
.sub_menu{
    background-color: #fbfdff;
    color:#000;
    position: absolute;
    top:100%;
    left: 0%;
    width: 100%;
}
.second_depth{
    display:none;
    text-align: center;
    min-height: 44px;
    padding: 10px;
}
.second_depth > a{
    font-weight: 400;
    font-size: 0.8rem;
}
.second_depth:hover {
    background-color: #0070c0;
    color:#fff;
    transform: scale(1.1);
}
.language {
    position: absolute;
    background-color: #fff;
    right: 10px;
    top: 40%;
}
.language li {
    text-align: center;
}
@media only screen and (max-width: 576px) {
   
   .logo{
       margin-left: 0%;
       width: 20%;
       overflow: hidden;
    }
    #hamburger{
        width: 40px;
        height: 30px;
        position: relative;
        margin-top: 10px;
        margin-left: 80%;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    #hamburger span {
        display: block;
        position: absolute;
        height: 5px;
        width: 50%;
        background: #d3531a;
        opacity: 1;
        margin: 0;
        padding: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }
    #hamburger span:nth-child(even){
        left:50%;
        border-radius: 0 9px 9px 0;
    }
    #hamburger span:nth-child(odd){
        left: 0px;
        border-radius: 9px 0 0 9px;
    }
    #hamburger span:nth-child(1), #hamburger span:nth-child(2){
        top: 0px;
    }
    #hamburger span:nth-child(3), #hamburger span:nth-child(4){
        top: 15px;
    }
    #hamburger span:nth-child(5), #hamburger span:nth-child(6){
        top: 30px;
    }
    #hamburger.open span:nth-child(1), #hamburger.open span:nth-child(6){
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #hamburger.open span:nth-child(2), #hamburger.open span:nth-child(5){
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #hamburger.open span:nth-child(1){
        left: 5px;
        top: 11px;
    }
    #hamburger.open span:nth-child(2){
        left: calc(50%);
        top: 11px;
    }
    #hamburger.open span:nth-child(3){
        left: -50%;
        opacity: 0;
    }
    #hamburger.open span:nth-child(4) {
        left: 100%;
        opacity: 0;
    }
      
    #hamburger.open span:nth-child(5) {
        left: 5px;
        top: 25px;
    }
      
    #hamburger.open span:nth-child(6) {
        left: calc(50%-3px);
        top: 26px;
    }
    .main_menu, .language {
        display: none;        
    }
    .opened{
        display: flex !important;
        background-color: #fff;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
    .opened_lang{
        display: block;
        position: absolute;
        top: 10px;
        left: 50%;
        width: fit-content;
    }
    .main_menu> .first_depth {
        min-height: 44px;
        font-size: 0.8rem;
        width: 100%;
        margin-left: 0;
    }
    
}
  
@media only screen and (min-width: 577px) and (max-width: 767px) {
    
    .logo{
        margin-left: 0%;
        width: 20%;
    }
    #hamburger{
        width: 40px;
        height: 30px;
        position: relative;
        margin-top: 10px;
        margin-left: 90%;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        -o-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    #hamburger span {
        display: block;
        position: absolute;
        height: 5px;
        width: 50%;
        background: #d3531a;
        opacity: 1;
        margin: 0;
        padding: 0;
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
        -webkit-transition: .25s ease-in-out;
        -moz-transition: .25s ease-in-out;
        -o-transition: .25s ease-in-out;
        transition: .25s ease-in-out;
    }
    #hamburger span:nth-child(even){
        left:50%;
        border-radius: 0 9px 9px 0;
    }
    #hamburger span:nth-child(odd){
        left: 0px;
        border-radius: 9px 0 0 9px;
    }
    #hamburger span:nth-child(1), #hamburger span:nth-child(2){
        top: 0px;
    }
    #hamburger span:nth-child(3), #hamburger span:nth-child(4){
        top: 15px;
    }
    #hamburger span:nth-child(5), #hamburger span:nth-child(6){
        top: 30px;
    }
    #hamburger.open span:nth-child(1), #hamburger.open span:nth-child(6){
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #hamburger.open span:nth-child(2), #hamburger.open span:nth-child(5){
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #hamburger.open span:nth-child(1){
        left: 5px;
        top: 11px;
    }
    #hamburger.open span:nth-child(2){
        left: calc(50%);
        top: 11px;
    }
    #hamburger.open span:nth-child(3){
        left: -50%;
        opacity: 0;
    }
    #hamburger.open span:nth-child(4) {
        left: 100%;
        opacity: 0;
    }
      
    #hamburger.open span:nth-child(5) {
        left: 5px;
        top: 25px;
    }
      
    #hamburger.open span:nth-child(6) {
        left: calc(50%-3px);
        top: 26px;
    }
    .main_menu, .language {
        display: none;        
    }
    .opened{
        display: flex !important;
        background-color: #fff;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
    .opened_lang{
        display: block;
        position: absolute;
        top: 10px;
        left: 50%;
        width: fit-content;
    }
    .main_menu> .first_depth {
        min-height: 20px;
        font-size: 0.8rem;
        width: 30%;
    }
    
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .logo{
        margin-left: 5%;
    }
    .main_menu {
        display: flex;
        flex-direction: row;
        width: 60%;
    }
    .main_menu > .first_depth {
        font-size: 1rem;
    }
    
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .logo{
        margin-left: 5%;
    }
    .main_menu {
        width: 65%;
    }
    .main_menu > .first_depth {
        font-size: 1.3rem;
    }
    
}

/****************************** header nav 끝 ******************************/
/****************************** bottom nav 시작 *****************************/
#shortcut_box, .underbar{
    display: none;
}
@media only screen and (max-width: 991px){
    #shortcut_box{
        display: block;
        position: fixed;
        top:100px;
        left:-10px;
    }
    .underbar {
        display: block;
        width: 80%;
        z-index: 20;
    }
    
    .underbar div{
        background-color: #e58426;
        margin-bottom: 5px;
        width: 80px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0.3;
    }
    
    .underbar div:hover {
        opacity: 1;
        
    }
    .underbar div p{
        /* writing-mode: vertical-lr;
        text-orientation: upright; */
        text-align: center;
        color: #fff;
    }
}




/****************************** bottom nav 시작 *****************************/
/************************* 탑으로 이동 버튼 시작 ***********************/
#float_btn{
    position: fixed;
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    background: #d3531a;
    opacity: 0.5;
}
#float_btn:hover {
    opacity: 1;
}
#left_bar {
    display: block;
    height: 2px;
    width: 42%;
    background: #fff;
    opacity: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 42%;
    left:16%;
    border-radius: 0 10px 0 0;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
#right_bar {
    display: block;
    height: 2px;
    width: 42%;
    background: #fff;
    opacity: 1;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 42%;
    right: 16%;
    border-radius: 10px 0 0 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.hide {
    display: none !important;
}

/************************* 탑으로 이동 버튼 끝 **********************************/

/************************* Footer 시작*******************************/
footer{
    clear:both;
}
.darker_footer {
    background: #515151;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.darker_footer > p {
    text-align: center;
    color: #fff;
    font-size: 1rem;
}
/************************Footer 끝 ********************************/