#header{
  position: fixed;
  z-index: 9999;
  width: 100%;
  top: 0;
  left: 0;
  height: 100px;
  background-color: #f9fff5;
}
#header .center1{
  height: 100%;
}
.menu_wrap{
  gap: 0 3vw;
}
.main_menu{
  gap: 0 3vw;
}
.main_menu>li>p{
  color: #111111;
  transition: all .5s;
}
.main_menu>li:hover>p{
  color: #37be00;
}
.main_menu>li{
  position: relative;
}
.sub_menu{
  position: absolute;
  width: 217px;
  background-color: #f9fff5;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 35px 30px;
  box-sizing: border-box;
  top: 60px;
  left: 100%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 25px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s;
}
.main_menu>li:hover .sub_menu{
  opacity: 1;
  visibility: visible;
}
.sub_menu>li>a{
  color: #111111;
  transition: all .5s;
}
.sub_menu>li:hover>a{
  color: #37be00;
}

/* sitemap */
.st_icon,
#sitemap{
  display: none;
}

.menu_box .btn p{
    padding: 16px 0;
    width: 168px;
    border-radius: 10px;
    background-color: #37be00;
}

/* mobile */
@media screen and (max-width: 767px){ 
  #header{
    height: 80px;
  }
  #header .center1{
    justify-content: space-between;
  }
  #header .center1>a{
    width: 60px;
  }
  #header .center1>a img{
    width: 100%;
  }
  .main_menu{
    display: none !important;
  }
  
  /* sitemap */
  .st_icon{
    display: block;
  }
  #sitemap{
    display: block;
    width: 100%;
    height: 100vh;
    background-color: rgba(2,198,90,0.9);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999999;
    transform: translateX(100%);
    transition: transform .8s;
  }
  #sitemap.show{
    transform: translateX(0);
  }
  .close_btn{
    display: flex;
    justify-content: flex-end;
    padding-right: 16px;
    padding-top: 38px;
  }
  .st_box{
    padding: 12vh 15% 0;
    overflow: auto;
    width: 100%;
    height: 100%;
  }
  .st_menu{
    margin-top: 25px;
  }
  .st_menu ul{
    width: 100%;
    display: none;
  }
  .st_menu li{
    margin-top: 10px;
  }
    
    .menu_box{
        gap: 0 2vw;
    }
    
    .menu_box .btn p{
        padding: 8px 0;
        width: 100px;
    }

}

/* tablet */
@media screen and (min-width: 768px) and (max-width: 1024px){

  #header .center1{
    justify-content: space-between;
  }
  .main_menu{
    display: none !important;
  }

  /* sitemap */
  .st_icon{
    display: block;
  }
  #sitemap{
    display: block;
    width: 100%;
    height: 100vh;
    background-color: rgba(2,198,90,0.9);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999999;
    transform: translateX(100%);
    transition: transform .8s;
  }
  #sitemap.show{
    transform: translateX(0);
  }
  .close_btn{
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
    padding-top: 38px;
  }
  .close_btn i{
    font-size: 30px;
  }
  .st_box{
    padding: 12vh 15% 0;
    overflow: auto;
    width: 100%;
    height: 100%;
  }
  .st_menu{
    margin-top: 30px;
  }
  .st_menu ul{
    width: 100%;
    display: none;
  }
  .st_menu li{
    margin-top: 15px;
  }
    
    .menu_box{
        gap: 0 2vw;
    }
    
    .menu_box .btn p{
        padding: 10px 0;
        width: 120px;
    }
} 