:root {
  --page-gutter: clamp(20px, 4vw, 48px);
  --hero-photo-position: 50% 50%;
  --hero-photo-height: 86%;
  --hero-title-top: 34%;
  --hero-ink: #080808;
  --hero-layer-title: 1;
  --hero-layer-photo: 2;
  --hero-layer-links: 3;
  --hero-layer-menu: 10;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--hero-ink); font-family: "Inter", Arial, sans-serif; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #111; outline-offset: 5px; }

.hero { --hero-progress: 0; position: relative; height: 230vh; height: 230svh; }
.hero__viewport { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #fff; }
.hero__logo { position: absolute; z-index: var(--hero-layer-title); top: max(23px, env(safe-area-inset-top)); left: calc(var(--page-gutter) + 4px); width: 70px; line-height: 0; color: #20201f; }
.hero__logo svg { display: block; width: 100%; height: auto; }
.hero__title { position: absolute; z-index: var(--hero-layer-title); top: var(--hero-title-top); left: 50%; transform: translate(-50%, -50%); margin: 0; font-size: clamp(60px, 16.4vw, 112px); font-family: "Inter", Arial, sans-serif; font-weight: 800; line-height: .95; letter-spacing: -.055em; }
.hero__photo { position: absolute; z-index: var(--hero-layer-photo); inset: auto 0 0; height: var(--hero-photo-height); transform: translate3d(0, calc((1 - var(--hero-progress)) * 100%), 0); }
.hero--animated.hero--in-view .hero__photo { will-change: transform; }
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: var(--hero-photo-position); }
.hero__tonight { position: absolute; z-index: var(--hero-layer-links); right: var(--page-gutter); bottom: calc(max(12px, env(safe-area-inset-bottom)) + 7px); padding: 5px 4px; font-size: 12px; line-height: 18px; text-decoration: none; white-space: nowrap; background: rgb(255 255 255 / 76%); }
.hero__tonight:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-menu-dialog { width: min(320px, calc(100% - 40px)); padding: 28px; border: 1px solid #ddd; background: #fff; }
.hero-menu-dialog::backdrop { background: rgb(0 0 0 / 20%); }
.hero-menu-dialog h2 { margin: 0 0 16px; }
.hero-menu-dialog p { font-size: 14px; }
.hero-menu-dialog button { padding: 10px 20px; border: 1px solid #ccc; background: #eee; cursor: pointer; }

@media (min-width: 768px) {
  :root { --hero-title-top: 39%; --hero-photo-height: 80%; --hero-photo-position: 50% 55%; }
  .hero__logo { top: 36px; left: var(--page-gutter); width: 88px; }
  .hero__title { font-size: clamp(112px, 15.5vw, 260px); letter-spacing: -.06em; }
  .hero__tonight { font-size: 13px; }
}

/* JS無効時も写真が読める静的レイアウトにする。 */
.hero:not(.hero--animated) { height: auto; }
.hero:not(.hero--animated) .hero__viewport { position: relative; }
.hero:not(.hero--animated) .hero__photo { height: 49%; transform: none; will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__viewport { position: relative; }
  .hero__photo { height: 49%; transform: none; will-change: auto; }
}

/* 単語の領域を固定し、同じ位置で順に入力する。 */
.hero__title { display: grid; text-align: center; line-height: .9; }
.hero__word {
  grid-area: 1 / 1;
  opacity: var(--word-opacity, 0);
  clip-path: inset(0 var(--word-clip, 100%) 0 0);
  transform: translateY(var(--word-y, 0em)) scale(var(--word-scale, 1));
}
.hero__word:first-child { --word-opacity: 1; }
.hero:not(.hero--animated) .hero__title { display: flex; gap: .25em; white-space: nowrap; font-size: clamp(18px, 4.8vw, 64px); line-height: 1; }
.hero:not(.hero--animated) .hero__word { grid-area: auto; opacity: 1; clip-path: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__title { display: flex; gap: .25em; white-space: nowrap; font-size: clamp(18px, 4.8vw, 64px); line-height: 1; }
  .hero__word { grid-area: auto; opacity: 1; clip-path: none; transform: none; }
}

/* 文字の幅は確保したまま1文字ずつ表示し、中央位置を固定。 */
/* Exit: letters slide out from both ends inward, left/right alternately, with blur (relative offset keeps the inline layout and kerning). */
.hero__letter { position: relative; left: var(--letter-x, 0); opacity: var(--letter-opacity, 1); filter: blur(var(--letter-blur, 0px)); }
.hero:not(.hero--animated) .hero__letter { left: 0; opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__letter { left: 0; opacity: 1; filter: none; }
}

/* Only the four opt-in TOP section links; keep each button's existing dimensions and colors. */
.home .top-link-button { display: flex; align-items: center; justify-content: center; gap: 10px; }
.home .top-link-button > .top-link-button__label { flex: 0 1 auto; min-width: 0; grid-column: auto; }
.home .top-link-button > .top-link-button__arrow { display: inline-block; flex: 0 0 auto; grid-column: auto; transition: transform 200ms ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home .top-link-button:hover > .top-link-button__arrow { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .home .top-link-button > .top-link-button__arrow { transition: none; transform: none; }
}

/* Scroll-driven photo: the browser ties it to the scroll position, so it cannot lag behind on phones. */
@supports (animation-timeline: view()) {
  .hero--sda.hero--animated { view-timeline: --club-w-hero block; }
  .hero--sda.hero--animated .hero__photo { animation: club-w-hero-photo linear both; animation-timeline: --club-w-hero; animation-range: contain 20% contain 100%; }
}
@keyframes club-w-hero-photo { from { transform: translate3d(0,100%,0); } to { transform: translate3d(0,0,0); } }
.is-motion-frozen { animation: none !important; }

/* TOP: footer's liquid light, white-background version, fixed behind the page.
   The sections that were plain white (#fff) are see-through so it shows. Black/gray sections and cards are unchanged. */
.page-liquid { display: none; }
.home .page-liquid { position: fixed; z-index: -1; inset: 0; display: block; width: 100%; height: 100%; height: 100lvh; pointer-events: none; }
.home { background: radial-gradient(ellipse at 15% 20%, #dfe6ff, transparent 60%), radial-gradient(ellipse at 85% 75%, #d9f4f2, transparent 60%), #fff; background-attachment: fixed; }
.home .hero__viewport,
.home .whats-on,
.home .promotion,
.home .news:not(.news--large),
.home .live-from-w,
.home .world-wave,
.home .world-wave__title-wrap,
.home .system,
.home .private-event,
.home .access { background: transparent; }
.home .floor { --floor-bg: transparent; background: transparent; }
.home .world-wave--animated .world-wave__photos { clip-path: inset(var(--wave-title-clip, 0px) 0 0); }
