@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: 40px;
  height: 40px;
  background: #040404;
  border: none;
}

#menu-button.nav-on {
  visibility: visible;
  opacity: 1;
}

#menu-button .c-menu-btn__lines {
  position: relative;
  margin: 0 auto;
  width: 30px;
  height: 17px;
}

#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: 3px;
  background-color: #fff;
  border-radius: 1px;
}

#menu-button .c-menu-btn__lines span {
  bottom: 7px;
  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: 14px;
  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: 12px;
  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(7px) rotate(45deg);
  }
}

@keyframes active-menu-bar03 {
  0% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(-9px) rotate(0);
  }

  100% {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media screen and (max-width: 680px) {
  /* ヘッダーバー内にインライン配置（バー自体が常時固定）。ドロワーより前面に */
  body #menu-button {
    position: relative;
    visibility: visible;
    opacity: 1;
    display: flex;
    z-index: 900;
    width: 40px;
    height: 40px;
    padding: 0;
  }
  /* デザインにMENUテキストは無い */
  #menu-button .c-menu-btn__text {
    display: none;
  }
  #menu-button.is-active .c-menu-btn__lines::before,
  #menu-button.is-active .c-menu-btn__lines::after {
    background-color: #fff;
  }
  /*-------container（右側の黒パネル）----*/
  #main-menu-container {
    position: fixed;
    z-index: 800;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(255px, 80vw);
    height: 100vh;
    background: #040404;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  #main-menu-container.is-active {
    transform: translateX(0);
  }
  /* パネル内ナビ（Poiret One 白・中央・項目間に線） */
  #main-menu-container .c-gnav {
    margin-top: 0;
    width: 175px;
  }
  #main-menu-container .c-gnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #main-menu-container .c-gnav__item {
    text-align: center;
    padding-block: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  }
  #main-menu-container .c-gnav__link {
    color: #fff;
    font-family: "Poiret One", sans-serif;
    font-size: 16px;
    line-height: 1.2;
  }
  /* ドロワー展開中：背面スクロール抑制＋ヘッダーバーの白背景を透過（パネルを最上部まで見せる） */
  body.is-active {
    overflow: hidden;
  }
  body.is-active .l-header {
    background: transparent;
  }
  /* 展開中は連絡先・SNSアイコンを隠す（Xだけ残す） */
  body.is-active .c-contact,
  body.is-active .c-header-sns {
    opacity: 0;
    pointer-events: none;
  }
}
