@charset "UTF-8";

:root {
  --page-bg: #fff9ed;
  --ink: #171316;
  --muted: #6b6266;
  --accent: #ff8b69;
  --shadow: #167d88;
  --accent-ink: #171316;
  --panel: #fffdf7;
  --line: rgba(23, 19, 22, 0.18);
  --stage-height: 750px;
  --ease-snap: cubic-bezier(.2, 1.25, .25, 1);
  --ease-pop: cubic-bezier(.17, .89, .32, 1.49);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 140svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(17, 13, 16, .72) 0%,
      rgba(17, 13, 16, .48) 28%,
      rgba(17, 13, 16, .18) 49%,
      rgba(17, 13, 16, 0) 68%
    ),
    url("../images/rainbow/backgrounds/etchute-day.webp") center 42% / cover no-repeat;
}

/* TOP下部を次のセクションへ自然につなぐ。人物はこのグラデーションより手前に出る。 */
.hero::after {
  content: "";
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42vh;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 249, 237, 0) 0%,
    rgba(255, 249, 237, .18) 34%,
    rgba(255, 249, 237, .72) 74%,
    var(--page-bg) 100%
  );
}

/*
  斜め色面を戻す場合：
  rainbow/index.html の <header class="hero" ...> を
  <header class="hero hero--diagonal-accent" ...> に変更する。
*/
.hero--diagonal-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      132deg,
      rgba(255, 117, 93, .98) 0%,
      rgba(255, 145, 92, .96) 48%,
      rgba(255, 211, 78, .92) 100%
    );
  clip-path: polygon(0 0, 57% 0, 39% 100%, 0 100%);
}

.hero__noise {
  display: none;
}

.hero--diagonal-accent .hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(90deg, transparent 0 46%, rgba(255,255,255,.78) 46% 48%, transparent 48%),
    linear-gradient(0deg, transparent 0 48%, rgba(255,255,255,.38) 48% 50%, transparent 50%);
  background-size: 54px 54px;
  clip-path: polygon(0 0, 57% 0, 39% 100%, 0 100%);
  transform: skewX(-8deg) scale(1.15);
}

/* 黒白の円は使用しない。HTMLは残してある。 */
.hero__burst {
  display: none;
}

.hero__copy {
  position: absolute;
  z-index: 20;
  top: clamp(78px, 8vw, 128px);
  left: clamp(24px, 6vw, 96px);
  width: min(48rem, 48vw);
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .55rem .8rem;
  color: #fff;
  background: var(--ink);
  font-family: "Arial Black", "Noto Sans JP", sans-serif;
  font-size: clamp(.68rem, 1vw, .9rem);
  letter-spacing: .12em;
  transform: skewX(-9deg);
}

.hero__title {
  margin: 0;
  color: #fff;
  font-family: "Arial Black", "Noto Sans JP", sans-serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.11em;
  text-shadow:
    .05em .05em 0 var(--ink),
    .10em .10em 0 #fff52e,
    .15em .15em 0 var(--ink);
  transform: rotate(-5deg);
}

.hero__title span {
  display: inline-block;
  animation: titlePop .65s var(--ease-pop) both;
}

.hero__title span:nth-child(2) { animation-delay: .12s; }
.hero__title span:nth-child(3) { animation-delay: .24s; }
.hero__title span:nth-child(4) { animation-delay: .36s; }

.hero__lead {
  display: inline-block;
  margin: 2.4rem 0 0 1.2rem;
  padding: .85rem 1.1rem;
  color: var(--ink);
  background: rgba(255,255,255,.94);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  font-weight: 900;
  font-size: clamp(.82rem, 1.3vw, 1.15rem);
  transform: rotate(-2deg);
}


.hero__summary {
  width: min(34rem, 88%);
  margin: 1.4rem 0 0 1.2rem;
  padding: .85rem 1rem .95rem;
  color: #fff;
  background: rgba(23, 19, 22, .72);
  border-left: 5px solid #fff52e;
  backdrop-filter: blur(5px);
}

.hero__summary-label {
  display: block;
  margin-bottom: .35rem;
  color: #fff52e;
  font-family: "Arial Black", sans-serif;
  font-size: .68rem;
  letter-spacing: .16em;
}

.hero__summary p {
  margin: 0;
  font-size: clamp(.78rem, 1vw, .94rem);
  font-weight: 700;
  line-height: 1.75;
}

.hero__menu {
  display: grid;
  width: min(250px, 100%);
  margin: 1.45rem 0 0 1.2rem;
  gap: 7px;
}

.hero__menu-label {
  margin: 0 0 .15rem;
  color: rgba(255,255,255,.78);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .64rem;
  letter-spacing: .20em;
}

.hero__jump {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: .72rem 1rem .72rem 2.25rem;
  border: 1px solid rgba(255,255,255,.74);
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: clamp(.82rem, 1vw, 1rem);
  letter-spacing: .11em;
  overflow: hidden;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    letter-spacing .16s ease;
}

.hero__jump::before {
  content: "▶";
  position: absolute;
  left: .78rem;
  top: 50%;
  color: #fff52e;
  font-size: .72rem;
  line-height: 1;
  opacity: 0;
  transform: translate(-8px, -50%);
}

.hero__jump::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid transparent;
  pointer-events: none;
}

.hero__jump:hover,
.hero__jump:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateX(8px);
  letter-spacing: .14em;
  outline: none;
}

.hero__jump:hover::before,
.hero__jump:focus-visible::before {
  opacity: 1;
  transform: translate(0, -50%);
  animation: commandCursorBlink .52s steps(2, end) infinite;
}

.hero__jump:hover::after,
.hero__jump:focus-visible::after {
  border-color: rgba(255,255,255,.38);
  animation: commandFrameBlink .52s steps(2, end) infinite;
}

.hero__jump span {
  position: relative;
  z-index: 1;
}

@keyframes commandCursorBlink {
  0%, 46% {
    opacity: 1;
  }
  47%, 100% {
    opacity: .28;
  }
}

@keyframes commandFrameBlink {
  0%, 46% {
    opacity: 1;
  }
  47%, 100% {
    opacity: .25;
  }
}

.hero__cast {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.hero__person {
  position: absolute;
  bottom: -7vh;
  max-width: none;
  opacity: 0;
  filter: drop-shadow(22px 18px 0 rgba(23,19,22,.86));
  animation: castIn .8s var(--ease-snap) forwards;
}

.hero__person--yul {
  z-index: 1;
  right: 25%;
  bottom: 10vh;
  height: 120vh;
  animation-delay: .18s;
}

.hero__person--gilbert {
  z-index: 2;
  right: 5%;
  bottom: 5vh;
  height: 120vh;
  animation-delay: .34s;
}

.hero__person--elt {
  z-index: 3;
  right: 20%;
  bottom: 5vh;
  height: 120vh;
  animation-delay: .50s;
}

.hero__person--colette {
  z-index: 4;
  right: 15%;
  bottom: 0;
  height: 120vh;
  animation-delay: .66s;
}

.hero__stripe {
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: 5.5vh;
  display: block;
  width: 100%;
  padding: .72rem 0;
  overflow: hidden;
  color: #fff;
  background: rgba(23, 19, 22, .94);
  border-top: 2px solid rgba(255,255,255,.92);
  border-bottom: 2px solid rgba(255,255,255,.92);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(.78rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
  transform: none;
}

.hero__stripe-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: heroWarningLoop 28s linear infinite;
}

.hero__stripe-track span {
  flex: none;
  padding-right: 5rem;
}

@keyframes heroWarningLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes castIn {
  0% {
    opacity: 0;
    transform: translate(18vw, 10vh) rotate(5deg) scale(.92);
  }
  70% {
    opacity: 1;
    transform: translate(-1.2vw, -1vh) rotate(-1deg) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes titlePop {
  0% { opacity: 0; transform: scale(.2) rotate(12deg); }
  72% { opacity: 1; transform: scale(1.12) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.characters {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 130px) 0 120px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.section-head__num {
  margin: 0;
  color: var(--accent);
  font-family: "Arial Black", sans-serif;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: .75;
  text-shadow: 6px 6px 0 var(--ink);
  -webkit-text-stroke: 3px var(--ink);
}

.section-head__sub {
  margin: 0 0 .25rem;
  font-family: "Arial Black", sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
}

.section-head h2 {
  margin: 0;
  font-family: "Arial Black", "Noto Sans JP", sans-serif;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: .95;
}

.character-tabs {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.character-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  overflow: hidden;
  border: 4px solid var(--ink);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform .2s var(--ease-snap),
    background .2s ease,
    color .2s ease;
}

.character-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tab-color, var(--accent));
  transform: translateX(-105%) skewX(-15deg);
  transition: transform .36s var(--ease-snap);
}

.character-tab:hover,
.character-tab.is-active {
  transform: translate(-3px, -3px);
}

.character-tab:hover::before,
.character-tab.is-active::before {
  transform: translateX(0) skewX(0);
}

.character-tab__num {
  font-family: "Arial Black", sans-serif;
  font-size: .7rem;
}

.character-tab__name {
  overflow: hidden;
  font-family: "Arial Black", sans-serif;
  font-size: clamp(.72rem, 1.4vw, 1.15rem);
  letter-spacing: .06em;
  text-overflow: ellipsis;
}

.character-tab[data-character="colette"] { --tab-color: #ff8b69; }
.character-tab[data-character="gilbert"] { --tab-color: #72d8ff; }
.character-tab[data-character="elt"] { --tab-color: #ffd400; }
.character-tab[data-character="yul"] {
  --tab-color: #2767ff;
  color: #fff;
}
.character-tab[data-character="yul"]:not(.is-active):not(:hover) {
  color: var(--ink);
}

.rainbow-character-stage {
  position: relative;
  height: var(--stage-height);
  min-height: var(--stage-height);
  max-height: var(--stage-height);
  overflow: clip;
  overflow-clip-margin: clamp(10px, 1.3vw, 20px);
  isolation: isolate;
  border: clamp(10px, 1.3vw, 20px) solid var(--accent);
  background: var(--accent);
  box-shadow: 12px 14px 0 var(--ink);
  transition: border-color .45s ease, background .45s ease;
}

.rainbow-character-stage::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -18% -24%;
  display: block;
  pointer-events: none;
  background: var(--switch-accent, var(--accent));
  opacity: 0;
  transform: translateX(-128%) skewX(-11deg);
  will-change: transform, opacity;
}

.rainbow-character-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(120px, 10.5vw, 150px);
  pointer-events: none;
  background: var(--accent);
  transition: background .45s ease;
}

.rainbow-character-stage.is-character-switching::before {
  animation: characterColorWipe .9s cubic-bezier(.72, 0, .18, 1) both;
}

@keyframes characterColorWipe {
  0% {
    opacity: 1;
    transform: translateX(-128%) skewX(-11deg);
  }

  44% {
    opacity: 1;
    transform: translateX(0) skewX(-11deg);
  }

  56% {
    opacity: 1;
    transform: translateX(0) skewX(-11deg);
  }

  100% {
    opacity: 1;
    transform: translateX(128%) skewX(-11deg);
  }
}


.rainbow-character-stage__video {
  position: absolute;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  background: #12151a;
}

.rainbow-character-stage__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%) scale(1.18);
  pointer-events: none;
}

.rainbow-character-stage__video-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,8,18,.30), rgba(3,8,18,.04) 48%, rgba(3,8,18,.26)),
    linear-gradient(0deg, rgba(3,8,18,.38), transparent 45%);
}

.rainbow-character-stage__wipe {
  position: absolute;
  z-index: -1;
  inset: -16% -20%;
  background: var(--accent);
  transform: translateX(-118%) skewX(-11deg);
  transform-origin: left;
  transition: transform .62s cubic-bezier(.72, 0, .18, 1);
}

.rainbow-character-stage__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23,19,22,.10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(23,19,22,.10) 2px, transparent 2px);
  background-size: 38px 38px;
  transition: opacity .3s ease .4s;
}

.character-focus {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.character-focus__name {
  position: absolute;
  z-index: 5;
  left: clamp(24px, 4vw, 68px);
  bottom: clamp(74px, 6.1vw, 94px);
  display: grid;
  width: max-content;
  color: #fff;
  text-shadow: 6px 6px 0 var(--shadow);
  transition:
    opacity .25s ease,
    transform .35s var(--ease-snap);
}

.character-focus__en {
  position: relative;
  z-index: 1;
  top: 12px;
  margin: 0;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: clamp(3rem, 7.2vw, 7.4rem);
  font-style: italic;
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.06em;
}

.character-focus__jp {
  position: relative;
  z-index: 2;
  top: 18px;
  display: block;
  justify-self: end;
  width: max-content;
  margin: .35rem 0 0;
  padding: 0;
  color: var(--accent-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(.95rem, 1.55vw, 1.28rem);
  font-weight: 900;
  letter-spacing: .035em;
  text-shadow: none;
}

.character-focus__quote {
  position: absolute;
  z-index: 6;
  left: -2%;
  top: 58%;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: 64%;
  padding: .78rem clamp(1rem, 3vw, 3rem) .78rem clamp(1.5rem, 5vw, 5rem);
  color: var(--accent);
  background: var(--shadow);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 8px 0 var(--accent);
  font-weight: 900;
  text-shadow: none;
  transform: rotate(-5deg);
  transform-origin: left center;
  animation: quoteBoing .72s var(--ease-pop) both;
  transition:
    opacity .22s ease,
    transform .35s var(--ease-snap),
    background .4s ease,
    color .4s ease;
}

.character-focus__quote p {
  margin: 0;
  font-size: clamp(.9rem, 1.55vw, 1.35rem);
}

/* セリフ文字は読みやすさを優先してキャラクターごとに調整。 */
.characters:has(.character-tab[data-character="colette"].is-active) .character-focus__quote {
  color: #fff;
}

.characters:has(.character-tab[data-character="gilbert"].is-active) .character-focus__quote {
  color: var(--ink);
}


@keyframes quoteBoing {
  0% { opacity: 0; transform: rotate(-5deg) scaleX(.06); }
  62% { opacity: 1; transform: rotate(-5deg) scaleX(1.10); }
  80% { transform: rotate(-5deg) scaleX(.96); }
  100% { opacity: 1; transform: rotate(-5deg) scaleX(1); }
}

.character-focus__portrait {
  position: absolute;
  z-index: 4;
  right: -3%;
  bottom: -7%;
  width: min(73%, 1030px);
  height: 130%;
  transform-origin: right bottom;
  transition:
    opacity .24s ease,
    transform .48s cubic-bezier(.72, 0, .28, 1);
}

.character-focus__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(34px 20px 0 var(--shadow));
  animation: portraitIn .64s var(--ease-snap) both;
}

@keyframes portraitIn {
  0% { opacity: 0; transform: translateX(32%) rotate(3deg); }
  78% { opacity: 1; transform: translateX(-2%) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

.profile-button,
.back-button {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-width: 300px;
  padding: .8rem 2rem;
  border: 4px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 8px 9px 0 rgba(23,19,22,.55);
  cursor: pointer;
  font-family: "Arial Black", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
  transition:
    transform .22s var(--ease-snap),
    box-shadow .22s ease;
}

.profile-button {
  left: clamp(24px, 4vw, 66px);
  bottom: 30px;
  min-width: 240px;
  padding: .55rem 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
}

.profile-button:hover,
.back-button:hover {
  transform: translate(-5px, -5px);
  box-shadow: 13px 14px 0 rgba(23,19,22,.55);
}

.profile-button__arrows {
  letter-spacing: -.15em;
}

.character-profile {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 43% 57%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease .28s;
}

.character-profile__figure {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.character-profile__figure > img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 95%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(20px 14px 0 var(--shadow));
  opacity: 0;
  transform: translateX(-20%);
  transition:
    opacity .34s ease .40s,
    transform .54s var(--ease-snap) .36s;
}

.character-profile__level {
  position: absolute;
  left: 20px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 110px;
  aspect-ratio: 1;
  color: #fff;
  background: var(--ink);
  border: 5px solid #fff;
  box-shadow: 6px 6px 0 var(--shadow);
  transform: rotate(-7deg);
}

.character-profile__level span {
  max-width: 74px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: center;
}

.character-profile__level strong {
  font-family: "Arial Black", sans-serif;
  font-size: 2.7rem;
  line-height: .9;
}

.character-profile__content {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: clamp(14px, 1.8vw, 24px) clamp(18px, 2.2vw, 36px) 60px;
  flex-direction: column;
}

.profile-title {
  flex: 0 0 auto;
  padding-bottom: .65rem;
  border-bottom: 5px solid var(--ink);
}

.profile-title p {
  margin: 0;
  font-family: "Arial Black", sans-serif;
  font-size: clamp(1.6rem, 2.7vw, 3rem);
  font-style: italic;
  line-height: .9;
}

.profile-title h3 {
  margin: .35rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.profile-scroll {
  min-height: 0;
  margin-top: .4rem;
  padding-right: .45rem;
  overflow-y: hidden;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
}

.profile-panel {
  margin-bottom: .4rem;
  padding: .48rem .68rem;
  background: rgba(255,255,255,.72);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(23,19,22,.18);
}

.profile-panel h4 {
  margin: 0 0 .55rem;
  font-family: "Arial Black", sans-serif;
  font-size: .83rem;
  letter-spacing: .13em;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem;
  margin: 0;
}

.profile-facts div {
  padding: .4rem .5rem;
  background: rgba(255,255,255,.75);
  border-left: 6px solid var(--shadow);
}

.profile-facts dt {
  margin: 0 0 .2rem;
  color: rgba(23, 19, 22, .68);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.profile-facts dd {
  margin: 0;
  font-size: .86rem;
  font-weight: 900;
}

.profile-description {
  margin: .55rem 0 0;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
}

.battle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .8rem;
}

.data-label {
  margin: 0 0 .22rem;
  color: rgba(23, 19, 22, .72);
  font-family: "Arial Black", sans-serif;
  font-size: .64rem;
  letter-spacing: .1em;
}

.data-list,
.summon-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  gap: .28rem;
}

.data-list li {
  font-size: .8rem;
  font-weight: 800;
}

.data-list:not(.data-list--chips) li:not(:last-child)::after {
  content: " /";
  color: var(--shadow);
}

.data-list--chips li,
.summon-list li {
  padding: .28rem .45rem;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  transform: skewX(-5deg);
}

.summon-list li {
  color: var(--ink);
  background: var(--shadow);
  border: 2px solid var(--ink);
}

.back-button {
  left: auto;
  right: clamp(24px, 4vw, 66px);
  bottom: 30px;
  min-width: 240px;
  padding: .55rem 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
}

.rainbow-character-stage.is-profile .rainbow-character-stage__wipe {
  transform: translateX(0) skewX(-11deg);
}

.rainbow-character-stage.is-profile .rainbow-character-stage__grid {
  opacity: 1;
}

.rainbow-character-stage.is-profile .character-focus__portrait {
  opacity: 0;
  transform: translateX(-115%);
}

.rainbow-character-stage.is-profile .character-focus__name,
.rainbow-character-stage.is-profile .character-focus__quote,
.rainbow-character-stage.is-profile .profile-button {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-60px);
}

.rainbow-character-stage.is-profile .character-focus__quote {
  animation: none;
  visibility: hidden;
}

.rainbow-character-stage.is-profile .character-profile {
  opacity: 1;
  pointer-events: auto;
}

.rainbow-character-stage.is-profile .character-profile__figure > img {
  opacity: 1;
  transform: translateX(0);
}


.rainbow-character-stage.is-switching .character-focus__portrait img {
  animation: none;
  opacity: 0;
  transform: translateX(28%);
}

.rainbow-character-stage.is-switching .character-focus__quote {
  animation: none;
  opacity: 0;
  transform: rotate(-5deg) scaleX(.1);
}

.rainbow-character-stage.is-switching .character-focus__name,
.rainbow-character-stage.is-switching .profile-button {
  opacity: 0;
  transform: translateX(-36px);
}



/* =========================================================
   02 — STORY
   画面全幅の背景面 + 1500px の共通基準線。
   広告コピーではなく、ゲーム作品紹介として静かな情報設計にする。
   ========================================================= */
.story {
  --accent: #72d8ff;
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    linear-gradient(
      180deg,
      var(--page-bg) 0%,
      #edf4f8 21%,
      #a9c7df 42%,
      #53779d 66%,
      #142d4c 100%
    );
}

.story > .section-head {
  position: relative;
  z-index: 12;
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto -56px;
  padding: clamp(34px, 3.6vw, 52px) 0 42px;
  border-bottom: 1px solid rgba(23, 19, 22, .28);
}

/* 01 CHARACTERと同じ見出し意匠を保ちつつ、
   STORYだけはページ背景色から最初の場面へ自然につなぐ。 */
.story > .section-head::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  pointer-events: none;
  background: var(--page-bg);
  transform: translateX(-50%);
}

.story > .section-head::after {
  display: none;
}

.story-flow {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  width: 100%;
}

.story-flow::before,
.story-flow::after {
  display: none;
}

.story-scene {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 56vw, 780px);
  overflow: hidden;
  isolation: isolate;
}

.story-scene::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: min(1500px, calc(100% - 48px));
  height: 1px;
  background: rgba(255,255,255,.38);
  transform: translateX(-50%);
}

.story-scene:first-child::before {
  display: none;
}

.story-scene__backdrop,
.story-scene__shade {
  position: absolute;
  inset: 0;
}

.story-scene__backdrop {
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.story-scene__shade {
  z-index: 1;
  pointer-events: none;
}

/* 01: 昼。CHARACTERから急に暗転させない。 */
.story-scene--day {
  background: #edf4f8;
}

.story-scene--day .story-scene__backdrop {
  background-image: url("../images/rainbow/backgrounds/etchute-day.webp");
}

.story-scene--day .story-scene__shade {
  background:
    linear-gradient(
      90deg,
      rgba(247, 244, 234, .95) 0%,
      rgba(242, 246, 247, .88) 36%,
      rgba(216, 233, 244, .58) 62%,
      rgba(187, 216, 235, .24) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.04) 58%,
      rgba(151, 191, 220, .34) 100%
    );
}

/* 02: 昼のファーンド邸。01より少し青みを増やしつつ、夜にはしない。 */
.story-scene--house {
  background: #416f9a;
}

.story-scene--house .story-scene__backdrop {
  background-image: url("../images/rainbow/backgrounds/farnd-interior.webp");
  background-position: center 48%;
  filter: saturate(.96) brightness(.96);
}

.story-scene--house .story-scene__shade {
  background:
    linear-gradient(
      90deg,
      rgba(211, 228, 241, .90) 0%,
      rgba(163, 197, 222, .78) 38%,
      rgba(105, 155, 195, .50) 70%,
      rgba(69, 116, 160, .30) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.05) 0%,
      rgba(50, 91, 132, .30) 100%
    );
}

/* 03: 地下。02より一段だけ深い青へ。 */
.story-scene--dungeon {
  background: #183957;
}

.story-scene--dungeon .story-scene__backdrop {
  background-image: url("../images/rainbow/backgrounds/farnd-dungeon.webp");
  background-position: center 48%;
  filter: saturate(.86) brightness(.9);
}

.story-scene--dungeon .story-scene__shade {
  background:
    linear-gradient(
      90deg,
      rgba(15, 39, 66, .92) 0%,
      rgba(18, 46, 76, .84) 44%,
      rgba(29, 65, 99, .56) 72%,
      rgba(44, 84, 117, .28) 100%
    ),
    linear-gradient(
      180deg,
      rgba(49, 86, 119, .20) 0%,
      rgba(8, 26, 47, .40) 100%
    );
}

.story-scene__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  width: min(1500px, calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(42px, 5.5vw, 86px) 0;
  box-sizing: border-box;
}

.story-scene__inner--house,
.story-scene__inner--dungeon {
  grid-template-columns: minmax(350px, .82fr) minmax(0, 1.18fr);
}

.story-scene__copy {
  position: relative;
  z-index: 5;
  max-width: 610px;
}

.story-scene__copy--light {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.18);
}

.story-scene__chapter {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .75rem;
  padding: 0;
  color: rgba(23,19,22,.72);
  background: transparent;
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .17em;
}

.story-scene__copy--light .story-scene__chapter {
  color: rgba(255,255,255,.78);
  background: transparent;
  text-shadow: none;
}

.story-scene__chapter span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 1.7rem;
  color: var(--ink);
  background: var(--accent);
  letter-spacing: 0;
}

.story-scene__copy h3 {
  margin: 0;
  font-family: "Arial Black", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: .035em;
}

.story-scene__place {
  margin: .35rem 0 1.6rem !important;
  color: rgba(23,19,22,.62);
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  line-height: 1.4 !important;
}

.story-scene__copy--light .story-scene__place {
  color: rgba(255,255,255,.72);
}

.story-scene__copy p:not(.story-scene__chapter):not(.story-scene__place) {
  margin: 0;
  font-size: clamp(.88rem, 1.02vw, 1.02rem);
  font-weight: 650;
  line-height: 1.95;
}

.story-scene__copy p:not(.story-scene__chapter):not(.story-scene__place) + p {
  margin-top: 1rem;
}

.story-scene__visuals {
  position: relative;
  align-self: stretch;
  min-height: 500px;
}

.story-cut,
.story-landmark {
  margin: 0;
}

.story-cut img,
.story-landmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-cut figcaption,
.story-landmark figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: .34rem .56rem;
  color: #fff;
  background: rgba(23, 19, 22, .78);
  font-family: "Arial Black", sans-serif;
  font-size: .54rem;
  letter-spacing: .12em;
}

/* 場面写真はポラロイド風にせず、作品資料としてフラットに見せる。 */
.story-cut,
.story-landmark {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.86);
  box-shadow: 0 18px 40px rgba(10, 25, 43, .16);
  transform: none;
}

.story-cut--sea {
  justify-self: end;
  width: min(430px, 33vw);
  aspect-ratio: 3 / 2;
}

.story-landmark {
  position: absolute;
  top: 8%;
  right: 0;
  width: 86%;
  aspect-ratio: 16 / 9;
}

.story-scene--house .story-landmark img {
  filter: saturate(.94) contrast(1.01);
}

.story-cut--opening {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 58%;
  aspect-ratio: 16 / 9;
}

.story-cut--brothers {
  position: absolute;
  top: 7%;
  right: 0;
  width: 82%;
  aspect-ratio: 16 / 9;
}

.story-cut--final {
  position: absolute;
  right: 3%;
  bottom: 2%;
  width: 48%;
  aspect-ratio: 16 / 9;
}

.story-cut--sea img,
.story-cut--opening img,
.story-cut--brothers img {
  object-position: center;
}

.story-cut--final img {
  object-position: center 42%;
}

@media (max-width: 1050px) {
  .story > .section-head,
  .story-scene__inner {
    width: min(100% - 36px, 1500px);
  }

  .story-scene {
    min-height: 700px;
  }

  .story-scene__inner,
  .story-scene__inner--house,
  .story-scene__inner--dungeon {
    grid-template-columns: minmax(0, .94fr) minmax(330px, 1.06fr);
    gap: 34px;
  }

  .story-scene__visuals {
    min-height: 460px;
  }

  .story-cut--sea {
    width: min(390px, 39vw);
  }
}

@media (max-width: 720px) {
  .story {
    padding-bottom: 100px;
  }

  .story > .section-head {
    margin-bottom: -30px;
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .story > .section-head,
  .story-scene__inner {
    width: min(100% - 22px, 1500px);
  }

  .story-scene {
    min-height: 0;
  }

  .story-scene__inner,
  .story-scene__inner--house,
  .story-scene__inner--dungeon {
    display: block;
    min-height: 0;
    padding: 42px 0 34px;
  }

  .story-scene--day .story-scene__shade {
    background:
      linear-gradient(
        180deg,
        rgba(242, 246, 247, .96) 0%,
        rgba(225, 238, 247, .88) 56%,
        rgba(172, 207, 230, .42) 100%
      );
  }

  .story-scene--house .story-scene__shade {
    background:
      linear-gradient(
        180deg,
        rgba(211, 228, 241, .94) 0%,
        rgba(155, 191, 220, .84) 58%,
        rgba(82, 132, 176, .58) 100%
      );
  }

  .story-scene--dungeon .story-scene__shade {
    background:
      linear-gradient(
        180deg,
        rgba(17, 43, 70, .95) 0%,
        rgba(20, 51, 82, .86) 58%,
        rgba(27, 65, 99, .58) 100%
      );
  }

  .story-scene__copy {
    max-width: none;
  }

  .story-scene__copy h3 {
    font-size: clamp(1.3rem, 6vw, 1.75rem);
  }

  .story-scene__copy p:not(.story-scene__chapter):not(.story-scene__place) {
    font-size: .88rem;
    line-height: 1.9;
  }

  .story-cut--sea {
    width: min(88%, 430px);
    margin: 32px 0 0 auto;
  }

  .story-scene__visuals {
    /* スマホでは2枚の画像が離れすぎないよう、画像エリアの空きを圧縮する。 */
    min-height: clamp(330px, 96vw, 380px);
    margin-top: 20px;
  }

  .story-landmark {
    top: 0;
    width: 96%;
  }

  .story-cut--opening {
    right: 0;
    bottom: 5%;
    width: 72%;
  }

  .story-cut--brothers {
    top: 0;
    width: 94%;
  }

  .story-cut--final {
    right: 0;
    bottom: 4%;
    width: 67%;
  }
}



/* =========================================================
   03 — MOVIE
   STORYとは背景テーマを切り替え、メイン映像を大きく見せる。
   2本目は明確にEXTRAとして一段小さく扱う。
   ========================================================= */
.movies {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(92px, 9vw, 136px) 0 clamp(120px, 11vw, 180px);
  overflow: hidden;
  color: #f7f5ef;
  background:
    radial-gradient(
      ellipse at 72% 14%,
      rgba(200, 38, 58, .28) 0%,
      rgba(200, 38, 58, .10) 24%,
      rgba(200, 38, 58, 0) 48%
    ),
    linear-gradient(
      138deg,
      #b32038 0%,
      #8f1b31 28%,
      #5b1424 54%,
      #281018 78%,
      #08090b 100%
    );
}

.movies::before {
  content: "ANIMATION";
  position: absolute;
  top: 16%;
  right: 2vw;
  color: rgba(255,255,255,.10);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: clamp(4.5rem, 9vw, 10rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: .9;
  white-space: nowrap;
  pointer-events: none;
}


.movies::after {
  content: "✦";
  position: absolute;
  top: 11%;
  left: 8%;
  z-index: 1;
  color: rgba(255,255,255,.96);
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  line-height: 1;
  pointer-events: none;
  text-shadow:
    16vw 4.5rem 0 rgba(255,255,255,.92),
    39vw 1.2rem 0 rgba(255,255,255,.86),
    57vw 8.5rem 0 rgba(255,255,255,.88),
    74vw 2.8rem 0 rgba(255,255,255,.92),
    81vw 11rem 0 rgba(255,255,255,.78);
}

.movie-layout {
  position: relative;
  z-index: 2;
  padding-left: 64px;
  box-sizing: border-box;
}

.movie-layout::before,
.movie-layout::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 22px;
  pointer-events: none;
  opacity: .95;
  background:
    radial-gradient(circle, rgba(255,223,139,.95) 0 2px, transparent 3px) center 0/100% 10px no-repeat,
    radial-gradient(circle, rgba(255,223,139,.95) 0 2px, transparent 3px) center 100%/100% 10px no-repeat,
    linear-gradient(rgba(212,176,92,.78), rgba(212,176,92,.78)) center/1px calc(100% - 22px) no-repeat;
}

.movie-layout::before {
  left: 8px;
}

.movie-layout::after {
  display: none;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #050c14;
}

.movie-player::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}

.movie-player::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 10px;
  border: 1px solid rgba(218, 185, 103, .64);
  pointer-events: none;
}

.movie-player--main::after,
.movie-player--extra::after {
  box-shadow:
    inset 0 0 0 1px rgba(255, 231, 166, .10);
}

.movie-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .9rem;
  color: rgba(255,255,255,.72);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .68rem;
  letter-spacing: .14em;
}

.movie-kicker::after {
  content: "";
  flex: 1;
  min-width: 48px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(218,185,103,.78) 0%,
    rgba(218,185,103,.24) 100%
  );
}

.movies .section-head,
.movie-layout {
  width: min(1500px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.movies .section-head {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(44px, 5vw, 72px);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.24);
}

.movies .section-head__num {
  color: #ffd400;
  text-shadow: 6px 6px 0 #321014;
  -webkit-text-stroke-color: #321014;
}

.movies .section-head__sub {
  color: rgba(255,255,255,.90);
}

.movies .section-head h2 {
  color: #fff;
}

.movie-layout {
  position: relative;
  z-index: 2;
  padding-left: 64px;
  box-sizing: border-box;
}

.movie-main {
  display: grid;
  grid-template-columns: minmax(210px, .34fr) minmax(0, 1.66fr);
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
}

.movie-main__meta {
  padding-bottom: clamp(8px, 1vw, 18px);
}

.movie-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .9rem;
  color: rgba(255,255,255,.72);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .68rem;
  letter-spacing: .14em;
}

.movie-kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 1.7rem;
  color: #171316;
  background: #ffd400;
  letter-spacing: 0;
}

.movie-main__meta h3,
.movie-extra__meta h3 {
  margin: 0 0 .85rem;
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: .045em;
}

.movie-main__meta > p:last-child,
.movie-extra__meta > p:last-child {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(.8rem, .92vw, .94rem);
  font-weight: 700;
  line-height: 1.8;
}

.movie-player {
  position: relative;
  overflow: hidden;
  background: #050c14;
}

.movie-player::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}

.movie-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.movie-player--main {
  box-shadow: 0 28px 72px rgba(0,0,0,.28);
}

.movie-main::after {
  display: none;
}

.movie-main {
  position: relative;
}

.movie-extra {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .58fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  width: min(980px, 76%);
  margin: clamp(92px, 9vw, 132px) 0 0 auto;
  padding-top: clamp(28px, 3vw, 42px);
  border-top: 1px solid rgba(255,255,255,.18);
}

.movie-player--extra {
  box-shadow: 0 20px 52px rgba(0,0,0,.22);
}

.movie-extra .movie-kicker span {
  background: #ffd400;
}

.movie-extra__meta h3 {
  color: #ffd400;
}

@media (max-width: 1050px) {
  .movies .section-head,
  .movie-layout {
    width: min(100% - 36px, 1500px);
  }

  .movie-layout {
    padding-left: 52px;
  }

  .movie-layout::before {
    left: 6px;
  }

  .movie-main {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }

  .movie-extra {
    width: min(860px, 88%);
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

@media (max-width: 720px) {
  .movies {
    padding-top: 78px;
    padding-bottom: 110px;
  }

  .movies::after {
    top: 9%;
    left: 10%;
    font-size: 1rem;
    text-shadow:
      34vw 2.8rem 0 rgba(255,255,255,.86),
      58vw .8rem 0 rgba(255,255,255,.82),
      72vw 6rem 0 rgba(255,255,255,.72);
  }

  .movie-layout {
    padding-left: 38px;
  }

  .movie-layout::before {
    top: 4px;
    bottom: 4px;
    left: 2px;
    width: 16px;
  }

  .movie-layout::after {
    display: none;
  }

  .movie-player::after {
    inset: 8px;
  }

  .movies .section-head,
  .movie-layout {
    width: min(100% - 22px, 1500px);
  }

  .movies::before {
    top: 12%;
    font-size: 4rem;
  }

  .movie-main,
  .movie-extra {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .movie-main {
    gap: 22px;
  }

  .movie-main__meta {
    order: 0;
    max-width: 34rem;
    padding-bottom: 0;
  }

  .movie-player--main {
    order: 1;
  }

  .movie-extra {
    width: 100%;
    margin-top: 82px;
    padding-top: 30px;
    gap: 24px;
  }

  .movie-player--extra {
    width: min(92%, 520px);
  }

  .movie-extra__meta {
    max-width: 34rem;
  }
}


/* TOP立ち絵：PC版で決めた4人の比率を維持したレスポンシブ配置。 */
@media (max-width: 1400px) and (min-width: 1051px) {
  .hero__cast {
    inset: auto;
    right: -6vw;
    bottom: 0;
    width: 112vw;
    height: 53.26vw;
  }

  .hero__person--yul {
    right: 25%;
    bottom: 10%;
    height: 120%;
  }

  .hero__person--gilbert {
    right: 5%;
    bottom: 5%;
    height: 120%;
  }

  .hero__person--elt {
    right: 20%;
    bottom: 5%;
    height: 120%;
  }

  .hero__person--colette {
    right: 15%;
    bottom: 0;
    height: 120%;
  }
}

@media (max-width: 1050px) {
  :root {
    --stage-height: 750px;
  }

  .hero {
    min-height: 900px;
  }

  .hero__copy {
    width: 70vw;
  }

  /* 4人を個別に置き直さず、PC版の配置比率を保ったままグループ全体を縮小する。 */
  .hero__cast {
    inset: auto;
    right: -14vw;
    bottom: 0;
    width: 128vw;
    height: 60.87vw;
  }

  .hero__person--yul {
    right: 25%;
    bottom: 10%;
    height: 120%;
  }

  .hero__person--gilbert {
    right: 5%;
    bottom: 5%;
    height: 120%;
  }

  .hero__person--elt {
    right: 20%;
    bottom: 5%;
    height: 120%;
  }

  .hero__person--colette {
    right: 15%;
    bottom: 0;
    height: 120%;
  }

  .rainbow-character-stage {
    height: 750px;
    min-height: 750px;
    max-height: 750px;
  }

  .character-profile {
    grid-template-columns: 38% 62%;
  }

  .profile-facts {
    grid-template-columns: 1fr 1fr;
  }

  .character-focus__portrait {
    width: 76%;
  }

  .character-focus__quote {
    max-width: 75%;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 790px;
  }

  .hero__copy {
    top: 72px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero__title {
    font-size: clamp(4rem, 21vw, 7rem);
  }

  .hero__lead {
    margin-left: 0;
  }

  .hero__summary {
    display: none;
  }

  .hero__menu {
    margin-left: 0;
  }

  /* スマホもPC版と同じ4人の比率を維持。小さくなりすぎないようグループだけ拡大する。 */
  .hero__cast {
    right: -15vw;
    bottom: 0;
    width: 160vw;
    height: 76.09vw;
  }

  .characters {
    width: min(100% - 22px, 1500px);
    padding-top: 76px;
  }

  .section-head {
    gap: .7rem;
  }

  .character-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .character-tab {
    padding: .75rem .7rem;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .rainbow-character-stage {
    /* PC版は固定したまま、スマホだけ縦長だったステージを約半分へ。 */
    height: clamp(560px, 155vw, 640px);
    min-height: clamp(560px, 155vw, 640px);
    max-height: clamp(560px, 155vw, 640px);
    border-width: 8px;
    overflow-clip-margin: 8px;
    box-shadow: 7px 8px 0 var(--ink);
  }

  .character-focus__portrait {
    right: -19%;
    bottom: 4%;
    width: 116%;
    height: 83%;
  }

  .character-focus__quote {
    /* スマホでは中央を塞がず、画面上辺に沿う位置へ。 */
    top: 13%;
    max-width: 98%;
    padding-left: 1.2rem;
    transform: rotate(-3deg);
  }

  .character-focus__name {
    left: 18px;
    bottom: 120px;
  }

  .character-focus__en {
    font-size: clamp(2.6rem, 14vw, 5.2rem);
  }

  .profile-button {
    left: 16px;
    bottom: 18px;
    min-width: 210px;
    font-size: 1.25rem;
  }

  .character-profile {
    display: block;
    overflow-y: auto;
  }

  .character-profile__figure {
    height: 390px;
  }

  .character-profile__figure > img {
    bottom: 0;
    height: 100%;
  }

  .character-profile__content {
    height: auto;
    min-height: 680px;
    padding: 22px 16px 84px;
    background: var(--accent);
  }

  .profile-scroll {
    overflow: visible;
  }

  .profile-facts,
  .battle-grid {
    grid-template-columns: 1fr;
  }

  .back-button {
    right: 16px;
    min-width: 210px;
  }

  .rainbow-character-stage.is-profile .character-profile {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__stripe-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


.rainbow-back-home {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem 1rem;
  color: #fff;
  background: rgba(23, 19, 22, .92);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 5px 5px 0 rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .05em;
  backdrop-filter: blur(8px);
  transition: transform .2s var(--ease-snap), box-shadow .2s ease;
}

.rainbow-back-home:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, .55);
}

@media (max-width: 720px) {
  .rainbow-back-home {
    top: 10px;
    left: 10px;
    min-height: 36px;
    padding: .5rem .7rem;
    font-size: .65rem;
  }
}




@media (max-width: 720px) {
  .character-focus__quote {
    top: 7%;
  }
}



/* キャラクター切り替えの色面は背景専用。人物と文字は常に手前へ置く。 */
.character-focus {
  z-index: 2;
}

.character-profile {
  z-index: 3;
}


/* STORY最終場面とMOVIEの間に余白色を挟まない。 */
.story-flow + .movies,
.story + .movies {
  margin-top: 0;
}


.movies + .game {
  padding-top: 44px;
}

/* ========================================
   04 — GAME
   02 STORY に寄せた整理版。
   白い角丸パネルの中に、左画像 / 右情報で集約。
   ======================================== */

.game {
  --game-accent: #2767ff;
  position: relative;
  padding: 0 0 clamp(96px, 9vw, 140px);
  color: var(--ink);
  background: var(--page-bg);
}

.game > .section-head,
.game-layout {
  width: min(1500px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.section-head--game {
  margin-bottom: 0;
  padding: clamp(34px, 3.6vw, 52px) 0 34px;
  border-bottom: 1px solid rgba(23, 19, 22, .22);
}

.game .section-head__num {
  color: var(--game-accent);
}

.game-layout {
  padding-top: clamp(34px, 4vw, 48px);
}

.game-panel {
  padding: clamp(36px, 4vw, 52px);
  border: 4px solid var(--ink);
  border-radius: 34px;
  background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: clamp(42px, 4.8vw, 64px);
  align-items: center;
}

.game-feature__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.game-shot {
  margin: 0;
}

.game-shot--play {
  margin-top: 20px;
}

.game-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(23, 19, 22, .18);
  background: #fff;
}

.game-shot figcaption {
  margin-top: .55rem;
  color: rgba(23, 19, 22, .62);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.game-feature__copy {
  max-width: 620px;
}

.game-feature__copy h3 {
  margin: 0;
  font-family: "Arial Black", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: .01em;
}

.game-section__place {
  margin: .45rem 0 1.35rem;
  color: rgba(23, 19, 22, .58);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.game-spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 22px;
  border-top: 1px solid rgba(23, 19, 22, .15);
  border-bottom: 1px solid rgba(23, 19, 22, .15);
}

.game-spec__item {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  min-width: 240px;
  padding: 12px 26px 12px 0;
}

.game-spec__item + .game-spec__item {
  padding-left: 26px;
  border-left: 1px solid rgba(23, 19, 22, .15);
}

.game-spec dt {
  margin: 0;
  color: var(--game-accent);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.game-spec dd {
  margin: 0;
  font-size: .86rem;
  font-weight: 750;
}

.game-spec__note {
  display: inline-block;
  margin-left: .65rem;
  padding-left: .65rem;
  border-left: 1px solid rgba(23, 19, 22, .18);
  color: var(--game-accent);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.game-runtime-note {
  margin: 0 0 1.35rem;
  color: rgba(23, 19, 22, .72);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.8;
}

.game-review-link {
  display: inline-flex;
  align-items: center;
  gap: .95rem;
  padding: .82rem 1.08rem .78rem;
  border: 1px solid rgba(39, 103, 255, .42);
  color: var(--game-accent);
  background: transparent;
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.game-review-link:hover,
.game-review-link:focus-visible {
  color: #fff;
  background: var(--game-accent);
  transform: translateY(-2px);
}

.game-review-link__arrow {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 980px) {
  .game > .section-head,
  .game-layout {
    width: min(100% - 36px, 1500px);
  }

  .game-feature {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
  }

  .game-feature__shots {
    max-width: 430px;
  }

  .game-feature__copy {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .game > .section-head,
  .game-layout {
    width: min(100% - 22px, 1500px);
  }

  .section-head--game {
    padding-top: 34px;
    padding-bottom: 26px;
  }

  .game-layout {
    padding-top: 26px;
  }

  .game-panel {
    padding: 26px 20px;
    border-radius: 24px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .game-feature__shots {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .game-shot--play {
    margin-top: 12px;
  }

  .game-feature__copy h3 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .game-spec {
    display: block;
  }

  .game-spec__item {
    min-width: 0;
    padding: 11px 0;
  }

  .game-spec__item + .game-spec__item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(23, 19, 22, .10);
  }

  .game-spec__note {
    display: block;
    margin: .35rem 0 0;
    padding: 0;
    border-left: 0;
  }
}

/* ========================================
   05 — AFTERWORD
   「零からゼロへ」のあとがきセクションと同系統。
   ======================================== */

.rainbow-afterword {
  background: #fff1e8;
  padding: 140px max(6vw, calc(50vw - 600px)) 155px;
}

.rainbow-afterword .afterword-grid {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(58px, 8vw, 118px);
}

.rainbow-afterword .afterword-heading {
  position: sticky;
  top: 112px;
}

.afterword-section-label {
  margin: 0 0 25px;
  color: #c35f62;
  font: 9px/1.3 ui-monospace, monospace;
  letter-spacing: .24em;
}

.afterword-title-reveal {
  width: fit-content;
  max-width: 100%;
  margin: -9px -14px -12px;
  padding: 9px 14px 12px;
}

.afterword-title-reveal h2 {
  max-width: 9.5em;
  margin: 0;
  color: #5f3340;
  font-family: "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.2;
}

.rainbow-afterword .afterword-copy {
  position: relative;
  min-width: 0;
  padding: 21px 0 34px;
  border-top: 1px solid rgba(190, 112, 103, .34);
  border-bottom: 1px solid rgba(190, 112, 103, .34);
}

.rainbow-afterword .afterword-copy::before {
  content: "05";
  position: absolute;
  top: 90px;
  right: -20px;
  pointer-events: none;
  color: #d58b7d;
  opacity: .045;
  font: 132px/.8 ui-monospace, monospace;
}

.rainbow-afterword .afterword-copy-head,
.rainbow-afterword .afterword-end {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #a46f6b;
  font: 8px/1 ui-monospace, monospace;
  letter-spacing: .18em;
}

.rainbow-afterword .afterword-copy-head i,
.rainbow-afterword .afterword-end i {
  height: 1px;
  flex: 1;
  background: rgba(190, 112, 103, .42);
}

.rainbow-afterword .afterword-body {
  position: relative;
  max-width: 690px;
  margin: 52px auto 0;
}

.rainbow-afterword .afterword-body p {
  margin: 0;
  color: #60464d;
  font-size: 13px;
  line-height: 2.35;
  text-wrap: pretty;
}

.rainbow-afterword .afterword-body p + p {
  margin-top: 31px;
}

.rainbow-afterword .afterword-end {
  margin-top: 50px;
}

.rainbow-afterword .afterword-end i {
  max-width: 86px;
}



.afterword-credits {
  max-width: 34em;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(190, 112, 103, .28);
}

.afterword-credits-title {
  margin: 0 0 17px;
  color: #b96768;
  font: 8px/1 ui-monospace, monospace;
  letter-spacing: .22em;
}

.afterword-credits dl,
.afterword-credits dd {
  margin: 0;
}

.afterword-credits dl > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 10px;
}

.afterword-credits dl > div + div {
  margin-top: 10px;
}

.afterword-credits dt {
  color: #a96e70;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .08em;
}

.afterword-credits dd {
  color: #6d4f55;
  font-size: 10px;
  line-height: 1.8;
}

.afterword-disclosure {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(190, 112, 103, .22);
}

.afterword-disclosure-title {
  margin: 0 0 12px;
  color: #b96768;
  font: 8px/1 ui-monospace, monospace;
  letter-spacing: .18em;
}

.afterword-disclosure p:not(.afterword-disclosure-title) {
  margin: 0;
  color: #765a60;
  font-size: 10px;
  line-height: 1.9;
}

@media (max-width: 720px) {
  .afterword-credits {
    margin-top: 34px;
  }

  .afterword-credits dl > div {
    grid-template-columns: 5em minmax(0, 1fr);
  }
}


/* ========================================
   FOOTER / AI DISCLOSURE
   ======================================== */

.rainbow-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  min-height: 250px;
  padding: 76px max(6vw, calc(50vw - 600px)) 66px;
  overflow: hidden;
  color: #fff;
  background: #25151f;
}

.rainbow-footer__palette {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 8px;
}

.rainbow-footer__palette span:nth-child(1) { background: #ff8b69; }
.rainbow-footer__palette span:nth-child(2) { background: #72d8ff; }
.rainbow-footer__palette span:nth-child(3) { background: #ffd400; }
.rainbow-footer__palette span:nth-child(4) { background: #2767ff; }

.rainbow-footer__title {
  margin: 0;
  color: #fff;
  font-family: "Arial Black", "BIZ UDPGothic", "Yu Gothic", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: .04em;
}

.rainbow-footer__home {
  align-self: end;
  justify-self: end;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  opacity: .78;
}

.rainbow-footer__home:hover,
.rainbow-footer__home:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rainbow-ai-note {
  grid-column: 1 / -1;
  margin: 42px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.58);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: .08em;
}

/* ========================================
   BACK TO TOP
   ======================================== */

.page-top-button {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  color: #fff;
  background: rgba(23,19,22,.90);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(23,19,22,.14);
  transition:
    transform .18s ease,
    background .18s ease;
}

.page-top-button:hover,
.page-top-button:focus-visible {
  background: #2767ff;
  transform: translateY(-3px);
}

@media (max-width: 800px) {
  .rainbow-afterword {
    padding: 88px 18px 100px;
  }

  .rainbow-afterword .afterword-grid {
    display: block;
  }

  .rainbow-afterword .afterword-heading {
    position: static;
  }

  .afterword-title-reveal h2 {
    max-width: none;
    font-size: clamp(28px, 8.7vw, 42px);
  }

  .rainbow-afterword .afterword-copy {
    margin-top: 52px;
    padding-top: 18px;
  }

  .rainbow-afterword .afterword-copy::before {
    top: 76px;
    right: 0;
    font-size: 86px;
  }

  .rainbow-afterword .afterword-body {
    margin-top: 38px;
  }

  .rainbow-afterword .afterword-body p {
    font-size: 12px;
    line-height: 2.2;
  }

  .rainbow-footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 56px 22px;
  }

  .rainbow-footer__home {
    justify-self: start;
    margin-top: 42px;
  }

  .rainbow-ai-note {
    grid-column: 1;
    margin-top: 34px;
  }

  .page-top-button {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 720px) {
  .hero__menu {
    width: min(230px, 100%);
  }

  .hero__jump {
    min-height: 43px;
    padding-top: .64rem;
    padding-bottom: .64rem;
  }
}



body.is-loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, #fffaf0 0%, #f6efe3 100%);
  transition: opacity .45s ease, visibility .45s ease;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  width: min(460px, calc(100vw - 48px));
  padding: 34px 32px 28px;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 10px 10px 0 var(--ink);
  text-align: center;
}

.site-loader__label {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: .16em;
}

.site-loader__bar {
  position: relative;
  height: 20px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #efe7d7;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.5);
}

.site-loader__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8b69 0%, #ffd84d 48%, #72d8ff 100%);
  transition: width .22s ease;
}

.site-loader__percent {
  margin: 12px 0 0;
  color: #4f4741;
  font-family: "Arial Black", "BIZ UDPGothic", sans-serif;
  font-size: .9rem;
  letter-spacing: .12em;
}

.no-js .site-loader {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader__fill {
    transition: none;
  }
}


.no-js body.is-loading {
  overflow: auto;
}


@media (max-width: 480px) {
  .hero__cast {
    right: -38vw;
    width: 176vw;
    height: 83.70vw;
  }
}
