/* =====================================================
   AQUA CLUB LOUNGE – Lounge-specific CSS
   Only styles unique to the lounge page.
   WordPress common.css / style.css handle everything else.
   ===================================================== */

/* Override .page-main { overflow: hidden } from common.css.
   overflow:clip clips without creating a scroll container,
   so position:sticky works inside <main>. */
.page-main {
  overflow: clip !important;
}

/* ── Color vars ── */
:root {
  --color-brand: #3572B7;
  --color-body: #464642;
}

/* ── Header: always show white background on lounge page ── */
.page-header {
  background: #fff !important;
}
.page-header .logo a img.off {
  opacity: 1 !important;
  visibility: visible !important;
}
.page-header .logo a img.on {
  opacity: 0 !important;
  visibility: hidden !important;
}
.page-header .navigation ul li a {
  color: #3572B7 !important;
}
.page-header .nav-icon ul li {
  background: #3572B7 !important;
}
.page-header .g-language h3 span {
  color: #3572B7 !important;
}

/* ── Container ── */
.lounge-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
@media screen and (min-width: 769px) {
  .lounge-container { padding: 0 40px; }
}

/* ── Hero section ── */
.lounge-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-top: 21.25vw;
}
@media screen and (min-width: 769px) {
  .lounge-hero {
    aspect-ratio: 11/5;
    margin-top: 98px;
  }
}

.hero-img {
  position: absolute;
  inset: 0;
  transform:
    translateY(calc(var(--hs, 0) * 100px))
    scale(calc(1 + var(--hs, 0) * 0.08));
  will-change: transform;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  user-select: none;
  text-align: center;
  opacity: calc(1 - var(--hs, 0) * 2.5);
  transform: translateY(calc(var(--hs, 0) * -50px));
  will-change: opacity, transform;
}
.hero-text .hero-sub {
  color: #fff;
  font-size: 19px;
  letter-spacing: 0.1em;
  font-weight: 400;
  display: inline-block;
}
@media screen and (max-width: 768px) {
  .hero-text .hero-sub { font-size: 3.75vw; }
}
.hero-text .hero-title {
  color: #fff;
  font-size: 30px;
  letter-spacing: 0.1em;
  font-weight: 400;
  text-align: center;
  margin-top: 4px;
}
@media screen and (max-width: 768px) {
  .hero-text .hero-title { font-size: 4.375vw; }
}

/* ── Intro section ── */
.lounge-intro {
  background: #fff;
  position: relative;
  z-index: 1;
}
.lounge-intro section {
  padding-top: 64px;
  padding-bottom: 8px;
}
@media screen and (min-width: 769px) {
  .lounge-intro section { padding-top: 160px; }
}

/* Intro heading animation */
@keyframes intro-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.animate-intro-heading {
  animation: intro-fade-up 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.animate-intro-body {
  animation: intro-fade-up 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.intro-heading {
  color: var(--color-brand);
  margin-bottom: 10px;
  text-align: center;
}
@media screen and (min-width: 769px) {
  .intro-heading { text-align: left; }
}
.intro-heading .sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 400;
  line-height: 1.8;
}
@media screen and (min-width: 769px) {
  .intro-heading .sub {
    display: inline;
    font-size: 26px;
    letter-spacing: -1px;
    font-weight: 700;
    line-height: 36px;
  }
}
.intro-heading .main {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 8px;
  line-height: 1.3;
}
@media screen and (min-width: 769px) {
  .intro-heading .main {
    display: inline;
    font-size: 26px;
    letter-spacing: -1px;
    margin-top: 0;
    line-height: 36px;
  }
}
.intro-heading .divider {
  width: 40px;
  height: 1px;
  background: rgba(53, 114, 183, 0.4);
  margin: 16px auto 0;
}
@media screen and (min-width: 769px) {
  .intro-heading .divider { display: none; }
}

.intro-text-wrap {
  margin-top: 32px;
}
@media screen and (min-width: 769px) {
  .intro-text-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
  }
  .intro-text-inner { width: 50%; }
}

.nowrap { display: inline-block; }

/* ── Text styles for mobile/desktop ── */
.text-sp {
  font-size: clamp(13px, 3.73vw, 16px);
  line-height: 2;
  color: var(--color-body);
  font-weight: 300;
  text-align: center;
}
@media screen and (min-width: 769px) {
  .text-sp { display: none; }
}

.text-pc {
  display: none;
}
@media screen and (min-width: 769px) {
  .text-pc {
    display: block;
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-body);
    font-weight: 400;
    text-align: left;
  }
}

.text-pc-center {
  display: none;
}
@media screen and (min-width: 769px) {
  .text-pc-center {
    display: block;
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-body);
    font-weight: 400;
    text-align: center;
  }
}

/* ── Ken Burns image ── */
@keyframes ken-burns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.2); }
}
.ken-burns-wrap {
  overflow: hidden;
}
.ken-burns-wrap.active .ken-burns-inner {
  animation: ken-burns 18s linear forwards;
}
.ken-burns-inner {
  transform-origin: center center;
}

/* ── Aspect ratio image wrappers ── */
.img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.img-wrap.ar-4-3 { aspect-ratio: 4/3; }
.img-wrap.ar-3-2 { aspect-ratio: 3/2; }

@media screen and (min-width: 769px) {
  .img-wrap.md-ar-7-3 { aspect-ratio: 7/3; }
  .img-wrap.md-ar-6-5 { aspect-ratio: 6/5; }
  .img-wrap.md-ar-5-3 { aspect-ratio: 5/3; }
}

/* Intro landscape full-bleed on mobile */
.intro-landscape-wrap {
  margin-top: 40px;
  margin-left: -24px;
  margin-right: -24px;
}
@media screen and (min-width: 769px) {
  .intro-landscape-wrap {
    margin-top: 64px;
    margin-left: 0;
    margin-right: 0;
  }
}

/* TextReveal */
.text-reveal-wrap {
  margin-top: 40px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-width: 769px) {
  .text-reveal-wrap { margin-top: 64px; }
}

/* ── Scroll animation states ── */
.anim-fade {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-fade.visible { opacity: 1; }

.anim-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-reveal.visible {
  opacity: 1;
  transform: none;
}

.anim-scale {
  overflow: hidden;
}
.anim-scale .anim-scale-inner {
  transform: scale(1.3);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-scale.visible .anim-scale-inner {
  transform: scale(1);
}

/* ── Sticky time header ── */
.sticky-header {
  background: #fff;
  position: sticky;
  top: 21.25vw;
  z-index: 8;
  padding: 8px 0;
}
@media screen and (min-width: 769px) {
  .sticky-header {
    top: 98px;
    padding: 12px 0;
  }
}
.sticky-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media screen and (min-width: 769px) {
  .sticky-header-inner { gap: 16px; }
}
.sticky-header-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-brand);
}
@media screen and (min-width: 769px) {
  .sticky-header-line { width: 40px; }
}
.sticky-header-time {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-brand);
  font-weight: 400;
}
@media screen and (min-width: 769px) {
  .sticky-header-time { font-size: 16px; }
}
.sticky-header-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-brand);
  line-height: 1;
  margin: 0;
}
@media screen and (min-width: 769px) {
  .sticky-header-title { font-size: 24px; }
}

/* ── Aperitif section ── */
.section-aperitif {
  position: relative;
  z-index: 1;
  background: #fff;
  padding-top: 64px;
}
@media screen and (min-width: 769px) {
  .section-aperitif { padding-top: 96px; }
}
.aperitif-text-pc {
  display: none;
}
@media screen and (min-width: 769px) {
  .aperitif-text-pc {
    display: block;
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-body);
    font-weight: 400;
    margin-top: 32px;
    width: 48%;
    margin-left: auto;
    padding-left: 5px;
  }
}
.aperitif-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
}
@media screen and (min-width: 769px) {
  .aperitif-grid {
    flex-direction: row;
    margin-top: 32px;
  }
}
.aperitif-main {
  width: 100%;
}
@media screen and (min-width: 769px) {
  .aperitif-main { width: 57%; }
}
.aperitif-text-sp {
  margin: 20px 0;
}
@media screen and (min-width: 769px) {
  .aperitif-text-sp { display: none; }
}
.aperitif-subs {
  display: flex;
  flex-direction: row;
  gap: 5px;
  flex: 1;
}
@media screen and (min-width: 769px) {
  .aperitif-subs { flex-direction: column; }
}
.aperitif-sub-img {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.aperitif-sub-img.ar-3-2 { aspect-ratio: 3/2; }
@media screen and (min-width: 769px) {
  .aperitif-sub-img.ar-3-2 { aspect-ratio: auto; }
}
.aperitif-sub-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* ── Cocktail Notes section ── */
.section-cocktail {
  position: relative;
  z-index: 1;
}
.cocktail-spacer {
  background: #fff;
  height: 64px;
}
@media screen and (min-width: 769px) {
  .cocktail-spacer { height: 96px; }
}
.cocktail-spacer-sm {
  background: #fff;
  height: 32px;
}

/* Cocktail sunset: fixed bg at z:0, behind all z:1 sections.
   Transparent #cocktail-sunset-window reveals this image. */
.cocktail-sunset-fixed {
  display: none;
  pointer-events: none;
}
@media screen and (min-width: 769px) {
  .cocktail-sunset-fixed {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
  }
  .cocktail-sunset-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 95%;
    display: block;
  }
}

#cocktail-sunset-window {
  aspect-ratio: 11/5;
}

.cocktail-block {
  background: #fff;
}
.cocktail-block-inner {
  max-width: 1100px;
  margin: 0 auto;
}
@media screen and (min-width: 769px) {
  .cocktail-block-inner { padding: 0 40px; }
}
.cocktail-text-area {
  padding: 32px 24px;
}
@media screen and (min-width: 769px) {
  .cocktail-text-area { padding: 40px 0; }
}
.cocktail-text-center {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Bar Time section ── */
.section-bartime {
  position: relative;
  z-index: 1;
  background: #fff;
  padding-top: 64px;
}
@media screen and (min-width: 769px) {
  .section-bartime { padding-top: 96px; }
}
.bartime-main-wrap {
  margin-top: 24px;
}
@media screen and (min-width: 769px) {
  .bartime-main-wrap { margin-top: 32px; }
}
.bartime-text-wrap {
  margin-top: 40px;
  margin-bottom: 48px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.bartime-bottom {
  position: relative;
}
.bartime-sub-wrap {
  width: 100%;
}
@media screen and (min-width: 769px) {
  .bartime-sub-wrap { width: 58%; }
}
.bartime-sub-text {
  margin-top: 16px;
}
@media screen and (min-width: 769px) {
  .bartime-sub-text {
    margin-top: 0;
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(42% - 20px);
    padding-left: 20px;
  }
  .bartime-sub-text .text-pc {
    text-align: left;
  }
}

/* ── CTA section ── */
.section-cta {
  background: #fff;
  position: relative;
  z-index: 1;
}
.cta-inner {
  padding: 48px 0 40px;
  text-align: center;
}
@media screen and (min-width: 769px) {
  .cta-inner { padding: 64px 0 48px; }
}
.cta-text {
  color: var(--color-brand);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(13px, 3.73vw, 16px);
  line-height: 2;
}
@media screen and (min-width: 769px) {
  .cta-text {
    font-size: 20px;
    line-height: 2;
  }
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid rgba(53, 114, 183, 0.3);
  color: var(--color-brand);
  padding: 14px 24px;
  width: 100%;
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}
@media screen and (min-width: 769px) {
  .cta-btn {
    width: auto;
    min-width: 260px;
    justify-content: space-between;
    padding: 14px 32px;
  }
}
.cta-btn:hover {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

/* ── iPhone safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media screen and (max-width: 768px) {
    .page-footer {
      padding-bottom: calc(50vw + env(safe-area-inset-bottom));
    }
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .hero-text {
    transform: none !important;
    opacity: 1 !important;
  }
  .animate-intro-heading,
  .animate-intro-body {
    animation: none;
    opacity: 1;
  }
  .anim-fade,
  .anim-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .anim-scale .anim-scale-inner {
    transform: none !important;
    transition: none !important;
  }
  .ken-burns-wrap.active .ken-burns-inner {
    animation: none;
  }
}
