.site-menu-toggle {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 10050;
  display: grid;
  width: 82px;
  height: 82px;
  padding: 15px 16px 12px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 0;
  border-radius: 44% 56% 48% 52% / 51% 45% 55% 49%;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 7px 7px 0 #22c55e, 0 12px 28px rgb(26 26 26 / 16%);
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, border-radius 300ms ease;
}

.site-menu-toggle:hover {
  transform: translate(-2px, -2px) rotate(-2deg);
  box-shadow: 9px 9px 0 #22c55e, 0 15px 32px rgb(26 26 26 / 18%);
}

.site-menu-toggle:active {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #22c55e, 0 8px 18px rgb(26 26 26 / 15%);
}

.site-menu-toggle:focus-visible {
  outline: 4px solid #3b82f6;
  outline-offset: 5px;
}

.site-menu-icon {
  position: relative;
  display: block;
  width: 31px;
  height: 21px;
}

.site-menu-icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #1a1a1a;
  transform-origin: center;
  transition: top 220ms ease, transform 220ms ease, opacity 160ms ease, background 220ms ease;
}

.site-menu-icon span:nth-child(1) { top: 0; }
.site-menu-icon span:nth-child(2) { top: 9px; background: #22c55e; }
.site-menu-icon span:nth-child(3) { top: 18px; }

.site-menu-label {
  font-family: "LINE Seed JP", "LINE Seed", "LINE Seed JP", sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
}

.site-menu-toggle[aria-expanded="true"] {
  border-radius: 53% 47% 55% 45% / 46% 57% 43% 54%;
  box-shadow: 7px 7px 0 #f472b6, 0 12px 28px rgb(26 26 26 / 16%);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.global-nav {
  z-index: -1 !important;
  overscroll-behavior: contain;
}

.global-nav .nav_inr {
  transform: translate(18px, -18px) scale(.985);
  transform-origin: top right;
  transition: transform 500ms cubic-bezier(.22, 1, .36, 1);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .global-nav {
  z-index: 10000 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.menu-open .global-nav .nav_inr {
  transform: translate(0, 0) scale(1);
}

@media (max-width: 800px) {
  .site-menu-toggle {
    top: max(13px, env(safe-area-inset-top));
    right: max(13px, env(safe-area-inset-right));
    width: 68px;
    height: 68px;
    padding: 12px 13px 10px;
    gap: 5px;
    box-shadow: 5px 5px 0 #22c55e, 0 10px 22px rgb(26 26 26 / 15%);
  }

  .site-menu-icon {
    width: 27px;
    height: 18px;
  }

  .site-menu-icon span { height: 3px; }
  .site-menu-icon span:nth-child(2) { top: 7.5px; }
  .site-menu-icon span:nth-child(3) { top: 15px; }
  .site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(1),
  .site-menu-toggle[aria-expanded="true"] .site-menu-icon span:nth-child(3) { top: 7.5px; }
  .site-menu-label { font-size: 9px; }

  .global-nav .nav_inr {
    min-height: calc(100dvh - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-toggle,
  .site-menu-icon span,
  .global-nav,
  .global-nav .nav_inr {
    transition-duration: 1ms !important;
  }
}
