@charset "utf-8";


.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.change-color{
  background:#F5F5F5;
  padding:2rem 5% 1rem;
}


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

.header-logo{
  display: block;
  width: 300px;
  max-height: 40px;
}

.header_right{
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.header_menu{
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  font-weight:bold;
}


.header_menu a:hover{
  color:#529EA3;
}

.hamBtn {
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  width: 55px;
  height: 24px;
  background-color: transparent;
}

@media (max-width: 1024px) {
  .hamBtn {
    display: block;
  }
}

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

.hamBar>div {
  position: absolute;
  right: 0;
  width: 100%;
  transition: .5s;
}

@media (max-width: 767px) {
  .hamBar>div {
    height: 1px;
  }
}


.hamBar>div::before {
  content:"MENU";
  font-weight:bold;
  font-size:1rem;
  line-height: 1;
  letter-spacing: -1px;
  font-family: "Cantarell", sans-serif;
}
.hamBar.active>div::before {
  content:"CLOSE";
}


.sp__menu {
  background: #529EA3;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100vh;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items:center;
  color: #fff;
  transition: 1s;
  z-index: 8000;
  z-index:-100;
}

.sp__menu .hamBtn{
  position:fixed;
  right:calc(5% + 20px);
  top:55px;
}

body:has(.header.change-color) .sp__menu .hamBtn{
  top:22px;
}

.sp__menu-wrap{
  padding:0 calc(5% + 20px);
  width: 100%;
}

.sp__menu > a{
  position:fixed;
  left:calc(5% + 20px);
  top:55px;
}

body:has(.header.change-color) .sp__menu > a{
  top:22px;
}

.ham-list{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sp__menu  a{
  color:#fff;
}

.sp__menu  a strong{
  font-weight:bold;
  font-size:2.5rem;
  font-family: "Cantarell", sans-serif;
  letter-spacing: -2px;
}

.ham-list  div{
  margin-bottom:1rem;
}

.ham-list  div a{
  margin-bottom:1rem;
  font-size: clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  padding-left: 1rem;
  position: relative;
}

.ham-list  div a::before {
  content: "-";
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}


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


@media (max-width: 1279px) {
  .header_menu{
    gap: 1rem;
  }
}
@media (max-width: 1024px) {
  .header_menu{
    display: none;  
  }
  .header{
    padding: 3rem calc(5% + 20px) 1rem;
  }
  .header.change-color{
    padding: 1rem calc(5% + 20px) 1rem;
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    padding: 10rem 0 2rem;
    justify-content: flex-start;
    height: 100%;
  }
}
@media (max-width: 767px) {
  .header{
    padding: 1.5rem  5% 0.5rem;
  }
  .header.change-color{
    padding: 0.5rem 5% 0.5rem;
  }
  .sp__menu {
    width:100%;
    padding: 4rem 0 2rem;
  }
  .sp__menu-wrap {
    padding: 0 5%;
  }
  .header-logo {
    width: 160px;
  }
  .sp__menu .hamBtn{
    top:1.5rem;
    right:5%;
  }
  body:has(.header.change-color) .sp__menu .hamBtn {
    top: 8px;
  }
  .sp__menu > a {
    left: 5%;
    top: 26px;
  }
  body:has(.header.change-color) .sp__menu > a {
    top: 10px;
  }
  .ham-list {
    gap: 1rem;
  }
  .ham-list > a{
    font-size:12px;
  }
  .ham-list div {
    margin-bottom: 0rem;
  }
   .ham-list div a{
    font-size:14px;
     margin-bottom: 0.5rem;
  }
}
