@charset "utf-8";

/*@media (min-width: 1025px) {
.header.UpMove{
animation: UpAnime 0.5s forwards;
}

.header.DownMove{
animation: DownAnime 0.5s forwards;
}
@keyframes UpAnime{
from {
opacity: 1;
transform: translateY(0);
}
to {
opacity: 0;
transform: translateY(-100px);
}
}
@keyframes DownAnime{
from {
opacity: 0;
transform: translateY(-100px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
}
*/

.header{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 100%;
  padding:1rem 5%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.header-logo{
  display: block;
  max-width: 280px;
  width: 17%;
}

.header_right{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap:2rem;
  justify-content: end;
  width: 50%;
}

.header-tel{
  max-width:340px;
  width: calc(45% - 2rem);
}

.header-contact{
  max-width:450px;
  width: 55%;
}

.header_menu{
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  font-weight:bold;
  font-size:14px;
}

.header_right .header_menu .text-link:last-child{
  margin-left:0.5rem;
  padding:8px 1rem;
  border:1px solid #848580;
}

.hamBtn-bg{
  position:fixed;
  height:100%;
  right:0;
  top:0;
  background:#FFB248;
  z-index: 10000;
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition:1s;
  padding: 0 4px;
}

.hamBtn-bg.active{
  right:280px;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  width: 45px;
  display:block;
  height: 25px;
  background-color: transparent;
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  height: 5px;
  background: #fff;
  transition: .5s;
}

@media (max-width: 767px) {
  .hamBar>div {
    height: 0.5px;
  }
  .hamBtn{
    width: 32px;
    top: 1rem;
    height: 20px;
  }
}


.hamBar>div:nth-child(1) {
  top: 0; 
}

.hamBar>div:nth-child(2) {
  top: 50%;
}

.hamBar>div:nth-child(3) {
  top: 100%;
}

.hamBar.active>div:nth-child(1){
  transform: rotate(30deg);
  top: 8px;
}

.hamBar.active>div:nth-child(2){
  background:transparent;
}

.hamBar.active>div:nth-child(3){
  transform: rotate(-30deg);
  top: 8px;
}

.hamBar>div:nth-child(3) + p{
  color: transparent;
  height: fit-content;
  position: absolute;
  bottom: -2.5rem;
  line-height: 1;
}

.hamBar>div:nth-child(3) + p::before{
  content:"MENU";
  display:block;
  height: max-content;
  color: #fff;
  font-weight: bold;
  font-size:14px;
  text-align: center;
}

.hamBar.active>div:nth-child(3) + p::before{
  content:"CLOSE";
}

.sp__menu {
  background: #FFFFFF;
  position: fixed;
  top: 0;
  right: -280px;
  opacity: 0;
  width: 280px;
  height: 100vh;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  transition: 1s;
  z-index: 8000;
  z-index:-100;
  padding: 0 1.5rem;
}

.footer-a{
  margin-bottom: 2rem;
}

.ham-tel{
  margin-top:3.5rem;
}

.ham-contact{
  margin-top:1.5rem;
}

.sp__menu .header-logo{
  width:250px;
}

.sp__menu .hamBtn{
  position:fixed;
  right:5%;
  top:1.5rem;
}

.sp__menu.active {
  opacity: 1;
  visibility: visible;
  z-index:100000;
  right: 0;
}

@media (max-width: 1279px) {
  .header{
    padding: 1rem 7.5% 1rem 2.5%;
  }
}

@media (max-width: 1024px) {
  .header_right .header_menu{
    display: none;  
  }
  .header_menu{
    flex-direction: column;
    gap: 2rem;
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    height: 100%;
  }
  .sp__menu .hamBtn{
    right:2.5%;
  }
}
@media (max-width: 767px) {
  .header_right{
    display:none; 
  }
  .header{
    padding: 1rem  2.5% 0rem;
  }
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 140px;
  }
  .sp__menu .hamBtn{
    top:1rem;
    right:5%;
  }
  .hamBar>div:nth-child(3) + p::before{
    display:none;
  }
  .hamBtn-bg {
    height: 40px;
    right: 2.5%;
    top: 2.5%;
    z-index: 999999;
  }
  .hamBtn-bg.active{
    right: 2.5%;
  }
  .hamBar.active>div:nth-child(1) {
    top: 10px;
  }
  .hamBar.active>div:nth-child(3) {
    top: 10px;
  }
  .sp__menu .footer-a {
    margin-bottom: 1.5rem;
  }
  .sp__menu .footer-a img {
    width: 1.25rem;
  }
  .ham-tel,
  .ham-contact{
    width: 80%;
    margin: 1.5rem auto 0;
  }
}
.sp-header-tel{
    display:none !important;
}
@media screen and ( max-width:768px ){
    .top-banner{
      display:none;
      }
  	.sp-header-tel{
      display:block !important;
      }
}
@media screen and ( max-width:375px ){
  .sp-header-tel{
     margin: 0 50px 0 0 !important;
    }
}
