:root {
  color-scheme: dark;
  --background: #090713;
  --background-deep: #030308;
  --text: #fffaff;
  --accent: #d65be8;
  --accent-soft: #9a6dcd;
  --content-max: 1200px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--background-deep);
  color: var(--text);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 76px;
  padding: 0 clamp(2rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(240, 147, 237, .35);
  background: linear-gradient(100deg, #28113d 0%, #4b1c51 50%, #30133f 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}

.site-header__brand { color: #fff9ff; font-size: 1.2rem; font-weight: 600; letter-spacing: .12em; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; align-self: stretch; align-items: stretch; margin-left: auto; }
.site-nav__button {
  min-width: 8.5rem;
  padding: 0 1.25rem;
  border: 0;
  border-left: 1px solid rgba(255, 208, 255, .13);
  background: transparent;
  color: rgba(255, 239, 255, .72);
  font: 500 .88rem/1 "Yu Gothic", sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-nav__button:hover, .site-nav__button:focus-visible { color: #fff; background: rgba(248, 127, 225, .13); }
.site-nav__button.is-active { color: #fff; background: linear-gradient(180deg, rgba(225, 99, 204, .32), rgba(99, 38, 118, .28)); box-shadow: inset 0 -3px #f2a2f3, inset 0 0 20px rgba(238, 123, 232, .22); }
.site-nav__button:focus-visible { position: relative; outline: 2px solid #fff; outline-offset: -4px; }

.site-content { min-height: calc(100vh - 76px); }
.site-panel { min-height: calc(100vh - 76px); }
.site-panel[hidden] { display: none; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  overflow: visible;
  background:
    radial-gradient(ellipse 48% 72% at 67% 48%, rgba(144, 54, 154, .28), transparent 69%),
    radial-gradient(ellipse 42% 54% at 14% 18%, rgba(103, 49, 148, .2), transparent 70%),
    radial-gradient(ellipse 50% 60% at 12% 100%, rgba(175, 45, 168, .2), transparent 65%),
    linear-gradient(120deg, #060510 0%, #110a20 55%, #090817 100%);
}

.hero::before {
  display: none;
  position: absolute;
  z-index: 0;
  inset: clamp(1rem, 3vw, 2.8rem);
  content: "";
  border: 1px solid rgba(233, 163, 239, .15);
  background:
    linear-gradient(90deg, rgba(237, 154, 238, .45), transparent 18%) top left / 30% 1px no-repeat,
    linear-gradient(270deg, rgba(237, 154, 238, .34), transparent 18%) bottom right / 28% 1px no-repeat;
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .33;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  right: -18%;
  top: 10%;
  border-radius: 50%;
  filter: blur(100px);
  background: rgba(187, 62, 186, .2);
}

.visual {
  position: absolute;
  z-index: 1;
  inset: calc((100svh - 76px) / 2) auto auto 50%;
  width: auto;
  height: calc(100svh - 5.8rem);
  max-width: 78vw;
  aspect-ratio: 2039 / 2894;
  transform: translate(-50%, -50%);
}

.visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
}

.visual__key {
  opacity: 0;
  transform: scale(1.03);
  animation: keyvisual-in 1.4s cubic-bezier(.22, .61, .36, 1) .1s forwards;
}

/* PNG内の縦組みコピーとロゴも、素材として視覚演出に重ねています。 */
.visual__catchcopy, .visual__logo { opacity: 0; }
.visual__catchcopy { animation: layered-text-in .8s cubic-bezier(.22, .61, .36, 1) .8s forwards; }
.visual__logo { animation: layered-text-in .9s cubic-bezier(.22, .61, .36, 1) 1.45s forwards; }

.hero__overview {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: min(68svh, 700px);
  margin-top: 0;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  border-top: 1px solid rgba(241, 170, 240, .22);
  background: linear-gradient(180deg, rgba(8, 5, 16, .3), rgba(17, 8, 28, .94) 28%, #0b0713 100%);
  text-align: center;
}
.hero__overview-inner { width: min(920px, 100%); }
.hero__overview-label { margin: 0 0 1rem; color: #e9a7ef; font: 600 .72rem/1 "Yu Gothic", sans-serif; letter-spacing: .26em; }
.hero__overview h2 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 500; letter-spacing: .12em; text-shadow: 0 0 22px rgba(229, 98, 220, .3); }
.hero__overview-genre { margin: .95rem 0 2.7rem; color: rgba(255, 240, 255, .85); font: 500 1rem/1.5 "Yu Gothic", sans-serif; letter-spacing: .12em; }
.hero__overview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hero__overview-cards div { padding: 1.6rem 1rem; border: 1px solid rgba(243, 181, 242, .3); background: linear-gradient(135deg, rgba(113, 39, 123, .38), rgba(20, 11, 32, .5)); }
.hero__overview-cards span { display: block; margin-bottom: .8rem; color: #e9a8ef; font: 600 .64rem/1 "Yu Gothic", sans-serif; letter-spacing: .17em; }
.hero__overview-cards strong { display: block; color: #fff5ff; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: .06em; }
.hero__overview-cards p { margin: .55rem 0 0; color: rgba(255, 239, 255, .67); font: .78rem/1.4 "Yu Gothic", sans-serif; letter-spacing: .06em; }

@keyframes keyvisual-in { to { opacity: 1; transform: scale(1); } }
@keyframes layered-text-in { from { opacity: 0; transform: translateY(-25px); } to { opacity: 1; transform: translateY(0); } }

.hero.is-intro-skipped .visual__key,
.hero.is-intro-skipped .visual__catchcopy,
.hero.is-intro-skipped .visual__logo {
  animation: none;
  opacity: 1;
  transform: none;
}

.characters {
  min-height: calc(100svh - 76px);
  padding: clamp(2rem, 4vw, 3.8rem) clamp(2rem, 7vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 75% at 50% 55%, rgba(104, 38, 122, .23), transparent 68%),
    linear-gradient(180deg, #080610 0%, #120a1c 100%);
}

.section-heading { width: min(1500px, 100%); margin: 0 auto clamp(1.2rem, 2vw, 1.8rem); text-align: left; }
.section-heading__eyebrow { margin: 0 0 .55rem; color: #e9a1f2; font: 600 clamp(.65rem, 1vw, .8rem)/1 "Yu Gothic", sans-serif; letter-spacing: .24em; }
.section-heading h2 { margin: 0 0 0 .12em; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: .12em; }

.character-list { display: flex; gap: .9rem; width: min(1500px, 100%); margin: 0 auto clamp(1.8rem, 3vw, 2.8rem); padding: .35rem .2rem .9rem; overflow-x: auto; scrollbar-color: rgba(231, 148, 232, .72) rgba(46, 22, 60, .5); scroll-snap-type: x proximity; }
.character-list-wrap { position: relative; width: min(1500px, 100%); margin: 0 auto clamp(1.8rem, 3vw, 2.8rem); }
.character-list-wrap .character-list { width: 100%; margin: 0; padding: .35rem 3.4rem .9rem; scrollbar-width: none; -ms-overflow-style: none; }
.character-list-wrap .character-list::-webkit-scrollbar { display: none; }
.character-list__arrow { position: absolute; z-index: 2; top: calc(50% - .45rem); display: grid; place-items: center; width: 2.65rem; height: 5.5rem; padding: 0; border: 0; background: linear-gradient(90deg, rgba(8, 4, 16, .96), rgba(8, 4, 16, 0)); color: #e6a0ec; font-size: 1.15rem; cursor: pointer; transform: translateY(-50%); transition: color .2s ease, opacity .2s ease; }
.character-list__arrow:hover, .character-list__arrow:focus-visible { color: #fff2ff; }
.character-list__arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.character-list__arrow:disabled { opacity: .25; cursor: default; }
.character-list__arrow--prev { left: 0; }
.character-list__arrow--next { right: 0; background: linear-gradient(270deg, rgba(8, 4, 16, .96), rgba(8, 4, 16, 0)); }
.character-list__button { position: relative; flex: 0 0 98px; height: 98px; padding: 0; overflow: hidden; border: 1px solid rgba(239, 174, 241, .28); border-radius: 50%; background: #1b1029; cursor: pointer; scroll-snap-align: start; transition: border-color .25s ease, box-shadow .25s ease, filter .25s ease; }
.character-list__button span { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #754278, #21132d 74%); }
.character-list__button img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9) brightness(.84); transition: filter .25s ease, transform .25s ease; }
.character-list__button.is-pending span { display: grid; place-items: center; padding: .8rem; color: rgba(246, 211, 248, .52); font: 600 .62rem/1.3 "Yu Gothic", sans-serif; letter-spacing: .08em; text-align: center; }
.character-list__button:hover img, .character-list__button:focus-visible img { filter: saturate(1) brightness(1); transform: scale(1.04); }
.character-list__button.is-active { border-color: #f3b4f6; box-shadow: 0 0 18px rgba(239, 117, 232, .68), inset 0 0 12px rgba(255, 213, 255, .28); }
.character-list__button.is-active img { filter: saturate(1.08) brightness(1.08); }
.character-list__button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.character-layout { display: grid; grid-template-columns: minmax(460px, .95fr) minmax(420px, .72fr); align-items: center; gap: clamp(3.5rem, 9vw, 12rem); width: min(1420px, 100%); margin: 0 auto; }
.character-stage { position: relative; width: min(100%, 480px); height: min(66vh, 720px); margin: 0 auto; overflow: hidden; touch-action: none; }
.character-stage__image { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); transform: translate(calc(28% + var(--character-pan-x, 0px)), var(--character-pan-y, 0px)) scale(var(--character-zoom, 1)); transform-origin: center center; cursor: grab; user-select: none; -webkit-user-drag: none; }
.character-stage.is-bust .character-stage__image { top: 0; right: auto; bottom: 0; left: 50%; width: auto; min-width: 0; max-width: none; height: 100%; object-fit: fill; object-position: center bottom; transform: translateX(-50%); -webkit-mask-image: linear-gradient(to bottom, #000 0 58%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0 58%, transparent 96%); }
.character-stage.is-bust .character-stage__image { cursor: default; }
.character-stage__empty { position: absolute; z-index: 2; top: 50%; left: 50%; display: none; margin: 0; color: rgba(242, 197, 244, .55); font: 600 .85rem/1 "Yu Gothic", sans-serif; letter-spacing: .2em; transform: translate(-50%, -50%); }
.character-stage.is-empty .character-stage__image { opacity: 0; }
.character-stage.is-empty .character-stage__empty { display: block; }
.character-stage.is-empty .character-view-toggle, .character-stage.is-empty .character-zoom-controls { visibility: hidden; }
.character-stage.is-dragging .character-stage__image { cursor: grabbing; }
.character-view-toggle { position: absolute; z-index: 3; right: .8rem; bottom: 1rem; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(239, 175, 241, .54); border-radius: 50%; background: rgba(53, 20, 67, .76); color: #ffeaff; font: 1.65rem/1 sans-serif; cursor: pointer; transition: background-color .2s ease, transform .25s ease; }
.character-view-toggle:hover, .character-view-toggle:focus-visible { background: rgba(173, 61, 170, .75); transform: rotate(90deg); }
.character-view-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.character-zoom-controls { position: absolute; z-index: 3; right: .8rem; bottom: 4.5rem; display: grid; gap: .4rem; }
.character-zoom-controls button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(239, 175, 241, .45); border-radius: 50%; background: rgba(53, 20, 67, .76); color: #ffeaff; font: 1.35rem/1 sans-serif; cursor: pointer; }
.character-stage.is-bust .character-zoom-controls { opacity: .28; pointer-events: none; }
.character-zoom-controls button:disabled { opacity: .28; cursor: not-allowed; }
.character-zoom-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.character-profile { min-height: 500px; padding: clamp(1.6rem, 3vw, 2.8rem); border-left: 1px solid rgba(239, 171, 240, .46); background: linear-gradient(90deg, rgba(83, 33, 95, .28), transparent); }
.character-profile__roman { margin: 0 0 .35rem; color: #edb2f1; font: 500 clamp(1.05rem, 1.4vw, 1.35rem)/1.4 "Yu Gothic", sans-serif; letter-spacing: .1em; text-transform: lowercase; }
.character-profile h3 { margin: 0; color: #fff8ff; font-size: clamp(2.2rem, 3.3vw, 3.7rem); font-weight: 500; line-height: 1.18; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 0 6px rgba(255, 240, 255, .7), 0 0 18px rgba(239, 118, 231, .62), 0 0 38px rgba(184, 63, 195, .38); }
.character-profile__facts { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin: 2rem 0; padding: 1.1rem 0; border-top: 1px solid rgba(244, 181, 244, .24); border-bottom: 1px solid rgba(244, 181, 244, .24); }
.character-profile__facts[hidden] { display: none; }
.character-profile__facts div { display: flex; gap: .5rem; align-items: baseline; }
.character-profile__facts div[hidden] { display: none; }
.character-profile__facts dt { color: #f0acef; font: 700 .8rem/1 "Yu Gothic", sans-serif; letter-spacing: .1em; text-shadow: 0 0 10px rgba(236, 109, 229, .52); }
.character-profile__facts dd { margin: 0; color: #fff8ff; font: 600 1.05rem/1.4 "Yu Gothic", sans-serif; letter-spacing: .06em; text-shadow: 0 0 9px rgba(255, 220, 255, .38); }
.character-profile__description { max-width: 34em; color: rgba(255, 246, 255, .94); font: 1rem/2 "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; letter-spacing: .045em; white-space: pre-line; }
.character-profile.is-pending .character-profile__roman { color: rgba(237, 178, 241, .54); }
.character-profile.is-changing { animation: character-profile-enter .48s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes character-profile-enter { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }

.story-panel {
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vw, 7rem) 1.5rem;
  background:
    radial-gradient(ellipse 56% 76% at 50% 54%, rgba(117, 44, 138, .28), transparent 70%),
    linear-gradient(135deg, #070510 0%, #170b23 58%, #0b0714 100%);
}
.hero > .story-panel { min-height: min(72svh, 760px); margin-top: calc(100svh - 76px); }
#story { scroll-margin-top: 76px; }

.story-panel__inner { width: min(1080px, 100%); }
.story-panel__label { margin: 0 0 1.25rem; color: #e79ff1; font: 600 .8rem/1 "Yu Gothic", sans-serif; letter-spacing: .28em; }
.story-panel__catchcopy {
  isolation: isolate;
  position: relative;
  margin: 0;
  font-size: clamp(2.25rem, 3.65vw, 4rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 0 9px rgba(255, 214, 255, .48), 0 0 28px rgba(226, 87, 211, .46), 0 0 55px rgba(205, 65, 193, .25);
}
.story-panel__catchcopy::before {
  position: absolute;
  z-index: -1;
  inset: -.35em -.7em;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(223, 78, 201, .22) 0%, rgba(181, 65, 185, .1) 43%, transparent 74%);
  filter: blur(16px);
}
.story-panel__catchcopy span { display: inline-block; margin-left: 3.5em; color: #f1c2f4; white-space: nowrap; }
.story-panel__body {
  max-width: 850px;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(246, 182, 247, .35);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 2;
  letter-spacing: .055em;
}
.story-panel__body p { margin: 0 0 1.45em; }

.guidelines-panel {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  background: radial-gradient(ellipse 60% 45% at 50% 0%, rgba(133, 48, 142, .24), transparent 70%), linear-gradient(135deg, #070510 0%, #130a20 55%, #090612 100%);
}
.guidelines-panel__inner { width: min(980px, 100%); margin: 0 auto; }
.guidelines-panel__label { margin: 0 0 1rem; color: #e89ff1; font: 600 .8rem/1 "Yu Gothic", sans-serif; letter-spacing: .28em; }
.guidelines-panel h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.35rem); font-weight: 500; line-height: 1.4; letter-spacing: .07em; }
.guidelines-panel__intro { margin: clamp(2rem, 5vw, 4rem) 0; padding: clamp(1.4rem, 3vw, 2.4rem); border-left: 2px solid #e69be9; background: rgba(118, 48, 123, .13); line-height: 1.95; }
.guidelines-panel__intro p { margin: 0 0 1em; }
.guidelines-panel__intro p:last-child { margin-bottom: 0; }
.guidelines-list section { margin-top: 1.5rem; padding: clamp(1.5rem, 3.2vw, 2.5rem); border: 1px solid rgba(242, 179, 244, .22); background: rgba(20, 11, 31, .46); }
.guidelines-list h3 { margin: 0 0 1.4rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(242, 179, 244, .25); color: #ffe8ff; font-size: clamp(1.12rem, 1.7vw, 1.42rem); font-weight: 500; letter-spacing: .06em; }
.guidelines-list h4 { margin: 1.8rem 0 .65rem; color: #edb6f3; font: 600 1rem/1.5 "Yu Gothic", sans-serif; }
.guidelines-list p, .guidelines-list li { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; font-size: .98rem; line-height: 1.9; }
.guidelines-list p { margin: 0 0 1em; }
.guidelines-list ul { margin: .75rem 0 1.25rem; padding-left: 1.35em; }
.guidelines-list li { margin: .28em 0; }
.guidelines-list strong { color: #fff0ff; font-weight: 700; }
.guidelines-list__tag { display: inline-block; margin: 0; padding: .45rem .75rem; border: 1px solid rgba(238, 165, 243, .45); color: #f7cefa; background: rgba(160, 61, 160, .15); font-weight: 700; letter-spacing: .05em; }
.guidelines-list__contact a { color: #f4c5fa; text-underline-offset: .2em; }

.steam-panel {
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  text-align: center;
  background: radial-gradient(ellipse 52% 68% at 50% 42%, rgba(148, 57, 148, .28), transparent 70%), linear-gradient(135deg, #070510 0%, #190c27 56%, #090613 100%);
}
.steam-panel__inner { width: min(880px, 100%); }
.steam-panel__label { margin: 0 0 1rem; color: #f0a7f4; font: 600 .78rem/1 "Yu Gothic", sans-serif; letter-spacing: .28em; }
.steam-panel h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: .12em; text-shadow: 0 0 24px rgba(233, 106, 222, .32); }
.steam-panel__genre { margin: 1rem 0 2.7rem; color: rgba(255, 240, 255, .88); font-size: 1.05rem; letter-spacing: .12em; }
.steam-panel__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.steam-panel__release, .steam-panel__price { padding: 1.5rem 1rem; border: 1px solid rgba(245, 177, 244, .38); background: linear-gradient(135deg, rgba(111, 38, 120, .48), rgba(33, 17, 53, .55)); }
.steam-panel__cards span { display: block; margin-bottom: .7rem; color: #e7a8ef; font: 600 .68rem/1 "Yu Gothic", sans-serif; letter-spacing: .2em; }
.steam-panel__cards strong { display: block; color: #fff4ff; font-family: "Yu Mincho", serif; font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 500; line-height: 1; letter-spacing: .06em; }
.steam-panel__cards small { margin-left: .12em; font-size: .4em; }
.steam-panel__cards p { margin: .8rem 0 0; color: rgba(255, 237, 255, .76); font-size: .86rem; letter-spacing: .1em; }
.steam-panel__details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.2rem 0 2.4rem; }
.steam-panel__details div { padding: .95rem 1rem; border-bottom: 1px solid rgba(244, 181, 245, .28); }
.steam-panel__details dt { color: #dca3e4; font: 600 .72rem/1 "Yu Gothic", sans-serif; letter-spacing: .12em; }
.steam-panel__details dd { margin: .55rem 0 0; color: #fff6ff; font: 500 1rem/1.4 "Yu Gothic", sans-serif; letter-spacing: .05em; }
.steam-panel__status { display: inline-block; margin: 0; padding: .85rem 1.8rem; border: 1px solid rgba(249, 194, 247, .54); color: #fff5ff; font: 500 .9rem/1 "Yu Gothic", sans-serif; letter-spacing: .1em; }
.steam-panel__note { margin: 1.2rem 0 0; color: rgba(255, 237, 255, .55); font: .74rem/1.7 "Yu Gothic", sans-serif; }

/* あらすじを開くたび、右から静かに現れる演出です。 */
.story-panel.is-active .story-panel__label,
.story-panel.is-active .story-panel__catchcopy,
.story-panel.is-active .story-panel__body {
  animation: story-enter .75s cubic-bezier(.22, .61, .36, 1) both;
}
.story-panel.is-active .story-panel__catchcopy { animation-delay: .13s; }
.story-panel.is-active .story-panel__body { animation-delay: .28s; }
@keyframes story-enter {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}

/* あらすじ以外の各コンテンツ画面にも、同じ右からの表示演出を適用します。 */
.characters.is-active .section-heading,
.characters.is-active .character-list,
.characters.is-active .character-profile,
.guidelines-panel.is-active .guidelines-panel__inner,
.steam-panel.is-active .steam-panel__inner,
.placeholder-panel.is-active h2,
.placeholder-panel.is-active p {
  animation: panel-enter .75s cubic-bezier(.22, .61, .36, 1) both;
}
.characters.is-active .character-list { animation-delay: .08s; }
.characters.is-active .character-profile { animation-delay: .16s; }
.placeholder-panel.is-active p { animation-delay: .16s; }
@keyframes panel-enter {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}

.placeholder-panel { display: grid; place-content: center; text-align: center; background: radial-gradient(ellipse at center, rgba(104, 38, 122, .25), transparent 60%), #0c0814; }
.placeholder-panel h2 { margin: 0; font-size: 2.5rem; font-weight: 500; letter-spacing: .13em; }
.placeholder-panel p { color: rgba(255, 239, 255, .72); letter-spacing: .1em; }

@media (max-width: 1050px) {
  .site-header { gap: 1rem; padding-inline: clamp(1rem, 3vw, 2rem); }
  .site-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav__button { flex: 0 0 auto; min-width: 7.1rem; }

  .characters { padding-inline: clamp(1.25rem, 4vw, 3rem); }
  .character-layout { grid-template-columns: 1fr; gap: 1.5rem; max-width: 720px; }
  .character-stage { width: min(100%, 520px); height: min(62svh, 620px); }
  .character-profile { min-height: 0; border-top: 1px solid rgba(239, 171, 240, .46); border-left: 0; }
}

@media (max-width: 640px) {
  .site-header { gap: .7rem; height: 64px; padding-inline: 1rem; }
  .site-header__brand { font-size: .92rem; letter-spacing: .07em; }
  .site-nav { gap: 0; }
  .site-nav__button { min-width: 5.75rem; padding-inline: .7rem; font-size: .72rem; letter-spacing: .04em; }
  .site-content, .site-panel { min-height: calc(100svh - 64px); }

  .hero { min-height: calc(100svh - 64px); }
  .visual { top: calc((100svh - 64px) / 2); width: auto; height: calc(100svh - 64px); max-width: 100vw; }
  .hero > .story-panel { min-height: auto; margin-top: calc(100svh - 64px); }
  #story { scroll-margin-top: 64px; }
  .story-panel { padding: 3.5rem 1.25rem; }
  .story-panel__catchcopy { font-size: clamp(1.6rem, 7.6vw, 2.15rem); line-height: 1.52; white-space: normal; }
  .story-panel__catchcopy span { margin-left: .9em; }
  .story-panel__body { margin-top: 2.2rem; font-size: .96rem; line-height: 1.9; letter-spacing: .025em; }
  .story-panel__body br { display: none; }
  .hero__overview { min-height: auto; padding: 4rem 1.25rem; }
  .hero__overview h2 { font-size: 2rem; }
  .hero__overview-cards { grid-template-columns: 1fr; gap: .7rem; }
  .hero__overview-cards div { padding: 1.2rem 1rem; }

  .characters { min-height: calc(100svh - 64px); padding: 1.6rem .9rem 2.8rem; }
  .section-heading { margin-bottom: .8rem; }
  .section-heading h2 { font-size: 1.85rem; }
  .character-list-wrap { margin-bottom: 1.4rem; }
  .character-list-wrap .character-list { gap: .65rem; padding-inline: 2.6rem; }
  .character-list__button { flex-basis: 72px; height: 72px; }
  .character-list__arrow { width: 2.25rem; height: 4.3rem; }
  .character-stage { width: min(100%, 390px); height: min(58svh, 520px); }
  .character-profile { padding: 1.5rem 1rem; }
  .character-profile__roman { font-size: .95rem; }
  .character-profile h3 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .character-profile__facts { gap: .8rem 1.2rem; margin: 1.5rem 0; }
  .character-profile__description { font-size: .94rem; line-height: 1.9; }

  .guidelines-panel, .steam-panel { padding: 3rem 1rem; }
  .guidelines-panel h2 { font-size: 1.8rem; }
  .guidelines-panel__intro, .guidelines-list section { padding: 1.2rem; }
  .guidelines-list p, .guidelines-list li { font-size: .92rem; line-height: 1.8; }
  .steam-panel h2 { font-size: 2.25rem; }
  .steam-panel__genre { font-size: .9rem; }
  .steam-panel__cards, .steam-panel__details { grid-template-columns: 1fr; gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .visual__key, .visual__catchcopy, .visual__logo { opacity: 1; transform: none; }
  .character-stage__image { transition: none; }
  .story-panel.is-active .story-panel__label, .story-panel.is-active .story-panel__catchcopy, .story-panel.is-active .story-panel__body { animation: none; }
  .characters.is-active .section-heading, .characters.is-active .character-list, .characters.is-active .character-profile, .placeholder-panel.is-active h2, .placeholder-panel.is-active p { animation: none; }
  .guidelines-panel.is-active .guidelines-panel__inner { animation: none; }
  .steam-panel.is-active .steam-panel__inner { animation: none; }
  .character-profile.is-changing { animation: none; }
}
