@charset "utf-8";

/* ===== ハンバーガーボタン（820px以下で表示） ===== */
#menu-button {
  display: none;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 900;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

#menu-button.nav-on {
  visibility: visible;
  opacity: 1;
}

#menu-button .c-menu-btn__lines {
  position: relative;
  margin: 0 auto;
  width: 25px;
  height: 20px;
}

#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: 25px;
  height: 1px;
  background-color: #fff;
  border-radius: 1px;
}

#menu-button .c-menu-btn__lines span {
  bottom: 10px;
  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: 19px;
  animation: menu-bar01 0.75s forwards;
}

#menu-button .c-menu-btn__lines::after {
  bottom: 0px;
  animation: menu-bar03 0.75s forwards;
}

#menu-button.is-active .c-menu-btn__lines span {
  opacity: 0;
}

#menu-button.is-active .c-menu-btn__text {
  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(30deg);
  }
}

@keyframes active-menu-bar03 {
  0% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-9px) rotate(0);
  }
  100% {
    transform: translateY(-11px) rotate(-30deg);
  }
}

/* ===== ドロワー本体（デスクトップは非表示） ===== */
#main-menu-container {
  display: none;
}

@media screen and (max-width: 820px) {
  /* SPのヘッダーはこのボタンのみ。常に画面右上に固定 */
  body #menu-button {
    position: fixed;
    visibility: visible;
    opacity: 1;
    display: flex;
    z-index: 701;
    gap: 5px;
    /* 白背景のセクション上でも線が見えるよう下地を敷く */
    background: #1a355e;
  }
  /* 開いている時はドロワー（同色）と一体に見せる */
  body #menu-button.is-active {
    background: transparent;
  }
  /* 開いている間は背面スクロールを止める */
  body.is-active {
    overflow: hidden;
  }

  /*-------ドロワー----*/
  #main-menu-container {
    position: fixed;
    z-index: 700;
    top: 0;
    right: -100vw;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100vw;
    height: 100svh;
    padding-block: 80px;
    overflow-y: auto;
    background: #1a355e;
    transition: right 0.35s ease;
  }
  #main-menu-container.is-active {
    right: 0;
  }

  .c-nav__inner {
    width: 100%;
    padding-inline: 20px;
  }

  /* ナビリンク（上下に区切り線） */
  .c-nav__list {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(197, 185, 159, 0.55);
    margin-bottom: clamp(28px, 8vw, 40px);
  }
  .c-nav__list a {
    display: block;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    padding: 22px 4px;
    border-top: 1px solid rgba(197, 185, 159, 0.55);
  }

  /* 予約・お問い合わせ／TEL */
  .c-nav__contact {
    text-align: center;
    margin-bottom: clamp(20px, 6vw, 30px);
  }
  .c-nav__contact-label {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 6px 10px;
    margin-bottom: 14px;
  }
  .c-nav__tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 28px;
    letter-spacing: 0.02em;
    line-height: 1;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
  .c-nav__tel svg {
    width: 0.85em;
    height: 0.85em;
    flex: 0 0 auto;
  }
  .c-nav__tel a {
    color: #fff;
  }

  /* 24時間WEB予約ボタン（白地・紺文字） */
  .c-nav__web {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1a355e;
    font-size: 16px;
    letter-spacing: 0.04em;
    padding: 15px;
  }
  .c-nav__web svg {
    width: 1.4em;
    height: 1.4em;
    flex: 0 0 auto;
  }
  .c-nav__web::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 9px 9px;
    border-color: transparent transparent #1a355e transparent;
  }
}
