@charset "utf-8";
#menu-button {
  visibility: hidden;
  opacity: 1;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 900;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
}

#menu-button.nav-on {
  visibility: visible;
  opacity: 1;
}

#menu-button .c-menu-btn__lines {
  position: relative;
  margin: 0 auto;
  width: 42px;
  height: 27px;
}

#menu-button .c-menu-btn__lines span,
#menu-button .c-menu-btn__lines::before,
#menu-button .c-menu-btn__lines::after {
  position: absolute;
  display: block;
  right: 0;
  left: 0;
  margin: 0 auto;
  width: 30px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}

#menu-button .c-menu-btn__lines span {
  bottom: 6px;
  transition: all 0.25s 0.25s;
  opacity: 1;
}

#menu-button .c-menu-btn__lines::before,
#menu-button .c-menu-btn__lines::after {
  content: "";
}

#menu-button .c-menu-btn__lines::before {
  bottom: 12px;
  animation: menu-bar01 0.75s forwards;
}

#menu-button .c-menu-btn__lines::after {
  bottom: 0px;
  animation: menu-bar03 0.75s forwards;
}

#menu-button .c-menu-btn__text {
  font-size: 10px;
  line-height: 1;
}

#menu-button.is-active .c-menu-btn__lines span {
  opacity: 0;
}

#menu-button.is-active .c-menu-btn__lines::before {
  animation: active-menu-bar01 0.5s forwards;
}

#menu-button.is-active .c-menu-btn__lines::after {
  animation: active-menu-bar03 0.5s forwards;
}

@keyframes menu-bar01 {
  0% {
    transform: translateY(9px) rotate(45deg);
  }

  50% {
    transform: translateY(9px) rotate(0);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes menu-bar03 {
  0% {
    transform: translateY(-9px) rotate(-45deg);
  }

  50% {
    transform: translateY(-9px) rotate(0);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes active-menu-bar01 {
  0% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(9px) rotate(0);
  }

  100% {
    transform: translateY(9px) rotate(45deg);
  }
}

@keyframes active-menu-bar03 {
  0% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-9px) rotate(0);
  }

  100% {
    transform: translateY(-3px) rotate(-45deg);
  }
}

@media screen and (max-width: 680px) {
  body #menu-button {
    position: fixed;
    visibility: visible;
    opacity: 1;
    display: flex;
    z-index: 701;
  }
  #main-menu-container .c-nav__list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  /*-------container----*/
  #main-menu-container {
    position: fixed;
    z-index: 700;
    top: 0;
    left: auto;
    right: -100vw;
    bottom: auto;
    overflow-y: auto;
    background: #fafafa;
    background-size: cover;
    display: none;
    width: 100vw;
    height: 100vh;
    transition: 0.3s linear;
  }

  #main-menu-container.is-active {
    right: 0vw;
  }

  body #main-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* ----- ここから main.css より移設 ----- */
  /* ヘッダー帯が流れていくので、本文の上でも白の3本線とMENUが読めるように
     下部固定バーと同じ濃緑のチップを敷く（ドロワーを開いた時の×も同様）。 */
  body #menu-button {
    top: 6px;
    right: 6px;
    width: 42px;
    height: 40px;
    background: #33d286;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* button のブラウザ既定スタイルを消す */
    padding: 0 0 4px;
    border: none;
    appearance: none;
    cursor: pointer;
  }
  #menu-button .c-menu-btn__text {
    margin-top: 6px;
    font-size: 10px;
    color: var(--c-white);
  }
  #main-menu-container .c-nav__list {
    gap: 28px;
  }
}
