@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{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0;
  width: 100%;
  padding:0.5rem 5%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  color:#fff;
  background-image: linear-gradient(#000000b3, transparent);
}

.header-logo{
  display: block;
  width: 222px;
}

.header a{
  color:#fff;
  font-size:15px;
}

.header a:hover{
  opacity:0.7;
}

.header_right{
  display: flex;
  flex-direction: row;
}

.header-btn{
  border:1px solid #868686;
  background:#1A1919;
  padding:1.5rem 3.5rem;
  position:relative;
}

.header-btn::before{
  content:"";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  width:5px;
  height:10px;
  background:url(https://door-style.co.jp/system_panel/uploads/images/20251117164125894686.png) no-repeat center/contain;
}


.header_menu{
  display: flex;
  flex-direction: row;
  gap: 5rem;
  align-items: center;
}

.hamBtn {
  width:40px;
  cursor: pointer;
  z-index: 9999;
  transition: all .5s;
  display: none;
  align-items: center;
  justify-content: center;
}

.hamBar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 10px;
  width: 100%;
  color:#0600C9;
}

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


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

.hamBar>div:nth-child(2) {
  opacity:0;
}

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

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

.hamBar.active>div:nth-child(2) {
  opacity: 0;
}

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

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


.sp__menu .header-btn{
  flex-direction: column;
  gap: 1.5rem;
}

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

.sp__menu .header_menu{
  font-size:20px;
}

.sp__menu .header_menu a{
  color:#fff;
}


@media (max-width: 1280px) {
  .header{
    padding: 0.5rem 2.5%;
  }
  .header_menu{
    gap: 3rem;
  }
  .header-btn{
    padding: 1rem 3rem 1rem 2.5rem;
  }
}
@media (max-width: 1024px) {
  .hamBtn {
    display:flex;
  }
  .fixed-btn{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    z-index:9999;
  }
  .fixed-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .header_right .header_menu{
    display: none;  
  }
  .header_menu{
    flex-direction: column;
    gap: 3rem;
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    padding: 2rem 0 2rem;
    height: 100%;
    gap: 5rem;
  }
}
@media (max-width: 767px) {
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 120px;
  }
  .hamBtn{
    width:25px;
  }
  .sp__menu .header_menu {
    font-size: 14px;
  }
  .hamBar{
    height: 8px;
  }
}
