/* ============================================================
   SP Menu Overlay (Figma: XX_Menu_SP 161:2161)
   ============================================================ */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #2fa57b;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  isolation: isolate;
  display: grid;
  grid-template-areas: 'stack';
  align-content: start;
}

.sp-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sp-menu__bg,
.sp-menu__content {
  grid-area: stack;
}

.sp-menu__bg {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-self: stretch;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}

.sp-menu__bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(96.84deg, #2fa57b 0.45%, #3cb0a8 100%);
  z-index: 0;
}

.sp-menu__bg-texture {
  position: absolute;
  inset: 0;
  background-image: url('../img/bg-grain-texture.webp');
  background-size: 491.52px 347.04px;
  background-position: top left;
  background-repeat: repeat;
  mix-blend-mode: color-burn;
  opacity: 0.16;
  z-index: 1;
}

.sp-menu__bg-photo {
  position: absolute;
  top: 0;
  left: -273.9%;
  width: 402.01%;
  height: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top left;
  mix-blend-mode: color-burn;
  opacity: 0.4;
  z-index: 2;
}

.sp-menu__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.sp-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.sp-menu__logo {
  width: 164px;
  height: 40px;
  object-fit: contain;
}

.sp-menu__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-menu__close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sp-menu__login {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-menu__login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-ja, 'M PLUS 1p', sans-serif);
  font-size: 16px;
  line-height: 100%;
  color: #00744b;
  text-align: center;
}

.sp-menu__nav {
  margin-top: 32px;
  padding: 0 24px;
}

.sp-menu__nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-en, 'DM Sans', sans-serif);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  border-top: 1px solid rgba(227, 227, 227, 0.32);
  text-align: center;
  transition: background 0.2s;
}

.sp-menu__nav-item:last-child {
  border-bottom: 1px solid rgba(227, 227, 227, 0.32);
}

.sp-menu__nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
