/* Native document scrolling keeps existing window-based GSAP/observers working.
   No nested vertical scroller, wheel handler, or section state manager is used. */
html.swipe-container {
  --mobile-font-size: clamp(10px, min(2.6666666667vw, 1.5lvh), 12.8px);
  /* Explicit length also avoids WebKit resolving root scroll-padding rems
     against its initial font size rather than this page's responsive font. */
  --header-height: calc(var(--mobile-font-size) * 6.5);
  --screen-height: calc(100lvh - var(--header-height));
  font-size: var(--mobile-font-size);
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-height);
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

html.swipe-container::-webkit-scrollbar { display: none; }
html.swipe-container:is([data-state="loading"], [data-state="navOpen"], [data-state="modalOpen"]) {
  overflow: hidden;
}

.swipe-page {
  padding-top: var(--header-height);
}

.swipe-page .header {
  position: fixed;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  background-color: #f3f1f0;
}

.swipe-page .header-inner { height: var(--header-height); }
.swipe-page .wrap main { margin-top: 0; }

.swipe-page .swipe-section {
  position: relative;
  width: 100%;
  height: var(--screen-height);
  min-height: var(--screen-height);
  max-height: var(--screen-height);
  padding-block: clamp(16px, 3lvh, 32px);
  padding-bottom: clamp(60px, 7.5lvh, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Wrapper spacing must not create unsnapped gaps between the semantic screens. */
.swipe-page .footer {
  padding: 0;
  height: auto;
  max-width: none;
  width: 100%;
  overflow: visible;
}

/* Hero retains the original art, mask, title, and entrance animation. */
.swipe-page .t-hero { padding: 0 0 0 4.2rem; }
.swipe-page .t-hero__title {
  position: relative;
  top: auto;
  width: min(16.9rem, 24lvh);
  margin-block: 0;
  translate: 0 -7lvh;
}
.swipe-page .t-hero__img img { object-position: center center; }

/* Keep the moon/cloud composition above the complete introduction. */
.swipe-page .t-bg-moon { top: 1rem; }
.swipe-page .t-bg-moon .moon { width: min(19rem, 25lvh); }
.swipe-page .t-bg { top: 4rem; }

/* Preserve the portrait framing instead of squashing its aspect ratio. */

/* Related navigation and operator details are separate meaningful screens. */

/* A compact viewport still uses readable text; image/spacing reduction comes first. */

@media (prefers-reduced-motion: reduce) {
  html.swipe-container { scroll-behavior: auto; }
}

/* Let the same introduction reflow on short screens, leaving the text on blue. */
@media (max-height: 620px) {
  .swipe-page .t-bg { top: -6rem; }
  .swipe-page .t-bg-moon { top: -2rem; }
}


html.swipe-container.within-long-section { scroll-snap-type: none; }

/* コピーライト */
.swipe-page .footer {
  position: relative;
}

.swipe-page .footer .copyright {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: center;
  color: #ffffff;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  z-index: 10;
}

/* スマホ版コピーライト */
.swipe-page .footer {
  position: relative;
}

.swipe-page .footer .copyright {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  z-index: 10;
}