/* Zen Kaku Gothic New Light, SIL Open Font License 1.1; see assets/fonts/OFL.txt. */
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("assets/fonts/ZenKakuGothicNew-Light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
:root {
  --green: #164d38;
  --ink: #1a1a1a;
  --line: #d9d9d9;
  --blank: #e5e5e5;
  --gutter: 48px;
  --reading-width: 40rem;
  --reading-inset: calc((100% - 24px) / 6);
  --body-size: 14pt;
  --body-leading: 1.55;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: var(--body-size); font-weight: 300; line-height: var(--body-leading); letter-spacing: .02em; font-synthesis: none; text-align: left; line-break: strict; word-break: normal; font-feature-settings: normal; }
::selection { color: #fff; background: var(--green); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--green); }
button { font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .42; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
.button-panel :focus-visible, .closing :focus-visible { outline-color: #fff; }
.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1600px; margin-inline: auto; }
.page-header { position: relative; z-index: 9; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; min-height: 112px; align-items: center;  border-bottom: 1px solid var(--ink); font-size: 1rem; }
.page-header span { font-size: 20px; }
.page-header time { justify-self: start; }
.hero { padding: 65px 0 64px; }
h1,h2,h3,p,figure,ol { margin: 0; }
h1,h2,h3 { font-weight: 300; line-height: 1.35; letter-spacing: .01em; overflow-wrap: anywhere; }
strong,b { font-weight: inherit; }
/* Keep short semantic phrases together; long phrases still wrap on narrow screens. */
.phrase { display: inline-block; max-width: 100%; vertical-align: top; word-break: normal; overflow-wrap: anywhere; }
.display-title { font-size: clamp(4rem, 2rem + 5.5vw, 9rem); line-height: 1.15; }
.hero-bottom { display: grid; grid-template-columns: 8fr 4fr; gap: 24px; margin-top: 46px; }
.subtitle { font-size: clamp(1.75rem, 1.25rem + 1vw, 2.5rem); font-weight: 300; line-height: 1.45; letter-spacing: .01em; }
.mobile-break { display: none; }
.hero-note { display: flex; justify-content: space-between; gap: 24px; border-left: 1px solid var(--line); padding-left: 24px; font-size: 1rem; align-items: flex-end; }
.hero-note a { white-space: nowrap; }
.contents { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 32px 0; }
.contents h2 { font-size: 20px; font-weight: 300; }
.contents ol { padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.contents li { break-inside: avoid; }
.contents a { display: block; padding: 8px 0; text-decoration: none; font-size: 18px; }
.contents a:hover { text-decoration: underline; }
section + section { margin-top: 128px; }
.section-title { padding: 32px 0 40px; border-top: 1px solid var(--ink); font-size: clamp(3rem, 1.5rem + 3vw, 4.5rem); line-height: 1.3; }
h3 { font-size: clamp(1.75rem, 1.25rem + 1vw, 2.25rem); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding-top: 64px; }
.split h3 { padding-right: 32px; }
.prose { max-width: var(--reading-width); min-width: 0; overflow-wrap: anywhere; }
.reading { display: block; margin-left: var(--reading-inset); max-width: var(--reading-width); }
.reading > h3 { padding: 0; margin-bottom: 28px; }
.section-title + .split { padding-top: 16px; }
.prose p + p { margin-top: 1.25em; }
.offset { margin-left: var(--reading-inset); }
.block { margin-top: 80px; }
.block > h3 { max-width: 22em; margin-left: var(--reading-inset); margin-bottom: 28px; }
.block > figure { margin-bottom: 36px; }
.question { padding-top: 80px; padding-bottom: 0; }
.question h3 { font-size: clamp(2rem, 1.25rem + 1.5vw, 2.75rem); }
.button-panel { margin-top: 96px; padding: 48px; background: var(--green); color: #fff; }
.button-panel h2 { font-size: clamp(2rem, 1.25rem + 2vw, 3rem); max-width: 22em; margin-bottom: 40px; }
.button-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
#ten-year-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 24px; min-height: 90px; border: 1px solid #fff; color: var(--ink); background: #fff; text-align: left; font-size: 22px; transition: transform 120ms ease-out; }
#ten-year-button:hover { background: #f1f4f2; }
#ten-year-button:active { transform: translateY(3px); }
.button-sign { font-size: 28px; }
.caption { font-size: 1rem; line-height: 1.6; margin-top: 18px; }
#button-explanation { margin-top: 32px; padding-top: 24px; border-top: 1px solid #ffffff66; }
.steps { padding-left: 1.2em; margin-top: 20px; font-size: 1rem; }
.steps li + li { margin-top: 8px; }
.statement { border-top: 1px solid var(--line); margin-top: 80px; padding-top: 40px; }
.statement h3 { font-size: clamp(2rem, 1.25rem + 1.5vw, 2.75rem); }
.gallery { margin-top: 40px; min-width: 0; }
.gallery-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 16px; }
.gallery-top > p { font-size: 1rem; }
.gallery-controls { display: flex; gap: 8px; }
.gallery-controls button { background: #fff; border: 1px solid var(--ink); padding: 10px 18px; min-height: 44px; font-size: 1rem; }
.gallery-controls button:not(:disabled):hover { background: var(--green); color: #fff; border-color: var(--green); }
.rail { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 18px; scrollbar-color: var(--green) var(--blank); scrollbar-width: auto; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { height: 12px; }
.rail::-webkit-scrollbar-track { background: var(--blank); }
.rail::-webkit-scrollbar-thumb { background: var(--green); border: 3px solid var(--blank); }
.slide { flex: 0 0 82%; min-width: 0; }
.slide h3 { margin: 28px 0 24px; max-width: 22em; }
.slide .prose { max-width: var(--reading-width); min-width: 0; overflow-wrap: anywhere; }
.placeholder { background: var(--blank); color: #626262; width: 100%; aspect-ratio: 16 / 9; padding: 28px; display: flex; justify-content: space-between; align-items: flex-end; }
.placeholder-number { font-size: clamp(44px,5vw,80px); font-weight: 300; font-variant-numeric: tabular-nums; }
.placeholder-note { font-size: 1rem; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--blank); }
figcaption { font-size: 1rem; margin-top: 12px; }
.after-gallery { margin-top: 48px; }
.closing { margin-top: 128px; padding: 64px 48px 80px; color: #fff; background: var(--green); }
.closing .prose { margin-bottom: 64px; max-width: var(--reading-width); }
.closing h3 { font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 19em; line-height: 1.4; }
footer { display: flex; gap: 24px; padding-block: 32px 48px; font-size: 1rem; }
footer a { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; background: #fff; padding: 16px; }
.skip-link:focus { top: 20px; }
@media (max-width: 1280px) { :root { --gutter: 32px; } .hero-note { display: block; } .hero-note a { display: inline-block; margin-top: 20px; } }
@media (max-width: 800px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 20px; }
  :root { --body-size: 14pt; --reading-inset: 0px; }
  .page-header { padding-right: 0; padding-top: 0; min-height: 80px; grid-template-columns: 1fr auto auto; gap: 16px; }
  .page-header span { font-size: 1rem; }
  .hero { padding: 40px 0 48px; }
  .display-title { font-size: clamp(2.75rem, 1.5rem + 5vw, 4rem); }
  .hero-bottom { grid-template-columns: 1fr; margin-top: 28px; gap: 32px; }
  .subtitle { font-size: clamp(1.5rem, 1.125rem + 1.5vw, 2rem); }
  .mobile-break { display: initial; }
  .hero-note { border: 0; border-top: 1px solid var(--line); padding: 20px 0 0; display: flex; align-items: flex-end; }
  .hero-note a { margin: 0; }
  .contents { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .contents ol { columns: 1; }
  .contents a { min-height: 44px; }
  section + section { margin-top: 96px; }
  .section-title { font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem); padding-block: 24px 32px; }
  .split { grid-template-columns: 1fr; gap: 20px; padding-top: 56px; }
  .section-title + .split { padding-top: 0; }
  .reading > h3 { margin-bottom: 20px; }
  .split h3 { padding: 0; }
  h3, .question h3, .statement h3 { font-size: 1.625rem; }
  .offset { margin-left: 0; }
  .block { margin-top: 64px; }
  .button-panel { margin-top: 64px; padding: 28px 24px; }
  .button-panel h2 { font-size: 1.75rem; margin-bottom: 28px; }
  .button-grid { grid-template-columns: 1fr; gap: 36px; }
  #ten-year-button { font-size: 20px; padding: 18px; }
  .statement { margin-top: 64px; padding-top: 32px; }
  .gallery { margin-top: 32px; }
  .gallery-top { gap: 12px; }
  .gallery-controls button { padding-inline: 12px; white-space: nowrap; }
  .rail { gap: 16px; }
  .placeholder { padding: 16px; }
  .placeholder-note { font-size: 14px; }
  .slide h3 { font-size: 1.5rem; }
  .closing { margin-top: 80px; padding: 32px 24px 48px; }
  .closing .prose { margin-bottom: 48px; }
  .closing h3 { font-size: 1.75rem; }
  footer { flex-wrap: wrap; gap: 16px; }
}

/* The source story opens the talk; the author's existing bridge follows it. */
.origin { padding-top: 56px; }
.origin-title { margin-bottom: 32px; max-width: 21em; font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem); line-height: 1.35; }
.origin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 0; }
.origin-question { font-size: 1.75rem; line-height: 1.4; margin-top: 32px; }
.origin-source { font-size: 1rem; line-height: 1.6; margin-top: 28px; }
.origin-bridge { margin-left: var(--reading-inset); margin-top: 64px; border-top: 1px solid var(--line); padding-top: 32px; }
.origin + section { margin-top: 80px; }
.origin + section .hero { border-top: 1px solid var(--ink); padding-top: 48px; }
.video-stage { position: relative; aspect-ratio: 4 / 3; background: var(--ink); }
.video-stage img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; background: var(--ink); }
.video-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
#load-origin-video { position: absolute; bottom: 16px; left: 16px; padding: 12px 20px; min-height: 48px; background: #fff; border: 1px solid var(--ink); font-size: 1rem; }
#load-origin-video:hover { color: #fff; background: var(--green); }
.origin-media figcaption { line-height: var(--body-leading); }
.student-slides { margin-top: 40px; }
.slide-navigation { display: flex; align-items: center; gap: 8px; }
.slide-navigation button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--ink); background: #fff; font-size: 1rem; white-space: nowrap; }
.slide-navigation button:not(:disabled):hover { background: var(--green); color: #fff; }
#student-page { min-width: 5em; margin-right: 12px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.slides-stage { width: 100%; aspect-ratio: 16 / 9; background: var(--blank); }
.slides-stage iframe { display: block; border: 0; width: 100%; height: 100%; pointer-events: none; }
.slides-link { margin-top: 12px; font-size: 1rem; }
@media (max-width: 800px) {
  .origin { padding-top: 36px; }
  .origin-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
  .origin-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 0; }
  .origin-question { font-size: 1.5rem; margin-top: 24px; }
  .origin-source { margin-top: 24px; }
  .origin-bridge { margin-top: 40px; padding-top: 28px; }
  .origin + section { margin-top: 64px; }
  .student-slides { margin-top: 32px; }
  .student-slides .gallery-top { flex-wrap: wrap; gap: 12px; }
  .slide-navigation button { padding-inline: 12px; }
  #student-page { margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } #ten-year-button:active { transform: none; } }
@media print { .gallery-controls,.skip-link { display: none !important; } .rail { display: block; overflow: visible; } .slide { break-inside: avoid; margin-bottom: 32px; } .page-header { padding: 0; } .placeholder { max-height: 240px; } }

.caption, figcaption, .origin-source, .steps, .hero-note, .gallery-top > p, .slides-link { font-size: var(--body-size); line-height: var(--body-leading); }

.image-link { display: block; }
