@font-face {
  font-family: Geist;
  src: url("geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-regular.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif JP";
  src: url("noto-serif-jp-headings.woff2?v=82") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #000;
  --wash-rgb: 7 7 8;
  --paper-light: #101010;
  --ink: #faf9f6;
  --soft-ink: #dfddd8;
  --muted: #bbb8b3;
  --ink-accent: #d5c6b2;
  --line: rgb(255 255 255 / .26);
  --gutter: clamp(23px, 6vw, 110px);
  --copy-gutter: max(clamp(1.75rem, 10vw, 12rem), calc((100% - 80rem) / 2));
  --header: calc(var(--gutter) + 29px);
  --display: "Instrument Serif", "Times New Roman", "Yu Mincho", serif;
  --heading-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-family: Geist, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1.3rem); }
body { margin: 0; min-width: 280px; font-size: .96rem; }
a { color: inherit; text-decoration: none; }
a[rel~="external"]::after {
  content: "";
  width: .85em;
  height: .85em;
  flex: none;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3.5H3v9.5h9.5V9M9 2.5h4.5V7M13.5 2.5 7 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
button { color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink-accent); outline-offset: 5px; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: #c8d0c4; color: #151515; }
.skip-link { position: fixed; z-index: 20; top: .8rem; left: var(--gutter); padding: .65rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 5; inset: 0 0 auto; height: var(--header); background: #000; transition: background .25s ease; }
.site-header.is-compact { background: #000e; backdrop-filter: blur(15px); }
body:has(.journey) .site-header:has(.menu-button:not([hidden])) { background: transparent; backdrop-filter: none; pointer-events: none; }
.site-header :is(a, button) { pointer-events: auto; }
body:has(.journey) .menu-icon { filter: drop-shadow(0 1px 2px #171914); }
.footer-inner { width: 100%; max-width: 1820px; margin-inline: auto; padding-inline: var(--gutter); }
/* The 14px menu glyph sits 15px inside its 44px touch target. */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: calc(var(--gutter) - 15px) var(--gutter) 0; }
.wordmark { display: inline-flex; align-items: center; flex: none; width: 124px; height: 44px; }
.wordmark img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.header-inner .wordmark { width: 87px; }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.language-switch { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; gap: .35rem; padding-inline: .35rem; font: 550 .78rem/1 Geist, sans-serif; letter-spacing: .045em; }
.language-switch:hover { color: var(--ink-accent); }
.globe-icon { position: relative; display: inline-block; width: 17px; height: 17px; border: 1.3px solid currentColor; border-radius: 50%; }
.globe-icon::before { position: absolute; inset: -1px 3.5px; border: 1px solid currentColor; border-radius: 50%; content: ""; }
.globe-icon::after { position: absolute; inset: 50% 0 auto; border-top: 1px solid currentColor; content: ""; }
body:has(.journey) .site-header .language-switch { filter: drop-shadow(0 1px 2px #171914); }
/* Center the lettering within the transparent padding of brand.png. */
.header-inner .wordmark img { transform: translateY(3%); }
.header-links { display: flex; gap: clamp(1.6rem, 3.8vw, 4.4rem); align-items: center; margin-left: auto; }
.header-links a, .footer-links a { display: inline-flex; align-items: center; gap: .57rem; min-height: 44px; font-size: .9rem; font-weight: 580; color: var(--soft-ink); }
.header-links a:hover, .footer-links a:hover, .header-links [aria-current] { color: var(--ink); }
.header-links [aria-current]::before { width: 5px; height: 5px; background: var(--ink-accent); content: ""; transform: rotate(45deg); }
.close-button { display: inline-flex; align-items: center; justify-content: center; gap: .68rem; min-height: 42px; padding: 0 .85rem 0 .95rem; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; background: #141414; font-size: .875rem; font-weight: 570; }
.close-button:hover { border-color: var(--ink-accent); }
.header-inner :is(.menu-button, .close-button) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.header-inner :is(.menu-button, .close-button):hover { color: var(--ink-accent); }
.menu-icon { position: relative; width: 23px; height: 14px; border-block: 1.5px solid currentColor; }
.menu-icon::before { position: absolute; top: 50%; inset-inline: 0; height: 1.5px; transform: translateY(-50%); background: currentColor; content: ""; }
.close-icon { position: relative; width: 18px; height: 14px; }
.close-icon::before, .close-icon::after { position: absolute; inset: 4px 0 auto; height: 1px; background: currentColor; content: ""; }
.close-icon::before, .close-icon::after { top: 7px; transform: rotate(45deg); }
.close-icon::after { transform: rotate(-45deg); }
.journey-loader { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 1.5rem; background: #10100f; color: var(--ink); }
.journey-loader[open] { display: grid; place-items: center; }
.journey-loader::backdrop { background: #10100f; }
html:has(.journey-loader[open]) { overflow: hidden; overscroll-behavior: none; }
.loading-panel { width: min(100%, 14rem); }
.loading-panel .wordmark { display: flex; margin: 0 auto 2rem; }
.loading-status { display: flex; align-items: baseline; justify-content: space-between; font: .8rem/1.5 system-ui, sans-serif; }
.loading-percent { font-variant-numeric: tabular-nums; }
.loading-panel progress { display: block; width: 100%; height: 2px; margin-top: .6rem; appearance: none; border: 0; color: var(--ink-accent); background: #464541; }
.loading-panel progress::-webkit-progress-bar { background: #464541; }
.loading-panel progress::-webkit-progress-value { background: var(--ink-accent); }
.loading-panel progress::-moz-progress-bar { background: var(--ink-accent); }
.loading-panel form { text-align: center; font-size: .875rem; }
.loading-panel button { margin: .5rem .4rem; padding: .35rem 0; border: 0; background: none; text-decoration: underline; text-underline-offset: .25em; }

.site-menu { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); }
.site-menu::backdrop { background: var(--paper); }
html:has(.site-menu[open]) { overflow: hidden; }
.menu-shell { display: flex; flex-direction: column; min-height: 100%; }
.menu-header { flex: none; }
.menu-header .close-button:focus-visible { outline-offset: -3px; border-radius: 50%; }
.menu-links {
  display: grid;
  width: min(44rem, calc(100% - 2 * var(--gutter)));
  margin: clamp(1.25rem, 12vh, 7rem) auto 2rem;
}
.menu-links a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .45em;
  min-height: 46px;
  padding: .75rem .5rem .75rem 1.45rem;
  border-bottom: 1px solid rgb(255 255 255 / .18);
  font: 400 clamp(1.06rem, 1.55vw, 1.42rem)/1.4 var(--heading-serif);
  letter-spacing: .015em;
  transition: color .2s;
}
.menu-links a:hover, .menu-links [aria-current] { color: var(--ink-accent); }
.menu-links [aria-current]::before { position: absolute; left: .25rem; top: 50%; width: 4px; height: 4px; background: currentColor; transform: translateY(-50%) rotate(45deg); content: ""; }

.menu-licenses {
  display: flex;
  align-items: center;
  align-self: start;
  min-height: 44px;
  margin: auto 0 1.5rem max(var(--gutter), calc((100% - 44rem) / 2));
  padding: .45rem .5rem;
  color: var(--muted);
  font: 400 .78rem/1.5 var(--heading-serif);
}
.menu-licenses:hover, .menu-licenses:focus-visible { color: var(--ink); text-decoration: underline; }
.license-page { min-height: 75svh; padding: calc(var(--header) + 3rem) var(--gutter) 4rem; }
.license-page .prose { max-width: 48rem; margin: 0 auto; }
.license-page h1 { font: 400 clamp(1.65rem, 3.4vw, 2.5rem)/1.4 var(--heading-serif); }
.license-page .prose section { margin-block-start: 2rem; }

html:has(.journey) { scroll-behavior: auto; }
.journey { position: relative; isolation: isolate; }
.world { position: fixed; z-index: 0; inset: 0; height: 100vh; height: 100dvh; pointer-events: none; overflow: hidden; background: var(--paper); }
.journey:not([data-scene="ready"]) .world { background: var(--paper) url("manor-exterior.webp") center / cover; }
.journey[data-room="zashiki"]:not([data-scene="ready"]) .world { background-image: url("zashiki-zen-garden.webp"); }
.journey:not([data-scene="ready"]) .world-canvas { visibility: hidden; }
.opening-mountains {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #06090dd1, #080b104d 56%, #09090929), var(--paper) url("detail-ridges.webp") center / cover;
}
.journey[data-scene] .opening-mountains { position: fixed; opacity: var(--mountain-opacity, 1); }
.journey-section.manor-vista { min-height: 135svh; }
.manor-frame { position: sticky; top: 0; }
.world-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.letter-smoke { position: fixed; z-index: 4; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.world::before, .world::after { position: absolute; inset: 0; content: ""; pointer-events: none; }
.world::before { z-index: 1; background: radial-gradient(ellipse at 8% var(--wash-center, 28%), rgb(var(--wash-rgb)) 5%, rgb(var(--wash-rgb) / .82) 27%, rgb(var(--wash-rgb) / .32) 48%, transparent 67%); opacity: var(--paper-wash, 1); }
.world::after { z-index: 1; background: linear-gradient(180deg, rgb(var(--wash-rgb) / .18), transparent 13%, transparent 80%, rgb(var(--wash-rgb) / .30)); }
.journey-section { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; scroll-margin-top: calc(-1 * var(--header) - 1.3rem); }
.hero { display: grid; align-items: center; min-height: 100svh; padding: max(var(--header), 75px) var(--copy-gutter); }
.hero-copy { position: relative; width: min(100%, 1560px); margin-inline: auto; }
.hero::before { content: ""; position: absolute; top: 50%; left: var(--copy-gutter); width: clamp(290px, 39vw, 650px); height: clamp(165px, 21vw, 290px); transform: translate(-12%, -50%); background: radial-gradient(ellipse 50% 50% at center, rgb(var(--wash-rgb) / .71), rgb(var(--wash-rgb) / .44) 40%, transparent 100%); pointer-events: none; }
.hero :is(h1,h2), .mission-heading h2, .destination h2 { font-family: var(--heading-serif); font-weight: 400; line-height: 1.16; letter-spacing: -.02em; }
.hero :is(h1,h2) { font-size: clamp(1.4rem, .95rem + 1.7vw, 2.65rem); }
.hero :is(h1,h2) .display-line { width: fit-content; }
.hero :is(h1,h2) em, .mission-heading em, .about-hero h1 em { display: block; color: var(--soft-ink); font-style: normal; font-weight: 400; }
.hero :is(h1,h2) em { margin-top: .105em; }
.hero-message { display: flex; align-items: center; gap: .65rem; margin-top: clamp(.8rem, 1.4vw, 1.25rem); color: var(--ink); font-size: clamp(.78rem, 1vw, .94rem); font-weight: 550; }
.hero-message::before { width: clamp(1rem, 1.8vw, 2rem); height: 1px; background: var(--ink-accent); content: ""; }
.hero::before, .mission::before, .chapter::before, .company-scene::before, .destination::before { opacity: .44; }
.hero-copy, .scroll-link, .mission-layout, .chapter-inner, .company-scene-copy, .destination-inner { text-shadow: 0 1px 3px #000c; }
.display-line { display: block; }
/* The reveal mask clips at the box edge. Leave room for the last line's descenders. */
[data-smoke] .display-line { padding-block-end: .22em; }
.hero-controls { position: fixed; z-index: 3; pointer-events: none; right: var(--gutter); bottom: 0; left: var(--gutter); display: flex; align-items: center; justify-content: space-between; min-height: 75px; border-top: 1px solid var(--line); }
.hero-controls .scroll-link { pointer-events: auto; }
.scroll-link { display: inline-flex; align-items: center; gap: .76rem; min-height: 46px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.scroll-link:hover { color: var(--ink-accent); }
.scroll-icon { display: grid; place-items: start center; width: 18px; height: 26px; padding-top: 5px; border: 1px solid currentColor; border-radius: 12px; }
.scroll-icon::before { width: 2px; height: 5px; border-radius: 4px; background: var(--ink-accent); content: ""; animation: scroll-cue 2.3s ease-in-out infinite; }
@keyframes scroll-cue { 0%, 20% { transform: translateY(0); opacity: 1; } 65%, 100% { transform: translateY(8px); opacity: .22; } }
.motion-toggle { position: fixed; z-index: 4; right: var(--gutter); bottom: 15px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #101010de; transition: border-color .2s, opacity .2s; }
.motion-toggle:hover { border-color: var(--ink-accent); }
.motion-icon { width: 9px; height: 10px; border-inline: 2px solid var(--ink); }
.motion-toggle[aria-pressed="true"] .motion-icon { width: 0; height: 0; margin-left: 3px; border: 5px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
.explore-toggle, .explore-view button { min-height: 44px; padding: .45rem 1rem; border: 1px solid #faf9f65c; border-radius: 2rem; color: #fff; background: #11110fe8; font: 500 .875rem/1.2 Geist, sans-serif; }
.explore-toggle { pointer-events: auto; margin-inline: auto 56px; }
.explore-toggle:hover, .explore-view button:hover { border-color: #faf9f6; }
.explore-view { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; color: #fff; background: transparent; touch-action: none; user-select: none; -webkit-user-select: none; }
.explore-view::backdrop { background: transparent; }
html:has(.explore-view[open]) { overflow: hidden; overscroll-behavior: none; }
body:has(.explore-view[open]) .journey > :not(.world),
body:has(.explore-view[open]) .site-header .header-actions { visibility: hidden; }
body:has(.explore-view[open]) .world::before, body:has(.explore-view[open]) .world::after { opacity: 0; }
.explore-look { position: absolute; inset: 0; touch-action: none; cursor: grab; outline: none; }
.explore-look:active { cursor: grabbing; }
.explore-bar { position: absolute; inset: max(env(safe-area-inset-top), 1rem) var(--gutter) auto auto; }
.explore-guide { position: absolute; left: 50%; bottom: max(env(safe-area-inset-bottom), 1.2rem); transform: translateX(-50%); width: max-content; max-width: 88vw; padding: .5rem .9rem; border-radius: 1rem; background: #11110fd9; font-size: .875rem; text-align: center; pointer-events: none; }
.explore-pad, .explore-touch-help { display: none; }
.explore-shaft { position: absolute; right: var(--gutter); bottom: max(env(safe-area-inset-bottom), 4.5rem); display: grid; justify-items: end; gap: .4rem; }
@media (any-pointer: coarse), (max-width: 650px) {
  .explore-desktop-help { display: none; }
  .explore-touch-help { display: inline; }
  .explore-pad { position: absolute; left: max(env(safe-area-inset-left), 1rem); bottom: max(env(safe-area-inset-bottom), 4rem); display: grid; grid-template-columns: repeat(3,44px); gap: 3px; }
  .explore-pad button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; touch-action: none; }
  .explore-pad button:active { background: #565347; }
  .explore-pad [data-step="KeyW"] { grid-column: 2; }
  .explore-pad [data-step="KeyA"] { grid-column: 1; }
  .explore-pad span { width: 10px; height: 10px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(-45deg); }
  .explore-pad [data-step="KeyA"] span { transform: rotate(-135deg); }
  .explore-pad [data-step="KeyS"] span { transform: rotate(135deg); }
  .explore-pad [data-step="KeyD"] span { transform: rotate(45deg); }
  .explore-toggle { padding-inline: .65rem; }
}
@media (max-width: 370px) {
  .hero-controls:has(.explore-toggle:not([hidden])) .scroll-link { font-size: .75rem; gap: .35rem; }
}

.journey-nav { position: fixed; z-index: 3; right: max(12px, calc(var(--gutter) - 13px)); top: 50%; display: grid; transform: translateY(-50%); transition: opacity .2s; }
.journey-nav a { display: grid; width: 29px; height: 35px; place-items: center end; padding-right: 5px; }
.journey-nav a::after { width: 8px; height: 1px; background: #f2f1eacc; box-shadow: 0 1px 2px #000a; content: ""; transition: width .2s, background .2s; }
.journey-nav a:hover::after, .journey-nav [aria-current]::after { width: 19px; background: var(--ink-accent); }
.journey-nav span { position: absolute; right: 32px; width: max-content; padding: .31rem .55rem; border: 1px solid var(--line); background: var(--paper-light); font-size: .8125rem; opacity: 0; pointer-events: none; }
.journey-nav a:hover span, .journey-nav a:focus-visible span { opacity: 1; }
.journey-progress { position: fixed; z-index: 6; inset: auto 0 0; height: 2px; background: var(--ink-accent); transform: scaleX(var(--journey-progress, 0)); transform-origin: left; pointer-events: none; }

.mission, .destination { display: grid; align-items: center; padding: calc(var(--header) + 2.4rem) var(--copy-gutter) 5rem; }
#mission { margin-block-start: 16vh; margin-block-start: 16svh; }
.mission::before, .mission::after {
  position: absolute;
  inset: -5% 0 -9%;
  pointer-events: none;
  content: "";
}
.mission::before {
  background:
    radial-gradient(ellipse 63% 62% at 73% 48%, rgb(var(--wash-rgb)) 12%, rgb(var(--wash-rgb) / .98) 36%, rgb(var(--wash-rgb) / .87) 54%, rgb(var(--wash-rgb) / .4) 76%, transparent 99%),
    radial-gradient(ellipse 55% 64% at 11% 35%, rgb(var(--wash-rgb) / .87) 9%, rgb(var(--wash-rgb) / .6) 39%, rgb(var(--wash-rgb) / .36) 58%, transparent 96%);
  mask-image: linear-gradient(transparent, #000 13%, #000 82%, transparent);
}
.mission::after {
  opacity: .08;
  background: url("washi-ink.webp") center 48% / 84% auto;
  mix-blend-mode: soft-light;
  mask-image: radial-gradient(ellipse 58% 58% at 75% 52%, transparent 34%, #000 67%, transparent 98%);
}
.mission-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 1.8vw, 1.65rem);
  align-items: start;
  width: min(100%, 39rem);
  margin-inline: 0 auto;
}
.mission-heading { align-self: start; padding-top: .45rem; }
.mission-heading h2 { font-size: clamp(1.65rem, 2.5vw, 2.35rem); }
.mission-heading .display-line { width: fit-content; }
.mission-text {
  min-width: 0;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", Georgia, serif;
  font-size: clamp(.875rem, 1vw, .9375rem);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .012em;
}
.mission-text p { mask: var(--line-ink, none); }
.mission-text p:lang(ja) { line-break: strict; text-wrap: pretty; }
.mission-text .keep-phrase { white-space: nowrap; }
.mission-text h3 { margin-bottom: .75rem; font-family: var(--heading-serif); font-size: clamp(1rem, 1.2vw, 1.08rem); font-weight: 600; line-height: 1.5; text-wrap: balance; }
.mission-text p + p { margin-top: .7rem; }
.mission-text [lang="en"] {
  color: var(--soft-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .875rem;
  line-height: 1.66;
  letter-spacing: .002em;
}
[data-smoke]:not([data-smoke="wash"]) :is(.display-line, [data-smoke-leaf]) {
  opacity: var(--smoke-opacity, 1);
  mask-image: linear-gradient(
    var(--smoke-direction, 96deg),
    #000 calc(var(--smoke-coverage, 121%) - 19%),
    #000c calc(var(--smoke-coverage, 121%) - 8%),
    transparent var(--smoke-coverage, 121%)
  );
}
[data-smoke]:focus-within :is(.display-line, [data-smoke-leaf]),
html[data-motion="paused"] [data-smoke] :is(.display-line, [data-smoke-leaf]) {
  mask-image: none;
  opacity: 1;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .mission-heading .display-line {
    text-shadow: none;
    background: linear-gradient(142deg, #f7f5ef, #e9e7e2 65%, #f3f1ed), url("washi-ink.webp") 35% 47% / 113% auto;
    background-blend-mode: screen;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .mission-heading em.display-line {
    background-image: linear-gradient(128deg, #dcd8d1, #c2beb8 69%, #d8d4ce), url("washi-ink.webp");
  }
}
html[data-motion="paused"] .mission-text p { mask: none; }
.chapter {
  display: grid;
  align-items: center;
  min-height: max(620px, 91svh);
  padding: calc(var(--header) + 3rem) var(--copy-gutter) 5rem;
}
.chapter::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse 68% 50% at 10% 48%, rgb(var(--wash-rgb) / .92) 8%, rgb(var(--wash-rgb) / .75) 37%, rgb(var(--wash-rgb) / .38) 62%, transparent 100%);
  mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.chapter-inner { position: relative; z-index: 1; width: min(100%, 780px); }
.chapter h2 {
  font: 400 clamp(1.55rem, 2.65vw, 2.75rem)/1.18 var(--heading-serif);
  letter-spacing: -.023em;
}
.chapter h2 { text-wrap: balance; }
.chapter-quote {
  margin-top: .65rem;
  font: italic 400 clamp(1.15rem, 1.89vw, 1.79rem)/1.13 var(--display);
  color: var(--ink-accent);
}
.chapter-profile {
  margin-top: 1.85rem;
  padding-left: 1.01rem;
  border-left: 1px solid var(--line);
  font: 500 .98rem/1.67 "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  color: var(--soft-ink);
}
.chapter-profile p + p { margin-top: .12rem; }
.company-scene {
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 2.8rem) var(--copy-gutter) max(8rem, 15svh);
  isolation: isolate;
}
.company-scene::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse 73% 67% at 18% 50%, rgb(var(--wash-rgb)) 34%, rgb(var(--wash-rgb) / .92) 56%, rgb(var(--wash-rgb) / .7) 73%, transparent 100%);
  mask-image: linear-gradient(transparent, #000 11%, #000 89%, transparent);
  pointer-events: none;
}
.company-scene-certification::before, .company-scene-business::before {
  background: radial-gradient(ellipse 71% 70% at 83% 50%, rgb(var(--wash-rgb)) 29%, rgb(var(--wash-rgb) / .93) 49%, rgb(var(--wash-rgb) / .61) 71%, transparent 100%);
}
.company-scene-copy {
  width: min(76%, 850px);
  color: var(--ink);
  font: 500 clamp(.96rem, 1.08vw, 1.02rem)/1.82 "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  overflow-wrap: anywhere;
}
.company-scene-certification .company-scene-copy {
  justify-self: end;
  width: min(55%, 740px);
  container-type: inline-size;
}
.company-scene-copy > h2 {
  margin-bottom: clamp(1.35rem, 3vw, 2.5rem);
  font: 500 clamp(1.75rem, 3.04vw, 3.13rem)/1.1 "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.company-scene-copy > h2[lang="en"] { font: 400 clamp(1.35rem, 2.2vw, 2.1rem)/1.18 var(--heading-serif); }
.company-scene-copy p + p, .company-scene-copy > h3 + p { margin-top: .8em; }
.company-scene :is(.company-grid,.business-grid) {
  margin: .75rem 0 0;
  gap: 0 1.55rem;
  border: 0;
  background: none;
}
.company-scene :is(.company-card,.business-card) {
  background: none;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
}
.company-scene :is(.company-card,.business-card) h3 { font-size: 1.07rem; }
.company-scene :is(.company-card,.business-card) p { font-size: 1em; }
.company-scene-certification table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .91em;
}
.company-scene-certification :is(th,td) {
  padding: .42em .6em;
  border-block-start: 1px solid var(--line);
  vertical-align: top;
}
.company-scene-certification th { width: 25%; white-space: nowrap; }
.company-scene .brand-panel { margin: 0; }
.company-scene .brand-panel img { width: 172px; width: min(172px, 50.4cqw); height: auto; }
.company-scene-certification tfoot td, .prose #isms tfoot td { padding-block: 1.25rem 0; border: 0; }
.company-scene .partners-panel { margin: 1.6rem 0 0; }
.company-scene .partners-panel img { width: 100%; height: auto; }
.company-scene-business { min-height: 100svh; padding-block: calc(var(--header) + 1.4rem) 2.4rem; }
.company-scene-business .company-scene-copy {
  justify-self: end;
  width: min(58%, 620px);
  font-size: .8rem;
  line-height: 1.56;
}
.company-scene-business .company-scene-copy > h2 { margin-bottom: .95rem; font-size: clamp(1.35rem, 1.9vw, 1.8rem); }
.company-scene-business .business-grid { gap: .2rem 1.25rem; margin-top: .95rem; }
.company-scene-business .business-card { padding: .65rem 0; }
.company-scene-business .business-card h3 { font-size: .89rem; line-height: 1.4; margin-bottom: .7rem; }
.company-scene-business .business-card p { line-height: 1.56; }
.business-subtitle { display: block; margin-top: .22rem; color: var(--soft-ink); font-size: .87em; font-weight: 400; line-height: 1.45; }
.company-kicker { font-weight: 650; }

.policy-dialog {
  width: min(1040px, calc(100% - 2.4rem));
  max-width: none;
  max-height: min(90dvh, 1040px);
  padding: 0;
  border: 1px solid #6d6d6d;
  border-radius: 2px;
  color: var(--ink);
  background: var(--paper-light);
  box-shadow: 0 25px 95px #0007;
}
.policy-dialog[open] { display: flex; flex-direction: column; }
.policy-dialog::backdrop { background: #101010b3; }
html:has(.policy-dialog[open]) { overflow: hidden; }
.policy-toolbar {
  flex: none;
  display: flex;
  justify-content: end;
  padding: .75rem clamp(.85rem, 2.5vw, 1.7rem);
  border-bottom: 1px solid var(--line);
}
.policy-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.policy-title {
  margin: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3.2rem) .8rem;
  font: 500 clamp(1.38rem, 2.3vw, 2.16rem)/1.22 "Hiragino Mincho ProN", "Yu Mincho", serif;
}
.policy-title[lang="en"] { font: 400 clamp(1.35rem, 2vw, 2rem)/1.2 var(--heading-serif); }
.policy-dialog .document-layout { padding: 1rem clamp(1rem, 4vw, 3.2rem) 2.8rem; gap: clamp(1.4rem, 4vw, 3rem); }
.policy-dialog .document-nav { top: .8rem; }
.policy-dialog .prose :is(section,li)[id] { scroll-margin-top: .8rem; }
.policy-dialog:has([data-policy-page="licenses"]:not([hidden])) {
  width: min(43rem, calc(100% - 2rem));
  max-height: 88dvh;
  background: var(--paper-light);
}
.collection-credits { padding: .5rem clamp(1rem, 4vw, 3.2rem) 2rem; }
.collection-credits h3 { margin-bottom: .6rem; }
.collection-credits a { text-decoration: underline; text-underline-offset: .18em; }

.journey:is([data-room="fusuma"], [data-room="zashiki"], [data-room="passage"], [data-room="dojo"], [data-room="temple"], [data-room="training"]) .world::before { opacity: 0; }
.journey:is([data-room="fusuma"], [data-room="zashiki"], [data-room="passage"], [data-room="dojo"], [data-room="temple"], [data-room="training"]) .world::after {
  background: linear-gradient(180deg, #101c1b49, transparent 22%, transparent 85%, #1018175c);
}
.training-arrival, .estate-vista { min-height: 62svh; }
.scene-arrival { min-height: 200svh; }
.chapter-about { min-height: 57svh; padding-block: calc(var(--header) + 2rem) 2.5rem; }
.company-scene-profile { min-height: 100svh; padding-block: calc(var(--header) + 2.8rem) 4.5rem; }
.company-scene-profile .company-scene-copy { font-size: .84rem; }
.company-scene-profile .company-scene-copy > h2 { margin-bottom: 1rem; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.company-group-title { margin-bottom: .5rem; font-size: .96rem; }
.company-scene-profile .company-grid { margin-top: 1.1rem; row-gap: 1.15rem; }
.company-scene-profile .company-card { padding-block: .68rem; }
.company-scene-profile .company-card :is(h3,h4) { font-size: .92rem; }
.company-scene-copy .company-tagline + p { margin-top: .48rem; }
.journey:is([data-room="garden"],[data-room="genkan"],[data-room="maples"],[data-room="torii"]) .world::before { opacity: .10; }
.journey:is([data-room="garden"],[data-room="genkan"],[data-room="maples"],[data-room="torii"]) .world::after { background: linear-gradient(180deg,#3f392008,transparent 32%,transparent 80%,#332c1a1a); }
#estate-garden, #estate-entry { min-height: 100svh; }
.journey[data-room="shrine"] .world::before { opacity: .18; background: radial-gradient(ellipse at 8% var(--wash-center, 28%), #819080 5%, transparent 62%); }
.journey[data-room="shrine"] .world::after { background: linear-gradient(180deg, #80918524, transparent 22%, transparent 72%, #19271f38); }
.world::before, .world::after { transition: opacity .35s; }
.journey[data-room="mountains"] .world::before { opacity: .1; }
.journey[data-room="mountains"] .world::after { background: linear-gradient(180deg, #e0e9f047, transparent 19%, transparent 90%, #34434324); }
.journey[data-room="exterior"] .world::before { opacity: 1; background: linear-gradient(90deg, rgb(var(--wash-rgb) / .36), rgb(var(--wash-rgb) / .18) 55%, rgb(var(--wash-rgb) / .12)); }
.former-temple-anchor { position: absolute; top: 0; scroll-margin-top: calc(-1 * var(--header) - 1.3rem); }
.temple-altar-view { position: absolute; top: 75svh; scroll-margin-top: calc(-1 * var(--header) - 1.3rem); }
.destination { padding-block: calc(var(--header) + 3rem) 5rem; }
.destination::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 59% 44% at 12% 43%, rgb(var(--wash-rgb) / .89) 3%, rgb(var(--wash-rgb) / .78) 37%, rgb(var(--wash-rgb) / .3) 72%, transparent 100%);
  mask-image: linear-gradient(transparent, #000 13%, #000 85%, transparent);
}
.route-finale { position: relative; height: 65svh; }
.destination-inner { position: relative; width: min(55%, 735px); margin: 0 auto 0 0; }
.destination h2 { font-size: clamp(1.6rem, 3.15vw, 3.25rem); text-wrap: balance; }
.destination-motto { margin-top: 1.4rem; font-size: .96rem; color: var(--soft-ink); }
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; min-height: 146px; align-items: center; justify-content: space-between; gap: .8rem 2rem; padding-block: 2rem; }
.footer-identity { display: grid; justify-items: start; gap: .22rem; }
.footer-identity p { color: var(--muted); font-size: .81rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 clamp(.85rem, 2.8vw, 2.4rem); }
.footer-links [aria-current] { color: var(--ink-accent); }
.document-page { background: var(--paper-light); }
.document-hero { display: grid; align-items: end; min-height: min(425px, 68svh); padding: calc(var(--header) + 3rem) var(--copy-gutter) 3.4rem; border-bottom: 1px solid var(--line); position: relative; background: radial-gradient(ellipse at 95% 90%, #181818, transparent 62%), var(--paper); }
.document-hero-inner { width: min(100%, 1340px); margin-inline: auto; transition: transform .27s ease-out; }
.document-hero h1 { font: 400 clamp(1.55rem, 3vw, 2.8rem)/1.18 var(--heading-serif); letter-spacing: -.035em; }
.document-hero h1[lang="ja"] { font-size: clamp(1.7rem, 3.5vw, 3.13rem); letter-spacing: -.05em; }
.document-hero p { color: var(--muted); margin-top: 1.15rem; font-size: clamp(.96rem, 1.44vw, 1.2rem); line-height: 1.55; }
.about-hero { min-height: min(620px, 76svh); align-items: center; }
.about-hero .scroll-link { position: absolute; bottom: .8rem; left: var(--gutter); }
.document-layout { display: grid; grid-template-columns: minmax(165px, 245px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); width: 100%; margin-inline: auto; padding: clamp(3rem, 7vw, 7rem) var(--copy-gutter); }
.document-nav { position: sticky; align-self: start; top: calc(var(--header) + 1.35rem); display: grid; border-top: 1px solid var(--line); }
.document-nav a { display: flex; align-items: center; gap: .57rem; min-height: 2.65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.document-nav a:hover { color: var(--ink-accent); }
.document-nav a::before { width: .28rem; height: .28rem; flex: none; background: currentColor; transform: rotate(45deg); content: ""; }
.prose { min-width: 0; color: var(--soft-ink); font-size: .96rem; line-height: 1.95; overflow-wrap: anywhere; }
.prose > section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.prose h2 { margin-bottom: 1rem; color: var(--ink); font-size: clamp(1.15rem, 1.73vw, 1.63rem); font-weight: 650; line-height: 1.4; letter-spacing: -.045em; }
.prose h3 { color: var(--ink); font-size: 1.06rem; }
.prose p + p { margin-top: 1rem; }
.prose .document-intro { margin-bottom: 2rem; }
.prose ol, .prose ul { margin: .8rem 0; padding-left: 1.6rem; }
.prose li + li { margin-top: .5rem; }
.prose li::marker { color: var(--ink-accent); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: .24em; }
.prose figure { margin-block: 1.75rem; padding: .65rem; background: white; }
.prose .brand-panel { width: fit-content; margin: 0; padding: 0; }
.prose .brand-panel img { width: min(100%, 208px); height: auto; }
.prose .partners-panel img { width: 100%; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .91rem; line-height: 1.7; }
.prose th, .prose td { padding: .72rem .55rem; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.prose th { width: 32%; color: var(--ink); font-weight: 600; }
.company-grid, .business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.3rem 0; background: var(--line); border: 1px solid var(--line); }
.company-card, .business-card { background: var(--paper-light); padding: clamp(.95rem, 2.6vw, 1.7rem); }
.company-card :is(h3,h4) { margin: 0 0 .45rem; }
.business-card h3 { margin-bottom: .7rem; }
.company-card p, .business-card p { font-size: .94rem; line-height: 1.8; }
.prose #company-overview > h2 { font-size: clamp(1.1rem, 1.4vw, 1.35rem); }
.prose .company-grid { gap: 1.25rem; border: 0; background: none; }
.prose .company-card + .company-card { border-top: 1px solid var(--line); }
.prose .related-policy { margin-top: 1.4rem; }
.policy-list li { padding: .85rem 0 .85rem .4rem; border-bottom: 1px solid var(--line); }
.policy-list li::marker { font-weight: 650; }
.policy-list h2 { font-size: 1.17rem; margin: 0 0 .38rem; }
.policy-signatures { margin-top: 2rem; }

@media (max-width: 880px) {
  .mission-layout { max-width: 38rem; }
  .document-layout { grid-template-columns: minmax(0, 1fr); }
  .document-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
}
@media (max-width: 650px) {
  .wordmark { width: 107px; }
  .header-inner .wordmark { width: 75px; }
  body:has(.journey:is([data-room="exterior"], [data-room="mountains"])) .site-header :is(.menu-icon,.language-switch) { color: #24241f; filter: drop-shadow(0 1px 1px #f4f0e66b); }
  .header-links { gap: .65rem; }
  .journey-nav { display: none; }
  .header-inner { gap: 1rem; }
  .hero-controls { min-height: 67px; }
  .motion-toggle { bottom: 11px; }
  .world::before { background: linear-gradient(rgb(var(--wash-rgb) / .96) 8%, rgb(var(--wash-rgb) / .8) 30%, rgb(var(--wash-rgb) / .14) 61%, transparent 80%); }
  .mission, .destination { padding-top: calc(var(--header) + 3rem); padding-bottom: 5.5rem; }
  .mission::before {
    background: radial-gradient(ellipse 102% 58% at 50% 48%, rgb(var(--wash-rgb) / .98) 5%, rgb(var(--wash-rgb) / .93) 55%, rgb(var(--wash-rgb) / .59) 79%, transparent 100%);
    mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent);
  }
  .mission::after { opacity: .10; mask-image: radial-gradient(ellipse 95% 55% at center, transparent 31%, #000 71%, transparent 99%); }
  .mission-heading h2 .display-line { display: block; }
  .chapter { align-items: start; padding-top: calc(var(--header) + 3.6rem); padding-bottom: 5rem; }
  .chapter-about { min-height: 86svh; }
  .chapter::before {
    background: radial-gradient(ellipse 104% 55% at 14% 32%, rgb(var(--wash-rgb) / .94) 6%, rgb(var(--wash-rgb) / .87) 31%, rgb(var(--wash-rgb) / .46) 64%, transparent 100%);
  }
  .chapter h2 { max-width: 13ch; }
  .company-scene { align-items: start; padding: calc(var(--header) + 2.2rem) var(--copy-gutter) max(7.6rem, 26svh); }
  .company-scene::before {
    background: radial-gradient(ellipse 115% 62% at 40% 43%, rgb(var(--wash-rgb)) 33%, rgb(var(--wash-rgb) / .95) 66%, rgb(var(--wash-rgb) / .45) 89%, transparent 100%);
    mask-image: linear-gradient(transparent, #000 8%, #000 84%, transparent);
  }
  .company-scene-copy, .company-scene-certification .company-scene-copy { width: 100%; }
  .company-scene-business { --wash-top: calc(var(--header) + 1.6rem); padding-block: var(--wash-top) 2.4rem; }
  .company-scene-business .company-scene-copy { width: min(100%, 32rem); font-size: .84rem; }
  .company-scene :is(.company-grid,.business-grid) { grid-template-columns: 1fr; }
  .company-scene-certification {
    --wash-top: calc(var(--header) + clamp(7rem, 18svh, 11rem));
    padding-top: var(--wash-top);
  }
  .company-scene-certification::before, .company-scene-business::before {
    background: linear-gradient(180deg, transparent var(--header), rgb(var(--wash-rgb) / .9) var(--wash-top), rgb(var(--wash-rgb) / .93) 84%, transparent);
  }
  .company-scene-certification th { white-space: normal; }
  .policy-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .policy-dialog .document-nav { display: none; }
  .training-arrival, .estate-vista { min-height: 62svh; }
  .chapter-about { min-height: 59svh; }
  .company-scene-profile { padding-block: calc(var(--header) + 2.2rem) 5rem; }
  .company-scene-profile .company-scene-copy { font-size: .875rem; }
  .destination { align-items: start; min-height: 100svh; }
  .destination::before { background: radial-gradient(ellipse 110% 49% at 30% 32%, rgb(var(--wash-rgb) / .92) 16%, rgb(var(--wash-rgb) / .73) 49%, rgb(var(--wash-rgb) / .27) 83%, transparent); }
  .destination-inner { width: 100%; }
  .footer-inner { justify-content: start; }
  .footer-links { width: 100%; }
  .document-hero { min-height: min(320px, 62svh); padding-bottom: 2.15rem; }
  .document-hero h1 { font-size: clamp(2.02rem, 6.9vw, 3.13rem); }
  .about-hero { min-height: 64svh; }
  .company-grid, .business-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .document-nav { grid-template-columns: 1fr; }
}
html[data-motion="paused"] { scroll-behavior: auto; }
html[data-motion="paused"] .scroll-icon::before { animation: none; }
html[data-motion="paused"] .letter-smoke { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

#estate-zashiki { min-height: 185svh; }
#estate-passage, #estate-tunnel, #estate-ascent, #estate-dojo, #forest-torii { min-height:100svh; }
