:root {
  --snow: #EEF1F2;
  --night: #121619;
  --hinoki: #D9B98A;
  --ember: #E08A4F;
  --scene-length: 220vh;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --body-font: "Zen Kaku Gothic New", sans-serif;
  --heading-font: "Zen Old Mincho", serif;
  font-family: var(--body-font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
  font-synthesis: none;
  background: var(--night);
  color: var(--snow);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.site-header {
  position: absolute;
  z-index: 3;
  width: 100%;
  padding: clamp(1rem, 2.4vw, 2rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--night) 78%, transparent), transparent);
}
.wordmark {
  font: 500 clamp(1rem, 2.6vw, 1.5rem) var(--heading-font);
  white-space: nowrap;
}
nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.35rem clamp(0.85rem, 3vw, 2.75rem); }
nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.tour { position: relative; }
.screen {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  pointer-events: none;
}
.screen canvas, .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.progress {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: clamp(5.15rem, 8vw, 6rem);
  display: flex;
  gap: 0.38rem;
  padding: 0.55rem 0.65rem;
  background: color-mix(in srgb, var(--night) 52%, transparent);
}
.progress { pointer-events: auto; padding: 0.15rem 0.35rem; gap: 0; }
.progress button {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0 0.3rem;
  border: 0;
  background: none;
  cursor: pointer;
}
.progress button:hover i { opacity: 0.9; }
.progress button:focus-visible { outline: 2px solid var(--hinoki); outline-offset: -2px; }
.progress i {
  display: block;
  width: clamp(1.4rem, 2.6vw, 2.25rem);
  height: 2px;
  background: var(--snow);
  opacity: 0.45;
}
.progress .current { background: var(--hinoki); opacity: 1; }
.scene { position: relative; pointer-events: none; }
.scene a, .scene-card { pointer-events: auto; }
.scene + .scene { border-top: 1px solid color-mix(in srgb, var(--hinoki) 45%, transparent); }
.scene-view {
  position: relative;
  isolation: isolate;
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: clamp(1rem, 3vh, 2.75rem);
  padding: clamp(1.25rem, 4vh, 3.5rem) var(--gutter);
}
.scene:first-of-type .scene-view { min-height: 100svh; padding-top: 7rem; }
.scene-view::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--night) 76%, transparent), transparent 62%),
    linear-gradient(to right, color-mix(in srgb, var(--night) 45%, transparent), transparent 58%);
}
.still { z-index: -2; }
.tour.is-playing .scene.has-frames { height: var(--scene-length); border: 0; }
.tour.is-playing .has-frames .scene-view { position: sticky; top: 0; min-height: 100svh; }
.tour.is-playing .still { display: none; }
.hero { width: 100%; }
.headline { font-family: var(--heading-font); font-weight: 400; letter-spacing: -0.045em; }
.headline-a {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: end;
  margin-left: auto;
  width: max-content;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  line-height: 1;
  font-size: clamp(3.2rem, min(8.5vw, 12svh), 9rem);
}
.headline-a > span { writing-mode: vertical-rl; }
@media (width >= 768px) {
  .headline-a { position: absolute; right: var(--gutter); bottom: clamp(1.25rem, 4vh, 3.5rem); margin: 0; }
}
.headline-a small { font: 400 clamp(1rem, 1.6vw, 1.15rem) var(--body-font); letter-spacing: 0.1em; }
.hero-copy { display: grid; justify-items: start; gap: 0.85rem; margin-top: 0.9rem; }
.hero-copy p { font-size: clamp(1rem, 1.9vw, 1.3rem); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--ember);
  background: var(--ember);
  color: var(--night);
  cursor: pointer;
  font-weight: 700;
}
.button:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.button:disabled { cursor: default; opacity: 0.65; }
.scene-card {
  max-width: 100%;
  border-top: 1px solid var(--hinoki);
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 1.65rem);
  background: color-mix(in srgb, var(--night) 66%, transparent);
  backdrop-filter: blur(10px);
}
.scene-card time {
  display: block;
  color: var(--hinoki);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.scene-card h2 { margin: 0.36rem 0 0.15rem; font: 500 clamp(1.1rem, 2.1vw, 1.55rem) var(--heading-font); letter-spacing: -0.025em; }
.details {
  position: relative;
  z-index: 1;
  background: var(--snow);
  color: var(--night);
  padding-inline: var(--gutter);
}
.section { max-width: 68rem; margin-inline: auto; padding-block: clamp(3rem, 8vw, 7rem); }
.section h2 {
  font: 500 clamp(2rem, 5.5vw, 4.75rem)/1.15 var(--heading-font);
  letter-spacing: -0.045em;
  margin-bottom: clamp(1.5rem, 4vw, 3.25rem);
}
.property dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.65rem; }
.property dl div { border-top: 1px solid var(--hinoki); padding-block: 0.8rem; }
.property dd { margin-top: 0.35rem; font-size: clamp(1.15rem, 2.4vw, 1.75rem); font-variant-numeric: tabular-nums; }
.reservation { border-top: 1px solid var(--hinoki); }
form { max-width: 47rem; }
fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.5rem; font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.choices label { position: relative; display: inline-flex; cursor: pointer; }
.choices input { position: absolute; opacity: 0; }
.choices span { display: grid; place-items: center; min-height: 2.75rem; padding: 0.55rem 0.8rem; border: 1px solid currentColor; }
.choices input:checked + span { background: var(--night); color: var(--snow); }
.choices input:focus-visible + span { outline: 2px solid var(--night); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.fields label { display: grid; gap: 0.5rem; font-weight: 700; }
.fields input { min-width: 0; width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--night); background: var(--snow); color: var(--night); }
.form-status:not(:empty) { margin-top: 0.85rem; }
footer { padding: clamp(2.5rem, 8vw, 7rem) var(--gutter) clamp(1.5rem, 4vw, 3rem); }
.footer-title { font: 400 clamp(3.75rem, 16vw, 14rem)/1.05 var(--heading-font); letter-spacing: -0.055em; }
.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  border-top: 1px solid var(--hinoki);
  margin-top: clamp(1.5rem, 5vw, 3rem);
  padding-top: 1rem;
}
@media (width < 768px) {
  :root { --scene-length: 160vh; }
  .property dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width < 480px) {
  .fields { grid-template-columns: 1fr; }
}
@media (max-height: 590px) {
  .headline-a { font-size: clamp(1.75rem, 9svh, 3.5rem); }
  .scene-view { gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .screen { display: none; }
  .tour.is-playing .scene.has-frames { height: auto; }
  .tour.is-playing .has-frames .scene-view { position: relative; }
  .tour.is-playing .still { display: block; }
}
