:root {
  --bg: #FAFAF9;
  --panel: #FFFFFF;
  --ink: #1A1A1A;
  --grey: #767671;
  --line: #E5E4DF;
  --red: #C8372C;
  --green: #1E7A46;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* NAV */
nav { padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
nav .wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { font-weight: 700; letter-spacing: -0.3px; font-size: 1.05rem; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.9rem; color: var(--ink); }
.nav-links a.current { color: var(--red); }
.nav-book {
  font-weight: 600 !important; font-size: 0.85rem !important; background: var(--ink); color: var(--bg) !important;
  padding: 10px 20px; border-radius: 100px;
}

/* nav variant for the video hero page - white text since it sits over a dark image */
nav.on-video { border-bottom: none; }
nav.on-video .brand,
nav.on-video .nav-links a:not(.nav-book) { color: #FFFFFF; }

/* HERO (plain, non-video pages) */
.page-hero { padding: 56px 0 46px; border-bottom: 1px solid var(--line); }
.eyebrow { font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.page-hero h1 {
  font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -1px; line-height: 1.1;
  max-width: 560px; margin-bottom: 16px;
}
.page-hero .lead { color: var(--grey); max-width: 460px; font-size: 1.05rem; }

/* VIDEO HERO (homepage only) */
.bg-video {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%; z-index: 0;
}
.bg-scrim {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.35) 40%, rgba(250,250,249,0.4) 75%, rgba(250,250,249,1) 100%);
  z-index: 1;
}
.bg-fade-solid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg); opacity: 0; z-index: 1;
}
.hero { padding: 60px 0 140px; position: relative; z-index: 2; display: flex; gap: 44px; align-items: flex-start; }
.jp-mark { flex-shrink: 0; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 8px; }
.jp-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--red); }
.jp-vertical { writing-mode: vertical-rl; font-family: 'Noto Sans JP', sans-serif; font-size: 0.85rem; letter-spacing: 4px; color: #B8B8B2; }
.hero-text { flex: 1; min-width: 0; }
.hero h1 {
  font-weight: 800; font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -1.5px; line-height: 1.08;
  margin-bottom: 20px; color: #FFFFFF;
}
.hero h1 .red { color: var(--red); }
.hero .lead { color: #D9D9D4; font-size: 1.08rem; max-width: 460px; margin-bottom: 36px; }

/* BUTTONS */
.btn {
  display: inline-block; font-weight: 600; padding: 15px 30px; border-radius: 100px; font-size: 0.95rem;
  border: none; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hero CTA gets extra pop since it sits on the dark video background */
.hero .btn-primary {
  background: var(--red);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(200, 55, 44, 0.35);
  letter-spacing: 0.3px;
}
.hero .btn-primary:hover {
  background: #B22E24;
  box-shadow: 0 10px 28px rgba(200, 55, 44, 0.45);
}

/* SECTIONS */
.section { padding: 56px 0; border-top: 1px solid var(--line); position: relative; z-index: 2; background: var(--bg); }
.section:first-of-type { border-top: none; }
.section-label { font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); margin-bottom: 26px; }
.section h2 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.5px; margin-bottom: 14px; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding-left: 22px; border-left: 1px solid var(--line); }
.step:first-child { border-left: none; padding-left: 0; }
.step-num { font-weight: 800; color: var(--red); font-size: 1.6rem; margin-bottom: 12px; }
.step h3 { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--grey); font-size: 0.9rem; }

/* PRICE PANEL */
.price-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 34px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.price-num { font-weight: 800; font-size: 2.4rem; }
.price-num span { font-weight: 500; font-size: 1rem; color: var(--grey); }
.price-desc { color: var(--grey); max-width: 240px; font-size: 0.9rem; text-align: right; }

/* CARD GRID (rules page) */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h3 { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--red); }
.card p { color: var(--grey); font-size: 0.92rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p { color: var(--grey); font-size: 0.94rem; max-width: 620px; }
.faq-item a { color: var(--red); text-decoration: underline; }

/* BOOKING FORM */
.booking-panel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.form-card, .summary-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--grey); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; color: var(--ink); font-size: 0.95rem; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--red); }
.duration-options { display: flex; gap: 10px; flex-wrap: wrap; }
.duration-opt {
  flex: 1; min-width: 80px; text-align: center; padding: 12px 8px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; font-size: 0.9rem; background: var(--bg);
}
.duration-opt.selected { border-color: var(--red); background: rgba(200,55,44,0.06); color: var(--red); font-weight: 600; }

.slot-grid { max-height: 320px; overflow-y: auto; padding: 4px; }
.slot-section-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--grey); margin: 16px 0 8px;
}
.slot-section-title:first-child { margin-top: 0; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px;
  cursor: pointer; font-size: 0.78rem; font-weight: 600; background: var(--ink); color: #fff;
  white-space: nowrap;
}
.slot-btn:hover { opacity: 0.85; }
.slot-btn.selected { background: var(--red); border-color: var(--red); }
.slot-btn.unavailable {
  color: var(--grey); background: var(--bg); border-color: var(--line);
  cursor: not-allowed; text-decoration: line-through; font-weight: 400;
}
.slot-btn.unavailable:hover { opacity: 1; }
.slot-hint { color: var(--grey); font-size: 0.88rem; padding: 8px 2px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--grey); }
.summary-row.total { border-bottom: none; color: var(--ink); font-size: 1.3rem; font-weight: 800; padding-top: 18px; }
.lock-note {
  margin-top: 18px; padding: 14px 16px; background: rgba(30,122,70,0.06);
  border: 1px solid rgba(30,122,70,0.25); border-radius: 8px; font-size: 0.82rem; color: var(--grey);
}
.lock-note strong { color: var(--green); }

/* FOOTER */
footer { padding: 40px 0; position: relative; z-index: 2; background: var(--bg); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-note { color: var(--grey); font-size: 0.85rem; }

@media (max-width: 700px) {
  .steps, .card-grid, .booking-panel { grid-template-columns: 1fr; gap: 24px; }
  .step { border-left: none; padding-left: 0; }
  .hero { gap: 24px; }
  .jp-mark { width: 40px; }
}
