@charset "utf-8";

/* ハンバーガーボタン / ドロワーは ≤820px のみ。
   hamburger.js が #menu-button / #main-menu-container / body に .is-active をトグル */
#menu-button {
  display: none;
}
#main-menu-container {
  display: none;
}

@media screen and (max-width: 820px) {
  /* ===== ハンバーガーボタン（2本線 → X） ===== */
  #menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 701;
    width: 60px;
    height: 60px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }
  #menu-button span {
    display: block;
    width: 26px;
    height: 2px;
    background: #483026;
    border-radius: 1px;
    transition: transform 0.3s ease;
  }
  #menu-button.is-active span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }
  #menu-button.is-active span:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  /* ===== ドロワー ===== */
  #main-menu-container {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 700;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
  }
  #main-menu-container.is-active {
    transform: translateY(0);
  }
  .c-nav__panel {
    position: relative;
    min-height: 86vh;
    padding: 90px 20px 50px;
    background: #e6f7fc;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .c-nav__logo {
    position: absolute;
    top: 13px;
    left: 12px;
    width: 150px;
  }
  .c-nav__logo img {
    display: block;
    width: 100%;
  }
  .c-nav__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }
  .c-nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .c-nav__list a {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #483026;
  }
  .c-nav__tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #483026;
  }
  .c-nav__tel-lead {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.125em;
  }
  .c-nav__tel-num {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.083em;
    line-height: 1;
  }
  .c-nav__tel-icon {
    width: 24px;
    height: auto;
  }

  /* ドロワー展開中はスクロールロック */
  body.is-active {
    overflow: hidden;
  }
}
