/* ==========================================================
   SP ドロワー（.l-drawer-button / .l-drawer）
   etoile-dental.net と同じ動き：右上のボタン（3 本線 → ×）で、全画面のメニューがフェードで開く。
   1023px 以下で表示（ヘッダーのナビが入りきらない幅）。
   ========================================================== */
.l-drawer-button,
.l-drawer {
  display: none;
}

@media (max-width: 1023px) {
  .l-drawer-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 900;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background: var(--color-button);
  }

  .l-drawer-button__line {
    position: absolute;
    top: 20px;
    left: 16px;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: .3s ease-in;
  }

  .l-drawer-button__line:nth-child(2) {
    top: 29px;
  }

  .l-drawer-button__line:nth-child(3) {
    top: 38px;
  }

  .l-drawer-button.is-close .l-drawer-button__line {
    top: 29px;
    transform: rotate(45deg);
  }

  .l-drawer-button.is-close .l-drawer-button__line:nth-child(2) {
    width: 0;
    opacity: 0;
  }

  .l-drawer-button.is-close .l-drawer-button__line:nth-child(3) {
    transform: rotate(-45deg);
  }

  .l-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 880;
    padding: 60px 0 100px;
    background: var(--color-main);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-in, visibility .2s;
  }

  .l-drawer.is-open {
    opacity: 1;
    visibility: visible;
  }

  .l-drawer__list {
    border-top: 1px solid rgba(255, 255, 255, .29);
  }

  .l-drawer__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .29);
    color: #fff;
    text-align: center;
  }

  .l-drawer__label {
    font-family: var(--font-maru);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.5;
  }

  .l-drawer__en {
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-script);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
  }

  .l-drawer__contact {
    display: grid;
    gap: 12px;
    width: min(100% - 40px, 400px);
    margin: 30px auto 0;
  }

  .l-drawer__tel,
  .l-drawer__reserve {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    font-weight: 700;
  }

  .l-drawer__tel {
    background: #fff;
    color: var(--color-button);
    font-family: var(--font-en);
    font-size: 24px;
    letter-spacing: .05em;
  }

  .l-drawer__reserve {
    background: var(--color-button);
    color: #fff;
    font-family: var(--font-maru);
    font-size: 17px;
    letter-spacing: .1em;
  }
}
