/* 書体の文字範囲定義は自動生成ファイルで管理する。 */
@import url('/fonts/zen-old-mincho.css');

/* 英語版も日本語版の書体・文字サイズ・配置を正本とする。 */
html[lang='en'] .hero__title img {
  /* 枠なしA版の透明余白を除去し、0929のSP指定幅へ揃える。 */
  width: calc(267.72 * var(--hero-unit));
}
html[lang='en'] .introduction {
  padding-bottom: calc(120.5 * var(--intro-unit));
}
html[lang='en'] .staff-cast__credit {
  gap: calc(4 * var(--staff-unit));
}
html[lang='en'] .staff-cast__credit--noted {
  gap: calc(4 * var(--staff-unit));
  align-items: baseline;
}
html[lang='en'] .staff-cast__credit--noted .staff-cast__note {
  display: block;
  margin-left: 0;
  font-size: calc(10 * var(--staff-unit));
  line-height: calc(16 * var(--staff-unit));
}
@media (min-width: 900px) {
  html[lang='en'] .introduction {
    padding-bottom: 146px;
  }
  html[lang='en'] .staff-cast {
    padding-block: 113px;
  }
  html[lang='en'] .staff-cast__heading {
    margin-top: 335.21px;
  }
  html[lang='en'] .introduction__copy {
    max-width: calc(1200px + 0.06em);
  }
  html[lang='en'] .staff-cast__row:first-child {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    width: fit-content;
    margin-inline: auto;
  }
  html[lang='en'] .staff-cast__credit {
    gap: 8px;
  }
  html[lang='en'] .staff-cast__credit--noted {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px;
  }
  html[lang='en'] .staff-cast__credit--noted .staff-cast__note {
    display: inline;
    margin-left: 8px;
    font-size: 16px;
    line-height: 1;
  }
}
html[lang='en'] .staff-cast__note {
  margin-left: calc(8 * var(--staff-unit));
}
@media (max-width: 374px) {
  /* 375px原稿より狭い画面でも、役職と名前を途中で分断しない。 */
  html[lang='en'] .staff-cast__credit {
    flex-wrap: wrap;
    row-gap: 0;
  }
  html[lang='en'] .staff-cast__credit dt,
  html[lang='en'] .staff-cast__credit dd {
    white-space: nowrap;
  }
}

html[lang='en'] .hero__announcement {
  height: calc(177.96 * var(--hero-unit));
}
.hero__english-announcement {
  display: block;
}
html[lang='en'] .hero__english-announcement img {
  width: calc(327 * var(--hero-unit));
  top: calc(-7.54 * var(--hero-unit));
  margin-top: 0;
  transform: translateX(-50%);
}
.menu-panel__languages a:not([aria-current='page']) {
  opacity: 0.3;
}
@media (min-width: 900px) {
  html[lang='en'] .hero__title img {
    width: calc(418 * var(--hero-unit));
  }
  html[lang='en'] .hero__announcement {
    height: calc(256.12 * var(--hero-unit));
  }
  html[lang='en'] .hero__english-announcement img {
    width: calc(512.5 * var(--hero-unit));
    top: calc(-11.38 * var(--hero-unit));
  }
}

/* ===== base ===== */

:root {
  --color-introduction: #801214;
  --color-introduction-accent: #840002;
  --color-black: #000;
  --color-white: #fff;
  --color-gold: #eace69;
  --layer-menu: 10;
  --color-gold-muted: #51482d;
  --font-body-serif:
    'Zen Old Mincho', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: var(--color-white);
  background: var(--color-black);
}

body {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

:root[data-input-method='pointer'] :focus:focus-visible {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-block-start: 0;
  inset-inline-start: 0;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  background: var(--color-black);
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===== home ===== */

.page-main,
.footer {
  max-width: 1920px;
  margin-inline: auto;
}

.page-main {
  container-type: inline-size;
}

/* ===== menu ===== */

.site-menu,
.menu-panel {
  --menu-unit: min(0.266666667cqw, 1px);
}
.site-menu,
.menu-panel__close {
  position: fixed;
  top: calc(21.28 * var(--menu-unit));
  left: calc(23.37 * var(--menu-unit));
  width: calc(91.11 * var(--menu-unit));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-menu {
  --menu-unit: 0.266666667cqw;
  z-index: var(--layer-menu);
  opacity: 1;
}
.site-menu[aria-expanded='true'] {
  visibility: hidden;
}
.site-menu img,
.menu-panel img {
  display: block;
  max-width: none;
}
.site-menu img,
.menu-panel__close img {
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 500ms ease;
}
.site-menu:focus-visible,
.menu-panel__close:focus-visible,
.menu-panel__links a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}
html:has(.menu-panel[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.menu-panel {
  --menu-fade-duration: 500ms;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--color-gold);
  font-family: var(--font-body-serif);
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}
.menu-panel[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) min(16.491754dvh, 180px);
}
.menu-panel::backdrop {
  background: transparent;
}
.menu-panel__left {
  position: relative;
  min-width: 0;
  min-height: 0;
}
.menu-panel__sheet {
  position: absolute;
  inset: 0;
  background: var(--color-black);
  opacity: 0;
  transition: opacity var(--menu-fade-duration) ease;
}
.menu-panel__scroll {
  display: flex;
  height: 100%;
  padding: calc(81 * var(--menu-unit)) 20px calc(56.788 * var(--menu-unit));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.menu-panel__content {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(268.0705 * var(--menu-unit));
  margin: auto;
}
.menu-panel__links {
  display: grid;
  gap: calc(16 * var(--menu-unit));
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-panel__links a {
  display: block;
  width: calc(177.75 * var(--menu-unit));
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: opacity 180ms ease;
}
.menu-panel__links picture,
.menu-panel__links img {
  display: block;
  width: 100%;
  height: calc(38 * var(--menu-unit));
}
.menu-panel__links span {
  display: block;
  font-size: calc(12 * var(--menu-unit));
  font-weight: 700;
  line-height: calc(17 * var(--menu-unit));
}
.menu-panel__divider {
  width: calc(214.457 * var(--menu-unit));
  height: calc(8.356 * var(--menu-unit));
  margin-top: calc(24 * var(--menu-unit));
}
.menu-panel__content > nav + .menu-panel__divider {
  margin-top: 40px;
}
.menu-panel__languages {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--menu-unit));
  height: calc(13 * var(--menu-unit));
  margin-top: calc(24 * var(--menu-unit));
}
.menu-panel__languages img {
  width: auto;
  height: calc(12.75 * var(--menu-unit));
}
.menu-panel__language-line {
  width: calc(0.75 * var(--menu-unit));
  height: 100%;
  background: var(--color-gold);
}
.menu-panel__official {
  display: flex;
  align-items: center;
  gap: calc(13.5 * var(--menu-unit));
  margin-top: calc(24 * var(--menu-unit));
  color: var(--color-white);
}
.menu-panel__official span {
  font-size: calc(9 * var(--menu-unit));
  font-weight: 700;
  line-height: calc(12.75 * var(--menu-unit));
}
.menu-panel__official img {
  width: calc(24.94065 * var(--menu-unit));
  height: calc(25.5 * var(--menu-unit));
}
.menu-panel__close {
  --menu-unit: 0.266666667cqw;
  /* ダイアログ表示中は装飾ボタンを消さず、閉じた同じフレームで元ボタンへ戻す。 */
  opacity: 1;
}
.menu-button__art {
  position: relative;
  display: block;
  transition: transform 500ms ease;
}
.menu-button__line {
  position: absolute;
  left: 36.578175%;
  top: 44.509091%;
  width: 26.908029%;
  height: 1.570909%;
  background: var(--color-gold);
  transform-origin: center;
  transition:
    top 350ms ease,
    transform 350ms ease;
}
.menu-button__line--second {
  top: 53.934545%;
}
.menu-panel[data-state='open'] .menu-button__line {
  top: 49.221818%;
}
.menu-panel[data-state='open'] .menu-button__line--first {
  transform: rotate(30deg);
}
.menu-panel[data-state='open'] .menu-button__line--second {
  transform: rotate(-30deg);
}
@media (prefers-reduced-motion: reduce) {
  .menu-button__line {
    transition: none;
  }
}
.menu-panel__scene {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  opacity: 0;
  transition: opacity var(--menu-fade-duration) ease;
}
.menu-panel__scene img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease-out;
}
.menu-panel__scene img[data-ready='true'] {
  opacity: 1;
}
.menu-panel__scene img[hidden] {
  display: none;
}
/* SP_menu 2:4752。上の黒面で隠れる分も含めて元の絵を配置する。 */
.menu-panel__scene [data-menu-art='courtyard'] {
  width: max(calc(606 * var(--menu-unit)), calc(100% + 116 * var(--menu-unit)));
  height: auto;
  aspect-ratio: 606 / 421;
  left: calc(50% + 57.5 * var(--menu-unit));
  top: calc(-213 * var(--menu-unit));
  transform: translateX(-50%);
}
.menu-panel__art {
  position: absolute;
  inset: 0;
  transform: scale(1.1);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-panel[data-state='open'] .menu-panel__sheet,
.menu-panel[data-state='open'] .menu-panel__scene {
  opacity: 1;
}
.menu-panel[data-state='open'] .menu-panel__art {
  transform: scale(1);
  transition-duration: 2000ms;
}
.menu-panel[data-phase='opening'] .menu-panel__sheet,
.menu-panel[data-phase='closing'] .menu-panel__sheet,
.menu-panel[data-phase='opening'] .menu-panel__scene,
.menu-panel[data-phase='closing'] .menu-panel__scene {
  will-change: opacity;
}
.menu-panel[data-state='closed'] .menu-panel__sheet,
.menu-panel[data-state='closed'] .menu-panel__scene,
.menu-panel[data-state='closed'] .menu-panel__art {
  transition: none;
}
@media (hover: hover) {
  .site-menu:hover .menu-button__art,
  .menu-panel__close:hover .menu-button__art {
    transform: scale(0.9);
  }
  .menu-panel__links a:hover {
    opacity: 0.3;
  }
}
@media (max-width: 899px) {
  html[lang='en'] .menu-panel__links a::after {
    content: '';
    display: block;
    height: calc(17 * var(--menu-unit));
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .site-menu,
  .menu-panel__close {
    --menu-unit: min(0.266666667cqw, 1.6px);
  }
}
@media (min-width: 900px) {
  .site-menu,
  .menu-panel,
  .menu-panel__close {
    --menu-unit: min(0.069444444cqw, 0.1001001svh, 1px);
  }
  .site-menu,
  .menu-panel__close {
    /* 開閉ボタンの縮小は幅基準の90%まで。低い画面でも操作サイズを保つ。 */
    --menu-unit: min(
      0.069444444cqw,
      max(min(0.0625cqw, 0.9px), 0.1001001svh),
      1px
    );
    top: calc(50.21 * var(--menu-unit));
    left: calc(max(0px, (100% - 1920px) / 2) + 50.59 * var(--menu-unit));
    width: calc(136.66 * var(--menu-unit));
  }
  /* PC_menu 2:4421の黒面は760/1440。舞台絵は残り680px。 */
  .menu-panel[open] {
    grid-template-columns: 760fr 680fr;
    grid-template-rows: minmax(0, 1fr);
  }
  .menu-panel__scroll {
    padding-block: calc(100 * var(--menu-unit)) calc(94.7173 * var(--menu-unit));
  }
  .menu-panel__content {
    width: calc(357.4273 * var(--menu-unit));
  }
  .menu-panel__links {
    gap: calc(40 * var(--menu-unit));
  }
  .menu-panel__links a {
    width: calc(237 * var(--menu-unit));
  }
  .menu-panel__links picture,
  .menu-panel__links img {
    height: calc(53 * var(--menu-unit));
  }
  .menu-panel__links span {
    font-size: calc(18 * var(--menu-unit));
    line-height: calc(26 * var(--menu-unit));
  }
  .menu-panel__divider {
    width: calc(285.94226 * var(--menu-unit));
    height: calc(11.141336 * var(--menu-unit));
    margin-top: calc(40 * var(--menu-unit));
  }
  .menu-panel__content > nav + .menu-panel__divider {
    margin-top: 64px;
  }
  .menu-panel__languages {
    height: calc(17 * var(--menu-unit));
    margin-top: calc(40 * var(--menu-unit));
    gap: calc(8 * var(--menu-unit));
  }
  .menu-panel__languages img {
    height: calc(17 * var(--menu-unit));
  }
  .menu-panel__language-line {
    width: var(--menu-unit);
  }
  .menu-panel__official {
    gap: calc(18 * var(--menu-unit));
    margin-top: calc(40 * var(--menu-unit));
  }
  .menu-panel__official span {
    font-size: calc(12 * var(--menu-unit));
    line-height: calc(17 * var(--menu-unit));
  }
  .menu-panel__official img {
    width: calc(33.2542 * var(--menu-unit));
    height: calc(34 * var(--menu-unit));
  }
  /* PC_menu 2:4420。Figma原寸では絵の中心が右面の中心より47px左。 */
  .menu-panel__scene [data-menu-art='courtyard'] {
    width: auto;
    min-width: 100%;
    height: 102.9296875%;
    left: calc(50% - 47 * var(--menu-unit));
    top: -0.78125%;
    aspect-ratio: 1518 / 1054;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu img,
  .menu-panel[data-state] .menu-panel__art,
  .menu-panel[data-state] .menu-panel__sheet,
  .menu-panel[data-state] .menu-panel__scene,
  .menu-panel[data-state] .menu-panel__content,
  .menu-panel[data-state] .menu-panel__close,
  .menu-panel[data-state] .menu-panel__close img,
  .menu-panel *,
  .menu-panel *::before,
  .menu-panel *::after {
    transition: none;
  }
}

/* ===== petals ===== */

.petal-region {
  position: relative;
  isolation: isolate;
}
.petals {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  max-width: 1920px;
  margin-inline: auto;
}
.petals__viewport {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.petals__reveal,
.petals__theme {
  position: absolute;
  inset: 0;
}
.petals__theme {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.petals[data-active-slide='0'] [data-petal-theme='0'],
.petals[data-active-slide='1'] [data-petal-theme='1'],
.petals[data-active-slide='2'] [data-petal-theme='2'],
.petals[data-active-slide='3'] [data-petal-theme='3'] {
  opacity: 1;
}
.petals__reveal {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.petals[data-ready='false'] .petals__reveal {
  opacity: 0;
}
.petals__image {
  position: absolute;
  top: 0;
  left: var(--petal-x);
  width: calc(var(--petal-size) * 0.65 * var(--petal-scale, 1));
  height: auto;
  opacity: 0;
  animation: petal-fall var(--petal-duration) linear var(--petal-delay) infinite;
  animation-play-state: paused;
}
.petals__theme[data-petal-theme='3'] {
  --petal-scale: 0.5;
}
.petals[data-motion-paused='false'][data-active-slide='0']
  [data-petal-theme='0']
  .petals__image,
.petals[data-motion-paused='false'][data-active-slide='1']
  [data-petal-theme='1']
  .petals__image,
.petals[data-motion-paused='false'][data-active-slide='2']
  [data-petal-theme='2']
  .petals__image,
.petals[data-motion-paused='false'][data-active-slide='3']
  [data-petal-theme='3']
  .petals__image {
  animation-play-state: running;
}
@keyframes petal-fall {
  0% {
    transform: translate3d(0, -140px, 0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  50% {
    transform: translate3d(-60px, calc(50svh + 100px), 0) rotate(200deg);
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(40px, calc(100svh + 200px), 0) rotate(430deg)
      scale(0.85);
    opacity: 0;
  }
}
@media (min-width: 900px) {
  .petals__image {
    width: calc(var(--petal-size) * var(--petal-scale, 1));
  }
}
@media (prefers-reduced-motion: reduce) {
  .petals {
    display: none;
  }
}

.petals__image:nth-child(1) {
  --petal-x: 8%;
  --petal-size: 64px;
  --petal-duration: 17s;
  --petal-delay: -2s;
}

.petals__image:nth-child(2) {
  --petal-x: 26%;
  --petal-size: 44px;
  --petal-duration: 23s;
  --petal-delay: -6s;
}

.petals__image:nth-child(3) {
  --petal-x: 46%;
  --petal-size: 74px;
  --petal-duration: 20s;
  --petal-delay: -12s;
}

.petals__image:nth-child(4) {
  --petal-x: 63%;
  --petal-size: 52px;
  --petal-duration: 26s;
  --petal-delay: -3s;
}

.petals__image:nth-child(5) {
  --petal-x: 82%;
  --petal-size: 38px;
  --petal-duration: 19s;
  --petal-delay: -15s;
}

.petals__image:nth-child(6) {
  --petal-x: 92%;
  --petal-size: 58px;
  --petal-duration: 24s;
  --petal-delay: -9s;
}

/* ===== hero ===== */

.hero {
  /* Figma SP_ナビエ 2:5407。375pxを基準に構図を保つ。 */
  --hero-unit: 0.266666667cqw;
  position: relative;
  isolation: isolate;
  height: calc(937 * var(--hero-unit));
  overflow: hidden;
  background: url('../images/hero/hero-background-sp.svg') center / 100% 100%
    no-repeat;
}

.hero__art {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: calc(621 * var(--hero-unit));
}

.hero__art img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 899px) {
  /* Figma 115:795 / 172:2273のマスク範囲（y=399.553〜611.004）を基準に
     下端を背景へ透過させる。画像端621pxに不透明な色を残さない。
     imgに適用し、600〜899pxのpicture側の左右マスクと併用する。 */
  .hero__slide--navier .hero__art img,
  .hero__slide--rashta .hero__art img,
  .hero__slide--sovieshu .hero__art img {
    mask-image: linear-gradient(
      to bottom,
      #000 64.340258%,
      transparent 98.390338%
    );
  }
}

.hero__content {
  position: absolute;
  top: calc(426.51 * var(--hero-unit));
  left: calc(28 * var(--hero-unit));
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(318.64 * var(--hero-unit));
}

.hero__title {
  position: relative;
  width: calc(267.72 * var(--hero-unit));
  height: calc(209.78 * var(--hero-unit));
  margin: 0 0 calc(16 * var(--hero-unit));
}

.hero__title img,
.hero__announcement img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.hero__title img {
  /* 書き出しに含まれる影を、Figmaの選択領域の外へ戻す。 */
  width: calc(307 * var(--hero-unit));
}

.hero__title .hero__logo--unframed {
  /* Figma image 32 (68:475) の装飾なし版。支給原本を既存のロゴ領域に収める。 */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__announcement {
  --shine-bottom: calc(47.4822 * var(--hero-unit));
  position: relative;
  width: calc(318.64 * var(--hero-unit));
  height: calc(171.4 * var(--hero-unit));
  margin-bottom: calc(24 * var(--hero-unit));
}

.hero__announcement img {
  /* 日本語の告知も英語版と同じFigmaの2倍PNGを使用する。 */
  width: calc(319 * var(--hero-unit));
  margin-top: calc(-3.8 * var(--hero-unit));
}

/* Figma告知画像を重ね、金文字の下端で切る。赤帯・本文には光をかけない。 */
.hero__announcement-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  animation: hero-announcement-shine 8.5s ease-in-out -5.355s infinite;
  animation-play-state: paused;
}
.hero__announcement-shine img {
  filter: brightness(2.45) contrast(0.88) saturate(0.52);
}
.hero[data-shine-paused='false'] .hero__announcement-shine {
  animation-play-state: running;
}
@keyframes hero-announcement-shine {
  0%,
  63% {
    opacity: 0;
    clip-path: polygon(
      -30% 0,
      -13% 0,
      -22% var(--shine-bottom),
      -39% var(--shine-bottom)
    );
  }
  69%,
  89% {
    opacity: 0.64;
  }
  95%,
  100% {
    opacity: 0;
    clip-path: polygon(
      113% 0,
      130% 0,
      121% var(--shine-bottom),
      104% var(--shine-bottom)
    );
  }
}

.hero__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(5.5 * var(--hero-unit));
  height: calc(9.45 * var(--hero-unit));
}

.hero__dot {
  width: calc(5.25 * var(--hero-unit));
  height: calc(5.25 * var(--hero-unit));
  border-radius: 50%;
  background: rgb(255 255 255 / 25%);
}

[aria-current='true'] .hero__dot {
  background: var(--color-white);
}

.hero__arrow {
  width: calc(6 * var(--hero-unit));
  height: calc(6 * var(--hero-unit));
  margin-inline: calc(9 * var(--hero-unit));
  border-left: 1px solid var(--color-white);
  border-bottom: 1px solid var(--color-white);
  transform: rotate(45deg);
}

.hero__arrow--next {
  transform: rotate(225deg);
}

.hero__frame {
  position: absolute;
  z-index: 1;
  inset: calc(8 * var(--hero-unit)) calc(8 * var(--hero-unit))
    calc(50 * var(--hero-unit));
  --frame-cut: calc(60 * var(--hero-unit));
  --frame-top: url('../images/hero/hero-border-sp-top.svg');
  --frame-bottom: url('../images/hero/hero-border-sp-bottom.svg');
  --frame-left: url('../images/hero/hero-border-sp-left.svg');
  --frame-right: url('../images/hero/hero-border-sp-right.svg');
  --frame-tl: url('../images/hero/hero-border-sp-tl.png');
  --frame-tr: url('../images/hero/hero-border-sp-tr.png');
  --frame-bl: url('../images/hero/hero-border-sp-bl.png');
  --frame-br: url('../images/hero/hero-border-sp-br.png');
  pointer-events: none;
}

.hero__frame-piece {
  position: absolute;
  background: var(--piece-image) center / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__official {
  --hero-unit: min(0.266666667cqw, 1.6px);
  position: fixed;
  z-index: var(--layer-menu);
  top: calc(35 * var(--hero-unit));
  right: calc(68 * var(--hero-unit) + 12px);
  display: block;
  /* 大きい画面では固定幅にし、背景上の読みやすさを保つ。 */
  width: 114px;
}

.hero__official img {
  /* Figma 1005: offset 0, Gaussian stdDeviation 5, black 40%. */
  filter: drop-shadow(0 0 5px rgb(0 0 0 / 40%));
  display: block;
  width: 100%;
  height: auto;
}

/* 600〜899pxはSP構図を中央に置き、画面いっぱいへの拡大を止める。 */
@media (min-width: 600px) and (max-width: 899px) {
  .hero {
    --hero-unit: min(0.266666667cqw, 1.6px);
  }
  .hero__art {
    left: calc((100% - 375 * var(--hero-unit)) / 2);
    right: auto;
    width: calc(375 * var(--hero-unit));
    --kv-edge-fade: clamp(0px, calc((100cqw - 600px) / 2), 64px);
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 var(--kv-edge-fade),
      #000 calc(100% - var(--kv-edge-fade)),
      transparent
    );
  }
  .hero__content {
    left: calc((100% - 375 * var(--hero-unit)) / 2 + 28 * var(--hero-unit));
  }
}

@media (min-width: 900px) {
  .hero {
    /* PC構図は1920pxを上限に中央配置。文字群は左半分の中央に固定する。 */
    --hero-unit: min(0.069444444cqw, 1.333333333px);
    --hero-kv-unit: min(0.069444444cqw, 1.333333333px);
    max-width: 1920px;
    margin-inline: auto;
    height: 100svh;
    min-height: max(400px, calc(760 * var(--hero-unit)));
    background-image: url('../images/hero/hero-background-pc.svg');
  }

  .hero__art {
    inset: 0 0 auto auto;
    width: calc(871 * var(--hero-kv-unit));
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 8.3%);
  }

  .hero__art img {
    --hero-art-top: min(
      0px,
      calc(
        var(--hero-art-offset, -209) * var(--hero-kv-unit) +
          (100% - 999 * var(--hero-kv-unit)) * 0.35
      )
    );
    position: absolute;
    right: calc(-57 * var(--hero-kv-unit));
    top: var(--hero-art-top);
    width: auto;
    height: max(
      calc(1361 * var(--hero-kv-unit)),
      calc(100% - var(--hero-art-top))
    );
  }

  .hero__slide--heinrey .hero__art img,
  .hero__slide--sovieshu .hero__art img,
  .hero__slide--rashta .hero__art img {
    right: calc(-137 * var(--hero-kv-unit));
  }

  .hero__slide--rashta .hero__art img {
    --hero-art-offset: -210;
  }
  .hero__slide--sovieshu .hero__art img {
    --hero-art-offset: -205;
  }

  .hero__slide--heinrey .hero__art img {
    mask-image: linear-gradient(90deg, transparent, #000 8.3%);
  }

  /* Figma 1005: 197:1931 / 197:2272。色のグラデーションは素材内、透過はここで適用。 */
  .hero__slide--rashta .hero__art,
  .hero__slide--sovieshu .hero__art {
    mask-image: linear-gradient(
      90deg,
      transparent calc(23.2639 * var(--hero-kv-unit)),
      #000 calc(351 * var(--hero-kv-unit))
    );
  }

  /* 10/3の境目調整。両端の透明度変化を緩め、縦のラインを目立たせない。 */
  .hero__slide--navier .hero__art {
    --hero-edge-width: calc(180 * var(--hero-kv-unit));
  }

  .hero__slide--navier .hero__art {
    mask-image: linear-gradient(
      90deg,
      transparent 0,
      rgb(0 0 0 / 3%) calc(var(--hero-edge-width) * 0.1),
      rgb(0 0 0 / 10.4%) calc(var(--hero-edge-width) * 0.2),
      rgb(0 0 0 / 21.6%) calc(var(--hero-edge-width) * 0.3),
      rgb(0 0 0 / 35.2%) calc(var(--hero-edge-width) * 0.4),
      rgb(0 0 0 / 50%) calc(var(--hero-edge-width) * 0.5),
      rgb(0 0 0 / 64.8%) calc(var(--hero-edge-width) * 0.6),
      rgb(0 0 0 / 78.4%) calc(var(--hero-edge-width) * 0.7),
      rgb(0 0 0 / 89.6%) calc(var(--hero-edge-width) * 0.8),
      rgb(0 0 0 / 97%) calc(var(--hero-edge-width) * 0.9),
      #000 var(--hero-edge-width)
    );
  }

  .hero__content {
    /* 縮小は通常の90%まで。極端に低い画面ではheroの最小高さで可読性を保つ。 */
    --hero-unit: min(
      0.069444444cqw,
      max(min(0.0625cqw, 1.2px), 0.111111111svh),
      1.333333333px
    );
    top: calc((100% - 999 * var(--hero-unit)) / 2 + 166 * var(--hero-unit));
    left: calc(25% - 284.5 * var(--hero-unit));
    width: calc(569 * var(--hero-unit));
  }

  .hero__title {
    width: calc(395.1 * var(--hero-unit));
    height: calc(309.6 * var(--hero-unit));
    margin-bottom: calc(52 * var(--hero-unit));
  }

  .hero__title img {
    width: calc(453 * var(--hero-unit));
  }

  .hero__announcement {
    --shine-bottom: calc(76.0948 * var(--hero-unit));
    width: calc(512.1 * var(--hero-unit));
    height: calc(248.82 * var(--hero-unit));
    margin-bottom: calc(52 * var(--hero-unit));
  }

  .hero__announcement img {
    width: calc(513 * var(--hero-unit));
    margin-top: calc(-6.59 * var(--hero-unit));
  }

  .hero__pagination {
    gap: calc(8 * var(--hero-unit));
    height: calc(13.5 * var(--hero-unit));
  }

  .hero__dot {
    width: calc(8 * var(--hero-unit));
    height: calc(8 * var(--hero-unit));
  }

  .hero__arrow {
    width: calc(9 * var(--hero-unit));
    height: calc(9 * var(--hero-unit));
    margin-inline: calc(12 * var(--hero-unit));
  }

  .hero__frame {
    /* PCの四隅はFigma原寸を上限にする。承認: 2026-09-10。 */
    --hero-unit: min(0.069444444cqw, 0.1001001svh, 1px);
    inset: calc(16 * var(--hero-unit)) calc(16 * var(--hero-unit))
      calc(19 * var(--hero-unit));
    --frame-cut: calc(80 * var(--hero-unit));
    --frame-top: url('../images/hero/hero-border-top.svg');
    --frame-bottom: url('../images/hero/hero-border-bottom.svg');
    --frame-left: url('../images/hero/hero-border-left.svg');
    --frame-right: url('../images/hero/hero-border-right.svg');
    --frame-tl: url('../images/hero/hero-border-tl.png');
    --frame-tr: url('../images/hero/hero-border-tr.png');
    --frame-bl: url('../images/hero/hero-border-bl.png');
    --frame-br: url('../images/hero/hero-border-br.png');
  }

  .hero__official {
    --hero-unit: min(0.069444444cqw, 1.333333333px);
    top: calc(59.79 * var(--hero-unit));
    /* SP中間幅と同じ114pxを維持し、900pxの境目で縮小させない。 */
    right: calc(max(0px, (100vw - 1920px) / 2) + 58.85 * var(--hero-unit));
    width: 114px;
  }
}
@media (max-width: 899px) {
  .hero__official {
    /* 高さは維持。装飾の透明部分を使いつつ、登場時の上移動にも余白を残す。 */
    right: calc(36 * var(--hero-unit) + 12px);
    /* 表示領域600pxで114px。以下はメニューと同じcqw基準で縮小する。 */
    width: min(114px, 19cqw);
  }
}
/* 初期状態は静止画を表示。JavaScriptが動いたときだけ演出を有効にする。 */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: url('../images/hero/hero-background-sp.svg') center / 100% 100%
    no-repeat;
  transition: opacity 0.9s ease;
}
.hero__slide[data-active='true'] {
  opacity: 1;
}
.hero__slide--heinrey {
  background-color: var(--color-black);
  background-position: top;
  background-size: 100% calc(895 * var(--hero-unit));
  background-image: url('../images/hero/hero-heinrey-background-sp.svg');
}
.hero__content {
  z-index: 2;
}
.hero__loading-mark .loader-dot1,
.hero__loading-mark .loader-dot2,
.hero__loading-mark .loader-dot3 {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hero__pagination {
  position: relative;
  width: auto;
  gap: calc(8 * var(--hero-unit));
}
.hero__pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: calc(8 * var(--hero-unit));
  min-width: 0;
  height: 28px;
  padding: 0;
  border: 0;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
}
.hero__pagination button:first-child {
  margin-right: calc(12 * var(--hero-unit));
}
.hero__pagination button:last-child {
  margin-left: calc(12 * var(--hero-unit));
}
.hero__pagination button:disabled {
  cursor: default;
}
.hero__pagination .hero__arrow {
  display: block;
  margin: 0;
}
.hero__pagination .hero__dot {
  display: block;
  flex: none;
}
/* 原画の各辺を独立した画像にし、border-imageの再分割を避ける。 */
.hero__frame-piece--top,
.hero__frame-piece--bottom {
  left: var(--frame-cut);
  width: calc(100% - 2 * var(--frame-cut));
  height: var(--frame-cut);
}
.hero__frame-piece--top {
  top: 0;
  --piece-image: var(--frame-top);
}
.hero__frame-piece--bottom {
  bottom: 0;
  --piece-image: var(--frame-bottom);
}
.hero__frame-piece--left,
.hero__frame-piece--right {
  top: var(--frame-cut);
  width: var(--frame-cut);
  height: calc(100% - 2 * var(--frame-cut));
}
.hero__frame-piece--left {
  left: 0;
  --piece-image: var(--frame-left);
}
.hero__frame-piece--right {
  right: 0;
  --piece-image: var(--frame-right);
}
.hero__frame-piece--tl,
.hero__frame-piece--tr,
.hero__frame-piece--bl,
.hero__frame-piece--br {
  --piece-image: var(--frame-br);
  width: var(--frame-cut);
  height: var(--frame-cut);
}
.hero__frame-piece--tl {
  --piece-image: var(--frame-tl);
  top: 0;
  left: 0;
}
.hero__frame-piece--tr {
  --piece-image: var(--frame-tr);
  top: 0;
  right: 0;
}
.hero__frame-piece--bl {
  --piece-image: var(--frame-bl);
  bottom: 0;
  left: 0;
}
.hero__frame-piece--br {
  --piece-image: var(--frame-br);
  bottom: 0;
  right: 0;
}

.hero__loading {
  display: none;
}
html[data-hero-intro] .hero__loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  /* loading_pc 2:4131 / loading_sp 2:5078。左端から幅36.9444%で黒に達する。 */
  background: linear-gradient(90deg, #1b0819, #000 36.944444%);
  pointer-events: none;
}
.hero__loading-mark {
  position: relative;
  width: 168px;
}
.hero__loading-mark img {
  display: block;
  width: 100%;
  height: auto;
}
html[data-hero-intro] .hero__title,
html[data-hero-intro] .hero__announcement,
html[data-hero-intro] .hero__art,
html[data-hero-intro] .hero__frame-piece,
html[data-hero-intro] .hero__pagination,
html[data-hero-intro] .hero__official {
  opacity: 0;
}
/* Canvas準備後は同じ描画面を維持し、初回演出の終了でも切り替えない。 */
.hero__frame-piece canvas {
  display: none;
  width: 100%;
  height: 100%;
}
.hero[data-frame-painted='true'] .hero__frame-piece {
  background: none;
  opacity: 1;
}
.hero[data-frame-painted='true'] .hero__frame-piece canvas {
  display: block;
}
html[data-hero-intro='playing']
  .hero:not([data-frame-painted])
  .hero__frame-piece {
  opacity: 1;
}
html[data-hero-intro] .site-menu {
  opacity: 0;
}
html[data-hero-intro='playing'] .hero__loading {
  animation: hero-loader-out 0.75s ease 2.2s both;
}
html[data-hero-intro='playing'] .hero__loading-mark {
  mask-image: linear-gradient(90deg, #000 44%, rgb(0 0 0 / 25%) 56%);
  mask-size: 250% 100%;
  animation: hero-loading-fill 2.2s linear both;
}
html[data-hero-intro='playing'] .hero__loading-mark .loader-dot1 {
  animation: hero-loading-dot 1.5s steps(1, end) infinite;
}
html[data-hero-intro='playing'] .hero__loading-mark .loader-dot2 {
  animation: hero-loading-dot 1.5s steps(1, end) 0.375s infinite;
}
html[data-hero-intro='playing'] .hero__loading-mark .loader-dot3 {
  animation: hero-loading-dot 1.5s steps(1, end) 0.75s infinite;
}
html[data-hero-intro='playing'] .hero__title {
  animation: hero-content-in 1.15s cubic-bezier(0.16, 1, 0.3, 1) 2.6s both;
}
html[data-hero-intro='playing'] .hero__announcement {
  animation: hero-content-in 1s cubic-bezier(0.16, 1, 0.3, 1) 3.1s both;
}
html[data-hero-intro='playing'] .hero__art {
  animation: hero-kv-reveal 1.25s cubic-bezier(0.16, 1, 0.3, 1) 3.8s both;
}
html[data-hero-intro='playing'] .site-menu {
  animation: hero-ui-in 0.75s ease-out 5.7s both;
}
html[data-hero-intro='playing'] .hero__official {
  animation: hero-ui-in 0.75s ease-out 5.8s both;
}
html[data-hero-intro='playing'] .hero__pagination {
  animation: hero-content-in 0.6s ease-out 6.1s both;
}
@keyframes hero-loader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes hero-loading-fill {
  from {
    mask-position: 100% 0;
  }
  to {
    mask-position: 0 0;
  }
}
@keyframes hero-loading-dot {
  0%,
  12%,
  88%,
  100% {
    opacity: 0;
  }
  13%,
  87% {
    opacity: 1;
  }
}
@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes hero-kv-reveal {
  from {
    opacity: 0.4;
    clip-path: inset(100% 0 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    filter: none;
  }
}
@keyframes hero-fade-in {
  to {
    opacity: 1;
  }
}
@keyframes hero-ui-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 900px) {
  .hero__slide {
    background-image: url('../images/hero/hero-background-pc.svg');
  }
  .hero__slide--heinrey {
    background-size: 100% 100%;
    background-image: url('../images/hero/hero-heinrey-background-pc.svg');
  }
}
/* 2026-09-25 Figma: Rashta 151:1203 / Sovieshu 151:1542。 */
.hero__slide--rashta,
.hero__slide--sovieshu {
  background-color: #000;
  background-position: top;
  background-size: 100% calc(895 * var(--hero-unit));
}
.hero__slide--rashta {
  background-image: url('../images/hero/hero-rashta-background-sp.svg');
}
.hero__slide--sovieshu {
  background-image: url('../images/hero/hero-sovieshu-background-sp.svg');
}
@media (max-width: 899px) {
  /* 2026-10-08依頼: ラスタの暖色を残し、告知部分の明るさを他キャラに揃える。
     元のSP背景と同じ位置で暗くし、画像側の共通マスクで境目をなくす。 */
  .hero__slide--rashta {
    background-image: linear-gradient(
      to bottom,
      #20140f calc(575.845 * var(--hero-unit)),
      #040201 calc(880.593 * var(--hero-unit))
    );
  }
}
@media (min-width: 900px) {
  .hero__slide--rashta {
    background-image: url('../images/hero/hero-rashta-background-pc.svg');
  }
  .hero__slide--sovieshu {
    background-image: url('../images/hero/hero-sovieshu-background-pc.svg');
  }
  .hero__slide--rashta,
  .hero__slide--sovieshu {
    background-size: 100% 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__announcement-shine {
    display: none;
  }
  .hero__slide {
    transition: none;
  }
  .hero__pagination .hero__pause {
    display: none;
  }
}

/* ===== news ===== */

@media (prefers-reduced-motion: no-preference) {
  [data-news-reveal='pending'] {
    opacity: 0;
    transform: translateY(26px);
  }

  [data-news-reveal='visible'] {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.6s ease-out var(--news-delay, 0ms),
      transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--news-delay, 0ms);
  }
}

.news {
  display: grid;
  justify-items: center;
  padding: 50px 24px 84px;
  font-family: var(--font-body-serif);
  font-weight: 500;
  background: var(--color-black);
}

.news__heading {
  margin: 0 0 42px;
  line-height: 0;
}

.news__heading img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.news__list {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-gold-muted);
}

.news__item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-gold-muted);
}

.news__link-text {
  background: linear-gradient(var(--color-gold), var(--color-gold)) right
    bottom / 0% 1px no-repeat;
  transition: background-size 650ms ease;
  padding-bottom: 2px;
}
@media (hover: hover) {
  .news__title:hover .news__link-text {
    background-position: left bottom;
    background-size: 100% 1px;
  }
}
.news__title:focus-within .news__link-text {
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  .news__link-text {
    transition: none;
  }
}

.news__date {
  color: var(--color-gold);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.news__title {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

/* リンク先の支給前も、本文とMOREのホバー位置を示す。 */
.news__title,
.news__more {
  cursor: pointer;
}

.news__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 118px;
  margin-top: 32px;
  padding: 6px 0;
  border-block: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: 'Bodoni 72', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.6;
}

.news__more > span {
  transition: opacity 180ms ease;
}

@media (hover: hover) {
  .news__more:hover > span {
    opacity: 0.3;
  }
}

.news__more:focus-within > span {
  opacity: 0.3;
}

@media (prefers-reduced-motion: reduce) {
  .news__more > span {
    transition: none;
  }
}

@media (min-width: 900px) {
  .news {
    grid-template-columns: minmax(180px, 19.427cqw) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 0;
    padding: 80px 12.795% 80px 0;
  }

  .news__heading {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .news__heading img {
    width: 280px;
    max-width: 100%;
  }

  .news__list {
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .news__item {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .news__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    min-height: 52px;
    font-size: 16px;
  }

  .news__more {
    grid-column: 1;
    grid-row: 3;
    margin-top: 45px;
  }
}

.news__item:nth-child(1) {
  --news-delay: 100ms;
}

.news__item:nth-child(2) {
  --news-delay: 150ms;
}

.news__item:nth-child(3) {
  --news-delay: 200ms;
}

.news__item:nth-child(4) {
  --news-delay: 250ms;
}

.news__item:nth-child(5) {
  --news-delay: 300ms;
}

.news__more {
  --news-delay: 250ms;
}

/* ===== introduction ===== */

@media (prefers-reduced-motion: no-preference) {
  [data-intro-reveal='pending'] {
    opacity: 0;
  }
  [data-intro-reveal='visible'] {
    opacity: 1;
    transition: opacity 1.4s ease-out;
  }
  .introduction__heading[data-intro-reveal='pending'] {
    transform: translateY(26px);
  }
  .introduction__heading[data-intro-reveal='visible'] {
    transform: none;
    transition:
      opacity 0.9s ease-out,
      transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .introduction__copy[data-intro-reveal='visible'] {
    transition-delay: 0.25s;
  }
  .introduction__wordmark-track {
    /* 参考HTMLの約94px/秒を、Group65全体＋単語間余白の周期に換算。 */
    animation: introduction-wordmark-slide 35.6s linear infinite paused;
  }
  [data-intro-playing='true'] .introduction__wordmark-track {
    animation-play-state: running;
  }
  .introduction__scene {
    transform: translate3d(0, var(--intro-scene-y, 0px), 0);
  }
}

@keyframes introduction-wordmark-slide {
  to {
    transform: translateX(-50%);
  }
}

.introduction {
  --intro-mark-unit: calc(var(--intro-unit) * 0.5);
  --intro-mark-offset: -224;
  --intro-parallax-range: 48px;
  --intro-unit: min(0.266666667cqw, 1.6px);
  position: relative;
  isolation: isolate;
  min-height: calc(1223 * var(--intro-unit));
  padding: calc(120 * var(--intro-unit)) 0 calc(184.5 * var(--intro-unit));
  background: var(--color-introduction);
}

.introduction__scenery {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  margin-inline: auto;
  pointer-events: none;
}

.introduction__scene,
.introduction__wordmark {
  position: absolute;
  display: block;
}

.introduction__scene {
  height: auto;
}

/* Figma SP: 375×1223、開始y=1903。
   画像・文字・余白を同じ倍率で拡大し、600px相当を上限に構図を保つ。 */
.introduction__scene--tree {
  top: calc(19 * var(--intro-unit));
  left: 2.9333%;
  width: calc(182 * var(--intro-unit));
}
.introduction__scene--hall {
  top: calc(302 * var(--intro-unit));
  right: 6.4%;
  width: calc(168 * var(--intro-unit));
}
.introduction__scene--library {
  top: calc(669 * var(--intro-unit));
  left: calc(-22 * var(--intro-unit));
  width: calc(247.5 * var(--intro-unit));
}
.introduction__scene--garden {
  bottom: calc(135.4 * var(--intro-unit));
  right: 17%;
  width: calc(159.27 * var(--intro-unit));
}

.introduction__accent {
  display: none;
}

.introduction__wordmark {
  opacity: 0.1;
  bottom: calc(-37.33 * var(--intro-unit));
  left: 0;
  width: 100%;
}

.introduction__wordmark-track {
  display: flex;
  width: max-content;
  position: relative;
  left: calc(var(--intro-mark-offset) * var(--intro-mark-unit));
}

.introduction__wordmark img {
  display: block;
  flex: none;
  box-sizing: content-box;
  width: calc(3194 * var(--intro-mark-unit));
  height: calc(287 * var(--intro-mark-unit));
  padding-inline-end: calc(147 * var(--intro-mark-unit));
}

.introduction__content {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  display: grid;
  justify-items: center;
  gap: calc(48 * var(--intro-unit));
  position: relative;
}

.introduction__heading {
  margin: 0;
  line-height: 0;
}
.introduction__heading img {
  display: block;
  width: calc(350.25 * var(--intro-unit));
  max-width: calc(100cqw - 24 * var(--intro-unit));
  height: auto;
}

.introduction__copy {
  /* 行末に付く字間1字分を補い、Figmaと同じ位置で折り返す。 */
  width: calc(100% - 53 * var(--intro-unit) + 0.06em);
  max-width: 680px;
  font-family: var(--font-body-serif);
  font-size: calc(16 * var(--intro-unit));
  font-weight: 600;
  /* Figma書き出しの行送りは16px × 160%を丸めた26px。 */
  line-height: calc(26 * var(--intro-unit));
  letter-spacing: 0.06em;
  overflow-wrap: break-word;
}

.introduction__copy p {
  margin: 0;
}
.introduction__copy p + p {
  margin-top: calc(26 * var(--intro-unit));
}
.introduction__break-pc {
  display: none;
}

@media (min-width: 900px) {
  .introduction {
    --intro-mark-unit: 1px;
    --intro-mark-offset: -249;
    --intro-parallax-range: 120px;
    --intro-unit: 1px;
    /* 英字は舞台画像の1440px枠ではなく、赤い背景の端で切り抜く。 */
    overflow: clip;
    min-height: 1311px;
    padding-block: 180px 216px;
  }

  .introduction__scenery {
    overflow: visible;
    max-width: 1440px;
  }
  .introduction__content {
    max-width: none;
  }

  /* Figma PC: 1440px、セクション開始y=1555。中間幅では横位置のみ追従。 */
  .introduction__scene--tree {
    top: 95px;
    left: 9.6528%;
    width: 319px;
  }
  .introduction__scene--hall {
    top: 85px;
    right: 8.4722%;
    width: 336px;
  }
  .introduction__scene--library {
    top: 769px;
    left: 3.6806%;
    width: 495px;
  }
  .introduction__scene--garden {
    top: 1006px;
    bottom: auto;
    right: 11.2674%;
    width: 326.75px;
  }

  .introduction__accent {
    display: block;
    position: absolute;
    background: var(--color-introduction-accent);
  }
  .introduction__accent--tree {
    top: 26px;
    left: 17.3611%;
    width: 369.19px;
    height: 261px;
  }
  .introduction__accent--hall {
    top: 128px;
    right: 6.33%;
    width: 281.85px;
    height: 450.68px;
  }

  .introduction__wordmark {
    left: calc((100% - 100cqw) / 2);
    width: 100cqw;
    opacity: 0.15;
    top: 534px;
    bottom: auto;
  }
  .introduction__heading img {
    width: 467px;
  }
  .introduction__copy {
    width: calc(100% - 48px);
    /* CSSは行末にも字間を加える。Figmaの980pxに末尾1字間分を補い、意図しない折返しを防ぐ。 */
    max-width: calc(980px + 0.06em);
    font-size: 22px;
    line-height: 35px;
    text-align: center;
  }
  .introduction__copy p + p {
    margin-top: 35px;
  }
  .introduction__break-pc {
    display: inline;
  }
}

/* ===== staff-cast ===== */

.staff-cast {
  --staff-unit: 1px;
  --staff-parallax-range: 30px;
  --staff-parallax-bleed: 36px;
  position: relative;
  isolation: isolate;
  min-height: calc(1112 * var(--staff-unit));
  padding: calc(120 * var(--staff-unit)) calc(16 * var(--staff-unit));
  font-family: var(--font-body-serif);
}
.staff-cast__background {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.staff-cast__background img {
  position: absolute;
  top: calc(-1 * var(--staff-parallax-bleed));
  transform: translate3d(0, var(--staff-parallax-y, 0px), 0);
  display: block;
  width: 100%;
  height: calc(100% + 2 * var(--staff-parallax-bleed));
  object-fit: cover;
  object-position: center top;
}
.staff-cast__inner {
  display: grid;
  justify-items: center;
  gap: calc(56 * var(--staff-unit));
  margin-inline: auto;
}
.staff-cast__heading,
.staff-cast__subheading {
  margin: 0;
  line-height: 0;
}
.staff-cast__heading img {
  display: block;
  width: calc(297 * var(--staff-unit));
  max-width: 100%;
  height: auto;
}
.staff-cast__credits {
  display: grid;
  justify-items: center;
  gap: calc(48 * var(--staff-unit));
  width: 100%;
  max-width: calc(680 * var(--staff-unit));
}
.staff-cast__staff,
.staff-cast__cast {
  display: grid;
  justify-items: center;
  gap: calc(8 * var(--staff-unit));
  width: 100%;
}
.staff-cast__subheading img {
  display: block;
  height: calc(34 * var(--staff-unit));
  width: auto;
}
.staff-cast__staff-list {
  display: grid;
  gap: calc(16 * var(--staff-unit));
}
.staff-cast__row {
  display: grid;
  gap: calc(16 * var(--staff-unit));
  margin: 0;
}
.staff-cast__credit {
  display: flex;
  justify-content: center;
  align-items: center;
}
.staff-cast__credit dt {
  color: var(--color-gold);
  font-size: calc(14 * var(--staff-unit));
  font-weight: 500;
  line-height: calc(22 * var(--staff-unit));
  letter-spacing: 0.06em;
}
.staff-cast__credit dd {
  margin: 0;
  font-size: calc(16 * var(--staff-unit));
  font-weight: 600;
  line-height: calc(26 * var(--staff-unit));
  letter-spacing: 0.06em;
}
.staff-cast__note {
  line-height: 1;
  margin-left: 0;
  font-size: calc(12 * var(--staff-unit));
  font-weight: 500;
  letter-spacing: 0.06em;
}
.staff-cast__produced {
  margin: 0;
  font-size: calc(16 * var(--staff-unit));
  font-weight: 600;
  line-height: calc(26 * var(--staff-unit));
  letter-spacing: 0.06em;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(8 * var(--staff-unit));
}
.staff-cast__produced > span:first-child {
  line-height: calc(26 * var(--staff-unit));
  font-weight: 500;
  letter-spacing: 0;
}
.staff-cast__divider img {
  display: block;
  width: calc(292.43 * var(--staff-unit));
  max-width: 100%;
  height: calc(13.81 * var(--staff-unit));
}
.staff-cast__cast-list {
  display: grid;
  gap: calc(16 * var(--staff-unit));
  margin: 0;
}

/* 375pxのSP原稿を600px相当まで拡大し、中間幅でも文字の比率を保つ。 */
@media (max-width: 899px) {
  .staff-cast {
    --staff-unit: clamp(1px, 0.266666667cqw, 1.6px);
  }
  .staff-cast__inner {
    max-width: 600px;
  }
}

@media (min-width: 900px) {
  .staff-cast {
    --staff-parallax-range: 60px;
    --staff-parallax-bleed: 72px;
    min-height: 1126px;
    padding: 140px 24px;
  }
  .staff-cast__inner {
    grid-template-columns: 184px minmax(0, 733px);
    gap: clamp(40px, calc((100vw - 1024px) * 0.1731 + 40px), 112px);
    max-width: 1029px;
    align-items: start;
  }
  /* PC 2:3422 は高さ822.42pxで見出しを中央配置。本文は自然な高さを保つ。 */
  .staff-cast__heading {
    margin-top: 295.21px;
  }
  .staff-cast__heading img {
    width: 186px;
    max-width: none;
    height: 232px;
  }
  .staff-cast__credits {
    max-width: none;
    gap: 40px;
  }
  .staff-cast__staff {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .staff-cast__cast {
    gap: 21px;
  }
  .staff-cast__subheading img {
    height: 53px;
  }
  .staff-cast__staff-list {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    gap: 35px;
    width: 100%;
  }
  .staff-cast__row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .staff-cast__credit {
    flex-shrink: 0;
    gap: 8px;
  }
  /* Figmaは文字末尾の字間を枠幅に含めない。HTMLの末尾分を相殺する。 */
  .staff-cast__credit dt,
  .staff-cast__credit dd,
  .staff-cast__producer-name {
    white-space: nowrap;
    margin-right: -0.06em;
  }
  /* 原作行の英字枠は末尾の余白を含むFigma指定。 */
  .staff-cast__row:first-child dd {
    margin-right: 0;
  }
  .staff-cast__credit--noted {
    gap: 0;
  }
  .staff-cast__row:nth-child(3) {
    gap: 32px;
  }
  .staff-cast__credit dt {
    font-size: 16px;
    line-height: 26px;
  }
  .staff-cast__credit dd {
    font-size: 32px;
    line-height: 51px;
  }
  .staff-cast__note {
    line-height: 1;
    font-size: 16px;
  }
  .staff-cast__produced {
    font-size: 32px;
    line-height: 51px;
  }
  .staff-cast__produced > span:first-child {
    font-size: 22px;
    line-height: 35px;
  }
  .staff-cast__divider {
    width: calc(100% + 83.57px);
    max-width: calc(100vw - 48px);
  }
  .staff-cast__divider img {
    width: 100%;
    height: 18.42px;
  }
  .staff-cast__cast-list {
    /* Figma 2:3489 は92px枠の中央に2行を配置し、上下16pxずつはみ出す。 */
    height: 92px;
    align-content: center;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-template-columns: 184px 248px;
    column-gap: 140px;
    row-gap: 22px;
  }
  .staff-cast__cast-list .staff-cast__credit {
    min-width: max-content;
    justify-content: flex-start;
  }
  html[lang='en'] .staff-cast__cast-list {
    grid-auto-flow: row;
    /* 英語名の実幅で列を確保し、開始位置を左へ広げる。 */
    grid-template-columns: repeat(2, max-content);
    column-gap: 86px;
  }
}
/* 1440px原稿の長い横組みは733px枠から左右にはみ出すFigma指定。中間幅では折り返す。 */
@media (min-width: 1280px) {
  .staff-cast__row {
    flex-wrap: nowrap;
  }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .staff-cast__divider {
    width: 100%;
  }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .staff-cast__cast-list {
    grid-template-columns: repeat(2, auto);
    column-gap: 24px;
  }
  .staff-cast__credit dd {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .staff-cast__background img {
    transform: none;
  }
}

/* ===== character ===== */

.character {
  --character-profile-duration: 350ms;
  overflow: hidden;
  background: var(--color-black);
  font-family: var(--font-body-serif);
}

/* Figma: PC 2:3556、SP 2:5584。900pxはサイト共通の暫定切替幅。 */
.character__layout {
  --character-unit: 0.266666667cqw;
  position: relative;
  isolation: isolate;
  padding-top: calc(107 * var(--character-unit));
  padding-bottom: calc(67 * var(--character-unit));
}

.character__background {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.character__background img {
  width: 100%;
  height: 100%;
}
.character img {
  display: block;
}
.character__heading {
  position: relative;
  left: calc(1.5 * var(--character-unit));
  width: calc(244 * var(--character-unit));
  margin: 0 auto;
}
.character__heading img {
  width: 100%;
  height: auto;
}
.character__portraits {
  position: relative;
  height: calc(326.025 * var(--character-unit));
  margin-top: calc(27 * var(--character-unit));
}
@media (max-width: 899px) {
  .character__portraits {
    touch-action: pan-y pinch-zoom;
  }
}
.character__portrait {
  position: absolute;
  height: auto;
}
.character__portrait[data-slot='0'] {
  --card-x: -116.322;
  --card-y: 0;
  --card-scale: 1;
  z-index: 100;
}
.character__portrait[data-slot='1'] {
  --card-x: -33.992;
  --card-y: 40.459;
  --card-scale: 0.75;
  z-index: 75;
}
.character__portrait[data-slot='2'] {
  --card-x: 29.184;
  --card-y: 81.465;
  --card-scale: 0.5625;
  z-index: 56;
}
.character__portrait[data-slot='3'] {
  --card-x: 77.033;
  --card-y: 111.334;
  --card-scale: 0.421875;
  z-index: 42;
}
.character__reflection {
  position: absolute;
  z-index: -1;
  left: calc(50% - 116.5 * var(--character-unit));
  top: calc(550 * var(--character-unit));
  width: calc(233 * var(--character-unit));
  pointer-events: none;
}
.character__reflection img {
  width: 100%;
  height: auto;
}
.character__profile {
  position: relative;
  margin-top: calc(2.4 * var(--character-unit));
  text-align: center;
}
.character__name {
  margin: 0;
  color: var(--color-gold);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.character__voice {
  margin: 0;
  font-size: calc(12 * var(--character-unit));
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.character__divider {
  display: block;
  width: calc(187 * var(--character-unit));
  margin: calc(4 * var(--character-unit)) auto 0;
}
.character__divider img {
  width: 100%;
  height: auto;
}
.character__description {
  width: calc(311 * var(--character-unit));
  margin: calc(9 * var(--character-unit)) auto 0;
  text-align: left;
  font-size: calc(14 * var(--character-unit));
  font-weight: 500;
  line-height: calc(22 * var(--character-unit));
  letter-spacing: 0.06em;
}
/* 0929 English copy uses explicit desktop lines and a 311px mobile text box. */
html[lang='en'] .character__description {
  font-size: calc(16 * var(--character-unit));
  line-height: 1.625;
}
@media (min-width: 900px) {
  html[lang='en'] .character__description {
    width: max-content;
    max-width: calc(100% - 64px);
    font-size: max(14px, calc(16 * var(--character-unit)));
  }
}
.character__description--mobile {
  display: none;
}
@media (max-width: 899px) {
  .character__description--desktop {
    display: none;
  }
  .character__description--mobile {
    display: block;
  }
  .character__description--mobile span {
    display: block;
    white-space: nowrap;
  }
}
.character__description p {
  margin: 0;
}
.character__pagination {
  display: block;
  width: calc(101 * var(--character-unit));
  margin: max(0px, calc(22 * var(--character-unit) - 15.5px)) auto -15.5px;
}

@media (min-width: 900px) {
  .character__layout {
    --character-unit: min(0.069444444cqw, 1px);
    max-width: 1440px;
    margin: 0 auto;
    padding-top: calc(189 * var(--character-unit));
    padding-bottom: calc(133 * var(--character-unit));
  }
  .character__heading {
    left: calc(2 * var(--character-unit));
    width: calc(360 * var(--character-unit));
  }
  .character__portraits {
    margin-top: calc(48 * var(--character-unit));
    height: calc(579.6 * var(--character-unit));
  }
  .character__portrait[data-slot='0'] {
    --card-x: -206.667;
    --card-scale: 1;
  }
  .character__portrait[data-slot='1'] {
    --card-x: 45.903;
    --card-y: 110.15;
    --card-scale: 0.75;
  }
  .character__portrait[data-slot='2'] {
    --card-x: 215.104;
    --card-y: 183.05;
    --card-scale: 0.5625;
  }
  .character__portrait[data-slot='3'] {
    --card-x: 337.5;
    --card-y: 236.15;
    --card-scale: 0.421875;
  }
  .character__reflection {
    left: calc(50% - 207 * var(--character-unit));
    top: calc(939 * var(--character-unit));
    width: calc(415 * var(--character-unit));
  }
  .character__profile {
    margin-top: calc(4 * var(--character-unit));
  }
  .character__name {
    font-size: max(26px, calc(38 * var(--character-unit)));
    font-weight: 700;
    letter-spacing: 0;
  }
  .character__voice {
    font-size: max(12px, calc(14 * var(--character-unit)));
    font-weight: 400;
  }
  .character__divider {
    width: calc(222 * var(--character-unit));
    margin-top: calc(8 * var(--character-unit));
  }
  .character__description {
    width: calc(700 * var(--character-unit));
    margin-top: calc(16 * var(--character-unit));
    font-size: max(14px, calc(16 * var(--character-unit)));
    line-height: 1.625;
    text-align: center;
  }
  .character__description span {
    display: block;
  }
  .character__pagination {
    width: calc(120 * var(--character-unit));
    margin-top: calc(40 * var(--character-unit) - 15.5px);
  }
}

.character__portrait {
  left: 50%;
  top: 0;
  width: calc(232.875 * var(--character-unit));
  padding: 0;
  border: 0;
  background: none;
  transform-origin: top left;
  transform: translate(
      calc(var(--card-x) * var(--character-unit)),
      calc(var(--card-y) * var(--character-unit))
    )
    scale(var(--card-scale));
  cursor: pointer;
}
.character__portrait img {
  width: 100%;
  height: auto;
}
.character__portrait:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}
.character__portrait[aria-pressed='true'] {
  cursor: zoom-in;
}
.character__reflection {
  display: grid;
}
.character__reflection picture {
  grid-area: 1 / 1;
}
.character__reflection picture[hidden] {
  display: none;
}
.character__profiles {
  display: grid;
}
.character__profile-panel {
  grid-area: 1 / 1;
}
.character__profile-panel[aria-hidden='true'] {
  visibility: hidden;
}
.character__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.character__pagination button {
  padding: 0;
  border: 0;
  background: none;
  color: white;
  cursor: pointer;
}
.character__arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 44px;
  flex: 0 0 24px;
  margin: 0 -9px;
}
.character__arrow img {
  width: calc(6 * var(--character-unit));
  height: calc(13 * var(--character-unit));
}
.character__dot {
  display: grid;
  place-items: center;
  width: calc(16 * var(--character-unit));
  height: 44px;
}
.character__dot::before {
  content: '';
  width: calc(7 * var(--character-unit));
  height: calc(7 * var(--character-unit));
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
}
.character__dot[aria-pressed='true']::before {
  opacity: 1;
}
.character__pagination button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
.character__pagination[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .character__portrait {
    width: calc(414 * var(--character-unit));
  }
  .character__dot::before {
    width: calc(8 * var(--character-unit));
    height: calc(8 * var(--character-unit));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .character[data-character-ready] .character__portrait {
    transition: transform 0.7s cubic-bezier(0.45, 0, 0.15, 1);
  }
  .character[data-character-ready] .character__reflection {
    transition: opacity 0.65s ease-out;
  }
  .character[data-character-ready] .character__profile-panel {
    transition:
      opacity var(--character-profile-duration) ease-out,
      transform var(--character-profile-duration) ease-out;
  }
  .character[data-character-phase='leaving'] .character__profile-panel {
    opacity: 0;
    transform: translateX(-18px);
    transition-duration: 0.18s;
  }
  .character[data-character-phase='moving']:not(
      [data-character-profile-visible]
    )
    .character__profile-panel {
    opacity: 0;
    transform: translateX(18px);
    transition: none;
  }
  .character[data-character-phase='leaving'] .character__reflection,
  .character[data-character-phase='moving'] .character__reflection {
    opacity: 0;
    transition-duration: 0.18s;
  }
}

@media (hover: hover) and (pointer: fine) {
  .character__portrait img {
    transition: transform 250ms ease;
  }
  .character:not([data-character-phase='moving']):not(
      :has(.character__modal[open])
    )
    .character__portrait:hover
    img {
    transform: scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .character__portrait img {
    transition: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .character__arrow:hover {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .character__modal[open]:not([data-closing]) .character__modal-close {
    animation: character-close-in 0.2s ease-out 0.6s both;
  }
  .character__modal[open]::backdrop {
    animation: character-backdrop-in 0.5s ease-out;
  }
  .character__modal[data-closing]::backdrop {
    animation: character-backdrop-out 0.6s ease-in-out forwards;
  }
}
@keyframes character-close-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes character-backdrop-in {
  from {
    background: rgb(0 0 0 / 0%);
  }
  to {
    background: rgb(0 0 0 / 80%);
  }
}
@keyframes character-backdrop-out {
  from {
    background: var(--character-backdrop-from, rgb(0 0 0 / 80%));
  }
  to {
    background: rgb(0 0 0 / 0%);
  }
}
/* 拡大画像と元画像が二重に見えないよう、dialogを閉じるまで元画像を隠す。 */
.character:has(.character__modal[open]) .character__portrait[data-slot='0'] {
  visibility: hidden;
}
html:has(.character__modal[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.character__modal {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}
.character__modal::backdrop {
  background: rgb(0 0 0 / 80%);
}
.character__modal-stage {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 104px 12px 32px;
}
.character__modal-image {
  width: var(--character-zoom-width);
  transform-origin: top left;
  max-width: none;
  height: auto;
}
.character__modal-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 91.108px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.character__modal-close {
  transition: opacity 0.1s ease-out;
}
.character__modal[data-closing] .character__modal-close {
  opacity: 0;
  pointer-events: none;
}
.character__modal-close img {
  width: 100%;
  height: auto;
}
.character__modal-close:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .character__modal-stage {
    padding-top: 64px;
  }
  .character__modal-close {
    width: 136.66px;
    top: max(16px, calc((100dvh - var(--character-zoom-width) * 1.4) / 2));
    right: max(
      12px,
      calc((100vw - var(--character-zoom-width)) / 2 - 160.66px)
    );
  }
}

/* ===== closing-scene ===== */

.closing-scene {
  /* SPのCharacter下端と舞台絵の間にあるFigmaの余白。 */
  padding-top: 3.744cqw;
  background: var(--color-black);
}

.closing-scene__viewport {
  overflow: hidden;
}

.closing-scene img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 586;
}

@media (min-width: 900px) {
  .closing-scene {
    padding-top: 0;
  }
}

/* Frame 1287: 上下6%の描画余白で、移動時も画像端を露出させない。 */
@media (prefers-reduced-motion: no-preference) {
  .closing-scene img {
    transform: translate3d(0, var(--closing-parallax-y, 0px), 0) scale(1.12);
  }
}

/* ===== footer ===== */

.footer {
  container-type: inline-size;
  background: var(--color-black);
  color: var(--color-gold);
}

.footer__inner {
  --footer-unit: 0.266666667cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(60 * var(--footer-unit));
  padding: calc(90 * var(--footer-unit)) 0 calc(18 * var(--footer-unit));
}

.footer__branding {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: calc(46.5 * var(--footer-unit));
}

.footer__logo {
  --footer-logo-width: calc(212.215 * var(--footer-unit));
  display: block;
  width: var(--footer-logo-width);
  height: auto;
}

.footer__logo--unframed {
  height: calc(var(--footer-logo-width) * 820 / 1320);
  object-fit: contain;
}

.footer__banner {
  display: block;
  width: calc(226.5 * var(--footer-unit));
}

.footer__banner img {
  display: block;
  width: 100%;
  height: auto;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10.133 * var(--footer-unit));
}

.footer__divider {
  display: block;
  width: calc(341 * var(--footer-unit));
  height: calc(9 * var(--footer-unit));
}

.footer__copyright {
  display: block;
  margin: 0;
  font-family: var(--font-body-serif);
  font-size: calc(7 * var(--footer-unit));
  font-weight: 700;
  line-height: calc(11 * var(--footer-unit));
  text-align: center;
}

@media (min-width: 900px) {
  .footer__inner {
    --footer-unit: min(0.069444444cqw, 1px);
    gap: calc(80 * var(--footer-unit));
    padding-top: calc(120 * var(--footer-unit));
    padding-bottom: calc(24 * var(--footer-unit));
  }

  .footer__logo {
    --footer-logo-width: calc(282.953 * var(--footer-unit));
  }

  .footer__branding {
    flex-direction: row;
    gap: calc(62 * var(--footer-unit));
  }

  .footer__banner {
    width: calc(300 * var(--footer-unit));
  }

  .footer__legal {
    gap: calc(19.417 * var(--footer-unit));
  }

  .footer__divider {
    width: calc(727 * var(--footer-unit));
    height: calc(19 * var(--footer-unit));
  }

  .footer__copyright {
    font-size: calc(10 * var(--footer-unit));
    line-height: calc(16 * var(--footer-unit));
  }
}

/* ===== not-found ===== */

.not-found {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.not-found p,
.not-found h1 {
  margin: 0;
}

.not-found h1 {
  font-size: clamp(1.25rem, 5vw, 2rem);
}

.not-found .status {
  color: var(--color-gold);
  font-size: 3rem;
}

.not-found a {
  color: var(--color-gold);
  padding: 0.75rem;
  text-underline-offset: 0.25em;
}

/* ===== news pages ===== */
.news__title > .news__link-text,
.news__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.news__more {
  text-decoration: none;
}
/* re_0915: PC 1440px / SP 375px の記事ページ。 */
.news-page {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding: 156px 24px 0;
  font-family: var(--font-body-serif);
}
.news-page a {
  color: inherit;
  text-underline-offset: 0.3em;
}
.news-page__header {
  text-align: center;
}
.news-page__logo {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 145px;
}
.news-page__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.news-page__heading {
  margin: 0 auto 37px;
}
.news-page__heading img {
  display: block;
  width: 200px;
  height: auto;
  margin-inline: auto;
}
.news-page__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--color-gold-muted);
}
.news-page__list li {
  border-bottom: 1px solid var(--color-gold-muted);
}
.news-page__list a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.news-page time {
  color: var(--color-gold);
  font-size: 12px;
}
.news-page__list time {
  grid-column: 1 / -1;
}
.news-page__list a > span:first-of-type {
  display: block;
  background: linear-gradient(var(--color-gold), var(--color-gold)) right
    bottom / 0% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 650ms ease;
}
@media (hover: hover) {
  .news-page__list a:hover > span:first-of-type {
    background-position: left bottom;
    background-size: 100% 1px;
  }
}
.news-page__list a:focus-visible > span:first-of-type {
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  .news-page__list a > span:first-of-type {
    transition: none;
  }
}
.news-page__article h1 {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 12px 0 28px;
  overflow-wrap: anywhere;
}
.news-page__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 800px;
  margin: 0 auto 32px;
}
.news-page__body {
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.news-page__body a {
  color: var(--color-gold);
}
.news-page__line {
  min-height: 1.6em;
}
.news-page__subheading {
  color: var(--color-gold);
  font-weight: 700;
  margin: 32px 0 12px;
}
.news-page__subheading:first-child {
  margin-top: 0;
}
.news-page__back {
  margin: 36px 0 0;
  text-align: center;
}
.news-page__back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 114px;
  min-height: 44px;
  border-block: 1px solid var(--color-gold);
  color: var(--color-gold);
  text-decoration: none;
  font-family: 'Bodoni 72', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
}
.news-page__back a:hover {
  opacity: 0.6;
}
.footer--compact .footer__inner {
  padding-top: 90px;
}
.news-page__version {
  overflow-wrap: anywhere;
  font:
    12px system-ui,
    sans-serif;
  margin-top: 32px;
  color: var(--color-gold);
}
@media (min-width: 900px) {
  .news-page {
    padding: 190px clamp(48px, 8.3333vw, 120px) 0;
  }
  .news-page__logo {
    top: 50px;
    right: 48px;
    width: 226px;
  }
  .news-page__heading {
    margin-bottom: 40px;
  }
  .news-page__heading img {
    width: 280px;
  }
  .news-page__list a {
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 16px;
    padding-block: 13px;
    font-size: 16px;
  }
  .news-page__list a > span:first-of-type {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .news-page__list time {
    grid-column: auto;
  }
  .news-page__article h1 {
    font-size: 32px;
    margin: 24px 0 36px;
  }
  .news-page__body {
    font-size: 16px;
  }
  .news-page__back {
    margin-top: 80px;
  }
  .footer--compact .footer__inner {
    padding-top: 120px;
  }
}

.news-page__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.news-page__article h1.news-title--opening-bracket {
  text-indent: -0.5em;
}

@media (min-width: 900px) and (max-width: 1279px) {
  /* 1005英語版: CVを含む2列が収まらない中間幅はクレジット単位で折り返す。 */
  html[lang='en'] .staff-cast__cast-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 32px;
    height: auto;
  }
}
