body.has-oshare-mobile-nav {
  --oshare-mobile-ink: var(--reserve-ink, #2d2118);
  --oshare-mobile-muted: var(--reserve-muted, #6f6257);
  --oshare-mobile-red: var(--reserve-red, #a83224);
  --oshare-mobile-deep-red: var(--reserve-deep-red, #7f241c);
  --oshare-mobile-paper: var(--reserve-paper, #fffdf8);
  --oshare-mobile-gold: var(--reserve-gold, #b8872c);
  --oshare-mobile-line: var(--reserve-line, rgba(128, 74, 45, 0.2));
  --oshare-mobile-radius: 16px;
}

body.has-oshare-mobile-nav.oshare-mobile-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.has-oshare-mobile-nav .oshare-mobile-nav,
body.has-oshare-mobile-nav .oshare-mobile-menu-overlay,
body.has-oshare-mobile-nav .oshare-mobile-menu {
  display: none;
}

body.has-oshare-mobile-nav .oshare-mobile-menu-overlay[hidden],
body.has-oshare-mobile-nav .oshare-mobile-menu[hidden] {
  display: none !important;
}

body.has-oshare-mobile-nav .oshare-mobile-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

body.has-oshare-mobile-nav .oshare-mobile-nav a:focus-visible,
body.has-oshare-mobile-nav .oshare-mobile-nav button:focus-visible,
body.has-oshare-mobile-nav .oshare-mobile-menu a:focus-visible,
body.has-oshare-mobile-nav .oshare-mobile-menu button:focus-visible {
  outline: 3px solid rgba(182, 58, 44, 0.42);
  outline-offset: 3px;
}

@media (min-width: 769px) {
  body.has-oshare-mobile-nav {
    padding-bottom: 0;
  }

  body.has-oshare-mobile-nav .site-nav {
    display: flex;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav,
  body.has-oshare-mobile-nav .oshare-mobile-menu-overlay,
  body.has-oshare-mobile-nav .oshare-mobile-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  body.has-oshare-mobile-nav {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  body.has-oshare-mobile-nav .site-nav {
    display: none;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    border-top: 1px solid var(--oshare-mobile-line);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 -10px 24px rgba(72, 48, 31, 0.12);
    backdrop-filter: blur(14px);
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav a,
  body.has-oshare-mobile-nav .oshare-mobile-nav button,
  body.has-oshare-mobile-nav .oshare-mobile-nav a:not([data-oshare-mobile-action="reserve"]),
  body.has-oshare-mobile-nav .oshare-mobile-nav button:not([data-oshare-mobile-action="reserve"]) {
    display: flex;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    overflow-wrap: anywhere;
    border: 1px solid transparent;
    border-radius: var(--oshare-mobile-radius);
    background: transparent;
    color: var(--oshare-mobile-muted);
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    padding: 5px 1px;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav__icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: currentColor;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="menu"] {
    color: #7b6c61;
    opacity: 0.72;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="menu"] .oshare-mobile-nav__icon::before {
    position: absolute;
    top: 4px;
    right: 3px;
    left: 3px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="plans"] .oshare-mobile-nav__icon,
  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="reserve"] .oshare-mobile-nav__icon {
    border: 2px solid currentColor;
    border-radius: 5px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="plans"] .oshare-mobile-nav__icon::before,
  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="plans"] .oshare-mobile-nav__icon::after {
    position: absolute;
    right: 4px;
    left: 4px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="plans"] .oshare-mobile-nav__icon::before {
    top: 5px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="plans"] .oshare-mobile-nav__icon::after {
    bottom: 5px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="access"] .oshare-mobile-nav__icon::before {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="access"] .oshare-mobile-nav__icon::after {
    position: absolute;
    right: 4px;
    bottom: 2px;
    left: 4px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="contact"] {
    border-color: rgba(127, 36, 28, 0.26);
    background: rgba(255, 246, 241, 0.94);
    color: var(--oshare-mobile-deep-red);
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="contact"] .oshare-mobile-nav__icon::before {
    position: absolute;
    inset: 3px 2px 5px;
    border: 2px solid currentColor;
    border-radius: 7px;
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="contact"] .oshare-mobile-nav__icon::after {
    position: absolute;
    bottom: 2px;
    left: 6px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: skew(-16deg);
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="reserve"] {
    min-height: 58px;
    border-color: rgba(234, 217, 184, 0.82);
    padding-right: 2px;
    padding-left: 2px;
    background: linear-gradient(135deg, #b63a2c, #7f241c);
    color: var(--oshare-mobile-paper);
    font-size: 11px;
    box-shadow: 0 13px 26px rgba(127, 36, 28, 0.3);
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav [data-oshare-mobile-action="reserve"] .oshare-mobile-nav__icon::before {
    position: absolute;
    top: 5px;
    right: 3px;
    left: 3px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
    content: "";
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(45, 33, 24, 0.58);
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu-overlay.oshare-mobile-menu-overlay--open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 121;
    display: flex;
    width: min(100%, 560px);
    max-height: calc(100vh - 24px);
    max-height: min(88vh, calc(100dvh - env(safe-area-inset-top) - 12px));
    flex-direction: column;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(120, 82, 45, 0.18);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, var(--oshare-mobile-paper), #fff7f2);
    color: var(--oshare-mobile-ink);
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
    box-shadow: 0 -18px 44px rgba(72, 48, 31, 0.24);
    visibility: hidden;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu-overlay.oshare-mobile-menu-overlay--open .oshare-mobile-menu,
  body.has-oshare-mobile-nav .oshare-mobile-menu.oshare-mobile-menu--open {
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__header {
    display: flex;
    min-height: 58px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(120, 82, 45, 0.14);
    padding: 14px 18px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__title {
    margin: 0;
    color: var(--oshare-mobile-deep-red);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__close {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    appearance: none;
    border: 1px solid rgba(120, 82, 45, 0.18);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.9);
    color: var(--oshare-mobile-deep-red);
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
  }

  html[lang="ja"] body.has-oshare-mobile-nav .oshare-mobile-menu__close {
    width: 44px;
    height: 44px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__body {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    gap: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__home,
  body.has-oshare-mobile-nav .oshare-mobile-menu__section {
    display: grid;
    min-width: 0;
    gap: 10px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__section {
    border-top: 1px solid rgba(120, 82, 45, 0.14);
    padding-top: 16px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__heading {
    margin: 0;
    color: var(--oshare-mobile-gold);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__home a,
  body.has-oshare-mobile-nav .oshare-mobile-menu__links a,
  body.has-oshare-mobile-nav .oshare-mobile-menu__primary {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(120, 82, 45, 0.18);
    border-radius: var(--oshare-mobile-radius);
    background: rgba(255, 253, 248, 0.9);
    color: var(--oshare-mobile-deep-red);
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    padding: 12px 14px;
    text-decoration: none;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__home a {
    color: var(--oshare-mobile-ink);
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__primary {
    justify-content: center;
    appearance: none;
    border-color: rgba(234, 217, 184, 0.82);
    background: linear-gradient(135deg, #b63a2c, #7f241c);
    color: var(--oshare-mobile-paper);
    box-shadow: 0 12px 24px rgba(127, 36, 28, 0.22);
    cursor: pointer;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__footer {
    flex: 0 0 auto;
    border-top: 1px solid rgba(120, 82, 45, 0.14);
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 248, 0.92);
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__footer small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    line-height: 1.5;
  }

  body.has-oshare-mobile-nav .oshare-mobile-menu__footer a {
    color: var(--oshare-mobile-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }
}

@media (max-width: 374px) {
  body.has-oshare-mobile-nav .oshare-mobile-nav {
    gap: 3px;
    padding-right: 6px;
    padding-left: 6px;
  }

  body.has-oshare-mobile-nav .oshare-mobile-nav a,
  body.has-oshare-mobile-nav .oshare-mobile-nav button,
  body.has-oshare-mobile-nav .oshare-mobile-nav a:not([data-oshare-mobile-action="reserve"]),
  body.has-oshare-mobile-nav .oshare-mobile-nav button:not([data-oshare-mobile-action="reserve"]) {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  html[lang="ja"] body.has-oshare-mobile-nav .oshare-mobile-menu__footer a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
}
