/*
Theme Name: 縦型スワイプLP
Template: twentytwentythree
Version: 2.0.250930
*/

/* ==== HTML/BODY基本設定 ==== */
.page-template-page-vertical-snap {
  height: 100%;
  overflow: hidden;
}

.page-template-page-vertical-snap body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* ==== ブロック構造調整 ==== */
.page-template-page-vertical-snap .wp-site-blocks {
  padding: 0;
  margin: 0;
}

.page-template-page-vertical-snap .is-layout-constrained {
  padding: 0;
}

.page-template-page-vertical-snap .wp-site-blocks > *:first-child {
  margin-block-start: 0;
}

.page-template-page-vertical-snap .wp-block-cover:first-child {
  margin-block-start: 0;
}

.page-template-page-vertical-snap main,
.page-template-page-vertical-snap .lp-stage,
.page-template-page-vertical-snap .lp-device,
.page-template-page-vertical-snap .lp-screen,
.page-template-page-vertical-snap .lp-snap {
  margin: 0;
  padding: 0;
}

/* ==== 固定ヘッダー ==== */
.page-template-page-vertical-snap .lp-fixed-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3000;
  background: transparent;
  color: #fff;
  padding-top: max(env(safe-area-inset-top), 0px);
  isolation: isolate;
  pointer-events: auto;
}

.page-template-page-vertical-snap .lp-fixed-header a {
  color: #fff;
}

/* ==== ナビゲーション非表示 ==== */
.page-template-page-vertical-snap .wp-block-navigation__responsive-container-open {
  display: none !important;
}

/* ==== スクロールコンテナ ==== */
.page-template-page-vertical-snap .lp-snap {
  position: relative;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ==== スライド設定 ==== */
.page-template-page-vertical-snap .lp-slide,
.page-template-page-vertical-snap .wp-block-cover {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  margin: 0;
  padding: 0;
  display: flex;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* ==== カバー内部 ==== */
.page-template-page-vertical-snap .wp-block-cover__inner-container {
  max-width: none;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ==== 背景画像 ==== */
.page-template-page-vertical-snap .wp-block-cover__image-background,
.page-template-page-vertical-snap .wp-block-cover img.wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

/* ==== 背景動画 ==== */
.page-template-page-vertical-snap .wp-block-cover video,
.page-template-page-vertical-snap .wp-block-cover .wp-block-cover__video-background {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  background: #000;
}

/* ==== 動画終了状態 ==== */
.page-template-page-vertical-snap .video-ended video,
.page-template-page-vertical-snap .video-ended .wp-block-cover__video-background {
  opacity: 1;
  pointer-events: none;
}

/* ==== スワイプ促し ==== */
.page-template-page-vertical-snap .lp-swipe-hint {
  position: fixed;
  inset: auto 0 0 0;
  height: 96px;
  z-index: 2500;
  display: flex;
  display: -webkit-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
  pointer-events: none;
  font: 600 18px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
}

.page-template-page-vertical-snap .lp-swipe-hint .icon {
  display: inline-block;
  font-size: 26px;
  opacity: 0.95;
  animation: swipe-bounce 1.2s ease-in-out infinite;
}

@keyframes swipe-bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

/* ==== CTA ==== */
.page-template-page-vertical-snap .lp-cta {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2600;
  pointer-events: auto;
  opacity: 0.7;
}

/* ==== PC表示 ==== */
@media (min-width: 1024px) {
  .page-template-page-vertical-snap .lp-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #0f0f0f;
  }

  .page-template-page-vertical-snap .lp-device {
    width: min(430px, 44vw);
    aspect-ratio: 390 / 844;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    position: relative;
    background: #000;
    overflow: hidden;
  }

  .page-template-page-vertical-snap .lp-screen {
    position: absolute;
    inset: 0;
  }

  .page-template-page-vertical-snap .lp-device .lp-snap {
    height: 100%;
  }

  .page-template-page-vertical-snap .lp-device .lp-snap > * {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    scroll-snap-align: start;
  }
}

/* ==== タブレット表示 ==== */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-template-page-vertical-snap .lp-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #0f0f0f;
  }

  .page-template-page-vertical-snap .lp-device {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    height: 100svh;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    background: #000;
    overflow: hidden;
  }

  .page-template-page-vertical-snap .lp-snap {
    height: 100%;
  }
}

/* ==== モバイル表示 ==== */
@media (max-width: 767px) {
  .page-template-page-vertical-snap .lp-device {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .page-template-page-vertical-snap .lp-snap {
    height: 100%;
  }
}

/* ==== アクセシビリティ ==== */
@media (prefers-reduced-motion: reduce) {
  .page-template-page-vertical-snap .lp-swipe-hint .icon {
    animation: none;
  }
}
