:root {
  --ink: #eceaf7;
  --muted: #aaa7bd;
  --night: #070611;
  --panel: #0f0d1d;
  --violet: #9d75ff;
  --violet-bright: #c8aeff;
  --line: rgba(211, 196, 255, 0.16);
  --display: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #7554b8 #090815; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--night);
  font-family: var(--sans);
  line-height: 1.85;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.hero-image-frame img,
.story-memory img,
.character-portrait img,
.gallery-preview-card img,
.gallery-item img,
.gallery-lightbox-stage img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; color: #090815; background: #fff; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

.rain { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.ambient-layer { position: absolute; inset: 0; transition: opacity 1s ease; }
.rain-layer { opacity: .3; }
.star-layer { opacity: 0; background: radial-gradient(ellipse at 68% 28%, rgba(94,92,210,.14), transparent 48%), radial-gradient(ellipse at 32% 72%, rgba(170,91,220,.11), transparent 42%); }
.rain[data-effect="stars"] .rain-layer { opacity: 0; }
.rain[data-effect="stars"] .star-layer { opacity: .94; }
.raindrop { position: absolute; top: -12vh; width: 1px; height: 10vh; background: linear-gradient(transparent, rgba(220,211,255,.78), transparent); animation: rainfall var(--speed) linear var(--delay) infinite; transform: rotate(9deg); filter: drop-shadow(0 0 2px rgba(152,125,231,.35)); }
@keyframes rainfall { to { translate: -18vw 125vh; } }
.ambient-star { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: var(--size); border-radius: 50%; background: rgba(242,247,255,.98); box-shadow: 0 0 calc(var(--size) * 2.5) rgba(190,215,255,.98), 0 0 calc(var(--size) * 6) rgba(176,128,255,.58); animation: star-twinkle var(--duration) ease-in-out var(--delay) infinite alternate; }
.ambient-star.is-glint::before, .ambient-star.is-glint::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(240,245,255,.88), transparent); transform: translate(-50%, -50%); }
.ambient-star.is-glint::before { width: calc(var(--size) * 8); height: 1px; }
.ambient-star.is-glint::after { width: 1px; height: calc(var(--size) * 8); }
@keyframes star-twinkle { from { opacity: .28; transform: scale(.68); } to { opacity: 1; transform: scale(1.3); } }
.shooting-star { position: absolute; left: var(--x); top: var(--y); width: clamp(58px, 7vw, 104px); height: 2px; opacity: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); background: linear-gradient(90deg, transparent 0%, rgba(190,211,255,.42) 58%, rgba(255,255,255,.98) 100%); filter: drop-shadow(0 0 5px rgba(178,195,255,.84)); transform: rotate(25deg) translateX(-20vmax); transform-origin: right center; animation: shooting-star var(--duration) ease-in var(--delay) infinite; }
.shooting-star::after { content: ""; position: absolute; right: -2px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(198,211,255,.9); transform: translateY(-50%); }
@keyframes shooting-star {
  0%, 62% { opacity: 0; transform: rotate(25deg) translateX(-20vmax); }
  66% { opacity: .95; }
  78% { opacity: 0; transform: rotate(25deg) translateX(70vmax); }
  100% { opacity: 0; transform: rotate(25deg) translateX(70vmax); }
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 0 clamp(22px, 4vw, 70px);
  border-bottom: 1px solid rgba(211, 196, 255, 0.1);
  background: rgba(7, 6, 17, 0.76);
  box-shadow: 0 10px 35px rgba(2, 1, 8, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .3s, border-color .3s, height .3s;
}
.site-header.scrolled { height: 72px; background: rgba(7,6,17,.88); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark, .footer-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; }
.brand-mark img, .footer-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.brand-copy strong { font-family: var(--display); font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.site-menu { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 44px); margin-left: auto; }
.site-menu a { position: relative; color: #cdc9d9; font-size: 12px; letter-spacing: .11em; text-decoration: none; }
.site-menu a::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--violet); transition: width .25s; }
.site-menu a:hover::after, .site-menu a:focus-visible::after { width: 100%; }
.site-menu a[aria-current="page"] { color: var(--violet-bright); }
.site-menu a[aria-current="page"]::after { width: 100%; }
.private-pill { display: flex; align-items: center; gap: 8px; padding: 7px 11px; color: #b8b3c6; border: 1px solid var(--line); font-size: 10px; letter-spacing: .16em; }
.private-pill i, .pulse-dot { width: 5px; height: 5px; border-radius: 50%; background: #a87bff; box-shadow: 0 0 10px #a87bff; }
.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; }
.menu-toggle > span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 5px; background: #fff; }

.bgm-player {
  --track-progress: 33.333%;
  position: fixed;
  z-index: 99;
  top: 100px;
  right: clamp(22px, 4vw, 70px);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px 5px 13px;
  color: #d8d2e3;
  border: 1px solid rgba(211,196,255,.16);
  background: rgba(9,7,19,.76);
  box-shadow: 0 12px 35px rgba(2,1,8,.22);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.bgm-player::after { content: ""; position: absolute; left: 0; bottom: -1px; width: var(--track-progress); height: 1px; background: linear-gradient(90deg, rgba(157,117,255,.28), var(--violet)); transition: width .35s ease; }
.bgm-player button { display: grid; place-items: center; padding: 0; color: inherit; border: 0; background: transparent; cursor: pointer; }
.bgm-player button:focus-visible, .bgm-player input:focus-visible { outline: 1px solid var(--violet-bright); outline-offset: 2px; }
.bgm-label { color: #81798e; font-size: 8px; font-weight: 700; letter-spacing: .23em; }
.bgm-toggle { width: 30px; height: 30px; border: 1px solid rgba(211,196,255,.25) !important; border-radius: 50% !important; }
.bgm-toggle span { display: block; padding-left: 2px; font-size: 10px; line-height: 1; }
.bgm-toggle.is-playing span { padding-left: 0; font-size: 9px; letter-spacing: -2px; }
.bgm-toggle.needs-resume { color: var(--violet-bright); border-color: rgba(200,174,255,.58) !important; box-shadow: 0 0 15px rgba(157,117,255,.2); }
.bgm-skip { width: 23px; height: 30px; color: #8f899b !important; font-size: 19px !important; transition: color .2s; }
.bgm-skip:hover { color: #fff !important; }
.bgm-track { width: 150px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 7px; margin: 0; line-height: 1.2; }
.bgm-track b { color: var(--violet-bright); font-size: 9px; font-weight: 500; letter-spacing: .08em; }
.bgm-track span { overflow: hidden; font-family: var(--display); font-size: 11px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.bgm-volume { width: 54px; display: flex; align-items: center; padding: 8px 2px; }
.bgm-volume input { width: 100%; height: 1px; margin: 0; accent-color: var(--violet-bright); cursor: pointer; }
.bgm-player[data-state="resume"]::before { content: "再開"; position: absolute; right: 8px; top: calc(100% + 5px); color: var(--violet-bright); font-size: 8px; letter-spacing: .16em; }
.bgm-player[data-state="error"] .bgm-track span { color: #d2a6bd; }

main { position: relative; z-index: 1; }
.site-header, main, body > dialog { transition: opacity .18s ease; }
html.is-page-transitioning .site-header,
html.is-page-transitioning main { opacity: 0; pointer-events: none; }
.site-header { position: fixed; z-index: 100; }
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  overflow: hidden;
  padding: 126px clamp(30px, 7vw, 120px) 70px;
  background:
    radial-gradient(circle at 68% 42%, rgba(105,65,181,.24), transparent 24%),
    linear-gradient(115deg, rgba(21,16,41,.98), rgba(7,6,17,.9) 50%, #090714);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.hero-inner { z-index: 2; max-width: 760px; }
.eyebrow, .section-number, .work-label { margin: 0 0 24px; color: var(--violet-bright); font-size: 11px; font-weight: 600; letter-spacing: .26em; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(50px, 7.2vw, 112px); font-weight: 400; line-height: 1.08; letter-spacing: -.05em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { margin-left: clamp(30px, 7vw, 120px); color: var(--violet-bright); font-style: normal; text-shadow: 0 0 42px rgba(145,105,255,.27); }
.hero .hero-title-image { width: min(100%, 760px); margin: -5% 0 -7%; line-height: 0; }
.hero .hero-title-image img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 34px rgba(134, 80, 231, .26)); }
.hero-lead { margin: 34px 0 0 clamp(32px, 7vw, 120px); color: #c3bece; font-family: var(--display); font-size: clamp(14px, 1.3vw, 18px); line-height: 2; letter-spacing: .09em; }
.mobile-break { display: none; }
.hero-actions { display: flex; gap: 12px; margin: 36px 0 0 clamp(32px, 7vw, 120px); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 0 23px; border: 1px solid transparent; font-size: 12px; letter-spacing: .12em; text-decoration: none; cursor: pointer; transition: translate .2s, background .2s, border-color .2s; }
.button:hover { translate: 0 -2px; }
.button-primary { color: #0b0915; background: var(--violet-bright); }
.button-primary:hover { background: #dfd2ff; }
.button-ghost { color: var(--ink); border-color: rgba(215,201,255,.3); background: rgba(255,255,255,.025); }
.button-ghost:hover { border-color: var(--violet); background: rgba(149,107,255,.08); }
.hero-meta { display: flex; gap: clamp(22px, 4vw, 56px); margin: 68px 0 0 clamp(32px, 7vw, 120px); color: #b5b0bf; font-family: var(--display); font-size: 13px; letter-spacing: .08em; }
.hero-meta span { display: flex; flex-direction: column; gap: 5px; }
.hero-meta small { color: #6f6a7b; font-family: var(--sans); font-size: 9px; letter-spacing: .2em; }
.hero-figure { position: relative; z-index: 1; width: calc(100% + 10vw); height: min(72vh, 720px); display: grid; place-items: center; justify-self: end; }
.hero-character-signature { position: absolute; z-index: 3; right: 1.2%; top: 50%; display: flex; align-items: center; gap: 1.4em; margin: 0; color: rgba(224,216,242,.48); font-size: 10px; font-weight: 600; letter-spacing: .4em; line-height: 1; writing-mode: vertical-rl; transform: translateY(-50%); text-shadow: 0 0 18px rgba(158,117,255,.34); }
.hero-character-signature::before { content: ""; width: 1px; height: 54px; margin-bottom: .2em; background: linear-gradient(transparent, rgba(200,174,255,.62)); }
.hero-character-signature span:last-child { color: rgba(200,174,255,.78); }
.hero-image-frame { position: relative; width: min(61vw, 930px); aspect-ratio: 1216 / 832; isolation: isolate; -webkit-mask-image: radial-gradient(ellipse 70% 65% at 52% 50%, #000 39%, rgba(0,0,0,.94) 54%, rgba(0,0,0,.48) 75%, transparent 100%); mask-image: radial-gradient(ellipse 70% 65% at 52% 50%, #000 39%, rgba(0,0,0,.94) 54%, rgba(0,0,0,.48) 75%, transparent 100%); filter: drop-shadow(-16px 28px 82px rgba(29, 13, 68, .5)); }
.hero-image-frame::before { content: ""; position: absolute; z-index: 0; inset: 7% 2% 5% 9%; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 22% 45%, rgba(30,200,255,.22), transparent 36%), radial-gradient(circle at 78% 30%, rgba(217,86,230,.18), transparent 36%), radial-gradient(circle at 85% 76%, rgba(255,183,213,.16), transparent 30%), radial-gradient(ellipse at 52% 49%, rgba(119,88,247,.22), rgba(40,38,105,.13) 55%, transparent 74%); filter: blur(44px); }
.hero-image-frame::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,7,18,.88) 0%, rgba(20,12,43,.22) 14%, rgba(100,68,165,.06) 48%, rgba(8,7,18,.66) 100%), radial-gradient(ellipse 68% 61% at 52% 48%, transparent 55%, rgba(30,18,57,.22) 76%, rgba(8,7,18,.68) 100%), linear-gradient(90deg, rgba(8,7,18,.46), rgba(101,69,168,.05) 48%, rgba(8,7,18,.3)); mix-blend-mode: normal; }
.hero-image-frame img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: saturate(.78) brightness(.76) contrast(1.08) hue-rotate(5deg); transition: opacity 1s ease; }
.hero-image-frame img.is-active { opacity: 1; }
.hero[data-visual-theme="stars"] .hero-image-frame img { filter: saturate(.82) brightness(.78) contrast(1.06) hue-rotate(2deg); }
.hero[data-visual-theme="stars"] .hero-image-frame::after { background: linear-gradient(180deg, rgba(8,7,18,.72) 0%, rgba(20,12,43,.12) 18%, rgba(61,70,150,.04) 50%, rgba(8,7,18,.62) 100%), radial-gradient(ellipse 68% 61% at 52% 48%, transparent 57%, rgba(30,18,57,.18) 78%, rgba(8,7,18,.58) 100%), linear-gradient(90deg, rgba(8,7,18,.38), rgba(72,83,170,.04) 48%, rgba(8,7,18,.24)); }
.hero[data-visual-theme="stars"] .hero-glow { background: #486ed0; opacity: .17; }
.moon { position: absolute; width: min(35vw, 490px); aspect-ratio: 1; border: 1px solid rgba(191,168,255,.18); border-radius: 50%; box-shadow: 0 0 100px rgba(140,86,255,.11), inset 0 0 100px rgba(140,86,255,.08); }
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(191,168,255,.11); }
.moon::before { inset: 9%; }
.moon::after { inset: 23%; background: radial-gradient(circle at 35% 30%, rgba(215,201,255,.16), rgba(83,49,141,.08) 60%, transparent); }
.silhouette { position: relative; z-index: 1; width: min(25vw, 330px); height: min(62vh, 600px); filter: drop-shadow(0 0 35px rgba(171,128,255,.22)); }
.silhouette span { position: absolute; display: block; }
.silhouette .hair { left: 22%; top: 8%; width: 58%; height: 42%; border-radius: 46% 48% 37% 42%; background: linear-gradient(135deg, #33254f, #120f20 68%); transform: rotate(-3deg); box-shadow: 20px 35px 0 -4px #141021, -17px 45px 0 -8px #211831; }
.silhouette .face { left: 36%; top: 18%; width: 35%; height: 28%; border-radius: 45% 50% 48% 48%; background: linear-gradient(145deg, #9b8ea5, #494051 60%, #15121f); }
.silhouette .coat { left: 11%; bottom: 1%; width: 82%; height: 60%; clip-path: polygon(29% 0, 67% 0, 100% 100%, 0 100%); background: linear-gradient(95deg, #0d0c14, #292036 48%, #100d18); }
.hero-glow { position: absolute; right: 12%; bottom: -15%; width: 50vw; height: 40vh; background: #6f44b4; filter: blur(180px); opacity: .13; }
.hero-orbit { position: absolute; border: 1px solid rgba(186,157,255,.11); border-radius: 50%; }
.orbit-one { right: -13vw; top: -25vw; width: 65vw; height: 65vw; }
.orbit-two { left: -20vw; bottom: -43vw; width: 76vw; height: 76vw; }
.scroll-cue { position: absolute; z-index: 3; right: 42px; bottom: 74px; display: flex; align-items: center; gap: 12px; color: #6d6878; font-size: 7px; letter-spacing: .25em; transform: rotate(90deg); transform-origin: right center; }
.scroll-cue span { width: 55px; height: 1px; background: #5f596d; }

@media (min-width: 901px) and (max-width: 1300px) {
  .hero-lead, .hero-actions, .hero-meta { margin-left: clamp(22px, 3.5vw, 46px); }
}

.news-section { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(170px, .35fr) 1fr; gap: clamp(28px, 5vw, 76px); padding: 48px clamp(24px, 8vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0b0915; }
.news-heading { align-self: start; }
.news-heading .section-number { margin-bottom: 8px; }
.news-heading h2 { margin: 0; font: 400 clamp(25px, 2.6vw, 36px)/1.4 var(--display); letter-spacing: .08em; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 92px 132px minmax(0, 1fr) 18px; gap: 18px; align-items: center; min-height: 56px; padding: 5px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .2s ease, background .2s ease; }
.news-item:hover, .news-item:focus-visible { color: #fff; background: rgba(168,122,255,.06); }
.news-item time { color: #81798c; font-size: 12px; letter-spacing: .08em; }
.news-item span { color: var(--violet); font-size: 10px; letter-spacing: .13em; }
.news-item strong { font: 400 14px/1.7 var(--display); }
.news-item i { color: var(--violet); font-style: normal; text-align: right; }

section { position: relative; padding: clamp(90px, 12vw, 180px) clamp(26px, 8vw, 140px); }
.section-heading { display: grid; grid-template-columns: minmax(130px, .34fr) 1fr; align-items: start; max-width: 1180px; margin: 0 auto 70px; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 59px); font-weight: 400; line-height: 1.5; letter-spacing: .01em; }
.section-heading h2 span { color: var(--violet-bright); }
.section-number { padding-top: 18px; }

.story-section { overflow: hidden; background: linear-gradient(180deg, var(--night), #0a0814); }
.story-section::before { content: "STORY"; position: absolute; z-index: 0; top: 29%; left: 50%; width: max-content; color: rgba(255,255,255,.018); font: 700 clamp(80px,16vw,250px)/1 var(--sans); letter-spacing: -.06em; pointer-events: none; transform: translateX(-50%); }
.story-section > * { position: relative; z-index: 2; }
.story-memory { position: absolute; z-index: 1; top: 53%; right: clamp(-170px, -7vw, -70px); width: min(43vw, 610px); margin: 0; padding: clamp(8px, .85vw, 13px) clamp(8px, .85vw, 13px) clamp(13px, 1.25vw, 19px); border: 1px solid rgba(248,245,255,.38); background: rgba(241,236,250,.4); box-shadow: 0 30px 80px rgba(0,0,0,.34); opacity: .3; pointer-events: auto; transform: translateY(-50%) rotate(2.4deg); transform-origin: center; transition: opacity .65s ease, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .65s ease; }
.story-memory::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(33,22,52,.12), rgba(11,8,20,.34)); pointer-events: none; }
.story-memory img { display: block; width: 100%; height: auto; filter: saturate(.76) brightness(.76) contrast(.92) hue-rotate(3deg); }
@media (hover: hover) and (pointer: fine) {
  .story-memory:hover { opacity: .5; box-shadow: 0 36px 95px rgba(0,0,0,.42); transform: translateY(-50%) rotate(1.35deg) scale(1.012); }
}
.story-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(40px, 9vw, 135px); align-items: center; max-width: 1030px; margin: auto; }
.synopsis { padding-left: 40px; border-left: 1px solid var(--line); color: #b9b5c2; font-family: var(--display); font-size: 14px; }
.synopsis p { margin: 0 0 24px; }
.synopsis .dropcap { color: #e7e2ec; font-size: 17px; }
.dropcap::first-letter { float: left; margin: 8px 12px 0 0; color: var(--violet-bright); font-size: 54px; line-height: .8; }
.story-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.story-note span { color: #767080; font: 10px var(--sans); letter-spacing: .22em; }
.story-note p { margin: 5px 0 0; color: #918b99; font: 11px var(--sans); letter-spacing: .12em; }
.chapter-panel { position: relative; padding: clamp(34px, 5vw, 65px); border: 1px solid rgba(195,170,255,.2); background: linear-gradient(145deg, rgba(91,55,148,.12), rgba(255,255,255,.018)); box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.chapter-panel::before, .chapter-panel::after { content: ""; position: absolute; width: 35px; height: 35px; border-color: #a17ce9; opacity: .5; }
.chapter-panel::before { left: -1px; top: -1px; border-left: 1px solid; border-top: 1px solid; }
.chapter-panel::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }
.chapter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 50px; color: #817a8e; font-size: 9px; letter-spacing: .27em; }
.chapter-kicker { margin: 0 0 6px; color: #aaa4b4; font: 11px var(--display); letter-spacing: .12em; }
.chapter-panel h3 { margin: 0; color: var(--violet-bright); font: 400 clamp(27px,3vw,39px) var(--display); letter-spacing: .12em; }
.chapter-title { margin: 9px 0; font: 18px var(--display); }
.chapter-line { display: flex; align-items: center; gap: 11px; margin: 31px 0; }
.chapter-line span { height: 1px; background: var(--line); }
.chapter-line span:first-child { width: 72%; }
.chapter-line span:last-child { flex: 1; }
.chapter-line i { width: 5px; height: 5px; border: 1px solid var(--violet); transform: rotate(45deg); }
.chapter-copy { color: #9e98a8; font: 14px/2 var(--display); }
.text-link { display: inline-flex; align-items: center; gap: 25px; margin-top: 20px; padding: 8px 0; color: #d9d3e3; border: 0; border-bottom: 1px solid rgba(211,196,255,.25); background: transparent; font-size: 12px; letter-spacing: .12em; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--violet-bright); border-color: var(--violet); }

.characters-section { overflow: hidden; background: #0d0a18; }
.characters-section::before { content: "CHARACTERS"; position: absolute; top: 8%; right: -3%; color: rgba(255,255,255,.018); font: 700 clamp(80px,16vw,250px)/1 var(--sans); letter-spacing: -.06em; }
.character-area { display: flex; flex-direction: column; }
.character-stage { order: 1; max-width: 1060px; width: 100%; min-height: 530px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; margin: auto; border: 1px solid var(--line); background: rgba(255,255,255,.012); scroll-margin-top: 90px; }
.character-portrait { position: relative; min-width: 0; min-height: 530px; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(circle at 52% 44%, rgba(155,112,255,.19), transparent 37%), linear-gradient(140deg, #161126, #090812); }
.character-portrait::after { content: ""; position: absolute; bottom: -8%; width: 64%; height: 63%; border-radius: 48% 48% 8% 8%; background: linear-gradient(150deg, rgba(79,55,108,.7), #090811 65%); filter: blur(.1px); }
.character-portrait.has-image { background: #f7f7f7; }
.character-portrait.has-image::after { opacity: 0; }
.character-image { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center top; transition: opacity .18s, transform .4s; }
.character-image.switching { opacity: 0; transform: scale(.985); }
.portrait-loading { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; color: rgba(49,43,58,.72); background: #f7f7f7; font: 600 10px var(--sans); letter-spacing: .22em; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s, visibility .18s; }
.character-portrait.is-loading .portrait-loading { opacity: 1; visibility: visible; }
.portrait-index { position: absolute; z-index: 4; top: 25px; left: 29px; min-width: 42px; padding: 7px 8px; color: rgba(35,31,41,.94); border: 0; background: transparent; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-align: center; text-shadow: 0 0 2px rgba(255,255,255,.98), 0 0 7px rgba(255,255,255,.82); }
.portrait-halo { width: min(78%, 365px); aspect-ratio: 1; border: 1px solid rgba(179,145,255,.17); border-radius: 50%; box-shadow: inset 0 0 90px rgba(128,73,243,.08), 0 0 80px rgba(128,73,243,.08); }
.portrait-glyph { position: absolute; z-index: 2; color: rgba(229,218,255,.72); font: 400 clamp(112px,14vw,190px) var(--display); text-shadow: 0 0 60px rgba(174,132,255,.46); transition: opacity .18s, transform .4s; }
.portrait-glyph.switching { opacity: 0; transform: scale(.9); }
.portrait-arrow { position: absolute; z-index: 5; top: 50%; width: 42px; height: 58px; display: grid; place-items: center; padding: 0; color: rgba(246,240,255,.92); border: 1px solid transparent; background: transparent; font-size: 23px; cursor: pointer; transform: translateY(-50%); text-shadow: 0 1px 5px rgba(8,6,15,.98), 0 0 12px rgba(91,53,132,.78); transition: color .2s, border-color .2s, background .2s, opacity .2s, box-shadow .2s; }
.portrait-arrow-prev { left: 18px; }
.portrait-arrow-next { right: 18px; }
.portrait-arrow:hover:not(:disabled), .portrait-arrow:focus-visible { color: #fff; border-color: rgba(207,183,255,.3); background: rgba(77,43,113,.16); box-shadow: 0 0 22px rgba(174,132,255,.18); outline: none; }
.portrait-arrow:disabled { opacity: .46; cursor: default; }
.portrait-art-label { position: absolute; z-index: 4; left: 29px; bottom: 25px; padding: 6px 9px; color: rgba(35,31,41,.94); border-left: 1px solid rgba(50,44,58,.42); background: transparent; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-shadow: 0 0 2px rgba(255,255,255,.98), 0 0 7px rgba(255,255,255,.82); }
.portrait-name-en { position: absolute; z-index: 3; right: 22px; bottom: 27px; color: rgba(217,204,247,.5); font-size: 8px; letter-spacing: .3em; writing-mode: vertical-rl; }
.character-copy { min-width: 0; align-self: center; padding: clamp(35px, 5vw, 75px); }
.character-role { margin: 0 0 7px; color: var(--violet); font-size: 10px; letter-spacing: .26em; }
.character-copy h3 { height: 68px; display: flex; align-items: center; margin: 0; font: 400 clamp(35px,4vw,54px) var(--display); letter-spacing: .09em; }
.character-copy.long-name h3 { font-size: clamp(34px, 4.7vw, 49px); letter-spacing: .04em; white-space: nowrap; }
.character-reading { margin: 0 0 27px; color: #666070; font-size: 9px; letter-spacing: .26em; }
.character-stats { display: flex; gap: 34px; margin: 0 0 27px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.character-stats div { display: flex; gap: 9px; }
.character-stats dt { color: #6e6877; font-size: 11px; }
.character-stats dd { margin: 0; color: #c5bfce; font-size: 11px; }
.character-description { min-height: 100px; margin: 0; color: #aaa4b1; font: 14px/2 var(--display); }
.character-copy blockquote { margin: 24px 0 0; padding-left: 18px; color: var(--violet-bright); border-left: 1px solid var(--violet); font: 16px var(--display); }
.character-picker { order: 2; width: 100%; max-width: 1060px; display: grid; grid-template-columns: repeat(6, 1fr); margin: 22px auto 0; gap: 8px; }
.character-chip { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; color: #8c8695; border: 1px solid transparent; background: transparent; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.character-chip span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; color: #aaa1b8; border: 1px solid var(--line); font-family: var(--display); }
.character-chip small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.character-share { margin-top: 18px; }
.character-chip:hover, .character-chip.active { color: #eeeaf4; border-color: rgba(182,151,252,.22); background: rgba(160,113,255,.07); }
.character-chip.active span { color: #0c0a14; border-color: var(--violet-bright); background: var(--violet-bright); }

.works-section { padding-bottom: 0; background: linear-gradient(180deg, #090711, #0c0917 70%, #080710); }
.feature-song { max-width: 1060px; display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px,8vw,100px); align-items: center; margin: auto; padding: clamp(27px,4vw,60px); border: 1px solid var(--line); background: linear-gradient(125deg, rgba(54,34,86,.26), rgba(255,255,255,.015)); }
.album-art { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(219,205,255,.2); background: #101426; box-shadow: 0 35px 60px rgba(0,0,0,.36), 0 0 70px rgba(134,86,232,.12); }
.album-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-art::before { content: ""; position: absolute; left: 51%; top: 10%; width: 1px; height: 76%; background: linear-gradient(transparent, rgba(205,188,255,.5), transparent); transform: rotate(30deg); box-shadow: 53px 25px 0 rgba(205,188,255,.1), -62px 42px 0 rgba(205,188,255,.08); }
.album-art p { position: relative; z-index: 2; margin: 0; font: italic 400 clamp(25px,3vw,43px) var(--display); text-shadow: 0 2px 20px #100b1c; }
.album-art small { position: relative; z-index: 2; margin-top: 8px; color: #bbb0ce; font-size: 6px; letter-spacing: .25em; line-height: 1.7; }
.album-art i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #e9ddff; box-shadow: 0 0 15px 4px #9f73ff; }
.album-art i:nth-of-type(1) { left: 21%; top: 24%; }.album-art i:nth-of-type(2) { right: 19%; top: 16%; }.album-art i:nth-of-type(3) { right: 30%; top: 46%; }.album-art i:nth-of-type(4) { left: 33%; top: 53%; }
.album-reflection { position: absolute; inset: 58% 0 0; background: linear-gradient(167deg, transparent 20%, rgba(166,111,255,.2) 21%, transparent 22%), linear-gradient(8deg, rgba(210,191,255,.16), transparent 45%); filter: blur(2px); }
.song-copy h3 { margin: 0; font: 400 clamp(39px,5vw,67px) var(--display); letter-spacing: .08em; }
.song-line { margin: 5px 0 28px; color: var(--violet-bright); font: 13px var(--display); letter-spacing: .12em; }
.song-copy > p:not(.work-label):not(.song-line) { max-width: 570px; color: #9e98aa; font: 14px/2 var(--display); }
.track-list { margin: 30px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.track-list li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; padding: 10px 0; color: #c8c2d0; border-bottom: 1px solid var(--line); font-size: 12px; }
.track-list li span { color: #696372; font-size: 7px; }
.track-list li small { color: #777180; font-size: 6px; letter-spacing: .18em; }
.song-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.related-grid { max-width: 1060px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px auto 0; }
.related-card { min-height: 285px; display: flex; flex-direction: column; padding: clamp(26px,3vw,42px); border: 1px solid var(--line); background: #100d1d; transition: translate .25s, border-color .25s; }
.related-card:hover { translate: 0 -4px; border-color: rgba(185,151,255,.37); }
.related-card > div { display: flex; align-items: center; justify-content: space-between; }
.related-card .work-label { margin: 0; }
.age-badge { padding: 2px 7px; color: #d9cbf7; border: 1px solid rgba(206,184,255,.28); font-size: 7px; }
.edition { color: #5f5967; font-size: 6px; letter-spacing: .2em; }
.related-card h3 { margin: 35px 0 14px; font: 400 clamp(21px,2.1vw,29px)/1.6 var(--display); }
.related-goods h3 { font-size: clamp(19px, 1.8vw, 25px); white-space: nowrap; }
.related-card p { margin: 0; color: #888291; font: 13px/1.8 var(--display); }
.related-card .text-link { margin-top: auto; align-self: flex-start; }
.related-voice { background: radial-gradient(circle at 95% 3%, rgba(144,94,235,.15), transparent 42%), #100d1d; }
.related-shizune-voice { background: radial-gradient(circle at 92% 6%, rgba(194,151,255,.18), transparent 44%), linear-gradient(145deg, #171025, #100d1d); }
.related-goods { background: radial-gradient(circle at 90% 6%, rgba(99,139,223,.12), transparent 45%), #0c101b; }
.related-serial { background: radial-gradient(circle at 90% 6%, rgba(189,125,94,.11), transparent 45%), #130f18; }
.related-history { grid-column: 1 / -1; min-height: 240px; background: radial-gradient(circle at 78% 20%, rgba(157,117,255,.18), transparent 34%), linear-gradient(120deg, #171027, #0d0b19 72%); }
.related-history h3 { margin-top: 28px; font-size: clamp(27px,3vw,42px); }
.related-history p { max-width: 610px; font-size: 13px; }
.site-footer { max-width: 1180px; display: grid; grid-template-columns: 1fr auto auto; gap: 50px; align-items: center; margin: 120px auto 0; padding: 36px 0; color: #777080; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .11em; }
.site-footer > div { display: flex; align-items: center; gap: 17px; }
.site-footer p { margin: 0; }
.site-footer strong, .site-footer small { display: block; }
.site-footer strong { color: #bbb5c4; font: 13px var(--display); letter-spacing: .09em; }
.site-footer small { margin-top: 3px; font-size: 8px; }
.site-footer a { text-decoration: none; }

.info-dialog { width: min(calc(100% - 32px), 560px); padding: 48px; color: var(--ink); border: 1px solid rgba(205,184,255,.27); background: #100d1d; box-shadow: 0 40px 100px rgba(0,0,0,.7); }
.info-dialog::backdrop { background: rgba(5,4,11,.83); backdrop-filter: blur(8px); }
.info-dialog h2 { margin: 0 0 20px; font: 400 31px/1.5 var(--display); }
.info-dialog > p:not(.work-label):not(.availability) { color: #aaa4b3; font: 13px/2 var(--display); }
.dialog-close { position: absolute; top: 15px; right: 17px; width: 34px; height: 34px; color: #b8b0c3; border: 1px solid var(--line); background: transparent; font-size: 20px; cursor: pointer; }
.dialog-close::before { content: ""; position: absolute; inset: -7px; }
.dialog-spec { display: grid; grid-template-columns: 85px 1fr; gap: 20px; margin-top: 27px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-spec span { color: #81798c; font-size: 10px; letter-spacing: .18em; }
.dialog-spec p { margin: 0; color: #c8c1ce; font: 12px/1.8 var(--display); }
.dialog-spec a { color: inherit; text-decoration: none; transition: color .2s ease; }
.dialog-spec a:hover, .dialog-spec a:focus-visible { color: #fff; }
.dialog-spec i { color: var(--violet); font-style: normal; }
.availability { margin: 24px 0 0; padding: 12px 15px; color: #91889e; background: rgba(168,122,255,.07); font-size: 9px; }
.dialog-purchase { width: 100%; margin-top: 26px; }
.chapter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 26px; margin-top: 20px; }
.chapter-actions .text-link { margin-top: 0; }
.archive-dialog { width: min(calc(100% - 32px), 640px); }
.episode-list { max-height: min(58vh, 560px); margin: 28px -12px 0 0; padding: 0 12px 0 0; overflow-y: auto; list-style: none; scrollbar-color: rgba(168,122,255,.55) rgba(255,255,255,.04); scrollbar-width: thin; }
.episode-list li { border-top: 1px solid var(--line); }
.episode-list li:last-child { border-bottom: 1px solid var(--line); }
.episode-list a { display: grid; grid-template-columns: 50px minmax(0, 1fr) 20px; gap: 16px; align-items: center; min-height: 58px; padding: 0 8px; color: #c8c1ce; text-decoration: none; transition: color .2s ease, background .2s ease; }
.episode-list a:hover, .episode-list a:focus-visible { color: #fff; background: rgba(168,122,255,.07); }
.episode-list span { color: #756d81; font: 9px var(--mono); letter-spacing: .12em; }
.episode-list strong { font: 400 13px/1.6 var(--display); }
.episode-list i { color: var(--violet); font-style: normal; text-align: right; }

.history-page { background: radial-gradient(circle at 50% 8%, rgba(93,55,157,.2), transparent 25%), var(--night); }
.history-hero { position: relative; min-height: 560px; display: grid; place-items: center; padding: 160px 24px 100px; overflow: hidden; border-bottom: 1px solid var(--line); }
.history-hero::before { content: ""; position: absolute; left: 50%; top: 120px; width: 1px; height: 330px; background: linear-gradient(transparent, rgba(191,163,255,.52), transparent); }
.history-ghost { position: absolute; left: 50%; top: 51%; margin: 0; translate: -50% -50%; color: rgba(210,193,255,.035); font: 700 clamp(88px,19vw,270px)/1 var(--sans); letter-spacing: .08em; white-space: nowrap; }
.history-intro { position: relative; z-index: 1; width: min(100%, 920px); text-align: center; }
.history-intro .section-number { margin-bottom: 28px; padding: 0; }
.history-kicker { margin: 0 0 12px; color: #746b82; font-size: 9px; letter-spacing: .38em; }
.history-intro h1 { margin: 0; font: 400 clamp(47px,7vw,91px)/1.35 var(--display); letter-spacing: .08em; }
.history-intro > p:last-child { margin: 26px 0 0; color: #9d97a8; font: 14px/2 var(--display); }
.history-content { padding: 110px clamp(24px,7vw,100px) 0; background: linear-gradient(180deg, rgba(12,9,23,.45), #080710); }
.timeline-year { position: relative; z-index: 2; display: grid; place-items: center; max-width: 1100px; margin: 0 auto 45px; }
.timeline-year span { padding: 10px 24px; color: var(--violet-bright); border: 1px solid rgba(197,171,255,.28); background: #0f0c1b; font: 14px var(--sans); letter-spacing: .25em; box-shadow: 0 0 38px rgba(157,117,255,.1); }
.timeline { position: relative; max-width: 1100px; margin: 0 auto 100px; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: -100px; width: 1px; background: linear-gradient(rgba(192,164,255,.42), rgba(157,117,255,.11)); }
.timeline-item { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); min-height: 210px; }
.timeline-item::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 40px; width: 9px; height: 9px; border: 2px solid #a77eff; border-radius: 50%; background: #0b0915; translate: -50% 0; box-shadow: 0 0 18px rgba(167,126,255,.65); }
.timeline-item article { position: relative; width: calc(100% - 68px); padding: 28px 30px 30px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(25,19,42,.94), rgba(14,12,26,.96)); box-shadow: 0 24px 65px rgba(0,0,0,.18); }
.timeline-item:nth-child(odd) article { grid-column: 1; justify-self: start; }
.timeline-item:nth-child(even) article { grid-column: 2; justify-self: end; }
.timeline-item:nth-child(odd) article::after, .timeline-item:nth-child(even) article::after { content: ""; position: absolute; top: 38px; width: 42px; height: 1px; background: rgba(185,153,255,.28); }
.timeline-item:nth-child(odd) article::after { right: -43px; }
.timeline-item:nth-child(even) article::after { left: -43px; }
.timeline-item.milestone article { border-color: rgba(185,151,255,.34); background: radial-gradient(circle at 100% 0, rgba(154,105,245,.13), transparent 42%), linear-gradient(145deg, #19112a, #100d1e); }
.timeline-item.milestone::before { width: 13px; height: 13px; background: var(--violet); box-shadow: 0 0 24px 5px rgba(157,117,255,.35); }
.timeline-item time { display: block; color: #888092; font-size: 12px; letter-spacing: .08em; }
.timeline-tag { display: inline-block; margin-top: 9px; color: var(--violet); font-size: 8px; letter-spacing: .2em; }
.timeline-item h2 { margin: 18px 0 11px; font: 400 clamp(20px,2.2vw,29px)/1.55 var(--display); }
.timeline-item p { margin: 0; color: #9f99a8; font: 14px/1.95 var(--display); }
.timeline-item article > a { display: inline-flex; gap: 15px; margin-top: 20px; padding-bottom: 5px; color: #d2c8e5; border-bottom: 1px solid rgba(211,196,255,.24); font-size: 11px; letter-spacing: .1em; text-decoration: none; }
.timeline-item article > a:hover, .timeline-item article > a:focus-visible { color: var(--violet-bright); border-color: var(--violet); }
.timeline-2026 { margin-bottom: 40px; }
.timeline-2026::before { bottom: -40px; }
.history-return { display: flex; justify-content: center; max-width: 1100px; margin: 30px auto 0; }
.history-page .site-footer { max-width: 1180px; }

.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s ease, translate .8s ease; }
.reveal.visible { opacity: 1; translate: 0 0; }
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { height: 72px; padding: 0 22px; }
  .bgm-player { top: 82px; right: 22px; }
  .private-pill { display: none; }
  .menu-toggle { display: block; }
  .site-menu { position: absolute; top: 71px; left: 0; width: 100%; display: none; flex-direction: column; gap: 0; padding: 18px 22px 25px; background: rgba(8,7,17,.97); border-bottom: 1px solid var(--line); }
  .site-menu.open { display: flex; }
  .site-menu a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr .62fr; padding-inline: 7vw; }
  .hero h1 { font-size: clamp(50px, 8vw, 74px); }
  .hero-figure { height: 58vh; }
  .hero-image-frame { width: min(67vw, 800px); }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .section-number { padding: 0; }
  .story-grid { gap: 45px; }
  .character-stage { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .character-picker { overflow-x: auto; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 145px; padding-bottom: 8px; }
  .character-description { min-height: 130px; }
  .timeline-item article { width: calc(100% - 50px); }
}

@media (max-width: 680px) {
  .site-header, .site-header.scrolled { height: 64px; padding-inline: 18px; }
  .site-menu { top: 63px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-copy strong { font-size: 12px; }
  .bgm-player { top: 72px; right: 12px; }
  .bgm-track { width: 138px; }
  .bgm-volume { width: 46px; }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; padding: 120px 24px 58px; }
  .hero-inner { display: contents; }
  .eyebrow { order: 1; max-width: 100%; margin-bottom: 10px; font-size: 9px; line-height: 1.5; letter-spacing: .18em; }
  .hero h1 { font-size: clamp(46px, 14vw, 67px); line-height: 1.18; }
  .hero h1 em { margin-left: 18px; }
  .hero .hero-title-image { order: 2; position: relative; left: 50%; width: min(100%, 500px); margin: -7% 0 -17%; transform: translateX(-50%); }
  .hero-lead { order: 3; z-index: 2; margin: 14px 0 0; font-size: 13px; line-height: 1.72; letter-spacing: .035em; }
  .mobile-break { display: initial; }
  .hero-actions { order: 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
  .hero-actions .button:last-child { grid-column: 1 / -1; }
  .button { min-height: 48px; padding: 0 18px; }
  .hero-meta { order: 6; margin: 38px 0 0; gap: 22px; flex-wrap: wrap; }
  .hero-figure { order: 4; position: relative; right: auto; bottom: auto; width: 100vw; height: auto; display: flex; flex-direction: column; align-items: center; margin: -12px calc(50% - 50vw) 0; opacity: .82; }
  .hero-character-signature { position: absolute; right: max(10px, env(safe-area-inset-right)); top: 50%; display: flex; flex-direction: row; align-items: center; gap: 1em; margin: 0; font-size: 9px; letter-spacing: .32em; writing-mode: vertical-rl; transform: translateY(-50%); }
  .hero-character-signature::before { width: 1px; height: 42px; margin: 0 0 .2em; background: linear-gradient(transparent, rgba(200,174,255,.62)); }
  .hero-image-frame { width: min(100vw, 680px); max-width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 90%, transparent 100%); }
  .moon { width: 85vw; }
  .silhouette { width: 58vw; height: 45vh; }
  .scroll-cue { display: none; }
  .news-section { grid-template-columns: 1fr; gap: 24px; padding: 52px 22px; }
  .news-item { grid-template-columns: 82px minmax(0, 1fr) 18px; gap: 10px; padding: 10px 2px; }
  .news-item span { grid-column: 2 / 3; grid-row: 1; }
  .news-item strong { grid-column: 1 / 3; grid-row: 2; }
  .news-item i { grid-column: 3; grid-row: 1 / 3; }
  section { padding: 90px 22px; }
  .section-heading { margin-bottom: 45px; }
  .section-heading h2 { font-size: 30px; line-height: 1.55; }
  .story-grid { grid-template-columns: 1fr; }
  .story-section::before { top: 24%; }
  .story-memory { top: 50%; right: -31vw; width: min(103vw, 590px); padding: 7px 7px 12px; opacity: .2; pointer-events: none; transform: translateY(-50%) rotate(2.2deg); }
  .synopsis { padding-left: 24px; }
  .chapter-panel { padding: 34px 25px; }
  .character-stage { order: 2; min-height: 0; grid-template-columns: 1fr; }
  .character-portrait { min-height: 330px; border-right: 0; border-bottom: 0; }
  .character-portrait::after { height: 53%; }
  .portrait-arrow { width: 38px; height: 52px; }
  .portrait-arrow-prev { left: 10px; }
  .portrait-arrow-next { right: 10px; }
  .character-copy { padding: 34px 26px 40px; }
  .character-copy h3 { height: 52px; font-size: 38px; }
  .character-copy.long-name h3 { font-size: clamp(29px, 9vw, 37px); }
  .character-stats { gap: 17px; flex-wrap: wrap; }
  .character-description { min-height: 0; }
  .character-picker {
    order: 1;
    overflow-x: visible;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-columns: auto;
    margin: 0 auto 22px;
    padding: 0;
    gap: 7px;
  }
  .character-chip {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 4px;
  }
  .character-chip span { flex-basis: 32px; width: 32px; height: 32px; }
  .character-chip small { max-width: 100%; font-size: 9px; text-align: center; }
  .feature-song { grid-template-columns: 1fr; padding: 22px; }
  .album-art { width: 100%; }
  .song-copy { padding: 12px 4px 16px; }
  .song-copy h3 { font-size: 43px; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 260px; }
  .related-card h3 { font-size: 25px; }
  .related-goods h3 { font-size: 22px; }
  .site-footer { grid-template-columns: 1fr; gap: 25px; margin-top: 80px; }
  .info-dialog { padding: 42px 25px 30px; }
  .chapter-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .archive-dialog { padding-inline: 22px; }
  .episode-list { max-height: 62vh; margin-top: 22px; }
  .episode-list a { grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 10px; min-height: 56px; }
  .history-hero { min-height: 480px; padding: 140px 22px 80px; }
  .history-hero::before { top: 100px; height: 290px; }
  .history-ghost { font-size: 24vw; }
  .history-intro h1 { font-size: 48px; }
  .history-intro > p:last-child { font-size: 13px; }
  .history-content { padding: 80px 22px 0; }
  .timeline-year { justify-items: start; margin-bottom: 35px; padding-left: 14px; }
  .timeline { margin-bottom: 75px; padding-left: 28px; }
  .timeline::before { left: 5px; bottom: -75px; }
  .timeline-item { display: block; min-height: 0; margin-bottom: 28px; }
  .timeline-item::before { left: 5px; top: 34px; }
  .timeline-item article, .timeline-item:nth-child(odd) article, .timeline-item:nth-child(even) article { width: 100%; padding: 24px 22px 25px; }
  .timeline-item:nth-child(odd) article::after, .timeline-item:nth-child(even) article::after { left: -24px; right: auto; top: 38px; width: 23px; }
  .timeline-item h2 { font-size: 21px; }
  .timeline-item p { font-size: 13px; }
  .timeline-2026 { margin-bottom: 30px; }
  .timeline-2026::before { bottom: -30px; }
  .history-return { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
}

/* Gallery */
.gallery-preview-section { position: relative; overflow: hidden; padding: 130px clamp(24px,7vw,100px); background: linear-gradient(180deg, #090815, #0d0a18 68%, #090815); }
.gallery-preview-section::before { content: "GALLERY"; position: absolute; left: 50%; top: 13%; transform: translateX(-50%); color: rgba(255,255,255,.022); font: 700 clamp(82px,17vw,240px)/1 var(--sans); letter-spacing: -.055em; white-space: nowrap; pointer-events: none; }
.gallery-preview-section .section-heading { position: relative; z-index: 1; margin-bottom: 62px; }
.gallery-preview-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2vw,28px); max-width: 1320px; margin: 0 auto; }
.gallery-preview-card { position: relative; display: block; overflow: hidden; aspect-ratio: 19/13; border: 1px solid rgba(196,169,255,.18); background: #11101b; color: #fff; text-decoration: none; }
.gallery-preview-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(5,4,12,.72)); pointer-events: none; }
.gallery-preview-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.86) contrast(1.04); transition: transform .65s ease, filter .65s ease; }
.gallery-preview-card > span { position: absolute; z-index: 1; right: 18px; bottom: 14px; display: flex; align-items: baseline; gap: 8px; font: 300 24px/1 var(--sans); letter-spacing: .08em; }
.gallery-preview-card > span small { color: #bbb2c8; font-size: 9px; letter-spacing: .24em; }
.gallery-preview-card:hover img, .gallery-preview-card:focus-visible img { transform: scale(1.035); filter: saturate(.95) brightness(.95) contrast(1.03); }
.gallery-preview-card:focus-visible { outline: 2px solid #c8a8ff; outline-offset: 4px; }
.gallery-preview-action { display: flex; justify-content: center; margin-top: 40px; }

.gallery-page { min-height: 100%; background: radial-gradient(circle at 50% 8%, rgba(93,55,157,.2), transparent 26%), var(--night); }
.gallery-hero { position: relative; min-height: 520px; display: grid; place-items: center; padding: 150px 24px 90px; overflow: hidden; border-bottom: 1px solid var(--line); }
.gallery-hero::before { content: ""; position: absolute; left: 50%; top: 110px; width: 1px; height: 300px; background: linear-gradient(transparent, rgba(191,163,255,.52), transparent); }
.gallery-ghost { position: absolute; left: 50%; top: 51%; margin: 0; translate: -50% -50%; color: rgba(210,193,255,.035); font: 700 clamp(88px,19vw,270px)/1 var(--sans); letter-spacing: .06em; white-space: nowrap; }
.gallery-intro { position: relative; z-index: 1; width: min(100%,920px); text-align: center; }
.gallery-intro .section-number { margin-bottom: 28px; padding: 0; }
.gallery-kicker { margin: 0 0 12px; color: #746b82; font-size: 10px; letter-spacing: .35em; }
.gallery-intro h1 { margin: 0; font: 400 clamp(50px,7vw,90px)/1.35 var(--display); letter-spacing: .08em; }
.gallery-intro > p:last-child { margin: 24px 0 0; color: #9d97a8; font: 14px/2 var(--display); }
.gallery-content { padding: 90px clamp(24px,6vw,90px) 0; background: linear-gradient(180deg, rgba(12,9,23,.45), #080710); }
.gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,2vw,28px); max-width: 1380px; margin: 0 auto; }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; aspect-ratio: 19/13; border: 1px solid rgba(196,169,255,.15); background: #11101b; color: #fff; cursor: zoom-in; text-align: left; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(5,4,12,.74)); pointer-events: none; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.84) brightness(.88); transition: transform .55s ease, filter .55s ease; }
.gallery-item > span { position: absolute; z-index: 1; right: 17px; bottom: 13px; display: flex; align-items: baseline; gap: 7px; font: 300 21px/1 var(--sans); letter-spacing: .08em; }
.gallery-item > span small { color: #bbb2c8; font-size: 8px; letter-spacing: .22em; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.035); filter: saturate(.98) brightness(.98); }
.gallery-item:focus-visible { outline: 2px solid #c8a8ff; outline-offset: 4px; }
.gallery-return { display: flex; justify-content: center; max-width: 1380px; margin: 58px auto 0; }
.gallery-page .site-footer { max-width: 1380px; margin-inline: auto; padding-inline: 0; }

.gallery-lightbox { width: min(94vw,1320px); max-width: none; padding: 0; overflow: visible; border: 0; background: transparent; color: #fff; }
.gallery-lightbox::backdrop { background: rgba(3,2,8,.93); backdrop-filter: blur(9px); }
.gallery-lightbox figure { margin: 0; }
.gallery-lightbox-stage { position: relative; display: grid; place-items: center; min-height: min(70vh,832px); background: #07060d; box-shadow: 0 22px 80px rgba(0,0,0,.58); }
.gallery-lightbox-stage img { display: block; width: auto; max-width: 100%; max-height: 78vh; height: auto; object-fit: contain; opacity: 1; transition: opacity .18s ease; }
.gallery-lightbox.is-loading .gallery-lightbox-stage img { opacity: .12; }
.gallery-lightbox-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #c9bfd5; font: 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; }
.gallery-lightbox-loading[hidden] { display: none; }
.gallery-lightbox figcaption { display: flex; justify-content: center; align-items: baseline; gap: 12px; padding-top: 18px; color: #81798e; font: 10px/1 var(--sans); letter-spacing: .24em; }
.gallery-lightbox figcaption strong { color: #d7cfdf; font-size: 13px; font-weight: 500; letter-spacing: .16em; }
.gallery-lightbox-close { position: fixed; top: 24px; right: 28px; z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(8,6,16,.45); color: #fff; font: 300 27px/1 var(--sans); cursor: pointer; }
.gallery-lightbox-close::before { content: ""; position: absolute; inset: -7px; }
.gallery-lightbox-arrow { position: fixed; z-index: 2; top: 50%; width: 56px; height: 84px; translate: 0 -50%; border: 0; background: rgba(8,6,16,.28); color: rgba(255,255,255,.82); font-size: 31px; cursor: pointer; }
.gallery-lightbox-prev { left: 10px; }
.gallery-lightbox-next { right: 10px; }
.gallery-lightbox-arrow:hover, .gallery-lightbox-close:hover { background: rgba(117,77,176,.46); color: #fff; }

@media (max-width: 900px) {
  .gallery-preview-section { padding: 100px 22px; }
  .gallery-preview-grid, .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-preview-card:first-child { grid-column: 1 / -1; }
  .gallery-hero { min-height: 460px; padding: 135px 22px 74px; }
  .gallery-content { padding: 70px 22px 0; }
  .gallery-page .site-footer { padding-inline: 0; }
}

@media (max-width: 560px) {
  .bgm-player { gap: 6px; padding-inline: 9px; }
  .bgm-player .bgm-label, .bgm-player .bgm-volume { display: none; }
  .bgm-track { width: 132px; }
  .gallery-preview-section { padding-block: 88px; }
  .gallery-preview-section .section-heading { margin-bottom: 42px; }
  .gallery-preview-grid, .gallery-grid { gap: 9px; }
  .gallery-preview-card > span, .gallery-item > span { right: 10px; bottom: 9px; font-size: 16px; }
  .gallery-preview-card > span small, .gallery-item > span small { font-size: 7px; }
  .gallery-hero { min-height: 410px; padding-top: 122px; }
  .gallery-ghost { font-size: 24vw; }
  .gallery-intro h1 { font-size: 48px; }
  .gallery-intro > p:last-child { font-size: 13px; }
  .gallery-content { padding: 50px 12px 0; }
  .gallery-lightbox { width: 100vw; }
  .gallery-lightbox-stage { min-height: 56vh; }
  .gallery-lightbox-stage img { max-height: 70vh; }
  .gallery-lightbox-arrow { top: auto; bottom: 18px; width: 50px; height: 50px; translate: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
  .gallery-lightbox-prev { left: 18px; }
  .gallery-lightbox-next { right: 18px; }
  .gallery-lightbox-close { top: 14px; right: 14px; }
}
