@font-face {
  font-family: 'Shippori Mincho';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/shippori-mincho.woff2) format('woff2');
  unicode-range: U+3001-3002, U+3044, U+3046, U+304a-304c, U+3051-3054, U+3057-305a, U+305d-3063, U+3066-306b, U+306e-3070, U+3072-3073, U+3081-3083, U+3089-308b, U+308d, U+3092, U+3094, U+3099, U+30d2-30d3, U+30fc, U+521d, U+5de5, U+623f, U+6307, U+63cf, U+65cf, U+6700, U+6b21, U+6c34, U+7389, U+773a, U+7b46, U+8d70, U+8ee2, U+9053, U+96e2, U+9928, U+ff1f;
}
:root {
  color-scheme: light;
  --paper: #f8f3e5;
  --sheet: #fffaf0;
  --ink: #193734;
  --muted: #495c53;
  --red: #a43822;
  --rule: #c9c3ae;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box }
body, figure, h1, h2, h3, p { margin: 0 }
body { line-height: 1.75; -webkit-font-smoothing: antialiased }
img { display: block; max-width: 100%; height: auto }
a { color: inherit; text-underline-offset: .25em }
button { font: inherit; cursor: pointer }
a:focus-visible, button:focus-visible { outline: 3px solid #008086; outline-offset: 4px }
[hidden] { display: none !important }
main { overflow-x: clip }
section[id] { scroll-margin-top: 24px }
.wrap, .masthead { width: min(calc(100% - 8vw), 1280px); margin-inline: auto }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 20px; border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none }
.brand img { width: 38px; border-radius: 9px }
.brand span, .closing h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.04em }
.brand span { font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.1; white-space: nowrap }
.brand i { font-weight: 400 }
nav { display: flex; gap: clamp(12px, 3vw, 44px); align-items: center }
nav a { white-space: nowrap }
nav a, footer a { font-size: .9rem; text-decoration: none; padding-block: 10px }
nav a:hover, footer a:hover { text-decoration: underline }
.masthead { position: relative; z-index: 2; flex-wrap: wrap }
.masthead nav { flex-wrap: wrap; justify-content: flex-end; max-width: 100% }
.languages { position: relative; font-size: .9rem }
.languages summary { cursor: pointer; padding: .55em .2em; font-weight: 600 }
.languages summary::marker { color: var(--red) }
.lang-short { display: none }
.languages summary:focus-visible { outline: 3px solid #008086; outline-offset: 3px }
.languages ul {
  position: absolute; right: 0; top: 100%; z-index: 1;
  width: max-content; max-width: calc(100vw - 32px); max-height: 62vh; overflow-y: auto;
  list-style: none; margin: 0; padding: 5px; border: 1px solid var(--rule);
  background: var(--sheet); box-shadow: 0 4px 12px #19373426
}
.languages li a { display: block; min-height: 44px; padding: 8px 15px; white-space: normal }
.languages li a[aria-current=page] { color: var(--red); font-weight: 700 }
.languages li a:focus-visible { outline-offset: -3px }
.skip { position: absolute; z-index: 4; left: .5rem; top: .5rem; background: white; padding: .5rem 1rem; transform: translateY(-180%) }
.skip:focus { transform: none }
.hero { display: grid; grid-template-columns: 0.9fr 1.1fr; grid-template-areas: "intro film" "store film"; column-gap: 3%; padding-block: clamp(48px, 5vw, 84px) clamp(56px, 6vw, 96px) }
.intro, .get-app { padding-left: clamp(0px, 1.4vw, 23px) }
.intro { grid-area: intro; align-self: end; z-index: 1 }
.get-app { grid-area: store; align-self: start; display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .875rem }
.get-app .store { flex-shrink: 0 }
.genre { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 700; letter-spacing: .08em }
.genre::before { content: ""; width: 1.8em; border-top: 2px solid var(--red) }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; font-feature-settings: "palt"; line-height: 1.3 }
h1 { font-size: clamp(2.8rem, 4.72vw, 5.05rem); letter-spacing: -.068em; line-height: 1.34; margin: 24px 0 19px }
h1 span { display: block; white-space: nowrap }
h1 em { color: var(--red); font-style: normal }
.store { width: 184px; display: block; border-radius: 10px; margin-left: -12px; transition: transform .16s ease }
.store:hover { transform: translateY(-2px) }
.exhibit { grid-area: film; align-self: center; min-width: 0 }
.lens { position: relative; aspect-ratio: 5 / 3; overflow: hidden; border: 1px solid #514e3f; background: #152d2b }
.film, .film video { position: absolute; inset: 0; width: 100%; height: 100% }
.film video { display: block; object-fit: cover }
.watch {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  display: inline-flex; white-space: nowrap; align-items: center; gap: .55em; min-height: 44px;
  padding: 8px 17px; border: 1px solid #f8f3e5; border-radius: 24px;
  background: #173c38; color: #fffaf0; font-size: clamp(.875rem, 1.15vw, 1rem); font-weight: 600;
  box-shadow: 0 2px 9px #102a2366
}
.watch:hover { background: #26594e }
.watch small { font-size: .875rem; font-weight: 400; color: #e6ebd9 }
.watch:focus-visible { outline-color: #fff; outline-offset: 3px }
.triangle { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid currentColor }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 9px; border-bottom: 1px solid var(--rule) }
.film-detail { display: flex; align-items: center; gap: 8px; font: 700 1.06rem/1.4 var(--serif) }
.film-detail img { width: clamp(48px, 4.9vw, 68px) }
.switch { display: flex; gap: clamp(6px, 1vw, 16px); flex-wrap: wrap; margin-left: auto }
.switch button { border: 0; border-bottom: 2px solid transparent; min-height: 44px; color: var(--muted); background: transparent; padding: 6px 4px; font-size: .9rem; font-weight: 600 }
.switch button[aria-pressed=true] { border-bottom-color: var(--red); color: var(--ink) }
.switch button:hover { color: var(--red) }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.65rem); letter-spacing: -.045em }
.draw-section { background: var(--sheet); border-block: 1px solid var(--rule) }
.draw-section .wrap { padding-block: clamp(40px, 4.6vw, 74px) }
.section-intro { margin-bottom: clamp(24px, 3.1vw, 48px) }
.comparison { display: grid; grid-template-columns: minmax(0, .67fr) minmax(0, 1.33fr); gap: clamp(22px, 4.6vw, 76px); align-items: center }
.comparison img { width: 100% }
.comparison figcaption, .scene figcaption { margin-top: 9px; font-size: .9rem; line-height: 1.65; text-wrap: pretty }
.comparison figcaption { color: var(--muted) }
.stroke { position: relative; padding-left: clamp(6px, 1vw, 16px) }
.stroke img { transform: rotate(-2.2deg); border: 5px solid #fffdf8; outline: 1px solid #cfc5ac; box-shadow: 1px 3px 4px #4d321b20 }
.stroke figcaption { margin-top: 15px }
.course-photo { position: relative; container-type: inline-size }
.part-label { display: none }
@container (min-width: 20rem) {
  .part-label {
    display: block; position: absolute; padding: .1em .4em;
    background: #fff5d9; color: #452f21; font: 700 .9rem/1.4 var(--serif);
    border-bottom: 1px solid #674633; white-space: nowrap; pointer-events: none
  }
  .course-photo::before, .course-photo::after {
    content: ""; position: absolute; border-left: 1px solid #674633; transform-origin: top
  }
  .bridge-label { right: min(77.5%, calc(100% - 7.3em)); bottom: 63%; transform: rotate(-2deg) }
  .course-photo::before { left: 22.5%; top: 37%; height: 14%; transform: rotate(-12deg) }
  .drum-label { left: 62%; bottom: 74%; transform: rotate(1deg) }
  .course-photo::after { left: 62%; top: 26%; height: 7%; transform: rotate(16deg) }
}
.built figcaption { border-left: 2px solid var(--red); padding-left: 9px }
.small { display: none }
.spread {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  grid-template-areas: "title scene" "notes scene"; gap: 16px clamp(28px, 5vw, 86px);
  align-content: center; padding-block: clamp(46px, 5.5vw, 90px)
}
.workshop { background: #f1e7d4 }
.aquarium { background: #123e42; color: #fbf7e9 }
.aquarium .spread { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-areas: "scene title" "scene notes" }
.spread h3 { grid-area: title; align-self: end; font-size: clamp(2.1rem, 3.7vw, 3.9rem); letter-spacing: -.045em }
.scene { grid-area: scene; align-self: center }
.scene > img, .scene > video { display: block; width: 100%; aspect-ratio: 2.02; height: auto }
.scene > img { object-fit: cover }
.scene > video { object-fit: contain; background: #152d2b }
.scene figcaption { color: var(--muted); display: grid }
.scene figcaption span { grid-area: 1 / 1 }
.scene .playing-caption, .scene:has(video) figcaption span:first-child { visibility: hidden }
.scene:has(video) .playing-caption { visibility: visible }
.stage-notes { grid-area: notes; align-self: start }
.stage-notes p { line-height: 1.9; max-width: 29em }
.scene-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin: .4em 0 0; font-weight: 600; font-size: .94rem }
.scene-link::before { content: ""; border-block: 5px solid transparent; border-left: 8px solid currentColor }
.aquarium .scene-link:focus-visible { outline-color: #f7d387 }
.specimen { display: flex; align-items: center; gap: 10px; margin-top: clamp(16px, 2vw, 32px); color: var(--muted) }
.specimen img { width: clamp(65px, 7.3vw, 102px); flex-shrink: 0 }
.specimen figcaption { font: 700 1.06rem/1.65 var(--serif); color: var(--ink) }
.aquarium .specimen figcaption { color: var(--sheet) }
.tips {
  display: grid; grid-template-columns: 1fr 1.5fr; align-items: start;
  gap: 18px 36px; border-bottom: 1px solid var(--rule); padding-block: clamp(36px, 4.5vw, 72px)
}
.tips h2 { font-size: clamp(1.5rem, 2.5vw, 2.5rem) }
.tips details { border-bottom: 1px solid var(--rule) }
.tips details:first-child { border-top: 1px solid var(--rule) }
.tips summary { padding: 14px 0; cursor: pointer; font-weight: 600 }
.tips summary::marker { color: var(--red) }
.tips summary:focus-visible { outline: 3px solid #008086; outline-offset: 3px }
.tips details p { color: var(--muted); padding: 0 0 16px; max-width: 38em }
.closing { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding-block: clamp(42px, 6vw, 92px) }
.end-icon { border-radius: 18px }
.closing h2 { font-size: clamp(1.4rem, 2.7vw, 2.8rem) }
.closing .store { margin-left: auto; flex-shrink: 0 }
footer { border-top: 1px solid var(--rule) }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 76px }
@media (max-width: 940px) and (min-width: 761px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 2% }
  .intro, .get-app { padding-left: 0 }
  h1 { font-size: clamp(2.35rem, 4.6vw, 2.85rem) }

}
@media (max-width: 760px) {
  .tips { grid-template-columns: 1fr }
  .wrap, .masthead { width: calc(100% - 40px) }
  .masthead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; container-type: inline-size }
  .brand { justify-self: center; max-width: 100%; min-height: 48px; gap: 8px; padding-block: 4px }
  .brand img { width: 30px; flex-shrink: 0; border-radius: 7px }
  .brand span { font-size: 1.25rem; white-space: normal; overflow-wrap: anywhere }
  .masthead nav { flex-wrap: nowrap; justify-content: flex-start; gap: clamp(8px, 2.8vw, 20px); border-top: 1px solid var(--rule) }
  .masthead nav > a, .languages summary {
    display: flex; align-items: center; min-height: 44px; min-width: 0;
    padding-block: 6px; line-height: 1.4; white-space: normal
  }
  .masthead nav > a { min-width: 44px; text-wrap: balance }
  .masthead nav > a[href="#worlds"] { flex-shrink: 0 }
  .languages { position: static; flex: none; margin-inline-start: auto }
  .languages summary { gap: .4em; min-width: 44px; justify-content: flex-end; list-style: none; padding-inline: 0 2px }
  .languages summary::-webkit-details-marker { display: none }
  .languages summary::after {
    content: ""; width: .45em; height: .45em; flex: none; margin-top: -.2em;
    border: solid var(--red); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg)
  }
  .languages[open] summary::after { transform: rotate(225deg); margin-top: .25em }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "film" "store"; gap: 18px; padding-block: 28px 30px }
  .intro { padding: 0 }
  .genre { font-size: .875rem }
  h1 { font-size: clamp(2.25rem, 10.6vw, 4.1rem); margin: 12px 0; line-height: 1.3 }
  h1 span { white-space: normal }
  .get-app { padding: 0; margin: 0; flex-wrap: wrap; gap: 0 8px }
  .store { width: 163px; margin-left: -10px }
  .exhibit { width: min(100%, 550px); justify-self: center }
  .spread, .aquarium .spread { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "scene" "notes"; gap: 18px }
  .specimen { margin-top: 14px }
  .stage-notes p { max-width: 38em }
  .closing { flex-wrap: wrap; gap: 12px }
  .end-icon { width: 55px; border-radius: 13px }
  .closing .store { margin: 0 0 0 -10px }
}
@container (max-width: 21rem) {
  .languages .lang-full { display: none }
  .languages .lang-short { display: inline }
}
@media (max-width: 520px) {
  .nav-context { display: none }
  .caption { padding-block: 6px }
  .film-detail { font-size: .96rem; gap: 4px }
  .film-detail img { width: 42px }
  .watch { max-width: 94%; white-space: normal; line-height: 1.4 }
  .switch button { padding-inline: 3px }
  .small { display: initial }
  .comparison { grid-template-columns: minmax(0, 1fr); gap: 23px }
  .stroke { width: 76%; padding-left: 5px }
  .closing { display: grid; grid-template-columns: auto 1fr }
  .closing .store { grid-column: 2 }
}
@media (max-width: 360px) {
  .wrap, .masthead { width: calc(100% - 28px) }
  .switch { gap: 4px }
  .closing h2 { font-size: 1.24rem }
}
html:not([lang=ja]) { --serif: Georgia, "Times New Roman", serif; font-family: system-ui, sans-serif }
html:lang(ko) { --serif: "AppleMyungjo", "Nanum Myeongjo", serif; word-break: keep-all }
html:lang(zh-Hans) { --serif: "Songti SC", "Noto Serif CJK SC", serif }
html:lang(zh-Hant) { --serif: "Songti TC", "Noto Serif CJK TC", serif }
html:lang(hi) { --serif: "Kohinoor Devanagari", "Noto Serif Devanagari", serif }
html:not([lang=ja]) .hero > *, html:not([lang=ja]) .spread > * { min-width: 0 }
html:not([lang=ja]) h1 span { white-space: normal }
html:not([lang=ja]) :is(h1,h2,h3) { overflow-wrap: anywhere; letter-spacing: -.025em; text-wrap: balance }
html:not([lang=ja]) .genre { letter-spacing: .025em }
html:lang(hi) :is(h1,h2,h3,.genre) { letter-spacing: normal; line-height: 1.45 }
html:not([lang=ja]) .bridge-label { left: max(1.5%, calc(22.5% - 8.8em)); right: auto; max-width: 45%; white-space: normal }
html:not([lang=ja]) .drum-label { max-width: 36%; white-space: normal }
.get-app, footer .wrap { flex-wrap: wrap }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important } }
