/* =====================================================================
   溯泉養生會館 · Life Energy Massage Center
   Vanilla CSS — ported from the original React/Tailwind build
   Palette, typography and animations preserved from source.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --deep-blue: #1b45f4;
  --pale-blue: #eaebf2;
  --sage: #717a71;
  --green-gray: #bfc4bf;
  --dark-sage: #565e56;
  --whisper: #f7f7f2;
  --white: #ffffff;
  --gold: #facc15;          /* book-cover accent (yellow-400) */
  --gold-badge: #eab308;    /* popular badge (yellow-500) */

  --container: 1200px;      /* content width == header width */
  --gutter: 2rem;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --nav-h: 64px;

  --serif: "Noto Serif SC", "Noto Serif TC", serif;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Cousine", ui-monospace, monospace;

  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--sage);
  background-color: var(--whisper);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.35; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background-color: var(--deep-blue); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--whisper); }
::-webkit-scrollbar-thumb { background: var(--green-gray); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--sage); }

/* Focus visibility (accessibility floor) */
:focus-visible {
  outline: 2px solid var(--deep-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout container (shared by header + all content) ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-ico { width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-ico.sm { width: 16px; height: 16px; }
.svg-ico.xs { width: 13px; height: 13px; }

/* =====================================================================
   HEADER / NAVIGATION
   ===================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(113, 122, 113, 0.10);
}
/* home page: nav hidden until entrance completes */
body[data-page="home"] .site-header { opacity: 0; pointer-events: none; }
body[data-page="home"] .site-header.revealed { pointer-events: auto; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--sage);
  transition: color 0.3s ease; }
.brand:hover { color: var(--deep-blue); }
.brand-icon { display: inline-flex; flex: 0 0 auto; }
.brand-icon img { width: 32px; height: 32px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.05em; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage); transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--deep-blue); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--green-gray); }
.lang a { transition: color 0.3s ease; }
.lang a:hover { color: var(--sage); }
.lang .active { color: var(--sage); font-weight: 500; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem; border-radius: 999px; color: var(--sage); transition: background-color 0.3s ease;
}
.icon-btn:hover { background-color: var(--pale-blue); }
.icon-btn .svg-ico { width: 16px; height: 16px; }

/* ----- Burger button (mobile) with open/close morph ----- */
.burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 999px;
  transition: background-color 0.3s ease;
}
.burger:hover { background-color: var(--pale-blue); }
.burger span {
  position: absolute; left: 10px; width: 22px; height: 2px;
  background-color: var(--sage); border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease, top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ----- Mobile menu panel with open/close animation ----- */
.mobile-menu {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background-color: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(113, 122, 113, 0.12);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.10);
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.4s;
  z-index: 49;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0s;
}
.mobile-menu-inner { display: flex; flex-direction: column; padding: 0.75rem var(--gutter) 1.75rem; }
.mobile-menu-inner a {
  padding: 0.95rem 0.25rem;
  font-family: var(--serif); font-weight: 500; font-size: 1.15rem;
  color: var(--sage);
  border-bottom: 1px solid rgba(113, 122, 113, 0.10);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu-inner a:hover { color: var(--deep-blue); }
.mobile-menu.open .mobile-menu-inner a { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-menu-inner a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.open .mobile-menu-inner a:nth-child(5) { transition-delay: 0.26s; }
.mobile-lang {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 1.1rem; font-size: 0.85rem; color: var(--green-gray);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.mobile-menu.open .mobile-lang { opacity: 1; transform: translateY(0); }
.mobile-lang .active { color: var(--sage); font-weight: 500; }
body.menu-open { overflow: hidden; }

/* =====================================================================
   HERO BOOK LOADER (home only)
   ===================================================================== */
.hero-loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: rgba(27, 69, 244, 0.92);
  will-change: opacity;
}
.perspective { perspective: 1000px; margin-bottom: 3rem; }
.book {
  position: relative;
  width: 220px; height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(0deg);
}
.book-face { position: absolute; inset: 0; backface-visibility: hidden; }
.book-cover {
  border-radius: 0 6px 6px 0; overflow: hidden;
  transform: translateZ(12px);
  background-image: url("/images/book-cover.jpg");
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg);
}
.book-cover-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem;
}
.book-seal {
  width: 64px; height: 64px; border-radius: 999px;
  border: 2px solid rgba(250, 204, 21, 0.6);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.book-seal span { font-family: var(--serif); color: var(--gold); font-size: 1.5rem; font-weight: 700; }
.book-title {
  font-family: var(--serif); color: var(--gold); font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.15em; text-align: center; line-height: 1.7; text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.book-rule { width: 48px; height: 1px; background: rgba(250, 204, 21, 0.4); margin: 0.75rem 0; }
.book-sub { color: rgba(250, 204, 21, 0.7); font-size: 0.75rem; letter-spacing: 0.3em; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.book-back {
  border-radius: 6px 0 0 6px; overflow: hidden;
  transform: translateZ(-12px) rotateY(180deg);
  background-color: #1a3a9e;
  display: flex; align-items: center; justify-content: center;
}
.book-back-seal {
  width: 80px; height: 80px; border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.book-back-seal span { font-family: var(--serif); color: rgba(250, 204, 21, 0.6); font-size: 1.125rem; }
.book-spine {
  width: 24px; height: 100%; left: -12px;
  background: linear-gradient(to right, #1a3a9e, #244bc5, #1a3a9e);
  transform: rotateY(-90deg);
}
.book-pages { width: 214px; height: 294px; left: 3px; top: 3px; background-color: #f5f0e8; border-right: 1px solid #e8e0d0; }
.book-inner-page {
  width: 214px; height: 294px; left: 3px; top: 3px;
  background-image: url("/images/book-page.jpg");
  background-size: cover; background-position: center;
  transform: rotateY(180deg);
}
.loader-title {
  font-family: var(--serif); color: rgba(255,255,255,0.9); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 1.875rem); letter-spacing: 0.3em; margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3); text-align: center;
}
.loader-en { color: rgba(255,255,255,0.5); font-size: 0.875rem; letter-spacing: 0.2em; margin-bottom: 2.5rem; }
.loader-start {
  position: relative; padding: 0.75rem 2.5rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.9);
  font-size: 0.875rem; letter-spacing: 0.2em; overflow: hidden;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}
.loader-start:hover { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.loader-spinner { display: none; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.4); font-size: 0.875rem; letter-spacing: 0.1em; }
.loader-spinner.show { display: flex; }
.loader-start.hide { display: none; }
.spin {
  width: 20px; height: 20px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: rgba(255,255,255,0.6);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   HERO MEDIA CARD
   ===================================================================== */
.hero { position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 80vh; padding-top: 80px; }
.media-card {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer;
}
body[data-page="home"] .media-card { opacity: 0; }
.media-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* NOTE: homepage hero intentionally has NO dark overlay/gradient — legibility via text-shadow. */
.media-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem;
}
.media-top h1 {
  color: #fff; font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: 0.08em; margin-bottom: 0.5rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.5);
}
.media-top p { color: rgba(255,255,255,0.85); font-size: clamp(0.85rem, 2vw, 1rem); letter-spacing: 0.15em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.media-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.btn-play {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: 999px; padding: 0.75rem 1.25rem; transition: background-color 0.3s ease;
}
.btn-play:hover { background: #fff; }
.btn-play svg { width: 16px; height: 16px; color: var(--deep-blue); fill: var(--deep-blue); }
.btn-play span { color: var(--deep-blue); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; }
.media-more { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.85);
  transition: color 0.3s ease; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.media-more:hover { color: #fff; }
.media-more span { font-size: 0.875rem; letter-spacing: 0.08em; }
.media-card .card-border {
  position: absolute; inset: 0; border: 2px solid rgba(255,255,255,0); border-radius: var(--radius-lg);
  transition: border-color 0.5s ease; pointer-events: none;
}
.media-card:hover .card-border { border-color: rgba(255,255,255,0.25); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox-body {
  position: relative; z-index: 10; width: 90vw; max-width: 56rem;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  animation: lb-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 20;
  width: 40px; height: 40px; border-radius: 999px; background: rgba(0,0,0,0.5); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.3s ease;
}
.lightbox-close:hover { background: rgba(0,0,0,0.7); }
.lightbox-grid { display: grid; grid-template-columns: 1fr; }
.lightbox-video { aspect-ratio: 16/9; background: #000; }
.lightbox-video video { width: 100%; height: 100%; object-fit: cover; }
.lightbox-info { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.lightbox-info h3 { font-size: 1.5rem; color: var(--sage); margin-bottom: 1rem; }
.lightbox-info p { color: var(--dark-sage); line-height: 1.8; margin-bottom: 1.5rem; }
.lightbox-list { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; color: var(--sage); }
.lightbox-list li { display: flex; align-items: center; gap: 0.75rem; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--deep-blue); flex: none; }
.lightbox-cta {
  margin-top: 2rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background: var(--deep-blue); color: #fff; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; transition: opacity 0.3s ease; align-self: flex-start;
}
.lightbox-cta:hover { opacity: 0.9; }

/* =====================================================================
   SERVICES MARQUEE (full-bleed motif)
   ===================================================================== */
.marquee { padding: 4rem 0; overflow: hidden; background: var(--pale-blue); }
.marquee-row { position: relative; }
.marquee-row + .marquee-row { margin-top: 1rem; }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--serif); color: rgba(191, 196, 191, 0.4); white-space: nowrap;
  padding: 0 2rem; user-select: none; font-size: clamp(3rem, 10vw, 8rem); line-height: 1;
}
.marquee-track .sep { color: rgba(191, 196, 191, 0.2); margin: 0 2rem; padding: 0; }

/* =====================================================================
   ABOUT SECTION
   ===================================================================== */
.about { padding: 5rem 0; background: var(--pale-blue); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; color: var(--green-gray); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 1rem; }
.about h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); color: var(--sage); margin-bottom: 1.5rem; line-height: 1.3; }
.rule { width: 48px; height: 1px; background: var(--deep-blue); margin-bottom: 1.5rem; }
.about-copy { display: flex; flex-direction: column; gap: 1rem; color: var(--dark-sage); line-height: 1.85; }
.about-copy .lead { color: var(--sage); font-weight: 500; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: box-shadow 0.3s ease;
}
.stat:hover { box-shadow: var(--shadow-md); }
.stat-ico {
  width: 48px; height: 48px; border-radius: 999px; background: var(--pale-blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.stat-ico .svg-ico { width: 20px; height: 20px; color: var(--deep-blue); }
.stat-num { font-family: var(--serif); font-size: 1.875rem; font-weight: 700; color: var(--deep-blue); margin-bottom: 0.25rem; }
.stat-label { color: var(--sage); font-size: 0.875rem; }

/* =====================================================================
   IMMERSIVE GALLERY
   ===================================================================== */
.gallery { padding: 5rem 0; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); color: var(--sage); margin-bottom: 1rem; }
.section-head .rule-center { width: 64px; height: 1px; background: var(--green-gray); margin: 0 auto; }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.curtain-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.curtain { position: absolute; inset: 0; clip-path: inset(0 50% 0 50%); }
.curtain img { width: 100%; height: 100%; object-fit: cover; }
.chromatic-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 10; cursor: crosshair; }
.curtain-label { position: absolute; bottom: 1rem; left: 1rem; z-index: 20; }
.curtain-label span {
  color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.15em;
  background: rgba(0,0,0,0.3); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem; border-radius: 999px;
}
.fold-wrap { position: relative; }
.fold-canvas-holder { width: 100%; height: 500px; }
.fold-fallback { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.philosophy { margin-top: 4rem; max-width: 42rem; margin-inline: auto; text-align: center; }
.philosophy .ph-title { font-family: var(--serif); font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--dark-sage);
  line-height: 1.7; margin-bottom: 1.5rem; }
.philosophy p { color: var(--sage); line-height: 2; }
.philosophy .ph-small { color: var(--green-gray); margin-top: 1rem; font-size: 0.875rem; }

/* =====================================================================
   SERVICES MENU
   ===================================================================== */
.services { padding: 5rem 0; background: #fff; }
.services .section-head p { color: var(--green-gray); font-size: 0.875rem; letter-spacing: 0.15em;
  text-transform: uppercase; margin-top: 0.25rem; }
.services .section-head .rule-center { margin-top: 1rem; }
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 5rem; }
.service-card {
  position: relative; background: var(--whisper); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid transparent; transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); border-color: rgba(191, 196, 191, 0.3); }
.service-top { display: flex; align-items: flex-start; gap: 1rem; }
.service-ico {
  width: 48px; height: 48px; border-radius: 999px; background: var(--pale-blue); flex: none;
  display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease;
}
.service-ico .svg-ico { width: 20px; height: 20px; color: var(--sage); transition: color 0.3s ease; }
.service-card:hover .service-ico { background: rgba(27, 69, 244, 0.10); }
.service-card:hover .service-ico .svg-ico { color: var(--deep-blue); }
.service-body { flex: 1; }
.service-body h3 { font-size: 1.125rem; color: var(--sage); margin-bottom: 0.5rem; }
.service-desc { color: rgba(86, 94, 86, 0.72); font-size: 0.875rem; line-height: 1.75; margin-bottom: 1rem; }
.durations { display: flex; flex-direction: column; gap: 0.5rem; }
.duration { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.duration .time { color: var(--green-gray); font-family: var(--mono); }
.duration .price { color: var(--sage); font-weight: 500; }

.packages-head { text-align: center; margin-bottom: 2rem; }
.packages-head h3 { font-size: 1.5rem; color: var(--sage); margin-bottom: 0.5rem; }
.packages-head p { color: var(--green-gray); font-size: 0.875rem; }
.package-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.package {
  position: relative; background: var(--whisper); border: 1px solid transparent;
  border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.3s ease;
}
.package:hover { border-color: rgba(191, 196, 191, 0.3); }
.package.popular { background: var(--deep-blue); border-color: var(--deep-blue); color: #fff; }
.package-badge {
  position: absolute; top: -0.75rem; left: 1.5rem; background: var(--gold-badge); color: var(--deep-blue);
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px;
}
.package h4 { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--sage); margin-bottom: 0.5rem; }
.package.popular h4 { color: #fff; }
.package .pkg-dur { font-size: 0.875rem; color: var(--green-gray); margin-bottom: 1rem; }
.package.popular .pkg-dur { color: rgba(255,255,255,0.6); }
.pkg-price { display: flex; align-items: baseline; gap: 0.75rem; }
.pkg-old { font-size: 0.75rem; text-decoration: line-through; color: var(--green-gray); }
.package.popular .pkg-old { color: rgba(255,255,255,0.4); }
.pkg-new { font-size: 1.25rem; font-weight: 700; color: var(--deep-blue); }
.package.popular .pkg-new { color: #fff; }
.pkg-note { text-align: center; color: var(--green-gray); font-size: 0.75rem; margin-top: 2rem; }
.services-cta { text-align: center; margin-top: 2.5rem; }
.services-cta a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--sage);
  font-size: 0.875rem; letter-spacing: 0.08em; transition: color 0.3s ease; }
.services-cta a:hover { color: var(--deep-blue); }

/* =====================================================================
   RESERVATION CTA
   ===================================================================== */
.cta { padding: 5rem 0; }
.cta-box { position: relative; border-radius: var(--radius-xl); overflow: hidden; background-color: var(--deep-blue); }
.cta-pattern { position: absolute; inset: 0; opacity: 0.05;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 40px 40px; }
.cta-inner { position: relative; z-index: 10; padding: 4rem 2rem; }
.cta-head { text-align: center; margin-bottom: 3rem; }
.cta-head h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); color: #fff; margin-bottom: 1rem; }
.cta-head p { color: rgba(255,255,255,0.7); font-size: clamp(1rem, 2vw, 1.125rem); max-width: 36rem;
  margin: 0 auto; line-height: 1.8; }
.cta-buttons { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; align-items: stretch; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 999px; font-weight: 500; letter-spacing: 0.08em; transition: all 0.3s ease;
}
.btn-primary { background: var(--green-gray); color: var(--deep-blue); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.cta-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
.cta-card { background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border-radius: var(--radius); padding: 1.5rem; }
.cta-card .svg-ico { width: 20px; height: 20px; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.cta-card h4 { font-family: var(--sans); font-weight: 500; font-size: 0.875rem; color: #fff; margin-bottom: 0.25rem; }
.cta-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.75; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--sage); color: rgba(255,255,255,0.8); }
.footer-main { padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.footer-brand .fb-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .fb-mark { width: 28px; height: 28px; flex: 0 0 auto; }
.footer-brand .fb-name { font-family: var(--serif); font-size: 1.125rem; font-weight: 700; color: #fff; letter-spacing: 0.05em; }
.footer-brand .fb-desc { color: rgba(255,255,255,0.5); font-size: 0.875rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; color: rgba(255,255,255,0.6); }
.footer-contact .svg-ico { width: 16px; height: 16px; color: rgba(255,255,255,0.4); flex: none; margin-top: 0.15rem; }
.footer-col h4 { font-family: var(--sans); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em;
  color: #fff; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a, .footer-col button {
  color: rgba(255,255,255,0.5); font-size: 0.875rem; transition: color 0.3s ease;
  display: inline-flex; align-items: center; gap: 0.35rem; text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: #fff; }
.footer-col .svg-ico { width: 13px; height: 13px; }
.footer-lang { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-lang h4 { color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.footer-lang .fl-row { display: flex; gap: 0.75rem; font-size: 0.875rem; align-items: center; }
.footer-lang a { color: rgba(255,255,255,0.5); transition: color 0.3s ease; }
.footer-lang a:hover { color: #fff; }
.footer-lang .sep { color: rgba(255,255,255,0.2); }
.footer-lang .active { color: #fff; }
.footer-lang .muted { color: rgba(255,255,255,0.3); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .fb-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center;
  justify-content: space-between; padding: 1.5rem 0; }
.footer-bottom .copyright { color: rgba(255,255,255,0.3); font-size: 0.75rem; letter-spacing: 0.08em; text-align: center; }
.to-top { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.4);
  font-size: 0.75rem; letter-spacing: 0.08em; transition: color 0.3s ease; }
.to-top:hover { color: #fff; }
.to-top .svg-ico { width: 16px; height: 16px; transition: transform 0.3s ease; }
.to-top:hover .svg-ico { transform: translateY(-3px); }

/* =====================================================================
   SUB-PAGES (about / contact / privacy / terms)
   ===================================================================== */
.page-hero {
  padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 3rem; background: var(--pale-blue);
  position: relative;
}
.page-hero .breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  color: var(--green-gray); font-size: 0.75rem; letter-spacing: 0.08em; margin-bottom: 1.25rem; }
.page-hero .breadcrumb a { transition: color 0.3s ease; }
.page-hero .breadcrumb a:hover { color: var(--deep-blue); }
.page-hero .breadcrumb .sep { color: var(--green-gray); }
.page-hero .breadcrumb .current { color: var(--sage); }
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); color: var(--sage); line-height: 1.25; }
.page-hero .page-sub { margin-top: 1rem; color: var(--dark-sage); max-width: 44rem; line-height: 1.8; }
.page-hero .rule { margin-top: 1.5rem; }

.page-body { padding: 4rem 0 5rem; }
.prose { max-width: 52rem; color: var(--dark-sage); line-height: 1.9; }
.prose.narrow { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; color: var(--sage); margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; color: var(--sage); margin: 1.75rem 0 0.75rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul.bullets { margin: 0 0 1.1rem; padding-left: 1.25rem; list-style: disc; }
.prose ul.bullets li { margin-bottom: 0.55rem; padding-left: 0.25rem; }
.prose ul.bullets li::marker { color: var(--green-gray); }
.prose a.inline { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--green-gray); font-size: 0.85rem; margin-bottom: 2rem; }
.prose strong { color: var(--sage); font-weight: 500; }

/* Values / feature cards (about page) */
.value-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 2.5rem 0; }
.value-card { background: #fff; border: 1px solid rgba(191,196,191,0.25); border-radius: var(--radius);
  padding: 1.75rem; transition: box-shadow 0.3s ease; }
.value-card:hover { box-shadow: var(--shadow-md); }
.value-card .v-ico { width: 44px; height: 44px; border-radius: 999px; background: var(--pale-blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.value-card .v-ico .svg-ico { color: var(--deep-blue); }
.value-card h3 { font-size: 1.1rem; color: var(--sage); margin-bottom: 0.5rem; }
.value-card p { color: var(--dark-sage); font-size: 0.925rem; line-height: 1.8; }

.timeline { margin: 2rem 0; border-left: 2px solid rgba(191,196,191,0.4); padding-left: 1.5rem; }
.timeline .t-item { position: relative; padding-bottom: 1.75rem; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before { content: ""; position: absolute; left: calc(-1.5rem - 6px); top: 0.35rem;
  width: 10px; height: 10px; border-radius: 999px; background: var(--deep-blue); box-shadow: 0 0 0 4px var(--whisper); }
.timeline .t-year { font-family: var(--mono); color: var(--deep-blue); font-size: 0.95rem; font-weight: 700; }
.timeline .t-text { color: var(--dark-sage); margin-top: 0.25rem; }

/* Contact info cards (contact page — NO form) */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
.info-card { background: #fff; border: 1px solid rgba(191,196,191,0.25); border-radius: var(--radius);
  padding: 1.75rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-card .i-ico { width: 46px; height: 46px; border-radius: 999px; background: var(--pale-blue); flex: none;
  display: flex; align-items: center; justify-content: center; }
.info-card .i-ico .svg-ico { color: var(--deep-blue); }
.info-card .i-body h3 { font-size: 1rem; color: var(--sage); margin-bottom: 0.4rem; }
.info-card .i-body p, .info-card .i-body a { color: var(--dark-sage); font-size: 0.95rem; line-height: 1.7; }
.info-card .i-body a.link { color: var(--deep-blue); }
.info-card .i-body a.link:hover { text-decoration: underline; }
.map-embed { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--pale-blue); }
.contact-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-actions .btn-primary { background: var(--deep-blue); color: #fff; }
.contact-actions .btn-primary:hover { background: #163ad0; }
.contact-actions .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 999px; font-weight: 500; letter-spacing: 0.08em;
  border: 1px solid var(--green-gray); color: var(--sage); transition: all 0.3s ease;
}
.contact-actions .btn-outline:hover { border-color: var(--deep-blue); color: var(--deep-blue); }

/* =====================================================================
   ANIMATION HELPERS
   ===================================================================== */
.reveal-up { opacity: 0; transform: translateY(40px); }

/* =====================================================================
   RESPONSIVE — desktop breakpoints
   ===================================================================== */
@media (min-width: 768px) {
  .lightbox-grid { grid-template-columns: 1fr 1fr; }
  .lightbox-video { aspect-ratio: auto; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .package-grid { grid-template-columns: 1fr 1fr; }
  .cta-cards { grid-template-columns: repeat(3, 1fr); }
  .cta-buttons { flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
  .footer-bottom .fb-inner { flex-direction: row; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .about { padding: 8rem 0; }
  .gallery { padding: 8rem 0; }
  .services { padding: 8rem 0; }
  .cta { padding: 8rem 0; }
  .cta-inner { padding: 6rem 4rem; }
  .fold-canvas-holder { height: 600px; }
  .lightbox-info { padding: 2rem; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .package-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ----- Mobile: swap desktop nav for burger ----- */
@media (max-width: 767px) {
  :root { --gutter: 1.25rem; }
  .nav-links { display: none; }
  .nav-actions .lang { display: none; }
  .nav-actions .icon-btn { display: none; }
  .burger { display: inline-flex; }
  .media-overlay { padding: 1.25rem; }
  .hero { min-height: 70vh; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .spin { animation: none; }
  .marquee-track { transform: none !important; }
}

/* =====================================================================
   PHASE 2 — /book/ · /menu/ · /JP/
   ===================================================================== */

/* ---- booking steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 8px 0 40px;
}
.step-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(113, 122, 113, 0.10);
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--deep-blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.step-num::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--deep-blue);
  opacity: 0.4;
}
.step-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--dark-sage);
  margin-bottom: 10px;
}
.step-card p { font-size: 14.5px; line-height: 1.85; color: #5c635c; }
.step-card p a.inline { color: var(--deep-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---- price tables ---- */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(113, 122, 113, 0.10);
  margin: 8px 0 36px;
  -webkit-overflow-scrolling: touch;
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 15px;
}
.price-table thead th {
  background: var(--pale-blue);
  color: var(--dark-sage);
  font-weight: 500;
  text-align: left;
  padding: 14px 20px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.price-table tbody td {
  padding: 15px 20px;
  border-top: 1px solid #eef0ee;
  color: #454b45;
  vertical-align: middle;
}
.price-table td.svc { font-weight: 500; color: var(--dark-sage); }
.price-table td.svc .sub { display: block; font-size: 13px; font-weight: 400; color: #8a918a; margin-top: 3px; }
.price-table td.dur { white-space: nowrap; color: #6b726b; }
.price-table td.price { text-align: right; white-space: nowrap; font-weight: 700; color: var(--deep-blue); }
.price-table td.price .old {
  font-weight: 400; color: #a7ada7;
  text-decoration: line-through;
  margin-right: 10px; font-size: 13.5px;
}
.price-table tr.rowspan-top td { border-top: 1px solid #e3e6e3; }
.badge-pop {
  display: inline-block;
  background: var(--gold-badge);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---- callout (payment / yen) ---- */
.callout {
  background: var(--pale-blue);
  border-left: 3px solid var(--deep-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.9;
  color: #3f463f;
  margin: 0 0 36px;
}
.callout strong { color: var(--deep-blue); font-weight: 700; }

/* ---- notes list (booking notes) ---- */
.note-list { margin: 4px 0 36px; }
.note-list li {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(113,122,113,0.22);
  font-size: 14.5px; line-height: 1.85; color: #4c534c;
}
.note-list li:last-child { border-bottom: 0; }
.note-list .n-dot {
  flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--deep-blue);
  margin-top: 11px;
}

/* ---- section subheads inside pages ---- */
.page-section-title {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--dark-sage);
  margin: 44px 0 18px;
}
.page-section-title:first-of-type { margin-top: 0; }
.page-section-sub { font-size: 14.5px; color: #7c837c; margin: -10px 0 20px; }

/* ---- JP page typography ---- */
html[lang="ja"] body,
html[lang="ja"] .price-table,
html[lang="ja"] .info-card {
  font-family: "Noto Sans JP", var(--sans);
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3,
html[lang="ja"] .brand-name, html[lang="ja"] .fb-name,
html[lang="ja"] .page-section-title, html[lang="ja"] .step-card h3 {
  font-family: "Noto Serif JP", var(--serif);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- intro skip: set on <html> by the inline head script when the book
       was opened within the last 24 h (see index.html) ---- */
html.intro-seen .hero-loader { display: none; }
