:root {
  color-scheme: dark;
  --ink: #0c0c0c;
  --paper: #f2f0ec;
  --muted: #b8b6b2;
  --crimson: #d00020;
  --line: rgba(255, 255, 255, 0.25);
  --serif: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --display: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --header-height: 108px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

.home.is-splash-active {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1s ease-out,
    visibility 0s linear 1s;
}

.loading-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.loading-screen__logo {
  width: min(106px, 30vw);
  height: auto;
  animation: loading-logo-fade 2.5s ease-in-out both;
}

.home > .site-header,
.home > main,
.home > .site-footer {
  transition: opacity 1s ease-out;
}

.home.is-splash-active > .site-header,
.home.is-splash-active > main,
.home.is-splash-active > .site-footer {
  opacity: 0;
}

@keyframes loading-logo-fade {
  0% {
    opacity: 0;
    scale: 0.9;
  }

  20%,
  80% {
    opacity: 1;
    scale: 1;
  }

  100% {
    opacity: 0;
    scale: 0.95;
  }
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen {
    transition:
      opacity 200ms ease-out,
      visibility 0s linear 200ms;
  }

  .loading-screen__logo {
    opacity: 1;
    animation: none;
  }

  .home > .site-header,
  .home > main,
  .home > .site-footer {
    transition-duration: 200ms;
  }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 8px 16px;
  translate: 0 -150%;
  border: 1px solid #fff;
  background: #000;
}

.skip-link:focus {
  translate: 0;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* --header-nav-top / --header-nav-size はナビ1行の位置と大きさの単一の出どころ。
   desktop-nav と言語切替の双方がこれを見るので、片方だけズレることがない。 */
.site-header {
  --header-nav-top: 42px;
  --header-nav-size: clamp(12px, 0.9vw, 17px);
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--header-nav-top);
  background: transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  aspect-ratio: 1919 / 270;
  background: url("../pc/PC_overlay_header_gradient.webp?v=6948893cf3") top center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ナビ1行と同じ箱に合わせる。desktop-nav は line-height: 1 なので
   高さ = font-size となり、上下中央がナビの行と一致する。 */
.header-mark {
  position: absolute;
  top: var(--header-nav-top);
  left: 2.6vw;
  width: 1px;
  height: var(--header-nav-size);
  background: rgba(255, 255, 255, 0.9);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 1.7vw, 36px);
  font-family: var(--display);
  font-size: var(--header-nav-size);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1;
}

.desktop-nav a {
  position: relative;
  text-decoration: none;
  text-shadow: 0 2px 8px #000;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  scale: 0 1;
  background: var(--crimson);
  transition: scale 160ms ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  scale: 1;
}

/* 区切りスラッシュはボタン文字より一段小さく見せる */
.desktop-nav span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8em;
}

.mobile-menu-button {
  display: none;
}

/* 言語切替。PC版はヘッダー右端に絶対配置し、SP版はモバイルメニュー内だけに出す。
   マークアップは i18n\templates 側の [[@langNav]] が生成する。 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 1.5em;
  font-family: var(--display);
  font-size: clamp(11px, 0.75vw, 14px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

/* desktop-nav と同じ top・同じ高さの箱に入れ、align-items: center で中身を中央に置く。
   nav は line-height: 1 なので箱の高さ = font-size となり、行の中心が正確に一致する。 */
.site-header .lang-switch {
  position: absolute;
  top: var(--header-nav-top);
  right: 2.6vw;
  height: var(--header-nav-size);
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  text-shadow: 0 2px 8px #000;
  transition: color 160ms ease;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: #fff;
}

/* 表示中の言語を赤で示す */
.lang-switch__current {
  color: var(--crimson);
  text-shadow: 0 2px 8px #000;
}

.mobile-menu .lang-switch {
  display: none;
}

.hero {
  --hero-image-focus-x: 70%;
  --hero-image-focus-y: 24%;
  --hero-social-gap: 10px;
  --hero-youtube-logo-margin: 30px;
  --hero-youtube-visible-right-inset: 6px;
  position: relative;
  min-height: max(100vh, min(79.43vw, 1525px));
  min-height: max(100svh, min(79.43vw, 1525px));
  overflow: hidden;
  isolation: isolate;
}

.hero__background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    #071322
    url("../pc/PC_topview_bg.webp?v=33a2e42980")
    var(--hero-image-focus-x) var(--hero-image-focus-y) / cover
    no-repeat;
  transition: opacity 1.4s ease-out;
}

/* 雨は透明なオーバーレイ。濃さは canvas 側の alpha (層ごと) で決めるので、
   ここでは不透明のままにしてイントロのフェードにだけ opacity を使う。 */
.hero__rain {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1.2s ease-out 180ms;
}

.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    url("../pc/PC_topview_gradient.webp?v=8f4f56af65") center bottom / 100% auto no-repeat,
    radial-gradient(circle at 24% 36%, transparent 10%, rgba(1, 4, 9, 0.18) 42%, rgba(0, 0, 0, 0.45) 100%);
  transition: opacity 1.4s ease-out;
}

.hero__content {
  position: absolute;
  top: 50vh;
  top: 50svh;
  left: 5.5%;
  width: min(50.57vw, 971px);
  translate: 0 -50%;
  transition:
    opacity 900ms ease-out 180ms,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}

.hero__mobile-stack {
  display: contents;
}

/* 英語のキャッチは字間なし */
[data-locale="en"] .hero__catch {
  letter-spacing: 0;
}


/* ロゴは .hero__logo の margin-left: -5.5vw ぶん左にずれている。
   キャッチの箱をロゴと同じ範囲にそろえ、その中で中央寄せする。 */
/* 日本語版は支給画像 (PC_topview_copy_ja.webp) に差し替え済み。以下は
   画像の支給が無い en / zh-cn 用のテキスト描画。

   塗りはベタ白。支給画像 (0805更新/PC_topview_copy.png) の墨を実測すると
   上端から下端まで平均輝度 248〜253 でフラットなので、縦グラデは掛けない。
   金属質は「外側だけの暗い輪郭 ＋ 柔らかい影」で出す。

   paint-order: stroke fill が要点。-webkit-text-stroke はグリフの輪郭線を
   中心に描くため、既定では線幅の半分が文字の内側に食い込む。明朝の細い横画は
   20px時に1px前後しかなく、内側の食い込みで痩せて濁る。paint-order で
   stroke → fill の順に塗ると内側half がベタ白に覆われ「外側のみ」の輪郭に
   なる。未対応ブラウザでは中心揃えのまま描かれるだけなので崩れない。

   **見える輪郭は指定値の半分**（内側half が塗りに隠れるため）。0.07em 指定で
   実効 0.035em ＝ 20px時 0.7px。支給画像の縁（約26px時に1px ＝ 0.038em）に
   ほぼ一致する。em 指定なので PC/SP で同じ比率になり、SP 側の上書きは不要。

   影は方向を持たせない。以前は drop-shadow / text-shadow で下方向へ落として
   いたが、輪郭より影が目立って「ドロップシャドウの文字」に見えてしまう。
   0 0 0.2em のハローだけにして、明るい雲の上でも白が沈まないようにする。
   filter: drop-shadow は使わない。子孫の背景ボックスにも掛かるため、内部で
   ::after の帯を使うと帯の下だけに影が落ちて線が2重に見える事故が起きる。 */
.hero__catch {
  position: absolute;
  top: 0;
  right: 5.5vw;
  left: -5.5vw;
  margin: 0;
  text-align: center;
  color: #fff;
  font-family: var(--serif);
  font-size: min(1.5625vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.1em;
  paint-order: stroke fill;
  text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.6);
  -webkit-text-stroke: 0.07em rgba(7, 10, 16, 0.86);
  white-space: nowrap;
}

/* 末尾の長音記号は「実文字の EM DASH 2つ」で描く。
   STORY の .story-copy__dash（::after の帯）は文字ではないので
   -webkit-text-stroke が乗らず、本文より細い線になってしまう。

   字は U+2014 (—) を使う。Zen Old Mincho では U+2014 は字幅180に対し墨が182
   あり、letter-spacing:0 なら隣同士が 2/180em 重なって切れ目なくつながる。
   U+2015 (―) は左右に 14.4% のアキがあるため、字間0でも必ず隙間ができる。
   親の letter-spacing (PC 0.1em / SP 0.2em) を打ち消すのがこのクラスの役目。 */
.hero__catch-dash {
  letter-spacing: 0;
}

/* 日本語版のキャッチは支給画像。en / zh-cn は画像の支給が無いので
   上の -webkit-text-stroke のテキストのまま描く。 */
.hero__catch picture {
  display: block;
}

.hero__catch-image {
  display: block;
  /* 支給画像 631px / ロゴ枠 971px。.hero__catch の箱はロゴと同じ 971px 幅 */
  width: 64.98%;
  height: auto;
  margin-inline: auto;
}

.hero__logo {
  width: 100%;
  margin: 0 0 0 -5.5vw;
}

.hero__logo img {
  width: 100%;
  height: auto;
}

/* 1920x1080 の支給サンプルでは 509x109px、左216px、下123px。左位置は1980px時の223pxを上限にする。 */
.hero__steam {
  position: absolute;
  z-index: 1;
  bottom: calc(100% - 100vh + clamp(64px, 11.39vh, 123px));
  bottom: calc(100% - 100svh + clamp(64px, 11.39svh, 123px));
  left: min(11.25vw, 223px);
  width: min(26.51vw, 509px);
  transition:
    opacity 800ms ease-out 360ms,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 360ms;
}

.hero__steam-link,
.hero__steam-link picture,
.hero__steam-link img {
  display: block;
  width: 100%;
}

.hero__steam-link {
  opacity: 0.9;
  transition: opacity 160ms ease, translate 160ms ease;
}

.hero__steam-link:hover,
.hero__steam-link:focus-visible {
  opacity: 1;
  translate: 0 -2px;
}

.hero__steam-link img {
  height: auto;
}

.hero__social {
  position: absolute;
  z-index: 1;
  right: 3.1%;
  bottom: calc(100% - 100vh + clamp(36px, 6vh, 65px));
  bottom: calc(100% - 100svh + clamp(36px, 6svh, 65px));
  display: flex;
  align-items: center;
  gap: var(--hero-social-gap);
  transition:
    opacity 700ms ease-out 500ms,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 500ms;
}

.hero__social--cn {
  display: none;
}

[data-locale="zh-cn"] .hero__social--default {
  display: none;
}

[data-locale="zh-cn"] .hero__social--cn {
  display: flex;
}

.hero__social > .hero__youtube {
  margin-right: var(--hero-youtube-logo-margin);
}

.hero__social a {
  opacity: 0.85;
  transition: opacity 160ms ease, translate 160ms ease;
}

.hero__social a:hover {
  opacity: 1;
  translate: 0 -2px;
}

.hero__social a img {
  width: 70px;
  height: 70px;
}

.hero__team {
  width: 62px;
}

.hero__support-thumb {
  position: absolute;
  z-index: 2;
  right: 3.1%;
  /* YouTube画像の右端には6pxの透明領域がある。
     flex gap、右マージン、透明領域を足し、見える画像同士の隙間を46pxにそろえる。 */
  bottom: calc(100% - 100vh + clamp(36px, 6vh, 65px) + 70px + var(--hero-social-gap) + var(--hero-youtube-logo-margin) + var(--hero-youtube-visible-right-inset));
  bottom: calc(100% - 100svh + clamp(36px, 6svh, 65px) + 70px + var(--hero-social-gap) + var(--hero-youtube-logo-margin) + var(--hero-youtube-visible-right-inset));
  width: 93px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: transparent;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.42);
  opacity: 1;
  cursor: pointer;
  transition:
    opacity 700ms ease-out 500ms,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 500ms,
    box-shadow 180ms ease;
}

.hero__support-thumb:hover,
.hero__support-thumb:focus-visible {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero__support-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero__support-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero__support-thumb:hover img,
.hero__support-thumb:focus-visible img {
  opacity: 1;
  transform: translateY(-3px) scale(1.01);
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  bottom: calc(100% - 100vh + clamp(8px, 1vh, 11px));
  bottom: calc(100% - 100svh + clamp(8px, 1svh, 11px));
  left: 50%;
  width: 194px;
  translate: -50% 0;
  opacity: 0.9;
  animation: scroll-cue 2.8s ease-in-out infinite;
  transition: opacity 700ms ease-out 620ms;
}

.home.is-hero-entering .hero__background {
  opacity: 0.72;
}

.home.is-hero-entering .hero__rain {
  opacity: 0;
}

.home.is-hero-entering .hero__shade {
  opacity: 0.68;
}

.home.is-hero-entering .hero__content {
  opacity: 0;
  transform: translateY(12px);
}

.home.is-hero-entering .hero__steam {
  opacity: 0;
  transform: translateY(9px);
}

.home.is-hero-entering .hero__social {
  opacity: 0;
  transform: translateY(7px);
}

.home.is-hero-entering .hero__support-thumb {
  opacity: 0;
  transform: translateY(7px);
}

.home.is-hero-entering .hero__scroll {
  opacity: 0;
}

@keyframes scroll-cue {
  0%,
  100% {
    translate: -50% 0;
  }
  50% {
    translate: -50% 10px;
  }
}

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.image-heading {
  position: relative;
  z-index: 2;
  margin: 0;
}

.image-heading img {
  height: auto;
  width: auto;
}

.blood {
  position: absolute;
  pointer-events: none;
}

.blood--news {
  inset: 0;
  z-index: 1;
  background: url("../pc/PC_news_bloodbg.webp?v=3a203e8f66") center 24% / min(54vw, 1027px) auto no-repeat;
  opacity: 0.9;
}

.news-section {
  min-height: 670px;
  padding: 90px 24px 90px;
}

.news-section__arrow {
  position: relative;
  z-index: 2;
  width: 30px;
  height: auto;
  margin: 0 0 52px;
}

.news-section .image-heading img {
  width: 197px;
}

.news-carousel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    clamp(40px, 4.17vw, 64px)
    minmax(0, 1000px)
    clamp(40px, 4.17vw, 64px);
  align-items: center;
  width: min(100%, 1128px);
}

.news-carousel--home {
  margin-top: 26px;
}

.news-carousel .news-carousel__arrow {
  position: relative;
  z-index: 4;
  justify-self: center;
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.9));
}

.news-carousel .news-carousel__arrow:disabled,
.news-carousel .news-carousel__arrow:disabled:hover {
  cursor: default;
  opacity: 0.3;
  translate: none;
}

.news-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 300px);
  gap: clamp(18px, 1.6vw, 28px);
  width: min(100%, 1000px);
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
}

.news-list::-webkit-scrollbar {
  display: none;
}

.news-list.is-dragging {
  cursor: grabbing;
}

.news-list__item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px 15px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 5, 6, 0.94);
  box-shadow:
    inset 0 0 0 3px #080808,
    inset 0 0 0 4px rgba(255, 255, 255, 0.14);
  color: var(--paper);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.news-list__item::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../pc/PC_news_bloodbg.webp?v=3a203e8f66") center 118% / 175% auto no-repeat;
  content: "";
  opacity: 0.17;
  pointer-events: none;
}

.news-list__item:hover {
  color: #fff;
  border-color: var(--crimson);
  transform: translateY(-3px);
}

.news-list__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.news-list__image {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: #090909;
}

.news-list__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 240ms ease;
}

.news-list__item:hover .news-list__image img {
  transform: scale(1.025);
}

.news-list__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 10px 2px;
}

.news-list__date {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.news-list__title {
  display: block;
  min-width: 0;
  margin-top: 13px;
  font-size: 16px;
  line-height: 1.65;
  text-decoration-line: underline;
  text-decoration-color: rgba(255, 255, 255, 0.72);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.outline-button {
  position: relative;
  z-index: 2;
  min-width: 150px;
  margin-top: 34px;
  padding: 11px 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(12, 12, 12, 0.68);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease;
}

.outline-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.loading-copy,
.news-empty,
.news-error {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

.movie-section {
  min-height: 910px;
  padding: 70px 24px;
}

.movie-section .image-heading img {
  width: 230px;
}

.media-carousel {
  width: min(100%, 1440px);
  margin-top: 82px;
  display: grid;
  grid-template-columns: 80px minmax(0, 916px) 80px;
  justify-content: space-between;
  align-items: center;
}

.carousel-arrow {
  display: grid;
  width: 64px;
  height: 120px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.46;
  transition: opacity 140ms ease, translate 140ms ease;
}

.carousel-arrow:hover {
  opacity: 1;
}

.carousel-arrow--prev:hover {
  translate: -4px 0;
}

.carousel-arrow--next:hover {
  translate: 4px 0;
}

.carousel-arrow img {
  width: 30px;
  max-height: 61px;
}

.movie-card {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.movie-card__frame,
.gallery-main__frame,
.lightbox__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, 0.66);
  pointer-events: none;
}

.movie-card__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.movie-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.03);
}

.movie-card__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(72px, 7vw, 132px);
  translate: -50% -50%;
  filter: drop-shadow(0 2px 12px #000);
  transition: scale 180ms ease;
}

.movie-card:hover .movie-card__play {
  scale: 1.08;
}

.section-caption {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.story-section {
  min-height: 900px;
  justify-content: flex-start;
  padding: 64px 24px 100px;
  background: #05101b;
}

.story-section__art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 0, transparent 16%, transparent 78%, var(--ink) 100%),
    url("../pc/PC_story_bloodbg.webp?v=f26982ea80") center / cover no-repeat,
    url("../pc/PC_story_bg.webp?v=72e0c0baeb") center / cover no-repeat;
  opacity: 0.94;
}

.story-section::after,
.character-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../pc/PC_story_gradientup.webp?v=e4e7f7b27d") top / 100% auto no-repeat,
    url("../pc/PC_story_gradientdown.webp?v=8219be06f5") bottom / 100% auto no-repeat;
  pointer-events: none;
}

.story-section .image-heading img {
  width: 235px;
}

/* --story-font-scale / --story-lead-scale は言語ごとの字送り調整用。
   1段落=1行 (white-space: nowrap) を保ったまま、行が枠を超える言語だけ縮める。 */
.story-copy {
  --story-font-scale: 1;
  --story-lead-scale: 1;
  --story-body-font-size: calc(clamp(14px, calc(2.5vw - 1.2px), 30px) * var(--story-font-scale));
  --story-body-line-gap: clamp(18.9px, calc(3.375vw - 1.62px), 40.5px);
  position: relative;
  z-index: 2;
  width: min(100%, 1200px);
  margin-top: 76px;
  font-size: var(--story-body-font-size);
  line-height: 1.85;
  text-align: center;
  text-shadow: 0 2px 10px #000;
}

.story-copy--sp {
  display: none;
}

/* 英語は1文が長く、日本語と同じ字送りだと nowrap の1行が枠を超える。
   改行を増やさず字を詰めて収める。リード文だけは翻訳側で <br> を入れて2行にしてある。
   0.79 は「最長行の左右余白が日本語版と同じ約7%になる」値。
   本文を書き換えたら余白を測り直すこと。 */
[data-locale="en"] .story-copy--pc {
  --story-font-scale: 0.79;
}

.story-copy p {
  margin: 0.45em 0;
  white-space: nowrap;
}

.story-copy__lead {
  font-family: var(--serif);
  font-size: calc(clamp(8px, 3.25vw, 40px) * var(--story-lead-scale));
  font-weight: 900;
  line-height: 1.25;
  white-space: nowrap;
}

.story-copy p.story-copy__lead {
  margin: 0 0 var(--story-body-line-gap);
}

.story-copy__lead + p {
  margin-top: 0;
}

.story-copy__lead em {
  color: var(--crimson);
  font-style: normal;
}

.story-copy__dash {
  position: relative;
  display: inline-block;
  width: 2em;
  height: 1em;
  vertical-align: -0.12em;
}

.story-copy__dash::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 0.07em;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.story-copy__dash-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.character-section {
  --character-background-pc: url("../pc/PC_character_bg_red.webp?v=9992f33f74");
  --character-background-sp: url("../mobile/moblie_character_bg_red.webp?v=a7672664ee");
  --character-sign-width: 409px;
  min-height: 1080px;
  padding: 54px 24px 72px;
}

.character-section[data-character-theme="blue"] {
  --character-background-pc: url("../pc/PC_character_bg_blue.webp?v=0b07eafa6b");
  --character-background-sp: url("../mobile/moblie_character_bg_blue.webp?v=b78e0b0a91");
  --character-sign-width: 550px;
}

.character-section[data-character-theme="purple"] {
  --character-background-pc: url("../pc/PC_character_bg_purple.webp?v=31a68de54a");
  --character-background-sp: url("../mobile/moblie_character_bg_purple.webp?v=d60ab36bdb");
  --character-sign-width: 361px;
}

.character-section[data-character-theme="green"] {
  --character-background-pc: url("../pc/PC_character_bg_green.webp?v=c112dafd94");
  --character-background-sp: url("../mobile/moblie_character_bg_green.webp?v=29757d1fe0");
  --character-sign-width: 650px;
}

.character-section__background {
  position: absolute;
  inset: 0;
  background: #120308 var(--character-background-pc) center / cover no-repeat;
}

.character-section::after {
  background:
    url("../pc/PC_character_gradientup.webp?v=93c069454e") top / 100% auto no-repeat,
    url("../pc/PC_character_gradientdown.webp?v=05552f4058") bottom / 100% auto no-repeat;
}

.character-section .image-heading img {
  width: 447px;
}

.character-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 1840px);
  flex: 1;
  display: grid;
  grid-template-columns:
    clamp(40px, 4.17vw, 80px)
    minmax(0, 1fr)
    clamp(40px, 4.17vw, 80px);
  align-items: center;
  justify-content: center;
  gap: 0;
}

.character-track {
  position: relative;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.character-track:active {
  cursor: grabbing;
}

.character-track__inner {
  display: flex;
  height: 100%;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.character-track__inner.is-dragging {
  transition: none;
}

/* 列比は「立ち絵 : 本文」。本文は1文を折り返さない幅が要るので本文側を厚くする。
   立ち絵は列より widthが大きく justify-self: center で中央に置かれるだけなので、
   比率を変えてもサイズは変わらず、位置が少し左へ寄る。 */
.character-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.04vw, 20px);
  padding-inline: max(0px, calc((100% - 1960px) / 2));
}

.character-stage__figure {
  align-self: center;
  justify-self: center;
  width: min(60.42vw, 1160px);
  max-width: none;
  max-height: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 84%,
    transparent 100%
  );
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.character-stage__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.character-stage__profile {
  align-self: center;
  width: min(100%, 1000px);
  padding: clamp(16px, 2.19vw, 42px) 0 clamp(12px, 1.25vw, 24px);
  text-shadow: 0 2px 10px #000;
}

/* 名前テキストの位置と大きさ。裏サインと CV 行の縦位置もここから算出するため、
   name ではなく親の identity に置いて兄弟から参照できるようにする。 */
.character-stage__identity {
  --character-name-top: 29%;
  --character-name-size: clamp(20px, 2.7vw, 52px);
  display: block;
}

.character-stage__name {
  position: relative;
  width: min(72%, var(--character-sign-width));
  height: clamp(54px, 8.44vw, 162px);
}

/* 裏サインは画像ごとに縦横比が違うため、bottom 固定だと高さの差がそのまま
   カタカナ名とのズレになる (セクンダ +36px、アルター +32px)。
   名前テキストの中心に署名の中心を合わせる。 */
.character-stage__sign {
  position: absolute;
  top: calc(var(--character-name-top) + var(--character-name-size) / 2);
  bottom: auto;
  left: 0;
  width: 100%;
  translate: 0 -50%;
}

.character-stage__name span {
  position: absolute;
  top: var(--character-name-top);
  left: 12%;
  color: #fff;
  font-family: var(--serif);
  font-size: var(--character-name-size);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 10px #000;
}

/* <picture> を flex にしているため、中の <source> が幅0のフレックスアイテムになり
   gap のぶんだけ CV 画像が右へ押されていた。source は箱を作らせない。 */
/* CV表記は「支給画像の丸バッジ ＋ テキストの声優名」。
   旧画像 (PC 141x40) の比率をそのまま再現している:
     円バッジの直径 = 画像高 (40px)、間隔 = 直径の 32.5% (13px)、
     声優名の文字サイズ = 直径の 73%。
   バッジ寸法は旧 img の width: clamp(60px, 7.34vw, 141px) に
   40/141 を掛けた値。 */
.character-stage__voice {
  --cv-badge-size: clamp(17px, 2.082vw, 40px);
  display: flex;
  align-items: center;
  gap: calc(var(--cv-badge-size) * 0.325);
  margin: clamp(3px, 0.42vw, 8px) 0 clamp(10px, 1.46vw, 28px);
}

/* 支給画像 (PC_character_cv.webp 40x40) の白丸。以前は CSS で円と文字を
   描いていたが、字面の位置合わせが不要になったので padding 調整も消した。 */
.character-stage__voice-badge {
  flex: none;
  width: var(--cv-badge-size);
  height: var(--cv-badge-size);
}

.character-stage__voice-name {
  font-family: var(--serif);
  font-size: calc(var(--cv-badge-size) * 0.73);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  /* CJK も行ボックス内で下寄りに出るため、円の中心へ光学的に合わせる */
  translate: 0 calc(var(--cv-badge-size) * -0.026);
}

.character-stage__profile h3 {
  margin: 0 0 clamp(10px, 1.15vw, 22px);
  padding: clamp(6px, 0.73vw, 14px) 0;
  border-block: 1px solid rgba(255, 255, 255, 0.38);
  font-family: var(--serif);
  font-size: clamp(14px, 2.083vw, 40px);
  font-weight: 900;
}

/* 0.92vw は「日本語の最長行 (アルターの43字) が本文列に収まる」上限。
   下限は可読性のため 14px。1520px より狭いと 14px が効いて折り返しが出る。
   本文を書き換えたら実寸を測り直すこと。 */
.character-stage__profile p {
  margin: 0.7em 0;
  font-size: clamp(14px, 0.92vw, 20px);
  line-height: 1.5;
}

.character-arrow {
  position: relative;
  z-index: 3;
  opacity: 1;
}

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

.carousel-dots {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 18px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: #fff;
}

.gallery-section {
  min-height: 980px;
  padding: 72px 24px 90px;
}

.gallery-section .image-heading img {
  width: 341px;
}

.gallery-viewer {
  width: min(100%, 1120px);
  margin-top: 60px;
}

.gallery-main {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: 14px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.gallery-thumbs button {
  position: relative;
  aspect-ratio: 1.75;
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  background: #ddd;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 140ms ease, border-color 140ms ease;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.is-active {
  border-color: #fff;
  opacity: 1;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-thumbs picture {
  display: contents;
}

.gallery-thumb--mobile {
  display: none;
}

.platforms-section {
  min-height: 440px;
  padding: 58px 24px 72px;
}

.platforms-section .image-heading img {
  width: 443px;
}

.platform-link {
  position: relative;
  width: min(90%, 640px);
  margin-top: 36px;
  transition: filter 140ms ease;
}

.platform-link img {
  width: 100%;
  height: auto;
}

.platform-link span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: clamp(26px, 1.667vw, 32px);
  letter-spacing: 0.04em;
}

.platform-link:hover {
  filter: brightness(1.25);
}

.platforms-section p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}

.spec-section {
  min-height: 960px;
  padding: 36px 24px 100px;
}

.spec-section .image-heading img {
  width: 177px;
}

.spec-table {
  width: min(100%, 643px);
  margin: 42px 0 0;
  font-size: 14px;
}

.spec-table > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.spec-table dt,
.spec-table dd {
  margin: 0;
  padding: 16.5px 14px;
}

.spec-table dt {
  letter-spacing: 0.08em;
}

.spec-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  padding: 50px 24px 88px;
  background: var(--ink);
}

.site-footer__blood {
  position: absolute;
  bottom: 0;
  left: -4%;
  width: min(52vw, 769px);
  opacity: 0.85;
  pointer-events: none;
}

.site-footer__brand {
  position: relative;
  width: min(70vw, 530px);
}

.site-footer p {
  position: relative;
  margin: 32px 0 0;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.lightbox,
.video-modal,
.support-modal {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 64px 120px;
}

.lightbox__backdrop,
.video-modal__backdrop,
.support-modal__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__backdrop,
.video-modal__backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(3px);
}

.support-modal {
  z-index: 500;
  padding: 48px clamp(18px, 4vw, 72px);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 380ms;
}

.support-modal.is-visible {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.support-modal__backdrop {
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background-color 380ms ease,
    backdrop-filter 380ms ease,
    -webkit-backdrop-filter 380ms ease;
}

.support-modal.is-visible .support-modal__backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.support-modal__content {
  position: relative;
  z-index: 1;
  width: min(100%, 900px, calc(100vh - 96px));
  width: min(100%, 900px, calc(100svh - 96px));
  margin: 0;
  opacity: 0;
  transition: opacity 380ms ease;
}

.support-modal.is-visible .support-modal__content {
  opacity: 1;
}

.support-modal__content > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1278px);
  padding: 14px;
}

.lightbox__content > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  object-fit: contain;
  background: #000;
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: min(100%, 1278px);
  aspect-ratio: 16 / 9;
  padding: 14px;
}

.video-modal__content iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.lightbox__close,
.video-modal__close,
.support-modal__close {
  position: absolute;
  z-index: 2;
  top: 16.2vh;
  right: 10.16vw;
  width: clamp(59px, 4.07vw, 78px);
  height: clamp(59px, 4.07vw, 78px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.support-modal__close {
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  width: clamp(52px, 4.07vw, 78px);
  height: clamp(52px, 4.07vw, 78px);
  opacity: 0;
  transition: opacity 380ms ease;
}

.support-modal.is-visible .support-modal__close {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .support-modal {
    transition: visibility 0s linear 20ms;
  }

  .support-modal__backdrop,
  .support-modal__content,
  .support-modal__close {
    transition-duration: 20ms !important;
    transition-timing-function: linear;
  }

  .hero__support-thumb,
  .hero__support-thumb img {
    transition-duration: 20ms !important;
  }
}

.mobile-menu {
  display: none;
}

@media (orientation: landscape) {
  .hero {
    --news-overlap: min(13.23vw, 254px);
    min-height: max(calc(100vh + var(--news-overlap)), min(79.43vw, 1525px));
    min-height: max(calc(100svh + var(--news-overlap)), min(79.43vw, 1525px));
  }

  /* NEWSセクションは不透明で --news-overlap ぶん上に重なる。そのため
     「NEWSが重なり始める高さ」までに背景を完全に塗り切らないと継ぎ目が出る。
     旧指定は停止位置が 62% > (100% - overlap) と逆行しており、CSSのクランプで
     0.52 から 1.0 へ瞬間的に切り替わっていた。
     bottom を overlap に合わせ、要素の 100% がちょうど NEWS の上端になるようにする。 */
  .hero__shade::after {
    position: absolute;
    right: 0;
    bottom: var(--news-overlap);
    left: 0;
    height: clamp(220px, 22vw, 420px);
    background: linear-gradient(
      to bottom,
      rgba(12, 12, 12, 0) 0%,
      rgba(12, 12, 12, 0.18) 28%,
      rgba(12, 12, 12, 0.62) 66%,
      var(--ink) 100%
    );
    content: "";
    pointer-events: none;
  }

  .story-copy {
    margin-top: clamp(64px, 8.385vw, 161px);
    line-height: 1.35;
  }

  .story-copy p {
    margin-block: 0.2em;
  }

  .hero__scroll {
    animation: none;
  }

  /* arrow がヒーロー末尾から離れて見えるため、上の余白と arrow 下の間隔を詰める */
  .news-section {
    min-height: 565px;
    margin-top: max(-254px, -13.23vw);
    padding-top: 62px;
  }

  .news-section__arrow {
    margin-bottom: 32px;
  }

  .movie-section {
    min-height: 1086px;
  }

  .story-section {
    min-height: 1041px;
  }

  .character-section {
    --character-track-content-inset: max(
      calc(24px + clamp(40px, 4.17vw, 80px)),
      calc((100vw - 1960px) / 2)
    );
    --character-tall-screen-shift: clamp(0px, calc(50vh - 37.5vw), 120px);
    --character-tall-screen-shift: clamp(0px, calc(50svh - 37.5vw), 120px);
    min-height: 1161px;
    margin-bottom: calc(0px - var(--character-tall-screen-shift));
  }

  .character-track {
    width: 100vw;
    justify-self: center;
  }

  .character-slide {
    padding-inline: var(--character-track-content-inset);
  }

  .character-stage,
  .character-section .carousel-dots {
    translate: 0 calc(0px - var(--character-tall-screen-shift));
  }

  .gallery-section {
    min-height: 1094px;
  }

  .platforms-section {
    min-height: 522px;
  }

  .platform-link {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  }

  .spec-section {
    min-height: 1219px;
    padding-bottom: 0;
  }

  .spec-note {
    margin-top: 10px;
    margin-bottom: 0;
  }

  .site-footer {
    min-height: 379px;
    padding-bottom: 169px;
  }
}

@media (orientation: landscape) and (min-width: 1200px) {
  .character-slide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  }

  .character-stage__profile {
    --character-profile-indent: clamp(28px, 2.865vw, 55px);
    align-self: center;
    margin-top: 0;
    translate: none;
  }

  .character-stage__figure {
    translate: none;
  }

  .character-stage__name {
    top: auto;
  }

  /* 名前テキスト・引用・本文と同じ左位置にそろえる */
  .character-stage__voice {
    position: relative;
    top: clamp(-33px, -1.719vw, -21px);
    left: var(--character-profile-indent);
  }

  .character-stage__profile h3 {
    position: relative;
    top: clamp(-10px, -0.521vw, -6px);
    left: var(--character-profile-indent);
    width: calc(100% - var(--character-profile-indent));
    margin-bottom: clamp(7px, 0.625vw, 12px);
    padding: clamp(14px, 1.25vw, 24px) 0 clamp(8px, 0.73vw, 14px);
    border: 0;
    line-height: clamp(30px, 2.604vw, 50px);
  }

  .character-stage__profile h3::before {
    position: absolute;
    top: -26px;
    left: -2px;
    width: calc(100% + 7px);
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    content: "";
  }

  .character-stage__profile p {
    position: relative;
    top: clamp(-15px, -0.781vw, -9px);
    left: var(--character-profile-indent);
    width: calc(100% - var(--character-profile-indent));
    margin-block: 0.7em;
    line-height: clamp(18px, 1.563vw, 30px);
  }
}

/* News pages */
.news-page {
  min-height: 100vh;
  background:
    url("../pc/PC_footer_bloodbg.webp?v=ec3b92ccd0") left bottom / min(48vw, 769px) auto no-repeat,
    var(--ink);
}

.subpage-main {
  min-height: calc(100vh - 140px);
  padding: 142px 24px 72px;
}

.subpage-heading {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
}

.subpage-heading span {
  display: block;
  margin-top: 10px;
  color: var(--crimson);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.28em;
}

.news-index {
  position: relative;
  z-index: 1;
  width: min(100%, 1128px);
  margin-inline: auto;
}

.news-index .news-list {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 24px);
  width: 100%;
  margin-top: 36px;
  overflow: visible;
  touch-action: auto;
  cursor: default;
  user-select: text;
}

.news-index .loading-copy,
.news-index .news-empty,
.news-index .news-error {
  grid-column: 1 / -1;
}

.subpage-actions {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.subpage-actions .outline-button {
  min-width: 200px;
  margin: 0;
  padding-block: 18px;
  font-family: var(--serif);
  font-size: 16px;
}

.subpage-footer {
  position: relative;
  z-index: 2;
  min-height: 90px;
  padding: 22px 24px;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  text-align: center;
}

.news-detail-hero {
  position: absolute;
  inset: 0 0 auto;
  height: 600px;
  background:
    linear-gradient(to bottom, rgba(2, 7, 14, 0.08), rgba(3, 7, 13, 0.18)),
    url("../pc/PC_topview_bg_bgonly.webp?v=4aaa0baba0") center 24% / cover no-repeat;
  opacity: 0.94;
}

.news-detail-page .subpage-main {
  padding-top: 220px;
}

.news-detail {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  margin-inline: auto;
}

.news-detail__image {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.48);
}

.news-detail__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-detail__heading {
  margin: 50px 0 4px;
  font-size: clamp(25px, 2.3vw, 36px);
  line-height: 1.55;
  text-align: center;
}

.news-detail__date {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  text-align: center;
}

.news-detail__body {
  margin-top: 22px;
  padding-top: 66px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.news-detail__body p {
  margin: 0 0 1.25em;
}

.news-detail__link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-detail__link:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.news-detail__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.news-detail__body-image {
  width: min(100%, 860px);
  margin: 42px auto;
}

.news-detail__body-image img {
  display: block;
  width: 100%;
  height: auto;
}

.news-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.news-pagination a {
  min-width: 0;
  overflow: hidden;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-pagination a:last-child {
  text-align: right;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (orientation: landscape) and (max-width: 1024px) {
  /* font-size ではなく変数を変える。言語切替の高さも同じ値に追従する。 */
  .site-header {
    --header-nav-size: 13px;
  }

  .desktop-nav {
    gap: 14px;
  }

  .character-stage {
    grid-template-columns:
      clamp(32px, 4.88vw, 50px)
      minmax(0, 1fr)
      clamp(32px, 4.88vw, 50px);
    gap: clamp(4px, 0.98vw, 10px);
  }

  .character-section {
    --character-track-content-inset: calc(
      24px
      + clamp(32px, 4.88vw, 50px)
      + clamp(4px, 0.98vw, 10px)
    );
  }

  .character-slide {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(6px, 0.98vw, 10px);
  }
}

@media (orientation: portrait) {
  :root {
    --header-height: 90px;
  }

  /* loading-screenのteam AecaロゴだけをPC版指定の半分へ縮める。 */
  .loading-screen__logo {
    width: min(53px, 15vw);
  }

  .site-header {
    justify-content: flex-end;
    height: var(--header-height);
    padding: 18px 18px 0;
    background: transparent;
  }

  .site-header::before {
    content: none;
  }

  .header-mark,
  .desktop-nav {
    display: none;
  }

  /* 閉じるボタン (9.35vw) と同じ規則・同じ大きさの箱にそろえる。
     従来は 54x48px 固定で、狭い端末ほど閉じるボタンより大きくなっていた。 */
  .mobile-menu-button {
    display: grid;
    width: 9.35vw;
    height: 9.35vw;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    filter: drop-shadow(0 2px 5px #000);
  }

  /* グリフの実寸を × と一致させる。
     閉じる画像は 118px 中 × が 68px (57.6%)、ハンバーガー画像は 98px 中 90px (91.8%)。
     箱が同じなので 57.6 / 91.8 = 62.75% に縮めるとグリフが同寸になる。 */
  .mobile-menu-button img {
    width: 62.75%;
  }

  .mobile-menu {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 12vh 24px 42px;
    /* 裏側はサイトを透かす。専用の背景画像は敷かない。 */
    background: rgba(12, 12, 12, 0.82);
  }

  .mobile-menu__art {
    display: none;
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(to bottom, rgba(3, 4, 6, 0.84), rgba(3, 4, 6, 0.9)),
      url("../mobile/moblie_topview_bg_characteronly.webp?v=dbb45156d6") center 24% / cover no-repeat,
      url("../mobile/moblie_overlay_menu_gradientup.webp?v=eda7139e92") top / 100% auto no-repeat,
      url("../mobile/moblie_overlay_menu_gradientdown.webp?v=c9903ff120") bottom / 100% auto no-repeat;
  }

  .mobile-menu__close {
    position: fixed;
    top: 3.7vw;
    right: 3.7vw;
    width: 9.35vw;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mobile-menu__nav a {
    display: grid;
    min-height: 21px;
    place-items: center;
  }

  .mobile-menu__nav img {
    width: auto;
    max-width: min(68vw, 280px);
    height: 21px;
  }

  .mobile-menu__social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 58px;
  }

  .mobile-menu__social--cn {
    display: none;
  }

  [data-locale="zh-cn"] .mobile-menu__social--default {
    display: none;
  }

  [data-locale="zh-cn"] .mobile-menu__social--cn {
    display: flex;
  }

  .mobile-menu__social img {
    width: auto;
    height: 80px;
  }

  .mobile-menu__team {
    width: 68px;
    margin-top: 58px;
  }

  /* SP版はヘッダーに幅が無いので、言語切替はメニュー内だけに出す */
  .site-header .lang-switch {
    display: none;
  }

  /* JP/CN/ENはメニュー内で18pxにそろえる。
     メニュー内の余白は他が全て固定 px なので、言語切替も vw を使わず固定にする。 */
  .mobile-menu .lang-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 1.5em;
    min-height: 21px;
    margin-top: 40px;
    font-size: 18px;
  }

  .hero {
    --hero-image-offset-y: min(0px, calc(35vh - 50vw));
    --hero-image-offset-y: min(0px, calc(35svh - 50vw));
    --hero-image-height: 177.78vw;
    --hero-image-fade-height: min(27.78vw, 160px);
    /* ロゴとSteamボタンは表示領域を基準に配置されるため、ヒーローも1画面高にそろえる。
       幅基準の216.67vwを最低高にすると、低い画面でNEWSまで空白だけが残る。 */
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
  }

  .hero::before {
    position: absolute;
    z-index: -1;
    top: calc(
      var(--hero-image-offset-y)
      + var(--hero-image-height)
      - var(--hero-image-fade-height)
    );
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
      to bottom,
      rgba(7, 19, 34, 0),
      #071322 var(--hero-image-fade-height)
    );
    content: "";
    pointer-events: none;
  }

  /* かつてはここで .hero__rain を背景画像の箱 (9:16) に合わせていた。
     canvas 自身が背景画像を描いていたため位置と縦横比を一致させる必要があったが、
     雨は透明なオーバーレイになったので、ヒーロー全体を覆う inset: 0 のままでよい。 */

  .hero__background {
    background-image: url("../mobile/moblie_topview_bg.webp?v=3ca410a77d");
    background-position: center var(--hero-image-offset-y);
    background-size: 100% auto;
  }

  .hero__shade {
    top: auto;
    /* ヒーローを1画面高にした後も画像を覆いすぎないよう、シェードを約1割下へ送る。
       下端には十分に暗い領域を残し、NEWSとの境界は維持する。 */
    bottom: max(-58px, -12vw);
    height: min(111.02vw, 533px);
    background:
      linear-gradient(
        to bottom,
        rgba(12, 12, 12, 0) 0%,
        rgba(12, 12, 12, 0.18) 15%,
        rgba(12, 12, 12, 0.58) 42%,
        rgba(12, 12, 12, 0.9) 73%,
        var(--ink) 100%
      ),
      url("../mobile/moblie_topview_gradient.webp?v=370bbdfa17") center bottom / 100% 100% no-repeat;
  }

  .hero__mobile-stack {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: calc(
      100% - 100vh
      /* Steamとスクロール表示の間隔に12pxを加え、ロゴ群を少し上へ戻す。 */
      + clamp(8px, 1vh, 12px)
      + min(6.58vw, 31.584px)
      + clamp(16px, 4vw, 20px)
      + 12px
    );
    bottom: calc(
      100% - 100svh
      + clamp(8px, 1svh, 12px)
      + min(6.58vw, 31.584px)
      + clamp(16px, 4vw, 20px)
      + 12px
    );
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__content {
    position: relative;
    z-index: 1;
    top: auto;
    left: auto;
    width: min(85%, 408px);
    margin-bottom: clamp(4px, 1vw, 8px);
    translate: 0 clamp(24px, 5vw, 32px);
  }

  .hero__catch {
    z-index: 2;
    top: auto;
    right: auto;
    bottom: calc(100% + clamp(2px, 1vw, 6px));
    /* SP版はロゴ幅を超えてよいが、画面幅の80%に収める */
    left: 50%;
    width: 80vw;
    /* ロゴへ少し重なる位置まで36px下げる。 */
    translate: -50% 36px;
    /* 字間で幅を稼ぐのではなく、字を大きくして 80vw を埋める */
    font-size: min(3.29vw, 15.8px);
    line-height: 1.9;
    letter-spacing: 0.2em;
    text-align: center;
    /* 輪郭は em 指定 (0.07em) で字の大きさに追従するので上書き不要 */
  }

  /* SP の支給画像は 834px / モバイルロゴ 1080px = 77.22%。
     .hero__catch の箱は 80vw だが、ロゴ (.hero__content = min(85%, 408px))
     を基準に置きたいので vw で直に指定する。 */
  .hero__catch-image {
    width: min(65.64vw, 315px);
  }

  /* キャッチコピー (.hero__catch) は .hero__content に対して width:100% で
     載っているため、ロゴだけ幅を変えると両者がズレる。
     大きくしたい場合は .hero__content の width を広げること。 */
  /* 英語は47文字あるため、字間0のぶんを字の大きさに回して 80vw に合わせる */
  [data-locale="en"] .hero__catch {
    font-size: min(3.45vw, 16.6px);
  }

  .hero__logo {
    position: relative;
    z-index: 0;
    width: 100%;
    margin: 0;
    /* Steam側へ28px下げる。キャッチコピーとSteamは前面を維持する。 */
    translate: 0 28px;
  }

  .hero__steam {
    position: relative;
    z-index: 2;
    bottom: auto;
    left: auto;
    width: min(47.13vw, 509px);
  }

  .hero__social,
  [data-locale="zh-cn"] .hero__social--cn {
    display: none;
  }

  .hero__support-thumb {
    right: clamp(16px, 4vw, 24px);
    bottom: calc(100% - 100vh + clamp(16px, 4vw, 24px));
    bottom: calc(100% - 100svh + clamp(16px, 4vw, 24px));
    width: min(14vw, 67px);
  }

  .hero__scroll {
    bottom: calc(100% - 100vh + clamp(8px, 1vh, 12px));
    bottom: calc(100% - 100svh + clamp(8px, 1svh, 12px));
    width: min(27.41vw, 131.568px);
    animation: none;
  }

  .news-section {
    min-height: 100.56vw;
    padding:
      21.03vw
      3.75vw
      8vw;
  }

  .news-section__arrow {
    display: none;
  }

  .news-section .image-heading img {
    width: 18.24vw;
  }

  .blood--news {
    background-position: center 24%;
    background-size: 150vw auto;
  }

  .news-carousel {
    display: block;
    width: 100%;
  }

  .news-carousel--home {
    margin-top: 5vw;
  }

  .news-carousel .news-carousel__arrow {
    position: absolute;
    top: calc(50% - clamp(36px, 10vw, 48px));
    width: clamp(40px, 12vw, 58px);
    height: clamp(72px, 20vw, 96px);
  }

  .news-carousel .news-carousel__arrow img {
    width: clamp(18px, 5vw, 26px);
    height: auto;
  }

  .news-carousel__arrow.carousel-arrow--prev {
    left: -10px;
  }

  .news-carousel__arrow.carousel-arrow--next {
    right: -10px;
  }

  .news-list {
    grid-auto-columns: 50vw;
    gap: 2.5vw;
    padding: 3px;
  }

  .news-list__item {
    padding: 2.5vw 2.5vw 3.5vw;
  }

  .news-list__image {
    padding: 0.8vw;
  }

  .news-list__content {
    padding: 3.2vw 1.6vw 0.4vw;
  }

  .news-list__date {
    font-size: clamp(16px, 4vw, 21px);
  }

  .news-list__title {
    margin-top: 2.4vw;
    font-size: clamp(13px, 3.35vw, 17px);
    line-height: 1.6;
  }

  .news-section .loading-copy,
  .news-section .news-empty,
  .news-section .news-error {
    padding: 6.6667vw 0;
    font-size: 3.3333vw;
  }

  .news-section .outline-button {
    min-width: 24vw;
    margin-top: 6vw;
    padding: 1.4583vw 3.3333vw;
    font-size: 2.2vw;
  }

  .movie-section {
    min-height: 73.53vw;
    padding:
      12.3vw
      2.9167vw
      5vw;
  }

  .movie-section .image-heading img {
    width: 21.3vw;
  }

  .media-carousel {
    width: 82.25%;
    margin-top: 4vw;
    grid-template-columns: 4.5833vw minmax(0, 1fr) 4.5833vw;
    gap: 0.8333vw;
  }

  .carousel-arrow {
    width: 22px;
    height: 64px;
  }

  .carousel-arrow img {
    width: 10px;
    height: auto;
  }

  .movie-section .carousel-arrow {
    width: 4.5833vw;
    height: 13.3333vw;
  }

  .movie-section .carousel-arrow img {
    width: 2.0833vw;
  }

  .movie-card {
    aspect-ratio: auto;
    padding: 0.8333vw;
  }

  .movie-card__picture {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .gallery-main__frame,
  .lightbox__frame {
    box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.66);
  }

  .movie-card__frame {
    box-shadow: inset 0 0 0 1.0417vw rgba(0, 0, 0, 0.66);
  }

  .movie-card__play {
    width: 13vw;
  }

  .section-caption {
    width: 84%;
    margin-top: 4vw;
    font-size: 2.05vw;
    text-align: center;
  }

  .story-section {
    min-height: 216.67vw;
    max-height: none;
    padding:
      18.33vw
      0
      10vw;
  }

  .story-section__art {
    background:
      linear-gradient(to bottom, var(--ink) 0, transparent 14%, transparent 82%, var(--ink) 100%),
      url("../mobile/moblie_story_bg.webp?v=8b9c1ac5c5") center / cover no-repeat;
  }

  /* 血痕は上下グラデーションより手前に出す。
     ::after は .story-section__art より後に描画されるため、__art 側に置くと
     グラデーション画像に隠れてしまう。背景レイヤーは先頭ほど手前。 */
  .story-section::after {
    background:
      /* 左上は画像の高さの半分ぶん下げる。画像 278x432 なので
         幅30vw のとき高さ 46.6vw、その半分が 23.3vw。 */
      url("../mobile/moblie_story_bgblood2.webp?v=1b77158855") left 23.3vw / 30% auto no-repeat,
      url("../mobile/moblie_story_bgblood1.webp?v=bc41f66c84") right bottom / 50% auto no-repeat,
      url("../mobile/moblie_story_gradientup.webp?v=52f51becc9") top / 100% auto no-repeat,
      url("../mobile/moblie_story_gradientdown.webp?v=494f38ca1a") bottom / 100% auto no-repeat;
  }

  .story-section .image-heading {
    width: 21.76vw;
  }

  .story-section .image-heading img {
    width: 100%;
  }

  .story-copy--pc {
    display: none;
  }

  .story-copy--sp {
    --story-body-font-size: 3.3333vw;
    display: block;
    width: 90vw;
    margin-top: 20.33vw;
    font-size: var(--story-body-font-size);
    line-height: 1.9;
  }

  .story-copy--sp p {
    margin: 0;
    white-space: normal;
  }

  .story-copy--sp p.story-copy__lead {
    margin: 0 0 8.3333vw;
    font-size: 4.5833vw;
    line-height: 1.6;
  }

  .story-copy--sp .story-copy__line {
    display: block;
    white-space: nowrap;
  }

  .story-copy--sp .story-copy__paragraph + .story-copy__paragraph {
    margin-top: 6.25vw;
  }

  .character-section {
    min-height: 216.67vw;
    max-height: 2140px;
    padding: 9vw 22px 9vw;
  }

  .character-section__background {
    background-image: var(--character-background-sp);
    background-position: top center;
    /* 元画像は幅100%で約198vw高だが、セクションは最低216.67vwある。
       縦横比を保ったまま、本文量で伸びた場合も末尾まで背景を覆う。 */
    background-size: cover;
  }

  .character-section::after {
    background:
      url("../mobile/moblie_character_gradientup.webp?v=52f51becc9") top / 100% auto no-repeat,
      url("../mobile/moblie_character_gradientdown.webp?v=6185c5dfec") bottom / 100% auto no-repeat;
  }

  .character-section .image-heading img {
    width: 41.4vw;
  }

  /* 高さは本文量に追従させる。キャラクターごとに段落数が違うため、
     固定 vw だと長いキャラのプロフィールが overflow: hidden で切れる。
     .character-track__inner は flex なので、4枚のスライドは最も高いものに揃う。 */
  .character-stage {
    width: 100%;
    min-height: calc(190.7vw - 5px);
    height: auto;
    flex: none;
    display: block;
  }

  .character-track {
    width: 100vw;
    height: auto;
    min-height: 100%;
    margin-inline: calc(50% - 50vw);
  }

  .character-slide {
    position: relative;
    display: block;
    height: auto;
  }

  /* 従来の -16.97vw は画像の上端 (頭部側) を 66px ほど切っていた */
  .character-stage__figure {
    position: absolute;
    top: 0;
    left: 50%;
    flex: none;
    width: 100vw;
    height: auto;
    max-height: none;
    max-width: none;
    margin: 0;
    translate: -50% 0;
    /* 名前の少し上からフェードを始めて、名前と本文を読みやすくする。
       立ち絵の高さは 100vw x 2140/1080 = 約198vw。プロフィールは
       padding-top: 115vw から始まり、その 32px 下が名前。
       115/198 = 58% なので、その手前 54% から 72% で消し切る。 */
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 54%,
      transparent 72%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 54%,
      transparent 72%
    );
  }

  /* 立ち絵の下に置く位置 (旧 top: 115vw) は padding で確保する。
     絶対配置のままだと本文の高さがスライドに反映されない。
     margin ではなく padding にしているのはマージン相殺を避けるため。 */
  .character-stage__profile {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    padding: 115vw 0 0;
  }

  /* CV行の縦位置を名前テキストの中心に合わせるため、下端そろえをやめて
     計算で置く。--character-name-* は兄弟の .character-stage__voice も参照する。 */
  .character-stage__identity {
    --character-name-size: clamp(18px, 6.8vw, 40px);
    --character-name-offset: 32px;
    --character-name-box: min(23.77vw, 138.6px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 74vw;
    margin-inline: auto;
  }

  .character-stage__name {
    top: var(--character-name-offset);
    width: min(60vw, 350px);
    height: var(--character-name-box);
  }

  /* SP版はPCと別組み。従来どおり下端合わせのままにする。 */
  .character-stage__sign {
    top: auto;
    bottom: 0;
    width: min(60vw, var(--character-sign-width));
    max-width: none;
    translate: max(-75px, -10vw) 0;
  }

  .character-stage__name span {
    left: 0;
    white-space: nowrap;
  }

  /* 上マージン = 名前テキストの中心 - バッジ半径。
     0.29 は --character-name-top (29%) と同じ値。 */
  .character-stage__voice {
    flex: none;
    margin: calc(
      var(--character-name-offset)
      + 0.29 * var(--character-name-box)
      + var(--character-name-size) / 2
      - var(--cv-badge-size) / 2
    ) 0 0;
  }

  /* 旧画像 (SP 199x62) の 58/199 に相当する直径 */
  .character-stage__voice {
    --cv-badge-size: 5.372vw;
  }

  .character-stage__profile h3 {
    width: 74vw;
    margin: 0 auto min(3.3vw, 24px);
    padding: min(3.3vw, 24px) 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.38);
    font-size: clamp(13px, 3.56vw, 26px);
    line-height: 1.4;
  }

  /* 段落は意味のかたまりごとに分かれているので一律の間隔を空ける。
     (以前の nth-of-type(3) だけ空ける指定はダミー文専用の調整だった) */
  .character-stage__profile p {
    width: 74vw;
    margin: 0.9em auto;
    font-size: clamp(8px, 2.47vw, 18px);
    line-height: 1.45;
  }

  /* 旧レイアウトの 42%（= 190.7vw の 42%）と同じ位置。
     スライド高さが本文量で変わるようになったため % ではなく vw で固定する。 */
  .character-arrow {
    position: absolute;
    top: 80vw;
  }

  .character-arrow.carousel-arrow--prev {
    left: -8px;
  }

  .character-arrow.carousel-arrow--next {
    right: -8px;
  }

  .carousel-dots {
    gap: 12px;
  }

  .character-section .carousel-dots {
    translate: 0 min(5vw, 24px);
  }

  .carousel-dots button {
    width: 5px;
    height: 5px;
  }

  .gallery-section {
    min-height: 114.35vw;
    padding: 8.97vw 18px 8vw;
  }

  .gallery-section .image-heading img {
    width: 31.6vw;
  }

  .gallery-viewer {
    width: 78vw;
    margin-top: 4vw;
  }

  .gallery-main {
    padding: 7px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4vw;
  }

  .gallery-thumb--mobile {
    display: block;
  }

  .platforms-section {
    min-height: 49vw;
    padding: 9.08vw 4.5833vw 5vw;
  }

  .platforms-section .image-heading img {
    width: 41vw;
  }

  .platform-link {
    width: 59.5vw;
    margin-top: 4vw;
  }

  .platform-link span {
    font-size: 2.7vw;
  }

  .platforms-section p {
    margin-top: 2vw;
    font-size: 1.9vw;
  }

  .spec-section {
    min-height: 0;
    padding: 11.11vw 18px 0;
  }

  .spec-section .image-heading img {
    width: 16.4vw;
  }

  .spec-table {
    width: 78vw;
    margin-top: 5.72vw;
    font-size: 2.46vw;
  }

  .spec-table > div {
    grid-template-columns: 34% minmax(0, 1fr);
  }

  .spec-table dt,
  .spec-table dd {
    padding: 1.8146vw 1.25vw;
  }

  .spec-note {
    width: 78vw;
    margin: 1.4vw 0 0;
    font-size: 1.92vw;
    text-align: center;
  }

  .site-footer {
    min-height: 33vw;
    padding: 8vw 18px 9vw;
  }

  .site-footer__blood {
    left: -20%;
    width: 100vw;
  }

  .news-page {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    background:
      url("../mobile/moblie_footer_bloodbg.webp?v=ee07336bbc") left bottom / 100% auto no-repeat,
      var(--ink);
  }

  .site-footer__brand {
    width: min(68vw, 480px);
  }

  .site-footer p {
    margin-top: 6vw;
    font-size: clamp(8px, 2.2vw, 11px);
  }

  .lightbox,
  .video-modal,
  .support-modal {
    padding: 72px 18px;
  }

  .support-modal__content {
    width: min(100%, calc(100vh - 144px));
    width: min(100%, calc(100svh - 144px));
  }

  .lightbox__close,
  .video-modal__close,
  .support-modal__close {
    top: 22px;
    right: 22px;
    width: 59px;
    height: 59px;
  }

  .support-modal__close {
    width: 52px;
    height: 52px;
  }

  .lightbox__content,
  .video-modal__content {
    padding: 7px;
  }

  .subpage-main {
    flex: 1 0 auto;
    min-height: auto;
    padding: 15.7vw 20px 70px;
  }

  .news-detail-page .subpage-main {
    padding: 15.7vw 8.33vw 70px;
  }

  .subpage-heading {
    font-size: 46px;
  }

  .subpage-heading span {
    font-size: 14px;
  }

  .news-index .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5vw 2.5vw;
    width: 100%;
  }

  .news-detail-hero {
    height: 35.9vw;
    background:
      linear-gradient(to bottom, rgba(2, 7, 14, 0.08), rgba(3, 7, 13, 0.18)),
      url("../mobile/moblie_topview_bg_bgonly.webp?v=cf4ebe7172") center 24% / cover no-repeat;
  }

  .news-detail {
    width: 100%;
  }

  .news-detail__image {
    padding: 5px;
  }

  .news-detail__heading {
    margin-top: 28px;
    font-size: 22px;
  }

  .news-detail__date {
    font-size: 16px;
  }

  .news-detail__body {
    padding-top: 26px;
    font-size: 14px;
    line-height: 1.85;
  }

  .news-detail__body-image {
    margin: 26px auto;
  }

  .news-pagination {
    gap: 16px;
    font-size: 13px;
  }

  .subpage-footer {
    font-size: 13px;
  }
}

@media (orientation: landscape) and (max-height: 760px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    --header-nav-top: 28px;
    height: var(--header-height);
  }

}

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

  .hero__rain {
    display: none;
  }
}
