/* Shared mobile navigation drawer. It is rendered by assets/site-shell.js on every page. */
/* The approved full-screen curtain owns smartphone opening. The tablet drawer
   below must not also translate that same surface horizontally. */
@media (max-width: 640px) {
  .mobile-menu-sheet,
  body[data-page="home"] .mobile-menu-sheet {
    transform: none !important;
    transition: clip-path var(--motion-menu-curtain, .68s) var(--ease-menu-curtain, cubic-bezier(.76, 0, .24, 1)) !important;
  }
  .mobile-menu-panel,
  body[data-page="home"] .mobile-menu-panel {
    opacity: 1 !important;
    transition: visibility 0s linear .68s !important;
  }
  body.menu-open .mobile-menu-panel,
  body[data-page="home"].menu-open .mobile-menu-panel {
    transition-delay: 0s !important;
  }
  .mobile-menu-link.is-ui-pressed,
  .mobile-menu-link.is-ui-pending,
  .mobile-menu-link.is-ui-navigating {
    transition-delay: 0s !important;
  }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .mobile-menu-sheet,
  body[data-page="home"] .mobile-menu-sheet,
  .mobile-menu-panel,
  body[data-page="home"] .mobile-menu-panel {
    transition: none !important;
  }
}
@media (min-width: 901px) {
  /* Subpages already expose the complete desktop global navigation. Do not
     leave a second hamburger visible when its drawer is intentionally mobile
     only. The desktop home keeps its dedicated, working overlay menu. */
  body[data-page]:not([data-page="home"]) .site-header .mobile-menu-button {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-menu-panel {
    position: fixed !important;
    inset: 0 !important;
    z-index: 300 !important;
    display: block !important;
    overflow: hidden !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .32s ease, visibility 0s linear .32s;
  }

  body.menu-open .mobile-menu-panel {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition: opacity .32s ease;
  }

  body.menu-open .site-header .mobile-menu-button,
  body.menu-open .bottom-fixed-nav {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 50, 60, .15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .mobile-menu-sheet {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(74vw, 380px);
    min-height: 100dvh;
    height: 100dvh;
    max-height: none !important;
    margin: 0 0 0 auto !important;
    padding: max(14px, env(safe-area-inset-top, 0px)) 14px calc(12px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    border-radius: 18px 0 0 18px;
    box-shadow: -12px 0 30px rgba(39, 45, 55, .14);
    transform: translateX(104%);
    transition: transform .36s cubic-bezier(.22, .8, .25, 1);
  }

  body.menu-open .mobile-menu-sheet {
    transform: translateX(0);
  }

  .mobile-menu-head {
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(8px, 1.8vh, 14px);
  }

  .mobile-menu-kicker {
    margin-bottom: 2px;
    font-size: .58rem;
    letter-spacing: .15em;
  }

  .brand-logo--mobile-menu {
    width: min(100%, 205px);
    height: 27px;
  }

  .mobile-menu-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(40, 48, 65, .08);
  }

  .mobile-menu-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    border-top: 1px solid rgba(176, 183, 194, .22);
  }

  .mobile-menu-link {
    position: relative;
    min-width: 0;
    min-height: clamp(42px, 7.6vh, 52px);
    padding: clamp(4px, .8vh, 6px) 5px;
    column-gap: 4px;
    row-gap: 1px;
    border-right: 1px solid rgba(176, 183, 194, .15);
  }

  .mobile-menu-link:nth-child(even) {
    border-right: 0;
  }

  .mobile-menu-link span {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(.66rem, 2.6vw, .76rem);
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-link b {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(.43rem, 1.8vw, .55rem);
    line-height: 1.15;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-link i {
    font-size: .72rem;
    transform: translateY(1px);
  }

  .mobile-menu-link.is-active {
    padding-left: 5px !important;
    border-left: 0 !important;
    background: transparent !important;
    box-shadow: inset 2px 0 0 var(--pop-pink, #ef9fba);
  }

  .mobile-menu-link.is-active span {
    color: #3c454c;
  }

  /* Keep one clear selection while the visitor moves from the current page
     to another menu item. These rules intentionally outrank the v30 reveal
     transform without changing its timing or stagger. */
  body.menu-selection-in-progress .mobile-menu-link.is-active:not(.is-ui-pressed):not(.is-ui-navigating) {
    padding-left: 5px !important;
    border-left: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* iOS may keep :hover after a finger is released. Never let that stale
     browser state look like a second selected item. */
  .mobile-menu-link:hover:not(.is-active):not(.is-ui-pressed):not(.is-ui-pending):not(.is-ui-navigating),
  body.ui-touch-session .mobile-menu-link:hover:not(.is-active):not(.is-ui-pressed):not(.is-ui-pending):not(.is-ui-navigating),
  body.ui-touch-session .mobile-menu-link:focus:not(.is-active):not(.is-ui-pressed):not(.is-ui-pending):not(.is-ui-navigating) {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* The exact same item markup as the fixed bottom reservation component. */
  .mobile-menu-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 0 0 58px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(45, 49, 51, .08);
  }

  .mobile-menu-actions .bottom-fixed-nav__item {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 3px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #303537;
    font-family: var(--font-body, "Noto Sans JP", sans-serif);
    font-size: .52rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: .02em;
    text-decoration: none;
  }

  .mobile-menu-actions .bottom-fixed-nav__item + .bottom-fixed-nav__item {
    border-left: 1px solid rgba(45, 49, 51, .055);
  }

  /* Cancel the legacy last-action dark CTA treatment. */
  .mobile-menu-actions .bottom-fixed-nav__item:last-child {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #303537;
  }

  .mobile-menu-actions .bottom-fixed-nav__icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
  }

  .mobile-menu-actions .bottom-fixed-nav__icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #303537;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-menu-actions .bottom-fixed-nav__label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-menu-note {
    display: none;
  }
}

@media (max-height: 620px) and (max-width: 900px) {
  .mobile-menu-sheet {
    padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
  }

  .mobile-menu-head {
    margin-bottom: 6px;
  }

  .brand-logo--mobile-menu {
    height: 23px;
  }

  .mobile-menu-link {
    min-height: 39px;
  }

  .mobile-menu-actions {
    flex-basis: 52px;
    padding-top: 6px;
  }
}

/* Desktop drawer: hide the reservation button row on every page. */
@media (min-width: 641px) {
  .mobile-menu-panel .mobile-menu-actions[data-drawer-reservation-cta] {
    display: none;
  }
}
