/*============ ヘッダーのデザイン ============*/
header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    height: 80px;
    width: 100vw;
    background-color: var(--header-bg-color); /* ヘッダーの背景色を黒に */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影を付ける */
    z-index: 99;
    transition: opacity 0.3s ease-in-out;

}



#logo {
    height: 32px;
    margin: 15px 30px;
    padding: 0;
    text-decoration: none; /* ロゴの下線を消す */
}
/*============ メインページのヘッダーの挙動 ============*/
#main-header{
  opacity: 0;
}

#overlay-header {
  z-index: 98; 
  background-color: transparent;
}

/* <reset-style> ============================ */
button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
  }
  /* ============================ */
  /* <style for bg> ======== */
  .menu-btn {
    mix-blend-mode: luminosity;
    width: 65px;
    height: 65px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

 
  
  /* <style for menu__icon> ======== */
  .menu__icon {
    width: 32px;
    height: 32px;
    padding: 4px;
  }
  

  .menu__icon span {
    display: block;
    width: 100%;
    height: 0.125rem;
    background-color: #000;
    position: relative;
  }
  
  .overlay-menu-icon span{
    background-color: #ddd;
  }
  
  .menu__icon:hover span {
    background-color: gray;
  }
  
  .menu__icon span+span {
    margin-top: .375rem;
  }
  
  .menu__icon span:nth-child(1) {
    animation: ease .8s menu-icon-top-2 forwards;
  }
  
  .menu__icon span:nth-child(2) {
    animation: ease .8s menu-icon-scaled-2 forwards;
  }
  
  .menu__icon span:nth-child(3) {
    animation: ease .8s menu-icon-bottom-2 forwards;
  }
  
  .isActive span:nth-child(1) {
    animation: ease .8s menu-icon-top forwards;
  }
  
  .isActive span:nth-child(2) {
    animation: ease .8s menu-icon-scaled forwards;
  }
  
  .isActive span:nth-child(3) {
    animation: ease .8s menu-icon-bottom forwards;
  }
  
  @keyframes menu-icon-top {
    0% {
      top: 0;
      transform: rotate(0);
    }
  
    50% {
      top: .5rem;
      transform: rotate(0);
    }
  
    100% {
      top: .5rem;
      transform: rotate(45deg);
    }
  }
  
  @keyframes menu-icon-top-2 {
    0% {
      top: .5rem;
      transform: rotate(45deg);
    }
  
    50% {
      top: .5rem;
      transform: rotate(0);
    }
  
    100% {
      top: 0;
      transform: rotate(0);
    }
  }
  
  @keyframes menu-icon-bottom {
    0% {
      bottom: 0;
      transform: rotate(0);
    }
  
    50% {
      bottom: .5rem;
      transform: rotate(0);
    }
  
    100% {
      bottom: .5rem;
      transform: rotate(135deg);
    }
  }
  
  @keyframes menu-icon-bottom-2 {
    0% {
      bottom: .5rem;
      transform: rotate(135deg);
    }
  
    50% {
      bottom: .5rem;
      transform: rotate(0);
    }
  
    100% {
      bottom: 0;
      transform: rotate(0);
    }
  }
  
  @keyframes menu-icon-scaled {
    50% {
      transform: scale(0);
    }
  
    100% {
      transform: scale(0);
    }
  }
  
  @keyframes menu-icon-scaled-2 {
    0% {
      transform: scale(0);
    }
  
    50% {
      transform: scale(0);
    }
  
    100% {
      transform: scale(1);
    }
  }



nav {
    display: flex;
    margin: 0 30px;

    justify-content: center;
}

.nav-inner {
    display: flex;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.menu-list li {
    margin: 0;
}

.menu-list a {
    color: black; /* リンクの文字色を黒に */
    text-decoration: none; /* リンクの下線を消す */
    font-size: 1em;
    transition: color 0.3s;
}

.overlay-menu-list a{
  color: #ddd;
}

.menu-list a:hover {
    color: #999; /* ホバー時に文字色を薄いグレーに */
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex; /* モバイル時に表示 */
    }
    
    nav {
        display: none; /* 初期状態では非表示 */
    }

    .js-nav{
      position: fixed;
      top: 0;
      left: 0;
      margin: 0;
      display: flex;
      overflow: hidden;
      opacity: 0;
      width: 0vw;
      height: 0vh;
      outline: 1px solid transparent;

      -webkit-backface-visibility: hidden;
              backface-visibility: hidden;
      align-items: center;
      justify-content: center;
    }

    .nav-inner{
      display: flex;
      overflow: hidden;
      width: 200vh;
      height: 200vh;
      transition: all 0.4s ease;
      -webkit-transform: scale(0);
      transform: scale(0);
      text-align: center;
      border-radius: 50%;
      /* background: rgba(0,131,143 ,1); */
      background: radial-gradient(#111,30%,#333);
      opacity: .95;
      flex: none;
      -webkit-backface-visibility: hidden;
              backface-visibility: hidden;
      align-items: center;
      justify-content: center;
    }

    .menu-list{
      display: block;
      margin: 0;
      padding: 0 1em;
      list-style: none;
      transition: opacity 0.4s ease;
    }
    .menu-list li{
      font-size: 24px;
      display: block;
      margin: 1em;
      padding: 0;
      opacity: 0;
    transform: translateY(20px); /* 下にスライドさせた位置に初期状態を設定 */
    transition: opacity 0.5s ease, transform 0.5s ease; /* フェードインとスライドインのトランジション */

    }

    .menu-list li:nth-of-type(1){
      transition-delay: 0.2s;
    }
    .menu-list li:nth-of-type(2){
      transition-delay: 0.4s;
    }
    .menu-list li:nth-of-type(3){
      transition-delay: 0.6s;
    }
    .menu-list li:nth-of-type(4){
      transition-delay: 0.8s;
    }
    .menu-list li:nth-of-type(5){
      transition-delay: 1.0s;
    }
    .menu-list li:nth-of-type(6){
      transition-delay: 1.2s;
    }
    .menu-list li:nth-of-type(7){
      transition-delay: 1.4s;
    }

    .menu-list li a{
      position: relative;
      color: var(--accent-color);

      display: inline;
      cursor: pointer;
      transition: color 0.4s ease;
    }

    .menu-list li a:hover{
      color: #e5e5e5;
    }
    .menu-list li a:hover::after{
      width: 100%;
    }
    .menu-list li a::after{
      position: absolute;
      bottom: -0.15em;
      left: 0;
      width: 0;
      height: 2px;
      content: '';
      transition: width 0.4s ease;
      background: #e5e5e5;
    }

    .active{
      visibility: visible;
      width: 100vw;
      height: 100vh;
      opacity: 1;
    }

    .active div{
      transition-duration: 0.5s;
	    -webkit-transform: scale(1);
      transform: scale(1);
    }

    .active .menu-list li {
    opacity: 1;
    transform: translateY(0); /* 元の位置にスライドイン */
}

}

