:root {
  --paper: #f5f1e9;
  --white: #fffcf7;
  --ink: #483b2e;
  --muted: #665744;
  --accent: #965b3d;
  --rule: #d5cbbc;
  --header: 104px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header) + 24px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.9 "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: anywhere; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: 6px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled { opacity: .5; cursor: default; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: "YuMincho", "Hiragino Mincho ProN", serif; font-weight: 400; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.65; letter-spacing: .03em; }
.eyebrow { font-size: .875rem; letter-spacing: .12em; color: var(--accent); margin-bottom: 20px; line-height: 1.8; }
.section-wrap { width: min(1120px, 86%); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -200px; z-index: 20; padding: 12px; background: var(--white); }
.skip-link:focus { top: 12px; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 10; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 4.2%; background: var(--paper); border-bottom: 1px solid var(--rule); }
.brand { font-size: 1.125rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
.brand-caption { display: block; font-size: .875rem; font-weight: 400; letter-spacing: .02em; margin-top: 4px; color: var(--muted); }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; font-size: 1rem; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.motion-control { border: 0; background: none; padding: 8px 0; min-height: 44px; font-size: 1rem; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.kumamade-brand { font-size: 1.75rem; font-weight: 400; }
.journey { height: auto; position: relative; }
.journey.scrollable { height: calc(var(--stage-height, 100svh) + 340svh); }
.stage { height: 100svh; position: sticky; top: var(--stage-top, 0px); overflow: hidden; }
.film { position: absolute; inset: var(--header) 0 0; background: var(--paper); overflow: hidden; }
.film-poster, .film video { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.film video { opacity: 0; }
.frames { position: absolute; inset: 0; }
.frames img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: none; }
.frames img.on { display: block; }
.is-static .frames { display: none; }
.video-ready .film video { opacity: 1; }
.is-static .film video, .media-failed .film video { display: none; }
.intro { position: absolute; left: 5%; bottom: 110px; padding: 24px 30px; background: rgba(255,252,247,.97); width: min(450px, 45%); pointer-events: none; }
.intro h1 { font-size: 2.5rem; line-height: 1.5; letter-spacing: .03em; margin-bottom: 18px; }
.intro .eyebrow { margin-bottom: 12px; }
.intro-copy { font-size: 1.125rem; line-height: 1.9; color: var(--muted); }
.arrival { position: absolute; top: calc(var(--header) + 24px); right: 4.2%; max-width: 90%; text-align: center; background: rgba(255,252,247,.97); padding: 18px 26px; }
.arrival .eyebrow { margin-bottom: 8px; }
.arrival-title { font-family: "YuMincho", "Hiragino Mincho ProN", serif; font-size: 1.875rem; letter-spacing: .03em; }
.arrival a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 1rem; }
.room-link { position: absolute; bottom: 110px; right: 4.2%; max-width: 45%; background: var(--white); padding: 18px 24px; text-decoration: none; display: grid; gap: 8px; font-size: 1.125rem; }
.room-link-small { font-size: .875rem; color: var(--muted); }
.room-link > span:last-child { display: flex; gap: 20px; justify-content: space-between; }
.room-link:hover { color: var(--accent); }
.scene-footer { position: absolute; inset: auto 0 0; min-height: 80px; background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 4.2%; font-size: 1rem; }
.scene-step { display: flex; align-items: center; gap: 12px; }
.scene-number { color: var(--accent); font-size: .875rem; }
.scroll-guide { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 1rem; }
.scroll-guide svg { width: 12px; height: 28px; flex-shrink: 0; }
.progress-track { width: 100px; height: 3px; background: var(--rule); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.film-status { position: absolute; left: 50%; top: calc(var(--header) + 18px); transform: translateX(-50%); background: var(--paper); padding: 10px 16px; font-size: 1rem; line-height: 1.8; max-width: 90%; text-align: center; }
.is-static .progress-track, .media-failed .progress-track { visibility: hidden; }
.is-static .intro, .media-failed .intro { opacity: 1 !important; transform: none !important; }
.is-static .arrival, .media-failed .arrival { display: none; }
.is-static .journey { height: auto; }
.welcome, .making-intro { padding-block: 100px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 7%; }
.welcome-copy { font-size: 1.125rem; line-height: 2; padding-top: 32px; }
.welcome-copy p + p { margin-top: 26px; }
.text-link { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; font-size: 1rem; line-height: 1.8; margin-top: 26px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.rituals, .services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6%; border-top: 1px solid var(--rule); padding-block: 42px 90px; }
.small-number { font-size: .875rem; color: var(--accent); letter-spacing: .1em; }
.rituals h3, .services h3 { font-size: 1.625rem; margin-block: 18px 12px; line-height: 1.6; }
.rituals p, .services p { font-size: 1.125rem; color: var(--muted); line-height: 1.9; }
.event-section { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 7%; padding: 72px 7%; background: var(--white); }
.event-section figure img { aspect-ratio: 1.52; object-fit: cover; }
.event-section figcaption { font-size: .875rem; color: var(--muted); margin-top: 16px; }
.event-copy > p:not(.eyebrow):not(.link-note), .studio-door-copy > p:not(.eyebrow) { font-size: 1.125rem; line-height: 2; margin-top: 24px; }
.button-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; text-decoration: none; border: 1px solid var(--ink); padding: 16px 22px; min-height: 48px; font-size: 1rem; margin-top: 28px; background: transparent; }
.button-link:hover { background: var(--ink); color: var(--white); }
.link-note { font-size: .875rem; line-height: 1.9; color: var(--muted); margin-top: 14px !important; }
.studio-door { display: grid; grid-template-columns: .85fr 1.2fr; gap: 9%; align-items: center; padding-block: 100px; }
.studio-door-image { text-decoration: none; display: block; }
.studio-door-image img { aspect-ratio: 1.36; object-fit: cover; object-position: 60%; }
.studio-door-image > span { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.site-footer { padding: 48px 7% 28px; background: #eae3d7; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; }
.site-footer p { font-size: 1rem; color: var(--muted); grid-column: 1; }
.site-footer > a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; grid-column: 2; grid-row: 1/3; }
.site-footer small { font-size: .875rem; color: var(--muted); grid-column: 1/-1; padding-top: 20px; }
.noscript-note { padding: 18px 7%; font-size: 1rem; }
.studio-hero { height: 100svh; position: relative; overflow: hidden; }
.studio-hero-copy { position: absolute; left: 4.2%; bottom: 110px; max-width: 90%; background: rgba(255,252,247,.97); padding: 24px 30px; }
.studio-hero-copy h1 { font-size: 2.375rem; line-height: 1.6; letter-spacing: .03em; }
.studio-hero-copy .eyebrow { margin-bottom: 12px; }
.studio-hero-copy > p:last-child { font-size: 1.125rem; line-height: 1.9; color: var(--muted); margin-top: 16px; }
.studio-controls { position: absolute; inset: auto 0 0; min-height: 80px; background: var(--paper); padding: 14px 4.2%; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.studio-controls .text-link { margin: 0; padding: 0; border: 0; }
.replay-control { padding: 8px 0; min-height: 44px; background: none; border: 0; font-size: 1rem; text-decoration: underline; text-underline-offset: 5px; }
.back-to-tea { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding-bottom: 100px; }
.back-to-tea img { aspect-ratio: 1.5; object-fit: cover; }
.making-intro { align-items: center; }
.studio-logo { width: 100%; max-width: 440px; justify-self: center; }
.making-intro .welcome-copy { padding-top: 0; }
.making-intro h2 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); margin-bottom: 24px; }
/* Keep reading and film in separate rows on phones, short windows and zoomed text. */
@media (max-width: 960px), (max-height: 720px) {
  .site-header { padding: 10px 6%; gap: 4px 20px; flex-wrap: wrap; }
  .site-header nav { gap: 8px 24px; justify-content: flex-start; }
  .site-header .optional { display: none; }
  .brand-caption { display: none; }
  .stage, .studio-hero { height: auto; min-height: 100svh; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: var(--header); }
  .stage { grid-template-rows: auto auto auto auto auto; }
  .intro, .arrival, .studio-hero-copy { position: relative; inset: auto; width: auto; max-width: none; margin: 0; padding: 26px 7% 24px; background: var(--paper); text-align: center; grid-column: 1; grid-row: 1; align-self: center; }
  .intro h1, .studio-hero-copy h1 { font-size: 2rem; line-height: 1.5; margin-bottom: 16px; }
  .intro-copy, .studio-hero-copy > p:last-child { font-size: 1.125rem; line-height: 1.9; }
  .intro-copy br, .studio-hero-copy > p:last-child br { display: none; }
  .intro .eyebrow, .studio-hero-copy .eyebrow { margin-bottom: 10px; }
  .arrival[hidden] { display: block !important; visibility: hidden; }
  .arrival-title { font-size: 1.75rem; }
  .arrival { grid-row: 4; padding-block: 18px; }
  .film, .studio-hero .film { position: relative; inset: auto; grid-column: 1; grid-row: 2; aspect-ratio: 1916/1080; width: 100%; height: auto; }
  .film-poster, .film video { object-fit: contain; }
  .room-link { position: relative; inset: auto; max-width: none; grid-column: 1; grid-row: 5; margin: 0; padding: 18px 7%; background: var(--white); }
  .room-link[hidden] { display: grid !important; visibility: hidden; }
  .scene-footer { position: relative; inset: auto; grid-column: 1; grid-row: 3; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 0; padding: 18px 7%; }
  .progress-track { grid-column: 2; grid-row: 1; width: 60px; }
  .scroll-guide { grid-column: 1/-1; justify-content: center; line-height: 1.8; }
  .film-status, .studio-hero .film-status { position: relative; inset: auto; transform: none; grid-column: 1; grid-row: 2; align-self: start; justify-self: center; z-index: 1; }
  .studio-controls { position: relative; inset: auto; grid-column: 1; grid-row: 3; padding: 20px 7%; }
}
@media (max-width: 960px) {
  .site-header { display: grid; grid-template-columns: minmax(0,1fr); }
  .site-header nav { width: 100%; }
  .section-wrap { width: 86%; }
  .welcome, .making-intro { display: block; padding-block: 64px 48px; }
  .welcome-copy { padding-top: 28px; }
  .welcome-copy br, .event-copy p br, .studio-door-copy p br { display: none; }
  .rituals, .services { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 32px 64px; }
  .rituals article + article, .services article + article { border-top: 1px solid var(--rule); padding-top: 28px; }
  .rituals h3, .services h3 { font-size: 1.5rem; }
  .event-section { display: flex; flex-direction: column; align-items: stretch; gap: 36px; padding: 48px 7%; }
  .event-section figure img { aspect-ratio: 1.6; }
  .studio-door { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-block: 64px; }
  .studio-door-image img { aspect-ratio: 1.6; }
  .site-footer { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 7% 28px; gap: 16px; }
  .back-to-tea { display: block; padding-bottom: 64px; }
  .back-to-tea > div { padding-top: 30px; }
  .studio-logo { max-width: 340px; margin: 0 auto 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Text-only enlargement also needs the single-column reading layout. */
body.large-type .site-header { padding: 10px 6%; gap: 4px 20px; flex-wrap: wrap; }
body.large-type .site-header nav { gap: 8px 24px; justify-content: flex-start; }
body.large-type .site-header .optional { display: none; }
body.large-type .brand-caption { display: none; }
body.large-type .stage, body.large-type .studio-hero { height: auto; min-height: 100svh; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: var(--header); }
body.large-type .stage { grid-template-rows: auto auto auto auto auto; }
body.large-type .intro, body.large-type .arrival, body.large-type .studio-hero-copy { position: relative; inset: auto; width: auto; max-width: none; margin: 0; padding: 26px 7% 24px; background: var(--paper); text-align: center; grid-column: 1; grid-row: 1; align-self: center; }
body.large-type .intro h1, body.large-type .studio-hero-copy h1 { font-size: 2rem; line-height: 1.5; margin-bottom: 16px; }
body.large-type .intro-copy, body.large-type .studio-hero-copy > p:last-child { font-size: 1.125rem; line-height: 1.9; }
body.large-type .intro-copy br, body.large-type .studio-hero-copy > p:last-child br { display: none; }
body.large-type .intro .eyebrow, body.large-type .studio-hero-copy .eyebrow { margin-bottom: 10px; }
body.large-type .arrival[hidden] { display: block !important; visibility: hidden; }
body.large-type .arrival-title { font-size: 1.75rem; }
body.large-type .arrival { grid-row: 4; padding-block: 18px; }
body.large-type .film, body.large-type .studio-hero .film { position: relative; inset: auto; grid-column: 1; grid-row: 2; aspect-ratio: 1916/1080; width: 100%; height: auto; }
body.large-type .film-poster, body.large-type .film video { object-fit: contain; }
body.large-type .room-link { position: relative; inset: auto; max-width: none; grid-column: 1; grid-row: 5; margin: 0; padding: 18px 7%; background: var(--white); }
body.large-type .room-link[hidden] { display: grid !important; visibility: hidden; }
body.large-type .scene-footer { position: relative; inset: auto; grid-column: 1; grid-row: 3; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; min-height: 0; padding: 18px 7%; }
body.large-type .progress-track { grid-column: 2; grid-row: 1; width: 60px; }
body.large-type .scroll-guide { grid-column: 1/-1; justify-content: center; line-height: 1.8; }
body.large-type .film-status, body.large-type .studio-hero .film-status { position: relative; inset: auto; transform: none; grid-column: 1; grid-row: 2; align-self: start; justify-self: center; z-index: 1; }
body.large-type .studio-controls { position: relative; inset: auto; grid-column: 1; grid-row: 3; padding: 20px 7%; }
body.large-type .site-header { display: grid; grid-template-columns: minmax(0,1fr); }
body.large-type .site-header nav { width: 100%; }
body.large-type .section-wrap { width: 86%; }
body.large-type .welcome, body.large-type .making-intro { display: block; padding-block: 64px 48px; }
body.large-type .welcome-copy { padding-top: 28px; }
body.large-type .welcome-copy br, body.large-type .event-copy p br, body.large-type .studio-door-copy p br { display: none; }
body.large-type .rituals, body.large-type .services { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 32px 64px; }
body.large-type .rituals article + article, body.large-type .services article + article { border-top: 1px solid var(--rule); padding-top: 28px; }
body.large-type .rituals h3, body.large-type .services h3 { font-size: 1.5rem; }
body.large-type .event-section { display: flex; flex-direction: column; align-items: stretch; gap: 36px; padding: 48px 7%; }
body.large-type .event-section figure img { aspect-ratio: 1.6; }
body.large-type .studio-door { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-block: 64px; }
body.large-type .studio-door-image img { aspect-ratio: 1.6; }
body.large-type .site-footer { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 7% 28px; gap: 16px; }
body.large-type .back-to-tea { display: block; padding-bottom: 64px; }
body.large-type .back-to-tea > div { padding-top: 30px; }
body.large-type .studio-logo { max-width: 340px; margin: 0 auto 32px; }

body.is-static .arrival[hidden], body.media-failed .arrival[hidden] { display: none !important; }

/* ROOM TOUR（2026-09-22）: PCは横長、スマホは縦長の動画を出し分ける */
.tour { padding-block: 88px 72px; border-top: 1px solid var(--rule); }
.tour-heading { margin-bottom: 32px; }
.tour-viewer { position: relative; width: min(1120px, 86%); margin-inline: auto; aspect-ratio: 16 / 9; background: var(--white); overflow: hidden; outline: none; touch-action: pan-y pinch-zoom; }
.tour-viewer:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.tour-media { position: absolute; inset: 0; }
.tour-poster, .tour-viewer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-viewer video { opacity: 0; transition: opacity .35s ease; }
.tour-viewer.is-playing video { opacity: 1; }
.tour-bars { position: absolute; z-index: 3; inset: 14px 16px auto; display: flex; gap: 6px; }
.tour-bars span { flex: 1; height: 2px; background: rgba(255,252,247,.55); }
.tour-bars span.is-done, .tour-bars span.is-current { background: var(--white); }
.tour-zone { position: absolute; z-index: 2; top: 0; bottom: 0; width: 30%; border: 0; padding: 0; background: none; }
.tour-zone-prev { left: 0; }
.tour-zone-next { right: 0; width: 70%; }
.tour-zone:focus-visible { outline-offset: -6px; }
.tour-caption { position: absolute; z-index: 3; left: 0; bottom: 0; width: min(440px, 60%); padding: 20px 26px; background: rgba(255,252,247,.97); }
.tour-count { font-size: .875rem; color: var(--accent); letter-spacing: .12em; }
.tour-name { font-family: "YuMincho", "Hiragino Mincho ProN", serif; font-size: 1.5rem; letter-spacing: .03em; line-height: 1.6; }
.tour-text { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.tour-more { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; }
.tour-rooms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: 18px; }
.tour-rooms button { border: 0; background: none; padding: 8px 0; min-height: 44px; font-size: 1rem; color: var(--muted); text-decoration: none; }
.tour-rooms button[aria-current="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; }
.tour-rooms button:hover { color: var(--ink); }
.tour-rooms .tour-auto { text-decoration: underline; text-underline-offset: 5px; }

/* 縦長の画面（スマホ）: 縦の動画を画面の高さいっぱいに */
@media (max-aspect-ratio: 4/5) {
  .tour { padding-block: 64px 48px; }
  .tour-viewer { width: 100%; aspect-ratio: auto; height: calc(100svh - var(--header)); max-height: 900px; }
  .tour-caption { width: auto; right: 0; padding: 16px 7% 20px; }
  .tour-name { font-size: 1.375rem; }
  .tour-rooms { gap: 0 20px; }
}
body.large-type .tour-viewer { width: 100%; aspect-ratio: auto; height: auto; max-height: none; }
body.large-type .tour-media { position: relative; inset: auto; aspect-ratio: 16 / 9; }
body.large-type .tour-caption { position: relative; width: auto; padding: 18px 7%; }
/* 縦長×大きな文字は、上の large-type 指定より後ろに置く（同じ詳細度なので後ろが勝つ） */
@media (max-aspect-ratio: 4/5) {
  body.large-type .tour-media { aspect-ratio: 720 / 1292; max-height: calc(100svh - var(--header)); }
}
@media (prefers-reduced-motion: reduce) { .tour-viewer video { transition: none; } }
