:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #514036;
  --muted: #6b625d;
  --line: #e6e2de;
  --orange: #f96802;
  --orange-ink: #a74400;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; }
svg { display: block; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.site-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: 52px; height: 52px; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.header-link:hover { color: var(--orange-ink); text-decoration: underline; }
.page-heading { margin: 54px 0 36px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 650; overflow-wrap: anywhere; }
.language-note { white-space: nowrap; }
.page-heading h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.5; letter-spacing: .02em; }
.page-heading p { max-width: 46em; margin-top: 12px; color: var(--muted); line-height: 1.9; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.video-card { min-width: 0; }
.video-link { display: block; text-decoration: none; }
.thumbnail { position: relative; aspect-ratio: 16 / 9; background: #1c1b19; overflow: hidden; border-radius: 7px; }
.thumbnail > img { width: 100%; height: 100%; object-fit: contain; }
.play-icon { position: absolute; width: 48px; height: 48px; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); }
.play-icon svg { width: 25px; height: 25px; margin-left: -2px; }
.duration { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 3px; color: #fff; background: rgba(0, 0, 0, .82); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.7; }
.card-content { padding-top: 17px; }
.card-content h2 { font-size: 19px; line-height: 1.65; }
.card-content p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.video-link:hover h2 { color: var(--orange-ink); text-decoration: underline; text-underline-offset: .2em; }
.video-link:hover .play-icon { background: var(--orange); color: #fff; }
.site-footer { margin-top: 72px; padding: 25px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--orange-ink); }
.detail-heading { margin: 28px 0 24px; }
.detail-heading h1 { font-size: clamp(24px, 2.7vw, 32px); line-height: 1.6; }
.video-meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.player-shell { width: 100%; aspect-ratio: var(--video-ratio, 16 / 9); position: relative; background: #000; border-radius: 7px; overflow: hidden; }
.player-shell iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.video-description { margin-top: 24px; max-width: 48em; font-size: 16px; line-height: 1.9; }
.video-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adjacent { min-width: 0; min-height: 60px; text-decoration: none; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.adjacent .direction { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.adjacent:hover { color: var(--orange-ink); text-decoration: underline; }
.next { text-align: right; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 23px; color: var(--orange-ink); font-size: 14px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 86px; }
  .brand img { width: 44px; height: 44px; }
  .page-heading { margin-top: 34px; margin-bottom: 27px; }
  .page-heading p { font-size: 14px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .card-content { padding-top: 12px; }
  .card-content h2 { font-size: 17px; }
  .card-content p { font-size: 14px; }
  .site-footer { margin-top: 48px; padding-bottom: 24px; }
  .breadcrumb { margin-top: 22px; }
  .detail-heading { margin-top: 20px; margin-bottom: 18px; }
  .detail-heading h1 { font-size: 22px; }
  .video-description { margin-top: 19px; font-size: 15px; }
  .video-navigation { gap: 18px; margin-top: 28px; padding-block: 19px; }
  .adjacent { font-size: 13px; }
}

@media (prefers-reduced-motion: no-preference) {
  .play-icon { transition: color .15s, background-color .15s; }
}
