:root { --paper: #f2ede3; --ink: #111318; --red: #d13a2f; --blue: #1e5162; --gold: #d6a73d; --muted: #716c64; --line: rgba(17,19,24,.17); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.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; }
.page-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 3px; transform-origin: left; background: linear-gradient(90deg, var(--red), var(--gold)); }
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal="visible"] { opacity: 1; transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 30; height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.17); color: white; padding: 0 clamp(20px, 4vw, 66px); transition: height .3s, background .3s, backdrop-filter .3s; }
.site-header.scrolled { height: 66px; background: rgba(11,14,18,.82); backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.65); color: #fff; font: 800 10px/1 ui-monospace, monospace; letter-spacing: .12em; transition: transform .3s, background .3s; }
.brand:hover .brand-mark { transform: rotate(7deg); background: var(--red); border-color: var(--red); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.nav a { position: relative; padding: 29px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--gold); transition: right .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.menu-button { display: none; }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; color: white; background: #151a20; padding: 128px clamp(26px, 7vw, 116px) 78px; }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 70% 30%, #35566b, #111820 62%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: heroBreath 18s ease-in-out infinite alternate; }
@keyframes heroBreath { from { transform: scale(1.01); } to { transform: scale(1.07); } }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,15,.94) 0%, rgba(7,10,15,.76) 42%, rgba(7,10,15,.18) 73%, rgba(7,10,15,.42) 100%), linear-gradient(0deg, rgba(7,10,15,.88), transparent 55%); }
.hero-noise { position: absolute; inset: 0; opacity: .16; background-image: radial-gradient(rgba(255,255,255,.8) .55px, transparent .7px); background-size: 5px 5px; mix-blend-mode: overlay; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 360px at var(--mx) var(--my), rgba(237,188,86,.16), transparent 72%); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; width: min(790px, 75vw); }
.eyebrow { margin: 0 0 22px; color: var(--red); font: 800 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .24em; }
.hero .eyebrow { color: #f0c45f; }
.hero h1 { margin: 0; font-weight: 900; line-height: .88; letter-spacing: -.085em; text-shadow: 0 14px 60px rgba(0,0,0,.35); }
.hero h1 span { display: block; font-size: clamp(39px, 6.1vw, 94px); }
.hero h1 strong { display: block; margin-top: 13px; font-size: clamp(92px, 14vw, 218px); color: #fff; }
.hero-kicker { margin: 28px 0 12px; font-size: clamp(20px, 2.2vw, 32px); font-weight: 800; letter-spacing: .03em; }
.hero-lead { max-width: 610px; margin: 0; color: rgba(255,255,255,.69); font-size: 14px; line-height: 2.05; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 34px; padding: 0 25px; border: 1px solid rgba(255,255,255,.35); font-size: 13px; font-weight: 800; transition: transform .25s, background .25s, border-color .25s; }
.button:hover { transform: translateY(-3px); }
.button.primary { background: var(--red); border-color: var(--red); }
.button.primary:hover { background: #ec5043; }
.button.glass { background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.button.glass:hover { background: rgba(255,255,255,.17); }
.hero-meta { position: absolute; z-index: 4; right: clamp(26px, 5vw, 82px); bottom: 76px; display: grid; gap: 14px; }
.hero-meta div { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.26); }
.hero-meta b { font: 800 30px/1 ui-monospace, monospace; }
.hero-meta span { color: rgba(255,255,255,.48); font: 700 9px/1.2 ui-monospace, monospace; letter-spacing: .13em; }
.scroll-cue { position: absolute; z-index: 4; right: 28px; top: 50%; display: flex; align-items: center; gap: 15px; writing-mode: vertical-rl; color: rgba(255,255,255,.5); font: 700 9px/1 ui-monospace, monospace; letter-spacing: .18em; }
.scroll-cue i { display: block; height: 64px; width: 1px; background: linear-gradient(to bottom, #fff 50%, transparent 50%); background-size: 100% 200%; animation: scrollLine 2s infinite; }
@keyframes scrollLine { to { background-position: 0 -200%; } }

.ticker { overflow: hidden; padding: 18px 0; background: var(--red); color: white; transform: rotate(-1deg) scale(1.02); box-shadow: 0 10px 38px rgba(122,23,18,.16); }
.ticker div { width: max-content; display: flex; animation: ticker 30s linear infinite; font: 800 12px/1 ui-monospace, monospace; letter-spacing: .17em; }
.ticker span { white-space: nowrap; }
.ticker b { padding: 0 13px; color: #f5c951; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { position: relative; max-width: 1320px; margin: 0 auto; padding: 132px clamp(24px, 6vw, 86px); }
.section-number { position: absolute; top: 112px; right: clamp(24px, 6vw, 86px); color: rgba(17,19,24,.07); font: 900 clamp(82px, 12vw, 172px)/1 ui-monospace, monospace; }
.section-heading { position: relative; z-index: 1; }
.section-heading h2 { margin: 0; font-size: clamp(46px, 7vw, 94px); line-height: 1; letter-spacing: -.065em; }
.story { min-height: 830px; }
.story::before { content: ""; position: absolute; width: 460px; height: 460px; left: -260px; bottom: 50px; border-radius: 50%; background: radial-gradient(circle, rgba(30,81,98,.18), transparent 68%); }
.story-content { position: relative; z-index: 1; margin: 78px 0 0 auto; max-width: 920px; }
.story-intro { margin: 0 0 48px; max-width: 810px; font-size: clamp(25px, 3.4vw, 46px); line-height: 1.65; font-weight: 800; letter-spacing: -.04em; }
.story-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 1px solid var(--line); padding-top: 30px; color: #4f4b45; font-size: 14px; line-height: 2.15; }
.story-columns p { margin: 0; }
.themes { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 40px; }
.themes span { min-width: 92px; padding: 12px 19px; border: 1px solid var(--line); background: rgba(255,255,255,.35); text-align: center; font-size: 12px; font-weight: 800; transition: .2s; }
.themes span:hover { color: white; background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

.characters { position: relative; overflow: hidden; background: #10161c; color: white; }
.character-glow { position: absolute; width: 800px; height: 800px; right: -230px; top: 70px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--character) 38%, transparent), transparent 68%); filter: blur(10px); transition: background .5s; }
.characters-inner, .credits-inner { max-width: 1420px; }
.section-heading.light h2 { color: white; }
.characters .section-number, .credits .section-number { color: rgba(255,255,255,.05); }
.character-feature { position: relative; display: grid; grid-template-columns: minmax(330px, .9fr) 1.1fr; gap: clamp(42px, 7vw, 108px); align-items: center; margin-top: 78px; }
.character-portrait { position: relative; height: min(62vw, 660px); min-height: 520px; overflow: hidden; background: #d9d5cc; color: #171717; box-shadow: 0 35px 80px rgba(0,0,0,.32); }
.character-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,12,16,.74), transparent 42%); pointer-events: none; }
.character-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; animation: portraitIn .52s cubic-bezier(.2,.8,.2,1); }
@keyframes portraitIn { from { opacity: 0; transform: scale(1.06) translateX(12px); filter: saturate(0); } }
.portrait-scan { position: absolute; z-index: 3; inset: -20% 0 auto; height: 30%; background: linear-gradient(transparent, rgba(255,255,255,.12), transparent); animation: scan 5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 50%, 100% { transform: translateY(480%); } }
.portrait-index { position: absolute; z-index: 4; top: 20px; left: 22px; padding: 8px 10px; background: rgba(10,14,18,.72); color: white; font: 800 11px/1 ui-monospace, monospace; backdrop-filter: blur(8px); }
.portrait-name { position: absolute; z-index: 4; left: 24px; bottom: 26px; color: white; font: 800 11px/1.2 ui-monospace, monospace; letter-spacing: .18em; }
.character-copy { max-width: 630px; }
.character-role { margin: 0 0 16px; color: var(--character); font-size: 12px; font-weight: 800; letter-spacing: .18em; transition: color .4s; }
.character-copy h3 { margin: 0; font-size: clamp(50px, 6vw, 94px); line-height: 1.05; letter-spacing: -.065em; }
.character-roman { margin: 13px 0 38px; color: rgba(255,255,255,.34); font: 800 11px/1.2 ui-monospace, monospace; letter-spacing: .23em; }
.character-summary { min-height: 150px; margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 2.12; }
.cast-line { display: flex; align-items: baseline; gap: 30px; margin: 38px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: 22px; font-weight: 800; }
.cast-line span { color: var(--character); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .2em; transition: color .4s; }
.character-controls { display: flex; gap: 8px; margin-top: 30px; }
.character-controls button { width: 48px; height: 42px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: white; cursor: pointer; transition: .2s; }
.character-controls button:hover, .character-controls button.playing { background: var(--character); border-color: var(--character); }
.character-timer { height: 2px; margin-top: 20px; overflow: hidden; background: rgba(255,255,255,.12); }
.character-timer i { display: block; width: 100%; height: 100%; transform-origin: left; background: var(--character); }
.character-timer i.running { animation: timer 8s linear; }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.character-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid rgba(255,255,255,.13); border-left: 1px solid rgba(255,255,255,.13); }
.character-tabs button { position: relative; min-height: 82px; display: grid; grid-template-columns: 24px 46px 1fr; align-items: center; gap: 11px; overflow: hidden; padding: 9px 13px; border: 0; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); background: transparent; color: rgba(255,255,255,.56); text-align: left; cursor: pointer; transition: background .25s, color .25s; }
.character-tabs button span { color: rgba(255,255,255,.28); font: 800 9px/1 ui-monospace, monospace; }
.character-tabs button img { width: 46px; height: 60px; object-fit: cover; object-position: top; filter: saturate(.55); transition: filter .25s, transform .25s; }
.character-tabs button b { font-size: 12px; }
.character-tabs button:hover, .character-tabs button.active { background: color-mix(in srgb, var(--character) 55%, #151a20); color: white; }
.character-tabs button:hover img, .character-tabs button.active img { filter: saturate(1.12); transform: scale(1.06); }

.episodes { max-width: 1420px; }
.episodes-intro { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin: 68px 0 34px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.episodes-intro p { max-width: 600px; margin: 0; color: #4f4b45; font-size: 14px; line-height: 1.9; }
.episode-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.episode-filters button { padding: 10px 15px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s; }
.episode-filters button:hover, .episode-filters button.active { background: var(--red); border-color: var(--red); color: white; }
.episode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.episode-card { overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.42); box-shadow: 0 16px 40px rgba(20,26,30,.06); transition: transform .3s, box-shadow .3s; }
.episode-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(20,47,58,.14); }
.nico-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #080a0d; }
.nico-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.episode-info { display: grid; grid-template-columns: 54px 1fr; align-items: stretch; gap: 23px; min-height: 132px; padding: 24px; }
.episode-no { display: flex; flex-direction: column; justify-content: space-between; }
.episode-no span { font: 900 27px/1 ui-monospace, monospace; }
.episode-no i { width: 29px; height: 3px; background: var(--red); }
.episode-card p { margin: 0 0 9px; color: var(--red); font: 800 9px/1 ui-monospace, monospace; letter-spacing: .13em; }
.episode-card h3 { margin: 0 0 8px; font-size: 16px; }
.episode-info a { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.credits { position: relative; overflow: hidden; background: #0d1116; color: white; }
.credits::before { content: "OMK"; position: absolute; right: -3vw; bottom: -5vw; color: rgba(255,255,255,.025); font: 900 32vw/1 ui-monospace, monospace; letter-spacing: -.12em; }
.credit-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px, 8vw, 124px); margin-top: 78px; }
.staff-block dl { margin: 0; border-top: 1px solid rgba(255,255,255,.16); }
.staff-block dl div { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 21px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.staff-block dt { color: rgba(255,255,255,.4); font-size: 11px; }
.staff-block dd { margin: 0; font-size: 17px; font-weight: 800; }
.staff-block dd a, .theme-songs a, .cast-block a { transition: color .2s; }
.staff-block dd a:hover, .theme-songs a:hover, .cast-block a:hover { color: #f06b60; }
.kensuke-credit dt { line-height: 1.8; }
.kensuke-credit dd { align-self: center; color: #f06b60; font-size: 23px; }
.theme-songs { margin-top: 52px; }
.theme-songs p:not(.eyebrow) { margin: 13px 0; color: rgba(255,255,255,.68); font-size: 13px; }
.theme-songs p span { display: inline-block; width: 84px; color: var(--red); font: 800 9px/1 ui-monospace, monospace; }
.theme-songs p b, .cast-block i { font-style: normal; font-weight: 500; }
.cast-block { display: grid; grid-template-columns: 1fr 1fr; align-content: start; border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.cast-block div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 61px; padding: 12px 17px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); transition: background .2s; }
.cast-block div:hover { background: rgba(255,255,255,.06); }
.cast-block span { color: rgba(255,255,255,.48); font-size: 11px; }
.cast-block b { font-size: 13px; }
.official-note { position: relative; z-index: 1; display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center; margin-top: 72px; padding: 30px; border: 1px solid rgba(209,58,47,.72); background: linear-gradient(90deg, rgba(209,58,47,.08), transparent); }
.official-note span { color: var(--red); font: 900 10px/1.4 ui-monospace, monospace; letter-spacing: .16em; }
.official-note p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
footer { min-height: 210px; display: flex; justify-content: space-between; align-items: center; gap: 42px; padding: 50px clamp(24px, 6vw, 86px); background: #070a0d; color: white; border-top: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 21px; }
.footer-brand span { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.35); font: 900 13px/1 ui-monospace, monospace; }
.footer-brand b { font-size: 16px; }
.footer-copy { color: rgba(255,255,255,.38); font-size: 10px; line-height: 1.85; text-align: right; }
.footer-copy p { margin: 3px 0; }
.footer-copy a { color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; }
.to-top { position: fixed; z-index: 28; right: 24px; bottom: 24px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); background: rgba(10,14,18,.78); color: white; opacity: 0; transform: translateY(16px); pointer-events: none; backdrop-filter: blur(10px); transition: .25s; }
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red); border-color: var(--red); }

.notice-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 22px; background: rgba(6,9,12,.88); backdrop-filter: blur(12px); }
.notice-backdrop[hidden], .notice-backdrop.is-dismissed { display: none !important; }
body.notice-open { overflow: hidden; }
.notice-card { width: min(530px, 100%); border: 1px solid rgba(255,255,255,.18); background: #121820; color: white; padding: clamp(30px, 5vw, 54px); box-shadow: 0 25px 90px rgba(0,0,0,.48); }
.notice-card h2 { margin: 0 0 18px; font-size: clamp(26px, 4vw, 39px); }
.notice-card p:not(.eyebrow) { color: rgba(255,255,255,.67); line-height: 1.85; font-size: 14px; }
.notice-card button { width: 100%; margin-top: 24px; padding: 17px; border: 0; background: var(--red); color: white; font-weight: 800; cursor: pointer; }

@media (max-width: 980px) { .hero-meta { display: none; } .hero-copy { width: min(820px, 90vw); } .character-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .site-header, .site-header.scrolled { height: 64px; background: rgba(11,14,18,.83); backdrop-filter: blur(15px); }
  .brand { font-size: 12px; }.brand-mark { width: 34px; height: 34px; }
  .menu-button { display: grid; gap: 5px; border: 0; padding: 10px 0 10px 18px; background: transparent; }
  .menu-button span { display: block; width: 24px; height: 1px; background: white; }
  .nav { position: fixed; top: 64px; left: 0; right: 0; display: grid; gap: 0; padding: 8px 24px 24px; background: rgba(11,14,18,.98); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: .25s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 17px 2px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hero { min-height: 920px; align-items: flex-end; padding: 130px 24px 80px; }
  .hero-media img { object-position: 62% center; }
  .hero-wash { background: linear-gradient(0deg, rgba(7,10,15,.98) 0%, rgba(7,10,15,.7) 56%, rgba(7,10,15,.22) 100%); }
  .hero-copy { width: 100%; }
  .hero h1 strong { font-size: clamp(94px, 31vw, 158px); }
  .scroll-cue { display: none; }
  .section { padding-top: 92px; padding-bottom: 92px; }
  .section-number { top: 82px; }
  .story-content { margin-top: 56px; }
  .story-columns { grid-template-columns: 1fr; gap: 20px; }
  .character-feature { grid-template-columns: 1fr; }
  .character-portrait { height: 72svh; min-height: 500px; }
  .character-copy { max-width: none; }
  .character-summary { min-height: 0; }
  .character-tabs { grid-template-columns: repeat(2, 1fr); }
  .episode-grid { grid-template-columns: 1fr; }
  .credit-layout { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-copy { text-align: left; }
}
@media (max-width: 500px) {
  .hero { min-height: 880px; }
  .hero-actions { flex-direction: column; }.button { width: 100%; }
  .hero-lead { line-height: 1.9; }
  .ticker { padding: 15px 0; }
  .character-tabs { grid-template-columns: 1fr; }
  .episodes-intro { align-items: flex-start; flex-direction: column; }
  .episode-info { grid-template-columns: 43px 1fr; gap: 12px; padding: 19px 14px; }
  .episode-filters { width: 100%; }.episode-filters button { flex: 1; }
  .cast-block { grid-template-columns: 1fr; }.official-note { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } [data-reveal] { opacity: 1; transform: none; } }
