@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);
  }
}

.on-fv .header-btn,
.on-fv .hamBtn,
.on-fv .txt-btn::before{
  background:#444444;
}


.header{
  position: fixed;
  z-index:9999;
  top: 0;
  left: 0%;
  width:100%;
  padding:1.5rem 0;
  transition: 0.3s;
}

.header-wrap{
  width:80%;
  margin:0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1345px;
}

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

.header-logo:hover{
  opacity:0.5;
}

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

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

.header_menu a:hover{
  opacity:0.5;
}

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


.hamBtn {
  display: none;
  background: #746354;
  border-radius: 999vh;
}
@media (max-width: 1024px) {
  .hamBtn {
    display:block;
    width: 40px;
  }
}

.hamBar {
  width: 40px;
  height: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hamBar.active {
  transform: rotate(45deg);
}

.hamBar>div {
  width: 4px;
  height: 4px;
  margin: 3px;
  background: #FFFAED;
  border-radius: 50%;
  display: block;
}

.header-btn{
  background:#746354;
  color:#fff;
  border-radius:2rem;
}

.header-btn:hover{
  opacity:1 !important;
}

.txt-btn.header-btn div{
  width:100px;
  text-align: center;
}

.header_menu_item{
  position:relative;
  transition:0.3s;
  display:flex;
  align-items:center;
  gap:8px;
}

.header_menu_item::before{
  content:"";
  position:absolute;
  width:100%;
  height:1.5rem;
  top:100%;
  left:0;
  visibility: hidden;
  z-index:1;
}

.header_menu_item::after{
  content:"";
  width:12px;
  height:6.5px;
  display:block;
  background:url(https://conexion.co.jp/system_panel/uploads/images/20251127150220868093.png) no-repeat center/contain;
}

.sub-menu{
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  position: absolute;
  top: calc(100% + 1.5rem);
  visibility: hidden; /* 下層メニューを非表示 */
  width: max-content;
  z-index: -100;
  padding: 2rem 1.5rem;
  background: #FFFAED;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.16);
  opacity:0;
  transition:0.6s;
}

.sub-menu a:not(:last-child){
  margin-bottom:1rem;
}

.header_menu_item:hover .sub-menu {
  visibility: visible; /* 下層メニューを表示 */
  opacity:1;
  z-index: 10;
}

.header_menu_item:hover::before {
  visibility: visible; /* 下層メニューを表示 */
}

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

.sp__menu .header-wrap {
  flex-direction: column;
  gap: 3rem;
}

.sp__menu .header-wrap .header_right > div{
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: start;
}

.sp__menu .header-wrap .sub-menu{
  position: relative;
  z-index: 1;
  visibility: visible;
  opacity: 1;
  top: auto;
  transform: none;
  left: auto;
  box-shadow: none;
  padding: 0rem;
  font-size: 12px;
}

.sp__menu .header-wrap .header_menu_item{
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  align-items: start;
}

.sp__menu .header-wrap .header_menu_item::after{
  display:none;
}

.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;
}


@media (max-width: 1279px) {
  .header{
    padding: 1.5rem 0;
  }
  .header-wrap {
    width: 90%;
  }
  .header_menu{
    gap: 1rem;
  }
  .header-logo{
    width:230px;
  }
  .header-btn{
    padding: 1rem 2rem 8px;
  }
}
@media (max-width: 1024px) {
  .header_right .header_menu{
    display: none;  
  }
  .header_menu{
    flex-direction: column;
    gap: 2rem;
  }
  .sp__menu{
    overflow: scroll;
    min-height: 600px;
    padding: 2rem 0 2rem;
    height: 100%;
    gap: 5rem;
  }
}
@media (max-width: 767px) {
  .header{
    padding: 0.5rem  0 0;
  }
  .sp__menu {
    width:100%;
  }
  .header-logo {
    width: 175px;
  }
  .sp__menu .hamBtn{
    top:0.5rem;
  }
  .hamBar>div:nth-child(3)::before{
    font-size:12px;
  }
}
