﻿@charset "utf-8";

.page-section--horizontal {
  background: #09090b;
}

.horizontal-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.horizontal-stage__slides {
  position: absolute;
  inset: 0;
}

.horizontal-stage__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.horizontal-stage__item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}

.horizontal-stage__item.is-entering-from-right {
  visibility: visible;
  opacity: 0;
  transform: translate3d(34px, 0, 0);
  z-index: 4;
  animation: horizontalEnterFromRight 0.82s var(--ease-main) forwards;
  animation-delay: 0.10s;
}

.horizontal-stage__item.is-leaving-to-right {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  z-index: 3;
  animation: horizontalLeaveToRight 0.62s var(--ease-main) forwards;
}

.horizontal-stage__item.is-entering-from-left {
  visibility: visible;
  opacity: 0;
  transform: translate3d(-34px, 0, 0);
  z-index: 4;
  animation: horizontalEnterFromLeft 0.82s var(--ease-main) forwards;
  animation-delay: 0.10s;
}

.horizontal-stage__item.is-leaving-to-left {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  z-index: 3;
  animation: horizontalLeaveToLeft 0.62s var(--ease-main) forwards;
}

@keyframes horizontalEnterFromRight {
  0% { opacity: 0; transform: translate3d(34px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes horizontalLeaveToRight {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(54px, 0, 0); }
}

@keyframes horizontalEnterFromLeft {
  0% { opacity: 0; transform: translate3d(-34px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes horizontalLeaveToLeft {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 0; transform: translate3d(-54px, 0, 0); }
}

.horizontal-stage__media {
  position: absolute;
  inset: 0;
}

.horizontal-stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.horizontal-stage__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  width: 100%;
  max-width: var(--section-content-width);
  padding: 50px 50px 130px 50px;
  /*
  padding:
    max(28px, env(safe-area-inset-top))
    var(--container-pad-x)
    max(36px, env(safe-area-inset-bottom))
    var(--container-pad-x);
  */
}

.horizontal-stage__nav {
  position: absolute;
  right: var(--container-pad-x);
  /*bottom: max(26px, env(safe-area-inset-bottom));*/
  bottom: calc(var(--bottom-nav-height, 200px) + 24px);
  z-index: 20;
  display: flex;
  gap: 10px;
}

.horizontal-stage__button {
  min-width: 74px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition:
    transform var(--dur-fast) var(--ease-main),
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    opacity var(--dur-fast) ease;
}

.horizontal-stage__button.is-disabled,
.horizontal-stage__button:disabled {
  opacity: 0.22;
  pointer-events: none;
  cursor: default;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.1);
  transform: none;
}


/* ===============================
   Horizontal Side Info
================================ */

.horizontal-stage--sideinfo .horizontal-stage__sideinfo {
  position: absolute;
  left: 75%;
  top: 50%;
  z-index: 12;
  width: min(34vw, 460px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =========================================
   Horizontal SideInfo Wide
================================ */

.horizontal-stage--sideinfo .horizontal-stage__sideinfo.horizontal-stage__sideinfo--wide {
  width: min(46vw, 720px);
}

/* ultra wide */
.horizontal-stage--sideinfo .horizontal-stage__sideinfo.horizontal-stage__sideinfo--xwide {
  width: min(56vw, 920px);
}

/* item自体は常に重ねる。relativeにしない＝カクつき防止 */
.horizontal-stage__sideinfo-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 中身が空のitemは常に非表示 */
.horizontal-stage__sideinfo-item.is-empty {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* activeは表示するだけ。ここでは中身を動かさない */
.horizontal-stage__sideinfo-item.is-active {
  opacity: 1;
  visibility: visible;
}

/* 中身の初期状態 */
.horizontal-stage__sideinfo-item h3,
.horizontal-stage__sideinfo-item p {
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 24px, 0);
  will-change: opacity, filter, transform;
}

/* JSが .is-text-visible を付けた時だけ、タイトル→本文で出す */
.horizontal-stage__sideinfo-item.is-text-visible h3 {
  animation: sideInfoTextFadeUp 0.82s var(--ease-main) 0.08s forwards;
}

.horizontal-stage__sideinfo-item.is-text-visible p {
  animation: sideInfoTextFadeUp 0.9s var(--ease-main) 0.34s forwards;
}

/* 離脱時 */
.horizontal-stage__sideinfo-item.is-leaving {
  visibility: visible;
  opacity: 1;
  animation: sideInfoItemFadeOut 0.42s var(--ease-main) forwards;
}

.horizontal-stage__sideinfo-item h3 {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.96);
  font-size: clamp(24px, 2.4vw, 42px);
  font-size: clamp(16px, 1.67vw, 24px);
  line-height: 1.12;
  letter-spacing: 0.05em;
  font-weight: 400;
}
.horizontal-stage__sideinfo-item h3.scroll {
  margin: 0 0 40px;
  font-size: clamp(18px, 2.0vw, 32px);
  line-height: 1.5;
}
.horizontal-stage__sideinfo-item h3.scroll.min {
  font-size: clamp(18px, 1.6vw, 24px);
}

.horizontal-stage__sideinfo-item p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: clamp(12px, 0.95vw, 15px);
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.horizontal-stage__sideinfo-item.mintop p {
  font-size: clamp(10px, 0.85vw, 11px);
  margin-bottom: 10px;
}

@keyframes sideInfoTextFadeUp {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 24px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sideInfoItemFadeOut {
  0% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 0;
    filter: blur(10px);
  }
}

@media (max-width: 768px) {
  .horizontal-stage--sideinfo .horizontal-stage__sideinfo {
    left: var(--container-pad-x);
    right: var(--container-pad-x);
    top: auto;
    bottom: calc(var(--bottom-nav-height, 82px) + 96px);
    width: auto;
    transform: none;
  }
  
  .horizontal-stage--sideinfo .horizontal-stage__sideinfo.horizontal-stage__sideinfo--wide,
  .horizontal-stage--sideinfo .horizontal-stage__sideinfo.horizontal-stage__sideinfo--xwide {
    width: auto;
  }

  .horizontal-stage__sideinfo-item h3 {
    font-size: 24px;
  }

  .horizontal-stage__sideinfo-item p {
    font-size: 12px;
    line-height: 1.85;
  }
}

.horizontal-stage__sideinfo:has(.horizontal-stage__sideinfo-item--countdown.is-active) {
  right: clamp(120px, 10vw, 190px);
}

/* sideinfo の中身を上下中央に固定 */
.horizontal-stage__sideinfo-item.is-active,
.horizontal-stage__sideinfo-item.is-leaving {
  inset: auto 0 auto 0;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

/* ===============================
   Alpine Countdown
================================ */

.alpine-countdown {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 28px, 0);
  will-change: opacity, filter, transform;
}

.horizontal-stage__sideinfo-item.is-text-visible .alpine-countdown {
  animation: alpineCountdownIn 0.95s var(--ease-main) 0.08s forwards;
}

.alpine-countdown__label {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.72);
  font-size: clamp(11px, 0.82vw, 13px);
  line-height: 1;
  letter-spacing: 0.28em;
}
.horizontal-stage__sideinfo-item .alpine-countdown__label {
  margin: 0 0 10px 0;
}

.alpine-countdown__date {
  margin: 0 0 30px;
  color: rgba(255,255,255,0.98);
  font-size: clamp(24px, 2.78vw, 40px) !important;
  line-height: 1.02;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.horizontal-stage__sideinfo-item .alpine-countdown__date {
  margin: 0 0 30px 0;
}

.alpine-countdown__time {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.4vw, 20px);
}

.alpine-countdown__time span {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding-bottom: 10px;
}

.alpine-countdown__time span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.82),
    rgba(255,255,255,0.05)
  );
}

.alpine-countdown__time strong {
  display: inline-block;
  min-width: 2ch;
  color: rgba(255,255,255,0.98);
  font-size: clamp(24px, 2.9vw, 48px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}

.alpine-countdown__time span:first-child strong {
  min-width: 3ch;
}

.alpine-countdown__time em {
  color: rgba(255,255,255,0.58);
  font-size: clamp(10px, 0.8vw, 12px);
  line-height: 1;
  letter-spacing: 0.12em;
  font-style: normal;
  text-transform: uppercase;
}

.alpine-countdown.is-ticking .alpine-countdown__time strong {
  animation: alpineCountdownTick 0.38s var(--ease-main);
}

@keyframes alpineCountdownIn {
  0% {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 34px, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes alpineCountdownTick {
  0% {
    filter: blur(6px);
    transform: translate3d(0, 6px, 0);
    opacity: 0.55;
  }
  100% {
    filter: blur(0);
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .alpine-countdown__time {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .alpine-countdown__date {
    margin-bottom: 22px;
  }
}

.alpine-countdown.is-shuffling .alpine-countdown__time strong {
  filter: blur(4px);
  opacity: 0.72;
  transform: translate3d(0, 3px, 0);
}

.horizontal-stage__sideinfo-item--countdown {
  transform: translateY(70px);
}


.alpine-countdown,
.alpine-countdown *,
.alpine-countdown__label,
.alpine-countdown__date,
.alpine-countdown__time,
.alpine-countdown__time span,
.alpine-countdown__time strong,
.alpine-countdown__time em {
  font-family:
    "Shippori Mincho",
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
}


.horizontal-stage__sideinfo-item--scroll {
  max-height: min(72vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  padding-right: 10px;
  padding-top: 100px;
  padding-bottom: 30px;
}

/* スクロールバーを上品に細く */
.horizontal-stage__sideinfo-item--scroll::-webkit-scrollbar {
  width: 4px;
}

.horizontal-stage__sideinfo-item--scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
}

.horizontal-stage__sideinfo-item--scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
}

/* Firefox */
.horizontal-stage__sideinfo-item--scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
}

@media (min-width: 769px) {
  .horizontal-stage__sideinfo-item--scroll.is-active {
    pointer-events: auto;
    max-height: min(72vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
  }

  .horizontal-stage__sideinfo-item--scroll.is-active::-webkit-scrollbar {
    width: 4px;
  }

  .horizontal-stage__sideinfo-item--scroll.is-active::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
  }

  .horizontal-stage__sideinfo-item--scroll.is-active::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.35);
    border-radius: 999px;
  }
}


.horizontal-stage__sideinfo-item .rc-gallery {
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.9s var(--ease-main),
    filter 0.9s var(--ease-main),
    transform 0.9s var(--ease-main);
}

.horizontal-stage__sideinfo-item.is-active.is-text-visible .rc-gallery {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.horizontal-stage__sideinfo-item .rc-gallery {
  width: min(520px, 100%);
  min-height: 320px;
}

.horizontal-stage__sideinfo-item .rc-gallery__viewport {
  min-height: 320px;
}

.horizontal-stage__sideinfo-item .rc-gallery__track,
.horizontal-stage__sideinfo-item .rc-gallery__page {
  min-height: 320px;
}

.horizontal-stage__sideinfo-item .rc-gallery__item {
  min-height: 150px;
}

.horizontal-stage__sideinfo-item .rc-gallery__itemMedia {
  width: 100%;
  height: 100%;
  min-height: 150px;
}

.horizontal-stage__sideinfo-item .rc-gallery__itemMedia img,
.horizontal-stage__sideinfo-item .rc-gallery__itemMedia video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   Sponsor Case Layout
================================ */

.sponsor-case-list {
  display: grid;
  gap: 14px;
  width: min(500px, 100%);
  margin-top: 30px;
}

.sponsor-case-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 72px 1fr;
  align-items: center;
  gap: 20px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.035)
    );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;

  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 24px, 0);
  will-change: opacity, filter, transform;
}

.horizontal-stage__sideinfo-item.is-text-visible .sponsor-case-card:nth-child(1) {
  animation: sideInfoTextFadeUp 0.82s var(--ease-main) 0.12s forwards;
}

.horizontal-stage__sideinfo-item.is-text-visible .sponsor-case-card:nth-child(2) {
  animation: sideInfoTextFadeUp 0.82s var(--ease-main) 0.24s forwards;
}

.horizontal-stage__sideinfo-item.is-text-visible .sponsor-case-card:nth-child(3) {
  animation: sideInfoTextFadeUp 0.82s var(--ease-main) 0.36s forwards;
}

.sponsor-case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0)
    );
  opacity: 0.22;
  pointer-events: none;
}

.sponsor-case-card__thumb {
  position: relative;
  z-index: 1;
  width: 100px;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
}

.sponsor-case-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsor-case-card__number {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.55);
  font-family:
    "Shippori Mincho",
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.sponsor-case-card__body {
  position: relative;
  z-index: 1;
}

.sponsor-case-card__body h4 {
  margin: 0 0 8px;
  color: rgba(255,255,255,0.95);
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.55;
  letter-spacing: 0.07em;
  font-weight: 400;
}

.sponsor-case-card__body p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: clamp(11px, 0.78vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.055em;
}

/* =========================================
   SideInfo Gallery Click Guard
   PC horizontal mode only
========================================= */

@media (min-width: 1051px) {
  .horizontal-stage__sideinfo-item .rc-gallery,
  .horizontal-stage__sideinfo-item .rc-gallery * {
    pointer-events: none !important;
  }

  .horizontal-stage__sideinfo-item.is-active .rc-gallery {
    pointer-events: auto !important;
  }

  .horizontal-stage__sideinfo-item.is-active .rc-gallery__page.is-active {
    pointer-events: auto !important;
  }

  .horizontal-stage__sideinfo-item.is-active .rc-gallery__page.is-active * {
    pointer-events: auto !important;
  }
}


/* =========================================
   PC Horizontal Layer Order Final
   上から：
   1. horizontal-stage__content
   2. horizontal-stage__nav
   3. fp-float
========================================= */

@media (min-width: 1051px) {

  .page-section--horizontal .horizontal-stage {
    z-index: auto !important;
  }

  .page-section--horizontal .horizontal-stage__item.is-active {
    z-index: auto !important;
    transform: none !important;
  }

  .page-section--horizontal .horizontal-stage__media {
    z-index: 1 !important;
  }

  .page-section--horizontal .page-section__overlay {
    z-index: 2 !important;
  }

  .page-section--horizontal > .fp-float {
    z-index: 30 !important;
  }

  .page-section--horizontal .horizontal-stage__nav {
    z-index: 50 !important;
  }

  .page-section--horizontal .horizontal-stage__content {
    z-index: 70 !important;
  }

}