:root {
  --ink: #191d18;
  --green: #3e5032;
  --sage: #8c9f7b;
  --paper: #ffffff;
  --soft: #f5f6f1;
  --about: #f8f9f7;
  --line: #d8ddd2;
  --muted: #5c6556;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 32px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 8px; }
.site-page { max-width: 1440px; margin-inline: auto; }
.container { width: calc(100% - 64px); max-width: 1200px; margin-inline: auto; }
.section-anchor { scroll-margin-top: 24px; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 16px; padding: 8px 24px; background: var(--green); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { background: var(--paper); }
.header-inner { max-width: 1296px; min-height: 104px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { flex: none; }
.brand img { width: 240px; height: 80px; object-fit: contain; }
.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.nav-link { position: relative; padding-inline: 16px; font-size: 20px; line-height: 32px; white-space: nowrap; }
.nav-link + .nav-link::before { content: ""; position: absolute; width: 1px; height: 16px; left: 0; top: 8px; background: #a8afa2; }
.nav-link:hover, .nav-link[aria-current] { color: var(--green); }

/* Hero */
.hero { position: relative; min-height: 576px; isolation: isolate; overflow: hidden; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 808px; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, white 0%, rgb(255 255 255 / 88%) 8%, rgb(255 255 255 / 0%) 40%); }
.hero-inner { min-height: 576px; display: flex; align-items: center; padding-block: 64px; }
.hero-copy { max-width: 656px; }
.hero h1 { border-left: 4px solid var(--sage); padding-left: 16px; font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 80px; }
.hero h1 span { display: block; }
.hero-copy > p { max-width: 600px; margin-top: 32px; line-height: 32px; }

/* Section typography and spacing */
.about, .samples, .editorial, .collaboration { padding-block: 80px; }
.section-heading { margin-bottom: 40px; }
.eyebrow { color: var(--green); font-size: 20px; font-weight: 700; line-height: 24px; }
.section-heading h2 { margin-top: 8px; color: var(--green); font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 48px; }
.heading-note { font-family: var(--serif); font-size: 24px; line-height: 40px; }
.section-lead { margin-bottom: 32px; text-wrap: pretty; }
.about { background: var(--about); }
.about-copy p + p { margin-top: 16px; }
.genre-copy { margin-top: 48px; }

/* Three video samples */
.samples .section-lead { margin-bottom: 64px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 288px); justify-content: space-between; gap: 48px; align-items: start; }
.video-card { min-width: 0; }
.video-thumbnail { position: relative; display: block; border-radius: 32px; }
.device-mockup { position: relative; width: 100%; aspect-ratio: 15 / 31; isolation: isolate; filter: drop-shadow(0 16px 16px rgb(25 29 24 / 16%)); }
.device-display { position: absolute; left: var(--screen-left); top: var(--screen-top); width: var(--screen-width); height: var(--screen-height); overflow: hidden; border-radius: var(--screen-radius-x) / var(--screen-radius-y); background: #10120f; box-shadow: 0 16px 32px rgb(25 29 24 / 16%); }
.video-thumbnail .device-mockup { transition: transform 200ms ease; }
.video-thumbnail:hover .device-mockup, .video-thumbnail:focus-visible .device-mockup { transform: translateY(-8px); }
.device-display img, .device-display video { width: 100%; height: 100%; object-fit: contain; }
.device-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.device-home { position: absolute; bottom: calc(100% * 63 / 1000); left: 36%; width: 28%; height: calc(100% * 3 / 1000); min-height: 1px; border-radius: 8px; background: rgb(237 240 230 / 64%); pointer-events: none; }
.play-hint { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgb(25 29 24 / 80%); pointer-events: none; }
.play-hint::before { content: ""; margin-left: 8px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 20px solid white; }
.video-caption { margin-top: 16px; padding: 16px 8px; background: var(--soft); text-align: center; border-radius: 8px; font-size: 16px; line-height: 24px; }
.video-caption h3 { font-size: inherit; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; text-wrap: balance; word-break: auto-phrase; }
.video-caption a:hover { text-decoration: underline; text-underline-offset: 8px; }
.video-duration { margin-top: 8px; color: var(--muted); }
.sample-book { margin-top: 16px; font-size: 20px; line-height: 24px; }
.sample-book summary { color: var(--green); text-align: center; }
.sample-book dl { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.sample-book dl > div + div { margin-top: 8px; }
.sample-book dt { color: var(--muted); }
.sample-book dd { overflow-wrap: anywhere; }
.sample-notes { margin-top: 32px; color: var(--muted); font-size: 20px; line-height: 24px; }
.video-structure { max-width: 768px; margin-top: 64px; }
.video-structure h3 { margin-bottom: 16px; font-size: 20px; line-height: 32px; }
.video-structure ol { padding: 0; list-style: none; }
.video-structure li { display: grid; grid-template-columns: 32px 1fr 1fr; align-items: center; gap: 16px; min-height: 48px; padding-block: 8px; border-top: 1px solid var(--line); font-size: 20px; line-height: 24px; }
.video-structure li:last-child { border-bottom: 1px solid var(--line); }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; background: var(--sage); color: white; border-radius: 50%; font-family: var(--serif); font-size: 24px; }

/* Editorial policy */
.editorial { border-top: 1px solid var(--line); }
.policy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px; }
.policy-card { padding: 16px 8px 24px; border-radius: 8px; background: var(--soft); text-align: center; }
.policy-icon { min-height: 64px; display: grid; place-items: center; }
.policy-card h3 { margin-top: 8px; font-size: 20px; font-weight: 700; line-height: 24px; }
.policy-card p { margin-top: 16px; font-size: 16px; line-height: 24px; text-wrap: pretty; word-break: auto-phrase; }
.editorial-note { margin-top: 32px; font-size: 20px; line-height: 24px; color: var(--muted); }

/* Collaboration */
.collaboration { border-top: 1px solid var(--line); }
.collaboration-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.collaboration-list li { padding: 16px; background: var(--soft); border-radius: 16px; display: flex; align-items: center; gap: 16px; }
.check-mark { color: var(--green); font-size: 32px; line-height: 40px; flex: none; }
.collaboration-list strong, .collaboration-list li div > span { display: block; font-size: 20px; line-height: 24px; }

/* Contact */
.contact { position: relative; min-height: 256px; display: grid; place-items: center; padding: 48px 32px; background: #f8f8f8; isolation: isolate; overflow: hidden; }
.contact-art { position: absolute; inset-block: 0; z-index: -1; }
.contact-art img { width: 100%; height: 100%; object-fit: cover; }
.contact-books { left: 0; width: 360px; }
.contact-cup { right: 0; width: 240px; }
.contact-art::after { content: ""; position: absolute; inset: 0; }
.contact-books::after { background: linear-gradient(90deg, transparent 40%, #f8f8f8 100%); }
.contact-cup::after { background: linear-gradient(90deg, #f8f8f8 0%, transparent 64%); }
.contact-copy { position: relative; max-width: 768px; text-align: center; }
.contact-address { margin-top: 24px; font-size: 20px; line-height: 40px; }
.contact-address a { text-decoration: underline; text-underline-offset: 8px; }
.site-footer { padding: 24px 32px; color: var(--muted); text-align: center; font-size: 16px; line-height: 24px; }
.site-footer p + p { margin-top: 8px; }
.credit { display: inline-block; }

/* Video dialog */
.player-dialog { width: 80vw; max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 48px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); overflow-y: auto; }
.player-dialog::backdrop { background: rgb(16 20 14 / 80%); }
.dialog-open { overflow: hidden; }
.dialog-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--green); font-size: 32px; line-height: 48px; }
.player-shell { display: grid; grid-template-columns: 50% minmax(0, 1fr); align-items: start; gap: 48px; }
.player-screen { width: 100%; margin-inline: auto; }
.player-screen .device-home { display: none; }
.player-information { min-width: 0; }
.player-information h2 { margin-block: 16px 24px; font-family: var(--serif); font-size: 32px; line-height: 48px; }
.player-information > p + p { margin-top: 16px; }
.player-information .device-player-note { color: var(--muted); line-height: 24px; }
.text-link { display: inline-block; margin-top: 24px; color: var(--green); text-decoration: underline; text-underline-offset: 8px; }
.player-error { margin-top: 24px; color: #923328; }

@media (max-width: 1359px) {
  .header-inner { width: calc(100% - 64px); gap: 24px; }
  .brand img { width: 208px; height: 72px; }
  .nav-link { padding-inline: 8px; }
}

@media (max-width: 1103px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding-block: 16px; gap: 16px; }
  .main-nav { justify-content: center; }
  .hero-copy { max-width: 592px; }
  .hero h1 { font-size: 40px; line-height: 72px; }
  .hero-photo { width: 64%; }
  .hero-photo::after { background: linear-gradient(90deg, white 0%, rgb(255 255 255 / 80%) 32%, transparent 100%); }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .policy-grid { gap: 24px; }
  .policy-card br { display: none; }
  .collaboration-list { gap: 16px; }
  .collaboration-list li { gap: 8px; }
}

@media (max-width: 767px) {
  .container, .header-inner { width: calc(100% - 48px); }
  .header-inner { padding-block: 16px; gap: 16px; }
  .brand img { width: 192px; height: 64px; }
  .main-nav { gap: 8px 0; }
  .nav-link { padding-inline: 8px; }
  .nav-link + .nav-link::before { display: none; }
  .hero { min-height: 0; }
  .hero-inner { min-height: 0; padding-block: 48px 336px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 24px; line-height: 48px; padding-left: 16px; }
  .hero-copy > p { margin-top: 24px; }
  .desktop-break { display: none; }
  .hero-photo { inset: auto 0 0; width: 100%; height: 288px; }
  .hero-photo img { object-position: center 56%; }
  .hero-photo::after { background: linear-gradient(180deg, white 0%, rgb(255 255 255 / 0%) 40%); }
  .about, .samples, .editorial, .collaboration { padding-block: 48px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 32px; line-height: 48px; }
  .heading-note { font-size: 20px; line-height: 32px; }
  .genre-copy { margin-top: 32px; }
  .samples .section-lead { margin-bottom: 32px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .video-thumbnail, .video-caption, .sample-book { width: 100%; max-width: 288px; margin-inline: auto; }
  .sample-notes { margin-top: 32px; }
  .sample-notes p + p { margin-top: 8px; }
  .video-structure { margin-top: 40px; }
  .video-structure li { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 16px; padding-block: 16px; }
  .video-structure li > span:last-child { grid-column: 2; }
  .policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .policy-card { padding-inline: 8px; }
  .policy-card h3, .policy-card p { overflow-wrap: anywhere; }
  .policy-card h3 { text-wrap: balance; }
  .collaboration-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .collaboration-list li { gap: 16px; }
  .contact { min-height: 320px; padding: 48px 24px; }
  .contact-art { opacity: 24%; }
  .contact-books { width: 160px; }
  .contact-cup { width: 128px; }
  .contact-address { line-height: 32px; }
  .contact-address a { display: inline-block; }
  .site-footer { padding: 24px; }
  .player-dialog { padding: 56px 24px 32px; }
  .player-shell { display: block; }
  .player-screen { width: 100%; }
  .player-information { margin-top: 32px; }
  .player-information h2 { font-size: 24px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .video-thumbnail:hover .device-mockup, .video-thumbnail:focus-visible .device-mockup { transform: none; }
}
