/* Figma header / menu: keep the layout and CTA positions stable. */
header > .site-header.blcontainer {
  --site-header-expanded-height: 105px;
  --site-header-compact-height: 72px;
  display: flow-root;
  position: relative;
  z-index: 1000;
  background-color: transparent;
}

header > .site-header.blcontainer.is-sticky {
  position: fixed;
  inset: var(--sp-header-viewport-top, 0px) 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  background-color: transparent;
}

header > .site-header.blcontainer.is-sticky.is-scrolled {
  background-color: #000;
}

.site-header-placeholder {
  box-sizing: border-box;
  width: 100%;
  height: 105px;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  header > .site-header.blcontainer {
    width: min(1100px, calc(100% - 32px));
  }

  .site-header.is-sticky .glovalManu {
    width: min(1100px, calc(100% - 32px));
    max-width: none;
    margin-inline: auto;
  }

  /* Only the fixed bar contracts; the page keeps its original header space. */
  .site-header.is-sticky.is-scrolled .glovalManu {
    padding-top: 12px;
    margin-bottom: 12px;
  }
}

@media screen and (min-width: 1200px) {
  header > .site-header.blcontainer {
    width: min(1180px, calc(100% - 64px));
  }

  .site-header.is-sticky .glovalManu {
    width: min(1180px, calc(100% - 64px));
  }
}

@media screen and (max-width: 767px) {
  header {
    position: relative;
  }

  /* The original 64px reservation and 35px image padding remain unchanged. */
  header > .site-header.blcontainer {
    --site-header-expanded-height: 64px;
    --site-header-compact-height: 56px;
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 32px;
    background-color: transparent;
  }

  header > .site-header.blcontainer.is-sticky {
    background-color: #000;
  }

  header > .site-header.blcontainer.is-sticky.is-scrolled {
    padding-block: 4px;
  }

  .site-header-placeholder {
    display: none;
  }
}

/* The two controls use identical geometry; only their inner lines move. */
.menu-toggle {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle > .menu-line {
  display: block;
  position: absolute;
  top: 50%;
  left: 9px;
  width: 30px;
  height: 2px;
  margin: -1px 0 0;
  background: currentColor;
  opacity: 1;
  transform-origin: center;
  transition: transform 500ms ease, opacity 500ms ease;
}

.menu-toggle > .menu-line:nth-of-type(1) {
  transform: translateY(-9px);
}

.menu-toggle > .menu-line:nth-of-type(2) {
  transform: none;
}

.menu-toggle > .menu-line:nth-of-type(3) {
  transform: translateY(9px);
}

.hamburger[aria-expanded="true"] > .menu-line:nth-of-type(1),
.sp-menu.is-open .sp-menu-close > .menu-line:nth-of-type(1) {
  transform: translateY(0) rotate(315deg);
}

.hamburger[aria-expanded="true"] > .menu-line:nth-of-type(2),
.sp-menu.is-open .sp-menu-close > .menu-line:nth-of-type(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] > .menu-line:nth-of-type(3),
.sp-menu.is-open .sp-menu-close > .menu-line:nth-of-type(3) {
  transform: translateY(0) rotate(-315deg);
}

.menu-toggle > .menu-corner {
  display: block;
  position: absolute;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  pointer-events: none;
  transform: none;
  transition: none;
}

.menu-toggle > .menu-corner--tl {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.menu-toggle > .menu-corner--tr {
  top: 0;
  right: 0;
  border-bottom: 0;
  border-left: 0;
}

.menu-toggle > .menu-corner--bl {
  bottom: 0;
  left: 0;
  border-top: 0;
  border-right: 0;
}

.menu-toggle > .menu-corner--br {
  right: 0;
  bottom: 0;
  border-top: 0;
  border-left: 0;
}

.sp-menu-close.menu-toggle {
  position: fixed;
  top: var(--menu-toggle-top, 8px);
  left: var(--menu-toggle-left, calc(100vw - 80px));
  right: auto;
  bottom: auto;
  width: 48px;
  height: 48px;
  padding: 0;
  z-index: 1;
}

.sp-menu-close.menu-toggle::before,
.sp-menu-close.menu-toggle::after {
  display: none;
  content: none;
}

/* Match the reference's upward reveal; contents keep their layout positions.
   The close control sits outside the clipped panel. Only menu labels translate. */
@media screen and (max-width: 767px) {
  .sp-menu {
    padding: 0;
    overflow: hidden;
    background: transparent;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 800ms;
  }

  .sp-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .sp-menu-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: calc(70px + env(safe-area-inset-top, 0px)) 16px
      calc(70px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 72px 24px;
    background:
      radial-gradient(ellipse 90% 48% at 16% 30%,
        rgba(122, 109, 0, .5) 0%, rgba(64, 57, 0, .24) 44%, transparent 78%),
      #000;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 800ms cubic-bezier(.77, 0, .175, 1);
  }

  .sp-menu.is-open .sp-menu-panel { clip-path: inset(0); }
  .sp-menu-close.menu-toggle { z-index: 2; }

  .sp-menu-list a { overflow: hidden; }
  .sp-menu-link-text {
    display: block;
    opacity: 1;
    transform: translateY(150%);
    transition: transform 650ms cubic-bezier(.215, .61, .355, 1);
    transition-delay: 0ms;
  }

  .sp-menu-list li:nth-child(1) { --menu-text-delay: 450ms; }
  .sp-menu-list li:nth-child(2) { --menu-text-delay: 470ms; }
  .sp-menu-list li:nth-child(3) { --menu-text-delay: 490ms; }
  .sp-menu-list li:nth-child(4) { --menu-text-delay: 510ms; }
  .sp-menu-list li:nth-child(5) { --menu-text-delay: 530ms; }
  .sp-menu-list li:nth-child(6) { --menu-text-delay: 550ms; }

  .sp-menu.is-open .sp-menu-link-text {
    transform: translateY(0);
    transition-delay: var(--menu-text-delay, 450ms);
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .sp-menu-panel {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-menu,
  .sp-menu-panel,
  .menu-toggle > .menu-line,
  .sp-menu-link-text {
    transition: none !important;
  }

  .sp-menu-link-text {
    transform: none;
  }
}

/* JS supplies the measured sticky header height plus the intended gap. */
#top,
#service,
#worries,
#reason,
#movie,
#results,
#schedule,
#staff,
#price,
#faq,
#contact {
  scroll-margin-top: var(--anchor-header-offset, 88px);
}

/* PC handoff note: Grow Shadow on CTA hover. No layout or menu-state movement. */
@media (hover: hover) and (pointer: fine) {
  :is(.glovalManu_cntact-btn, .sp-contact, .line-btn,
      .movie_block-btn-1, .price_contact-btn, .sp-menu-buttons > a):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3), 0 2px 10px rgba(214, 195, 26, .24);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.glovalManu_cntact-btn, .sp-contact, .line-btn,
      .movie_block-btn-1, .price_contact-btn, .sp-menu-buttons > a) {
    transition: translate 180ms ease, box-shadow 180ms ease;
  }

  :is(.glovalManu_cntact-btn, .sp-contact, .line-btn,
      .movie_block-btn-1, .price_contact-btn, .sp-menu-buttons > a):hover {
    translate: 0 -3px;
  }
}

/* Match the PC contact pill to the Figma artwork; keep REC spacing separate. */
@media screen and (min-width: 1024px) {
  .site-header .glovalManu_cntact-btn {
    width: 240px;
    height: 48px;
    min-height: 48px;
    padding: 12px 24px;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
  }
  .site-header .glovalManu_cntact-btn > span:first-child { flex-shrink: 0; }
  .site-header .glovalManu_cntact-btn .arrow {
    flex: 0 0 18px;
    right: 0;
  }
}
@media screen and (min-width: 1200px) {
  .site-header .glovalManu_cntact-btn {
    font-size: 16px;
  }
}
@media screen and (min-width: 1200px) and (max-width: 1279px) {
  .site-header .glovalManu_ul > li:not(:last-child) > a { padding-inline: 15px; }
}

/* Keep the six Japanese PC labels on one row at intermediate desktop widths. */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .site-header .glovalManu { gap: 12px; }
  .site-header .glovalManu_logo { width: 88px; }
  .site-header .glovalManu_ul { flex-wrap: nowrap; }
  .site-header .glovalManu_ul > li:not(:last-child) > a {
    padding-inline: 5px;
    font-size: 11px;
  }
  .site-header .glovalManu_ul > li:last-child { margin-left: 10px; }
  .site-header .glovalManu_cntact-btn {
    width: 180px;
    height: 48px;
    min-height: 48px;
    padding: 12px 20px;
    line-height: 1.5;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
  }
  .site-header .glovalManu_cntact-btn > span:first-child { flex-shrink: 0; }
  .site-header .glovalManu_cntact-btn .arrow {
    flex: 0 0 12px;
    right: 0;
    width: 12px;
  }
  .site-header .glovalManu_cntact-btn .arrow::before {
    right: 0;
    width: 8px;
    height: 8px;
  }
}

:is(.line-btn, .movie_block-btn-1)[aria-disabled="true"] {
  cursor: default;
}

/* Keep the approved menu CTA position after unifying the six section links. */
@media screen and (max-width: 767px) {
  .sp-menu-list {
    min-height: 416px;
    justify-content: space-between;
  }
}
@media screen and (max-width: 767px) and (max-height: 700px) {
  .sp-menu-list { min-height: 392px; }
}
