/** ナビゲーション */
header {
  height: 60px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);

  .site-header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .spNav {
    position: fixed;
    width: 50%;
    height: 70%;
    left: 0;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 10;
    padding-top: 100px;
    text-align: center;

    .logo {
      height: 40px;
      margin: 0 auto;
      text-align: center;
      img {
        height: 30px;
        width: auto;
        object-fit: cover;
        display: inline-block;
        text-align: center;
      }
    }

    .list {
      display: inline-block;
      margin: 0 auto;

      ul {
        flex-direction: column;
        justify-content: center;
        text-align: left;
        font-size: 16px;

        a {
          text-decoration: none;
          color: #000;
        }

        :not(:last-child) {
          margin-bottom: 20px;
        }
      }
    }

    .btn {
      padding: 10px 20px;

      div {
        display: inline-block;
      }

      img {
        width: 16px;
        height: 16px;
      }
    }
  }

  /** SPボタン */
  .btnGroup {
    display: flex;
    margin: 0px;
    margin-left: auto;
  }

  .navBtn {
    display: block;
    position: relative;
    width: 60px;
    height: 60px;
    background: none;
    border: none;
    z-index: 10;
  }

  .navBtn span,
  .navBtn::before,
  .navBtn::after {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--blue);
    position: absolute;
    top: 50%;
    left: 10px;
    transition: transform 0.4s;
  }

  .navBtn::before,
  .navBtn::after {
    content: "";
  }

  .navBtn::before {
    transform: translateY(-8px);
  }
  .navBtn::after {
    transform: translateY(8px);
  }
}

/**  is-nav-inの時のスタイル */
body.is-nav-in {
  /* メニューバーのスタイル  */
  .spNav {
    transform: translateX(0);
  }

  /* navボタンのスタイル */
  .navBtn span {
    display: none;
  }
  .navBtn::before {
    transform: rotate(45deg);
  }
  .navBtn::after {
    transform: rotate(-45deg);
  }

  /** ナビゲーション表示時に背景を暗くする */
  .filter {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    transition: 0.5s;
    z-index: 1;
  }
}

/** レスポンシブ */
@media screen and (min-width: 768px) {
  header {
    .site-header-container {
      display: flex;
      align-items: center;
    }
    .spNav {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      position: fixed;
      width: 100%;
      height: 60px;
      padding-top: 0px;
      transform: translateY(0%);
      transition: transform 0s;
      top: 0;
      background-color: rgba(255, 255, 255, 0.5);

      p {
        display: block;
        text-align: center;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: 20px;
      }

      .logo {
        padding: 16px 16px;
        margin: 0px;
        img {
          height: 40px;
        }
      }

      .list {
        ul {
          margin-top: 0px;
          margin-block-end: 0px;
          display: flex;
          flex-direction: row;
          align-items: center;
          :not(:last-child) {
            margin-bottom: 0px;
          }
        }

        li {
          margin: 0px;
          &:hover {
            color: var(--deepBlue);
            text-decoration: underline;
          }
        }

        a {
          margin: 0px 20px;
        }
      }

      .btn {
        margin: 0px 8px;
      }
    }

    .navBtn {
      display: none;
    }
  }
}
