/* ============================================
   クリスタルラフォーレ — Crystal Laforet
   Design System
   ============================================ */

:root {
  --ink: oklch(0.10 0.015 250);
  --ink-1: oklch(0.14 0.018 250);
  --ink-2: oklch(0.20 0.022 245);
  --ink-3: oklch(0.28 0.025 245);
  --line: oklch(0.32 0.02 245 / 0.4);
  --line-soft: oklch(0.50 0.02 245 / 0.18);

  --cream: oklch(0.95 0.012 80);
  --cream-dim: oklch(0.78 0.012 80);
  --cream-mute: oklch(0.62 0.012 80);

  --gold: oklch(0.80 0.09 82);
  --gold-deep: oklch(0.62 0.10 75);
  --crystal: oklch(0.82 0.08 225);
  --crystal-deep: oklch(0.55 0.10 230);
  --moss: oklch(0.56 0.045 150);

  --bg: var(--ink);
  --fg: var(--cream);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --serif-jp: 'Shippori Mincho', 'Yu Mincho', serif;
  --serif-en: 'Italiana', 'Cormorant Garamond', serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --w-max: 1440px;
  --w-content: 1200px;
  --w-prose: 680px;

  --pad-x: clamp(20px, 5vw, 80px);
}

/* Theme variants for tweaks */
[data-theme="midnight"] {
  --bg: oklch(0.08 0.02 250);
  --fg: oklch(0.95 0.012 80);
}
[data-theme="moss"] {
  --bg: oklch(0.16 0.025 150);
  --fg: oklch(0.94 0.015 90);
  --gold: oklch(0.82 0.08 90);
  --crystal: oklch(0.78 0.06 195);
}
[data-theme="cream"] {
  --bg: oklch(0.96 0.008 80);
  --fg: oklch(0.18 0.02 250);
  --ink: oklch(0.96 0.008 80);
  --ink-1: oklch(0.92 0.01 80);
  --ink-2: oklch(0.88 0.012 80);
  --ink-3: oklch(0.78 0.012 80);
  --cream: oklch(0.18 0.02 250);
  --cream-dim: oklch(0.32 0.02 250);
  --cream-mute: oklch(0.48 0.02 250);
  --line: oklch(0.30 0.02 245 / 0.25);
  --line-soft: oklch(0.30 0.02 245 / 0.10);
}

[data-font="mincho"] {
  --serif-jp: 'Shippori Mincho', 'Yu Mincho', serif;
}
[data-font="gothic"] {
  --serif-jp: 'Zen Kaku Gothic Antique', 'Hiragino Sans', sans-serif;
}
[data-font="serif"] {
  --serif-jp: 'Cormorant Garamond', 'Italiana', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Mobile-first: 16px base for accessibility */
  font-size: clamp(14px, 2.5vw, 16px);
  /* Smooth scrolling for all browsers */
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif-jp);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  transition: background 1.2s var(--ease), color 1.2s var(--ease);
}

img, svg { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Type scale */
.eyebrow {
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.eyebrow-jp {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--cream-mute);
  font-weight: 500;
}

.h-display {
  font-family: var(--serif-jp);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1.08;
  letter-spacing: 0.04em;
}
.h-display-en {
  font-family: var(--serif-en);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 120px);
  line-height: 1.0;
  letter-spacing: 0.01em;
}
.h-1 {
  font-family: var(--serif-jp);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.06em;
}
.h-2 {
  font-family: var(--serif-jp);
  font-weight: 300;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.h-3 {
  font-family: var(--serif-jp);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.body {
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--cream-dim);
}
.body-sm {
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--cream-mute);
}
.label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-mute);
}
.num-en {
  font-family: var(--serif-en);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 36px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  letter-spacing: 0.36em;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}
.btn-sm {
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 0.28em;
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.5s var(--ease);
}
.btn-arrow:hover::after {
  transform: translateX(6px);
}

/* Layout */
.section {
  padding: clamp(80px, 12vh, 180px) var(--pad-x);
  position: relative;
}
.container {
  max-width: var(--w-content);
  margin: 0 auto;
}
.container-wide {
  max-width: var(--w-max);
  margin: 0 auto;
}

/* Divider */
.hairline {
  height: 1px;
  background: var(--line-soft);
  width: 100%;
}
.gold-rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
}

/* Image placeholder system - Unsplash photos with stripe overlay fallback */
.img-ph {
  position: relative;
  background: var(--ink-2);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Prevents CLS */
  contain: layout style paint;
}
.img-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.85);
  transition: filter 1.2s var(--ease), transform 2s var(--ease);
  /* Lazy load support */
  loading: lazy;
}
.img-ph:hover img {
  filter: brightness(0.9) saturate(1.0);
  transform: scale(1.02);
}
.img-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(0.08 0.02 250 / 0.5));
  pointer-events: none;
}

/* Crystal refraction backdrop */
.crystal-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.crystal-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 20% 30%, oklch(0.55 0.10 230 / 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, oklch(0.62 0.10 75 / 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, oklch(0.55 0.10 230 / 0.12) 0%, transparent 60%);
  filter: blur(40px);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -3%) scale(1.05); }
}

.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 1;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* Marquee */
.marquee {
  overflow: hidden;
  display: flex;
  gap: 64px;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 60s linear infinite;
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
}
.header.scrolled {
  background: oklch(0.08 0.015 250 / 0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
[data-theme="cream"] .header.scrolled {
  background: oklch(0.96 0.008 80 / 0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}
.brand-mark {
  width: 26px;
  height: 26px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name .ja {
  font-family: var(--serif-jp);
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 400;
}
.brand-name .en {
  font-family: var(--serif-en);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--cream-mute);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.nav-link { white-space: nowrap; }
@media (max-width: 1180px) {
  .brand-name .en { display: none; }
  .nav { gap: 18px; }
  .nav-link { font-size: 10px; letter-spacing: 0.2em; }
}
@media (max-width: 980px) {
  .brand-name .ja { font-size: 11px; letter-spacing: 0.16em; }
  .nav-link[data-secondary] { display: none; }
}
@media (max-width: 760px) {
  .header { padding: 16px var(--pad-x); }
  .nav-link { display: none; }
  .nav { gap: 12px; }
}
.nav-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color 0.4s var(--ease);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cream-mute);
  transition: all 0.4s var(--ease);
}
.lang-toggle button.on {
  background: var(--gold);
  color: var(--ink);
}

/* ============================================
   Mobile Menu (Hamburger)
   ============================================ */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.mobile-menu-toggle:active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.mobile-menu-toggle:active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle:active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.08 0.02 250 / 0.8);
  backdrop-filter: blur(10px);
  z-index: 99;
  animation: fade-in 0.3s var(--ease);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 80vw;
  max-width: 320px;
  height: 100vh;
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.3s var(--ease);
}

@keyframes slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s var(--ease);
}

.mobile-menu-close:hover {
  color: var(--gold);
}

.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0;
}

.mobile-menu-link {
  display: block;
  padding: 16px 20px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  transition: all 0.3s var(--ease);
  border-left: 3px solid transparent;
}

.mobile-menu-link:active,
.mobile-menu-link.active {
  color: var(--gold);
  background: oklch(0.62 0.10 75 / 0.08);
  border-left-color: var(--gold);
}

.mobile-menu-footer {
  padding: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Floating CTA */
.float-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.4), 0 0 60px oklch(0.62 0.10 75 / 0.25);
  transition: all 0.5s var(--ease);
}
.float-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px oklch(0 0 0 / 0.5), 0 0 80px oklch(0.62 0.10 75 / 0.35);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.7) contrast(1.05);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, transparent 0%, oklch(0.08 0.02 250 / 0.5) 70%),
    linear-gradient(180deg, oklch(0.08 0.02 250 / 0.4) 0%, transparent 30%, transparent 60%, oklch(0.08 0.02 250 / 0.85) 100%);
}
.hero-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid oklch(0.95 0 0 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.08 0 0 / 0.2);
  backdrop-filter: blur(10px);
  z-index: 2;
  cursor: pointer;
  transition: all 0.6s var(--ease);
}
.hero-play:hover {
  border-color: var(--gold);
  background: oklch(0.62 0.10 75 / 0.15);
  width: 96px; height: 96px;
}
.hero-play::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid oklch(0.95 0 0 / 0.15);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0; }
}
.hero-play svg {
  width: 18px; height: 18px;
  fill: var(--cream);
  margin-left: 3px;
}
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--gold);
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.hero-headline {
  font-family: var(--serif-jp);
  font-weight: 200;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--cream);
  max-width: 14ch;
}
.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: word-in 1.4s var(--ease) forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-family: var(--serif-en);
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  font-style: italic;
  max-width: 42ch;
  line-height: 1.4;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-coords {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream-mute);
  text-transform: uppercase;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-mute);
  z-index: 3;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   Concept section
   ============================================ */
.concept {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .concept { grid-template-columns: 1fr; gap: 40px; }
}
.concept-kanji {
  font-family: var(--serif-jp);
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.9;
  font-weight: 200;
  color: var(--cream);
  writing-mode: vertical-rl;
  letter-spacing: 0.2em;
  position: relative;
}
.concept-kanji::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--gold);
}

/* ============================================
   Three Layers (Sauna / Cave / Pyramid)
   ============================================ */
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 900px) {
  .layers { grid-template-columns: 1fr; }
}
.layer {
  padding: 60px 40px;
  border-right: 1px solid var(--line-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 0.8s var(--ease);
  cursor: pointer;
}
.layer:last-child { border-right: none; }
.layer:hover {
  background: linear-gradient(180deg, oklch(0.55 0.10 230 / 0.06), transparent);
}
.layer-num {
  font-family: var(--serif-en);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.layer-img {
  aspect-ratio: 4/5;
  margin-bottom: 8px;
}
.layer h3 {
  font-family: var(--serif-jp);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.1em;
}
.layer .en-tag {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--cream-mute);
  font-style: italic;
}
.layer-depth {
  position: absolute;
  top: 60px;
  right: 40px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--cream-mute);
  writing-mode: vertical-rl;
}

/* ============================================
   Rooms grid
   ============================================ */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (max-width: 900px) {
  .rooms-grid { grid-template-columns: 1fr; }
}
.room-card {
  background: var(--ink-1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.6s var(--ease);
}
.room-card:hover { background: var(--ink-2); }
.room-img {
  aspect-ratio: 16/10;
  position: relative;
}
.room-img .badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  background: oklch(0.08 0 0 / 0.6);
  backdrop-filter: blur(10px);
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.room-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.room-title {
  font-family: var(--serif-jp);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.room-en {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.room-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.room-meta-row span strong {
  display: block;
  font-family: var(--serif-en);
  font-size: 16px;
  color: var(--cream);
  margin-top: 4px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.03em;
}
.room-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.room-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.room-price .from {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--cream-mute);
  text-transform: uppercase;
}
.room-price .num {
  font-family: var(--serif-en);
  font-size: 32px;
  color: var(--cream);
}
.room-price .unit {
  font-size: 11px;
  color: var(--cream-mute);
  letter-spacing: 0.1em;
}

/* ============================================
   Experience / Story
   ============================================ */
.story-rail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .story-rail { grid-template-columns: 1fr; gap: 40px; }
}
.story-rail .timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 120px;
  align-self: start;
}
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-left: 1px solid var(--line-soft);
  transition: all 0.5s var(--ease);
  cursor: pointer;
}
.timeline-item.active {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, oklch(0.62 0.10 75 / 0.08), transparent);
}
.timeline-item .time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  min-width: 52px;
}
.timeline-item h4 {
  font-family: var(--serif-jp);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.timeline-item p {
  font-size: 11px;
  color: var(--cream-mute);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.story-stage {
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.story-act {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  scroll-margin-top: 100px;
}
.story-act .img-ph {
  aspect-ratio: 16/9;
}
.story-num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--gold);
}
.story-num .n {
  font-family: var(--serif-en);
  font-size: 56px;
  line-height: 1;
}
.story-num .of {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cream-mute);
}
.story-text h2 {
  font-family: var(--serif-jp);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-top: 8px;
}
.story-text .en {
  font-family: var(--serif-en);
  font-size: 18px;
  letter-spacing: 0.08em;
  font-style: italic;
  color: var(--cream-mute);
  margin-top: 8px;
}
.story-text p {
  margin-top: 24px;
  max-width: var(--w-prose);
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

/* ============================================
   Sauna page
   ============================================ */
.sauna-hero {
  position: relative;
  min-height: 80vh;
  padding: 180px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.sauna-hero .img-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sauna-hero .img-ph img {
  filter: brightness(0.4) saturate(0.8);
}
.sauna-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 80px;
  align-items: end;
  max-width: var(--w-content);
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  .sauna-content { grid-template-columns: 1fr; }
}
.sauna-card {
  background: oklch(0.10 0.015 250 / 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  padding: 36px;
}
.sauna-card .price-big {
  font-family: var(--serif-en);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
}
.sauna-card .price-unit {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--cream-mute);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============================================
   Booking flow
   ============================================ */
.booking-shell {
  min-height: 100vh;
  padding: 140px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  max-width: var(--w-max);
  margin: 0 auto;
}
@media (max-width: 1000px) {
  .booking-shell { grid-template-columns: 1fr; }
}
.booking-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.booking-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--cream-mute);
  transition: color 0.5s var(--ease);
}
.booking-step.active { color: var(--gold); }
.booking-step.done { color: var(--cream-dim); }
.booking-step .n {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
}
.booking-step.active .n { background: var(--gold); color: var(--ink); }
.booking-step.done .n { background: var(--cream-dim); color: var(--ink); }
.booking-step + .booking-step::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--line);
  margin-right: 4px;
}

/* Calendar */
.cal {
  background: var(--ink-1);
  border: 1px solid var(--line-soft);
  padding: 32px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.cal-head h3 {
  font-family: var(--serif-en);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.cal-nav {
  display: flex;
  gap: 8px;
}
.cal-nav button {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.cal-nav button:hover {
  border-color: var(--gold); color: var(--gold);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  text-align: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream-mute);
  text-transform: uppercase;
  padding: 8px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-en);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  background: transparent;
  color: var(--cream-dim);
}
.cal-day:hover:not(.disabled):not(.empty) {
  background: var(--ink-2);
  color: var(--cream);
}
.cal-day.disabled { color: var(--ink-3); cursor: not-allowed; }
.cal-day.empty { cursor: default; }
.cal-day.in-range { background: oklch(0.62 0.10 75 / 0.15); color: var(--cream); }
.cal-day.start, .cal-day.end {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
}
.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.cal-day.today.start::after, .cal-day.today.end::after { background: var(--ink); }

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.guest-row:last-child { border-bottom: none; }
.guest-stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}
.guest-stepper button {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}
.guest-stepper button:hover { border-color: var(--gold); color: var(--gold); }
.guest-stepper .v {
  font-family: var(--serif-en);
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

/* Summary side */
.booking-summary {
  position: sticky;
  top: 120px;
  align-self: start;
  background: var(--ink-1);
  border: 1px solid var(--line-soft);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.summary-row .lbl { color: var(--cream-mute); font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.summary-row .val { font-family: var(--serif-en); font-size: 18px; }
.summary-total {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 12px;
}
.summary-total .val {
  font-size: 32px;
  color: var(--gold);
}

/* Room option select cards */
.room-select-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.room-select {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: var(--ink-1);
  cursor: pointer;
  transition: all 0.5s var(--ease);
  align-items: center;
}
.room-select:hover { border-color: var(--line); background: var(--ink-2); }
.room-select.selected {
  border-color: var(--gold);
  background: linear-gradient(90deg, oklch(0.62 0.10 75 / 0.08), transparent);
}
.room-select .ph {
  aspect-ratio: 4/3;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.room-select .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Payment */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .pay-grid { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mute);
  font-weight: 500;
}
.field input {
  background: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.4s var(--ease);
}
.field input:focus { border-color: var(--gold); }
.field.span2 { grid-column: span 2; }

.card-input {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: border-color 0.4s var(--ease);
}
.card-input:focus-within { border-color: var(--gold); }
.card-input input {
  border: none;
  background: transparent;
  padding: 14px 0;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  flex: 1;
}

/* New pages — Access, Story, Privacy, Tokutei, Contact */
.reveal { animation: reveal-fade 0.8s var(--ease) forwards; }
.reveal { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes reveal-fade {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

input, select, textarea {
  transition: border-color 0.3s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold) !important;
  outline: none;
}
.card-brands {
  display: flex; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream-mute);
}

/* Confirmation */
.confirm {
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.confirm-mark {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.confirm-mark::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid oklch(0.62 0.10 75 / 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   Inbound page
   ============================================ */
.why-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--line-soft);
}
.why-block:last-child { border-bottom: none; }
.why-block.flip { direction: rtl; }
.why-block.flip > * { direction: ltr; }
@media (max-width: 900px) {
  .why-block, .why-block.flip { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
}
.why-block .img-ph { aspect-ratio: 4/5; }


/* ============================================
   FROM THE JOURNAL — トップページのジャーナルセクション
   星のや × NYT Magazine 風エディトリアル
   ============================================ */
.journal-section {
  background: oklch(0.07 0.012 250);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.journal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 64px;
}
.journal-title {
  margin-top: 24px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.1;
}
.journal-title-en {
  display: block;
  font-family: var(--serif-en, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.5em;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.journal-title-en em { font-style: italic; }
.journal-sub {
  max-width: 380px;
  color: var(--cream-mute);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.journal-card {
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  position: relative;
  outline: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.journal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}
.journal-card:hover::before,
.journal-card:focus-visible::before { width: 100%; }
.journal-card:hover { transform: translateY(-6px); }
.journal-card:focus-visible { outline: 1px solid var(--gold); outline-offset: 8px; }

.journal-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: oklch(0.10 0.01 250);
}
.journal-card-feature .journal-card-img { aspect-ratio: 4/5; }
.journal-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.journal-card:hover .journal-card-img img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1);
}
.journal-card-cat {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 6px 10px;
  background: oklch(0.06 0.01 250 / 0.78);
  color: var(--gold);
  border: 1px solid var(--gold);
  text-transform: uppercase;
  z-index: 2;
}
.journal-card-body {
  padding: 24px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.journal-card-date {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cream-mute);
}
.journal-card-title {
  font-family: var(--serif, 'Shippori Mincho', serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--cream);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journal-card-feature .journal-card-title { font-size: 28px; -webkit-line-clamp: 4; }
.journal-card-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--cream-dim, var(--cream-mute));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journal-card-arrow {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-top: auto;
  padding-top: 8px;
  display: inline-block;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, letter-spacing 0.4s ease;
  align-self: flex-start;
}
.journal-card:hover .journal-card-arrow,
.journal-card:focus-visible .journal-card-arrow {
  border-bottom-color: var(--gold);
  letter-spacing: 0.3em;
}
.journal-foot {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* ============================================
   BlogPage — ジャーナル一覧ページ
   ============================================ */
.blog-page { background: var(--bg, oklch(0.08 0.012 250)); }
.blog-hero {
  padding: clamp(80px, 14vh, 160px) var(--pad-x) 80px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.blog-hero-title {
  margin-top: 24px;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.05;
}
.blog-hero-en {
  display: block;
  font-family: var(--serif-en, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.45em;
  color: var(--gold);
  margin-top: 12px;
}
.blog-hero-sub { max-width: 540px; margin-top: 24px; }
.blog-meta-line {
  margin-top: 32px;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--cream-mute);
  display: flex; gap: 16px;
}
.blog-grid-section { padding: 80px var(--pad-x) 160px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.blog-card {
  cursor: pointer;
  outline: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card:focus-visible { outline: 1px solid var(--gold); outline-offset: 8px; }
.blog-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3;
  background: oklch(0.10 0.01 250);
}
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); filter: saturate(1.08) brightness(1); }
.blog-card-cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono, monospace);
  font-size: 10px; letter-spacing: 0.2em;
  padding: 6px 10px;
  background: oklch(0.06 0.01 250 / 0.78);
  color: var(--gold);
  border: 1px solid var(--gold);
  text-transform: uppercase;
}
.blog-card-body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.blog-card-date { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.2em; color: var(--cream-mute); }
.blog-card-title {
  font-family: var(--serif, 'Shippori Mincho', serif);
  font-weight: 400; font-size: 20px; line-height: 1.5; color: var(--cream);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-excerpt { font-size: 13px; line-height: 1.8; color: var(--cream-mute);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-arrow { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.25em; color: var(--gold); margin-top: 4px; }

.blog-modal {
  position: fixed; inset: 0;
  background: oklch(0.04 0.012 250 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(24px, 4vh, 64px) clamp(16px, 4vw, 48px);
  overflow-y: auto;
  animation: blogModalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes blogModalIn { from { opacity: 0; } to { opacity: 1; } }
.blog-modal-inner {
  position: relative;
  max-width: 760px;
  width: 100%;
  background: oklch(0.08 0.012 250);
  border: 1px solid var(--line-soft);
}
.blog-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: oklch(0.06 0.01 250 / 0.7);
  border: 1px solid var(--line-soft);
  color: var(--cream);
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.blog-modal-close:hover { background: oklch(0.10 0.01 250); border-color: var(--gold); }
.blog-modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-modal-body { padding: clamp(24px, 4vw, 56px); }
.blog-modal-title {
  font-family: var(--serif, 'Shippori Mincho', serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.35;
  margin-top: 16px;
  color: var(--cream);
}
.blog-modal-lead {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 17px;
  line-height: 1.85;
  color: var(--cream);
  font-style: italic;
}
.blog-modal-para {
  font-size: 15px;
  line-height: 2.05;
  margin-top: 24px;
  color: var(--cream-dim, var(--cream-mute));
  white-space: pre-wrap;
}
.blog-modal-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag {
  font-family: var(--mono, monospace);
  font-size: 10px; letter-spacing: 0.15em;
  padding: 6px 10px;
  background: oklch(0.10 0.012 250);
  border: 1px solid var(--line-soft);
  color: var(--cream-mute);
}
