/* =========================================================
   CODE NEXIA — 网页00
   Figma: pHM14JGsMaPZ7r7vSCX6rs  node-id 8888:1612
   设计画板：1920 × 1080
   ========================================================= */

:root {
  --nav-color:            #c9d8ff;
  --nav-shadow:           0 0 20px #2c2cb9;
  --nav-active-shadow:    0 0 30px #029cfe;
  --cta-label-shadow:     0 0 10px rgba(2, 97, 254, .5);

  --footer-text:          #c9d8ff;
  --footer-sep:           rgba(201, 216, 255, .45);

  /* 日文站点必须用日文字体：首选 Google Fonts 的 Noto Sans JP（index/thanks 的 <link> 加载），
     回退到 mac / Windows 自带的日文黑体。不要再放 Noto Sans SC / 微软雅黑 等中文字体，
     否则 今・続・直 等汉字会按中文字形渲染（DMM 10/14 审核意见）。 */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; border: 0; }

a { text-decoration: none; }

/* ---------- 画板 ---------- */

/* .page 由 JS 撑出缩放后的真实高度；.viewport 脱离文档流，避免多余滚动区 */
.page {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.viewport {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  transform-origin: top left;
}

/* 顶栏固定在浏览器视口，跟随缩放；top 由 js/common.js 设为 DMM 标头的高度 */
.topbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 1920px;
  height: 124px;
  transform-origin: top left;
  z-index: 50;
}

/* DMM 官方标头贴在浏览器顶部，不跟随 1920 画板缩放 */
.dmm-header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 80;
  background: #fff;
}

.dmm-header--sp { display: none; }

@media (max-width: 767px) {
  .dmm-header--pc { display: none; }
  .dmm-header--sp { display: block; }
}

.dmm-header--sp > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
  font-family: "Meiryo", "Hiragino Kaku Gothic Pro", Verdana, sans-serif;
}

.dmm-header--sp > header a {
  margin: 8px 0;
  color: #333;
  text-decoration: none;
}

.dmm-header--sp .ntg-top {
  padding-left: 17px;
  background: url("../ddmheader/sp/header_with%20point%20charge/general/images/bg_bt_olgtop.gif") no-repeat left center;
  background-size: 14px 13px;
  font-size: 14px;
}

.dmm-header--sp .navi-right { margin: 8px 0; }

.dmm-header--sp .arrow {
  position: relative;
  font-size: 11px;
  text-decoration: underline;
}

.dmm-header--sp .arrow::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -10px;
  width: 5px;
  height: 10px;
  background: url("../ddmheader/sp/header_with%20point%20charge/general/images/arrow_common.gif") no-repeat;
  background-size: 100% 100%;
}


button.head-cta,
button.cta,
button.rw-cta {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* 每屏设计稿 1080 高，顶部 124px 是导航所在的位置：导航底图 0〜110px 不透明，110〜124px 是渐隐阴影。
   固定导航在视口里占自己的一行，不再盖在内容上：每屏整体上提 110px、在文档流里只占 970px，
   并裁掉自己顶部的 110px（第一屏除外，它顶部的画面要垫在导航下面）。
   停在整屏位置时：导航不透明部分下面压着的是上一屏底部（被 .topbar--solid 的实底盖住），
   渐隐阴影落在本屏自己顶部的 14px 背景上，所以看到的只有本屏内容；滚动途中各屏首尾相接 */
.stage {
  position: relative;
  top: -110px;
  margin-bottom: -110px;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  clip-path: inset(110px 0 0 0);
}

.stage:first-of-type {
  clip-path: none;
}

.stage__bg {
  position: absolute;
  left: 0;
  top: 0;
}


/* ---------- 导航 ---------- */

.header {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 124px;
}

/* 导航底图 img_tab_di01 本身约 15% 透明，底部 14px 是渐隐的阴影。
   停在第一屏时透出的是 TOP 的画面，设计稿如此；停在其他屏时导航下面压着的是上一屏的底部，
   会把上一屏的文字透出来，所以由 js/common.js 在离开第一屏后加 .topbar--solid 垫一层实底 */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#00081b 0, #00081b 110px, rgba(0, 8, 27, 0) 124px); /* 与底图的不透明/渐隐分界一致 */
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.topbar--solid .header::before {
  opacity: 1;
}

.header__bg {
  position: absolute;
  left: 0;
  top: 0;
}

.header__logo {
  position: absolute;
  left: 40px;
  top: 2px;
}

/* LOGO 固定高度、宽度随图片比例（R18 版 NEXIAX 更宽） */
.header__logo img,
.footer__logo img {
  width: auto;
  height: 97px;
}

.nav__sep {
  position: absolute;
  left: var(--x);
  top: 35px;
}

.nav__link {
  position: absolute;
  left: var(--x);
  top: 31px;
  font-size: 26px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nav-color);
  text-shadow: var(--nav-shadow);
}

.nav__link--active {
  font-weight: 700;
  color: #fff;
  text-shadow: var(--nav-active-shadow);
}

/* 选中态下划线：每格导航宽 180px，相对 TOP 的 331px 逐格右移 */
.nav__indicator {
  position: absolute;
  left: 331px;
  top: 91px;
}

.nav[data-active="story"]     .nav__indicator { left: 511px; }
.nav[data-active="character"] .nav__indicator { left: 691px; }
.nav[data-active="system"]    .nav__indicator { left: 871px; }
.nav[data-active="rewards"]   .nav__indicator { left: 1051px; }
.nav[data-active="gallery"]   .nav__indicator { left: 1231px; }

/* 顶栏右侧常驻 事前登録 按钮 */
.head-cta {
  position: absolute;
  right: 60px;
  top: 20px;
  width: 220px;
  height: 74px;
  z-index: 2;
}

.head-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.head-cta__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
  text-shadow: var(--cta-label-shadow);
}

/* 栏目占位页（设计稿未出时用） */
.page-placeholder {
  position: absolute;
  left: 80px;
  top: 280px;
  color: #c9d8ff;
}

.page-placeholder__kicker {
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.page-placeholder__title {
  margin-top: 16px;
  font-size: 72px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 30px #029cfe;
  text-transform: uppercase;
}

.page-placeholder__note {
  margin-top: 28px;
  font-size: 26px;
  line-height: 1.6;
}

/* ---------- 主视觉 ---------- */

.hero__logo {
  position: absolute;
  left: 40px;
  top: 200px;
  width: auto;
  height: 405px;
}

.hero__copy {
  position: absolute;
  left: 147px;
  top: 631px;
  font-size: 60px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  color: #fff;
}

/* ---------- 事前登録按钮 ---------- */

.cta {
  position: absolute;
  left: 120px;
  top: 852px;
  width: 666px;
  height: 148px;
}

.cta__bg {
  position: absolute;
  left: 0;
  top: 0;
}

.cta__label {
  position: absolute;
  left: 183px;  /* 画板 303px */
  top: 38px;    /* 画板 890px */
  font-size: 50px;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  text-shadow: var(--cta-label-shadow);
}

/* ---------- DMM 跳过功能的选项行：紧跟事前登録按钮下方 ---------- */

.consent {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 20px;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 3;
}

/* 首屏：放在文案 (631~805) 与按钮 (852~1000) 之间，首屏折叠线以内 */
.consent--hero {
  left: 128px;
  top: 814px;
  width: 1000px;
  color: #dbe6ff;
  text-shadow: var(--nav-shadow);
}

/* REWARDS：按钮居中 (627,850)，行整行居中，浅色背景用深蓝字 */
.consent--rewards {
  left: 0;
  top: 1012px;
  width: 1920px;
  justify-content: center;
  color: #1b4a86;
}

.consent__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #029cfe;
  cursor: pointer;
}

.consent .title_policy a {
  color: inherit;
  text-decoration: underline;
}

/* 提供元「提供:」常显，运营商名由 direct-play.js 加载后填入 .dealer_name。
   DMM 审核（2026-10-13）要求这行不能隐藏，所以名字没填到之前也照样显示「提供:」 */

/* ---------- Footer：8888:2075，1920×220 ---------- */
/* 所有内容对齐在 y=76 这条中线上（内容带 top 58 / 高 36） */

.footer {
  position: relative;
  width: 1920px;
  height: 220px;
}

.footer__bg {
  position: absolute;
  left: 0;
  top: 0;
}

.footer__logo {
  position: absolute;
  left: 40px;
  top: 28px;
}

/* 利用規約 | プライバシーポリシー | 特定商取引法に基づく表示 | 動作環境 | お問い合わせ */
.footer__menu {
  position: absolute;
  left: 334px;
  top: 58px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer__link {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--footer-text);
}

.footer__sep {
  width: 2px;
  height: 24px;
  background: var(--footer-sep);
}

/* SNS：图标由 js/common.js 按 js/config.js 的 sns 生成，只显示配置了地址的账号。
   图标取自 242×36 的图标条（X / YouTube / Facebook / Discord 各 36px，间距 31px），用 background-position 裁切 */
.footer__sns {
  position: absolute;
  /* 页脚链接加了「特定商取引法に基づく表示」后一行排到 1446px，原来 1280px 的位置会被盖住，
     图标挪到链接下一行（仍在页脚 220px 高度内，不碰右侧 tagline） */
  left: 334px;
  top: 118px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 31px;
}

.footer__sns[hidden],
.thx__sns[hidden] {
  display: none;
}

.sns-hit {
  display: block;
  width: 36px;
  height: 36px;
  background: url("../img/图层 42 拷贝 1.png") no-repeat 0 0;
}

.sns-hit--x        { background-position: 0 0; }
.sns-hit--youtube  { background-position: -67px 0; }
.sns-hit--facebook { background-position: -133px 0; }
.sns-hit--discord  { background-position: -199px 0; }

.footer__tagline {
  position: absolute;
  right: 70px;
  top: 58px;
  height: 36px;
  line-height: 36px;
  font-size: 24px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--footer-text);
}

/* ---------- STORY：浅色世界观页（10.06 反馈构图） ----------
   参考图 1217×682 等比放大到 1920×1080（×1.578）取坐标 */

.story {
  --story-ink: #1b3f73;
  --story-ink-deep: #14306a;
  --story-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  position: absolute;
  inset: 0;
  color: var(--story-ink);
}

.story__head {
  position: absolute;
  left: 110px;
  top: 156px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.story__num {
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: var(--story-ink-deep);
}

.story__kicker {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 0.08em;
}

/* 西暦 2055 */
.story__era {
  position: absolute;
  left: 226px;
  top: 254px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  color: var(--story-ink-deep);
}

.story__era-label {
  margin-top: 26px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.story__year {
  font-family: var(--story-serif);
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.story__lead {
  position: absolute;
  left: 754px;
  top: 254px;
  font-family: var(--story-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.04em;
  color: var(--story-ink-deep);
}

.story__col {
  position: absolute;
  top: 470px;
  font-size: 28px;
  line-height: 1.96;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.story__col--left  { left: 192px; }
.story__col--right { left: 1004px; }

.story__col p + p {
  margin-top: 38px;
}

.story__col b {
  font-weight: 700;
  color: var(--story-ink-deep);
}

.story__rule {
  position: absolute;
  left: 905px;
  top: 902px;
  width: 110px;
  height: 3px;
  background: var(--story-ink-deep);
}

.story__closing {
  position: absolute;
  left: 0;
  right: 0;
  top: 936px;
  text-align: center;
  font-family: var(--story-serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--story-ink-deep);
}

/* ---------- CHARACTER ---------- */

.header {
  z-index: 20;
}

.char__head {
  position: absolute;
  left: 110px;
  top: 156px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  z-index: 3;
}

.char__num {
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: #4aa3ff;
}

.char__kicker {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #c9d8ff;
}

/* 立绘区：Spine 播放器和静态兜底图叠在同一块 1040×960 区域 */
.char__portrait {
  position: absolute;
  left: 20px;
  top: 120px;
  width: 1040px;
  height: 960px;
  pointer-events: none;
  z-index: 2;
}

.char__portrait [hidden] {
  display: none !important;
}

.char__spine {
  position: absolute;
  inset: 0;
}

.char__spine canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.char__role {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.char-zoom {
  position: absolute;
  left: 720px;
  top: 928px;
  width: 268px;
  height: 68px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  z-index: 4;
}

.char-zoom__bg {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.char-zoom__label {
  position: absolute;
  left: 86px;
  top: 0;
  height: 100%;
  line-height: 68px;
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.06em;
}

.char-info {
  position: absolute;
  left: 1088px;
  top: 168px;
  width: 740px;
  z-index: 3;
}

.char-info__name {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.char-info__titleRow {
  width: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.char-voice {
  flex: none;
  width: 56px;
  height: 56px;
  margin-top: 2px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.char-voice img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.char-voice.is-playing {
  filter: drop-shadow(0 0 14px rgba(0, 232, 255, 0.6));
}

.char-info__en {
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: 0.22em;
  color: #7eb6ff;
  text-transform: uppercase;
}

.char-tab {
  position: relative;
  margin-top: 28px;
  width: 560px;
  height: 72px;
  display: flex;
}

.char-tab__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.char-tab__btn {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 28px;
  color: #9ec4ff;
}

.char-tab__btn.is-active {
  color: #fff;
}

.char-tab__btn[data-tab="battle"].is-active {
  background: url("../img/img_anniu_di03.png") no-repeat center / 100% 100%;
}

.char-tab__btn[data-tab="casual"].is-active {
  background: url("../img/img_anniu_di02.png") no-repeat center / 100% 100%;
}

/* 台词与介绍按日语词组断行（Chrome 119+），台词两行时尽量等长 */
.char-info__quote {
  margin-top: 30px;
  font-size: 26px;
  line-height: 1.65;
  color: #fff;
  word-break: auto-phrase;
  text-wrap: balance;
}

.char-info__bio {
  margin-top: 16px;
  font-size: 22px;
  line-height: 1.8;
  color: #d7e6ff;
  word-break: auto-phrase;
}

.char-info__bio span {
  display: block;
}

.char-tab__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 角色选择区：按设计稿绝对定位（画板 x1059 y815，宽 816 高 190），
   .char-info 在画板 (1088,168)，所以相对偏移为 (-29, 647) */
.char-slider {
  position: absolute;
  left: -29px;
  top: 647px;
  width: 816px;
  height: 190px;
  display: flex;
  align-items: center;
  user-select: none;
  touch-action: none;
}

.char-slider__arrow {
  flex: none;
  width: 58px;
  height: 85px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.char-slider__arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* 视口从选中框左缘(1137)到右箭头之前(1809)：3 个完整头像 + 第 4 个露出一截 */
.char-slider__view {
  overflow: hidden;
  width: 672px;
  height: 190px;
  margin-left: 20px;
  margin-right: 8px;
  cursor: grab;
  touch-action: none;
}

.char-slider.is-dragging .char-slider__view {
  cursor: grabbing;
}

.char-slider__track {
  display: flex;
  gap: 2px;
  height: 190px;
  transform: translateX(0);
  transition: transform 0.35s ease;
  will-change: transform;
}

.char-slider.is-dragging .char-slider__track {
  transition: none;
}

/* 每项 190×190：底框 172 居中，头像 168 居中，选中框 190 铺满 */
.char-slider__item {
  position: relative;
  flex: none;
  width: 190px;
  height: 190px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.char-slider__item img {
  position: absolute;
  pointer-events: none;
  -webkit-user-drag: none;
}

.char-slider__frame {
  left: 9px;
  top: 9px;
  width: 172px;
  height: 172px;
}

.char-slider__avatar {
  left: 11px;
  top: 11px;
  width: 168px;
  height: 168px;
  object-fit: cover;
}

.char-slider__selected {
  left: 0;
  top: 0;
  width: 190px;
  height: 190px;
  opacity: 0;
}

.char-lightbox {
  position: absolute;
  inset: 0;
  z-index: 40;
  background: rgba(0, 8, 24, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.char-lightbox[hidden] {
  display: none;
}

.char-lightbox__stage {
  position: relative;
  width: 1300px;
  height: 1040px;
  pointer-events: none;
}

.char-lightbox__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- SYSTEM ---------- */

.sys {
  --sys-ink: #1b4a86;
}

.sys__head {
  position: absolute;
  left: 110px;
  top: 156px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  z-index: 3;
}

.sys__num {
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: var(--sys-ink);
}

.sys__kicker {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--sys-ink);
}

.sys-slider {
  position: absolute;
  left: 280px;   /* 左箭头左缘，与 Figma 网页03 一致 */
  top: 250px;
  width: 1360px; /* 到右箭头右缘 1640px */
  height: 690px;
  user-select: none;
  touch-action: none;
  z-index: 3;
}

.sys-slider__arrow {
  position: absolute;
  top: 300px;    /* 画面垂直居中 */
  width: 53px;
  height: 89px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.sys-slider__arrow--prev { left: 0; }
.sys-slider__arrow--next { right: 0; }

.sys-slider__arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* 画面按素材的 4:3 原比例显示：素材 1280×960，画面 920×690 居中 (500,250)〜(1420,940)，不裁切不压缩。
   Figma 网页03 的 1000×562 是 16:9，放不下这批图；美术若重出 16:9 素材再回到 Figma 尺寸 */
.sys-slider__view {
  position: absolute;
  left: 220px;   /* 画板 500px，(1920 − 920) / 2 */
  top: 0;
  width: 920px;
  height: 690px;
  overflow: hidden;
  touch-action: none;
}

.sys-slider__track {
  display: flex;
  height: 690px;
  transform: translateX(0);
  transition: transform 0.4s ease;
  will-change: transform;
}

.sys-slider__slide {
  flex: none;
  width: 920px;
  height: 690px;
  background: #0b1a33;
}

.sys-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.sys-nav {
  position: absolute;
  left: 280px;
  top: 956px;    /* 紧随 4:3 画面（250〜940）之下；Figma 网页03 的标签在 y≈901 */
  width: 1360px;
  z-index: 3;
  user-select: none;
  touch-action: none;
}

.sys-nav__view {
  overflow: hidden;
  width: 1220px;
  height: 64px;
  margin: 0 auto;
  touch-action: none;
}

.sys-nav__track {
  display: flex;
  gap: 36px;
  height: 64px;
  transform: translateX(0);
  transition: transform 0.4s ease;
}

.sys-nav__btn {
  position: relative;
  flex: none;
  width: 208px;
  height: 64px;
  border: 0;
  padding: 0;
  background: #1a3f78;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  cursor: pointer;
  font-family: inherit;
  font-size: 26px;
  color: #fff;
}

.sys-nav__btn img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

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

.sys-nav__btn.is-active {
  background: none;
  clip-path: none;
}

.sys-nav__btn.is-active img {
  display: block;
}

/* ---------- REWARDS ---------- */

.rw__head {
  position: absolute;
  left: 110px;
  top: 156px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  z-index: 3;
}

.rw__num {
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: #4aa3ff;
}

.rw__kicker {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #c9d8ff;
}

.rw__note {
  position: absolute;
  right: 60px;
  top: 137px;      /* Figma 网页04：(1383,137) 477×46，与栏目名同一行 */
  font-size: 32px;
  line-height: 1.448;
  color: #c9d8ff;
  z-index: 3;
}

.rw-track {
  position: absolute;
  left: 100px;   /* (1920 − 1721) / 2 */
  top: 430px;
  width: 1721px;
  height: 260px;
  z-index: 3;
}

.rw-track__bg {
  position: absolute;
  left: 0;
  top: 0;
}

/* --cx = 每个道具框在整条里的中心 X；框 286×244，框顶距条顶 8px */
.rw-item {
  position: absolute;
  left: var(--cx);
  top: 0;
  width: 340px;
  height: 260px;
  transform: translateX(-50%);
  text-align: center;
}

.rw-item__ms {
  position: absolute;
  left: 0;
  top: -66px;
  width: 100%;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

.rw-item__ms b {
  font-size: 42px;
  font-weight: 700;
}

.rw-item__icon {
  position: absolute;
  left: 50%;
  top: 49px;  /* 8 + (244 − 162) / 2 */
  width: 162px;
  height: 162px;
  margin-left: -81px;
  object-fit: contain;
}

.rw-item__name {
  position: absolute;
  left: 0;
  top: 274px;
  width: 100%;
  font-size: 24px;
  line-height: 1.5;
  color: #cfe2ff;
}

.rw-cta {
  position: absolute;
  left: 627px;  /* (1920 − 666) / 2 */
  top: 850px;
  width: 666px;
  height: 148px;
  z-index: 3;
}

.rw-cta__bg {
  position: absolute;
  left: 0;
  top: 0;
}

.rw-cta__label {
  position: absolute;
  left: 183px;
  top: 38px;
  font-size: 50px;
  line-height: normal;
  white-space: nowrap;
  color: #fff;
  text-shadow: var(--cta-label-shadow);
}

/* ---------- GALLERY ---------- */

.gal {
  --gal-ink: #1b4a86;
}

.gal__head {
  position: absolute;
  left: 110px;
  top: 156px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  z-index: 3;
}

.gal__num {
  font-size: 88px;
  font-weight: 400;
  line-height: 1;
  color: var(--gal-ink);
}

.gal__kicker {
  margin-top: 18px;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--gal-ink);
}

/* 坐标全部是画板坐标（gallery 区块 1920×1080） */
.gal-slider {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

.gal-slider > * {
  pointer-events: auto;
}

.gal-slider__arrow {
  position: absolute;
  top: 511px;
  height: 89px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gal-slider__arrow--prev { left: 280px;  width: 53px; }
.gal-slider__arrow--next { left: 1588px; width: 52px; }

.gal-slider__arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.gal-frame {
  position: absolute;
  left: 411px;
  top: 260px;
  pointer-events: none;
}

.gal-stage {
  position: absolute;
  left: 420px;
  top: 264px;
  width: 1000px;
  height: 562px;
  overflow: hidden;
  background: #0b1a33;
}

.gal-stage__poster,
.gal-stage__spine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gal-stage__poster {
  object-fit: cover;
  pointer-events: none;
}

.gal-stage__poster[hidden] {
  display: none;
}

.gal-zoom {
  position: absolute;
  left: 1150px;
  top: 726px;
  width: 238px;
  height: 68px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gal-zoom img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gal-zoom span {
  position: absolute;
  left: 75px;
  top: 0;
  height: 68px;
  line-height: 68px;
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.06em;
}

/* 缩略图：格 278×164（图 260×146 内缩 9），步进 320，可视 5 格 */
.gal-thumbs {
  position: absolute;
  left: 181px;
  top: 871px;
  width: 1558px;
  height: 164px;
  z-index: 3;
  user-select: none;
}

.gal-thumbs__view {
  overflow: hidden;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.gal-thumbs.is-dragging .gal-thumbs__view {
  cursor: grabbing;
}

.gal-thumbs__track {
  display: flex;
  gap: 42px;
  height: 164px;
  transform: translateX(0);
  transition: transform 0.4s ease;
  will-change: transform;
}

.gal-thumbs.is-dragging .gal-thumbs__track {
  transition: none;
}

.gal-thumbs__item {
  position: relative;
  flex: none;
  width: 278px;
  height: 164px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gal-thumbs__item img {
  position: absolute;
  pointer-events: none;
  -webkit-user-drag: none;
}

.gal-thumbs__img,
.gal-thumbs__frame {
  left: 9px;
  top: 9px;
  width: 260px;
  height: 146px;
}

.gal-thumbs__img {
  object-fit: cover;
}

.gal-thumbs__selected {
  left: 0;
  top: 0;
  width: 278px;
  height: 164px;
  opacity: 0;
}

.gal-thumbs__item.is-active .gal-thumbs__selected {
  opacity: 1;
}

.gal-thumbs__item.is-active .gal-thumbs__frame {
  opacity: 0;
}

/* 两端渐隐：只有那一侧还有更多缩略图时才显示 */
.gal-thumbs__mask {
  position: absolute;
  top: -12px;
  pointer-events: none;
}

.gal-thumbs__mask[hidden] {
  display: none;
}

.gal-thumbs__mask--left  { left: 0; }
.gal-thumbs__mask--right { right: 0; transform: scaleX(-1); }

.gal-lightbox {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 8, 24, 0.88);
  cursor: pointer;
}

.gal-lightbox[hidden] {
  display: none;
}

.gal-lightbox__stage {
  position: relative;
  width: 1760px;
  height: 990px;
  pointer-events: none;
}

/* ---------- 页脚法律弹窗：对齐 Figma「服务条款弹窗」9000:2149 ----------
   面板 1700×800 @(110,140)，标题 y=160 居中，关闭叉 44×44 @(1746,160)，
   文字区 1600×680 @(160,220) 带描边，滚动条 6×680 @(1783,220)。
   弹窗不在缩放画板里，用 --scale（js/common.js 写入）整体缩放，比例与页面一致 */

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(2, 16, 48, 0.55);
}

.legal-modal__panel {
  position: relative;
  z-index: 1;
  flex: none;            /* 视口比 1700px 窄时不许 flex 压缩面板，尺寸只靠 transform 缩放 */
  width: 1700px;
  height: 800px;
  transform: scale(var(--scale, 1));
  transform-origin: center;
  background: #fff;
  border-radius: 8px;
}

.legal-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;            /* 压在标题之上，标题是通栏的 */
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.legal-modal__close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legal-modal__title {
  position: absolute;
  left: 80px;            /* 两侧让出关闭叉的位置，文字仍居中 */
  right: 80px;
  top: 20px;
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.448;
  color: #0d2d6e;
}

/* 文字区描边框 */
.legal-modal__box {
  position: absolute;
  left: 50px;
  top: 80px;
  width: 1600px;
  height: 680px;
  box-sizing: border-box;
  border: 3px solid #3f8cff;
  overflow: hidden;
}

/* 可滚动的文字；原生滚动条隐藏，位置由右侧 .legal-modal__bar 显示 */
.legal-modal__body {
  height: 100%;
  overflow-y: auto;
  padding: 18px 20px;
  box-sizing: border-box;
  font-size: 24px;
  line-height: 1.4;
  color: #163a72;
  scrollbar-width: none;
}

.legal-modal__body::-webkit-scrollbar {
  display: none;
}

.legal-modal__body p {
  margin: 0 0 0.6em;
}

.legal-modal__body a {
  color: #0a5bd6;
  text-decoration: underline;
}
/* 特定商取引法に基づく表示：项目名 / 内容 的两栏表 */
.legal-modal__body dl {
  margin: 0;
}
.legal-modal__body dl > div {
  display: flex;
  gap: 24px;
  padding: 0.45em 0;
  border-bottom: 1px solid rgba(22, 58, 114, .18);
}
.legal-modal__body dl > div:last-child {
  border-bottom: 0;
}
.legal-modal__body dt {
  flex: none;
  width: 400px;
  font-weight: 700;
}
.legal-modal__body dd {
  flex: 1;
  margin: 0;
  min-width: 0;
}

/* 独立滚动条：轨道在文字区右侧 23px 处，滑块位置由 js/modal.js 同步 */
.legal-modal__bar {
  position: absolute;
  left: 1673px;
  top: 80px;
  width: 6px;
  height: 680px;
  border-radius: 3px;
  background: #dbe8ff;
}

.legal-modal__bar[hidden] {
  display: none;
}

.legal-modal__thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 120px;
  border-radius: 3px;
  background: #1e3f7a;
}

/* =========================================================
   交互反馈：悬停 / 选中 / 禁用
   策划要求：选中效果和悬停效果可用同一种，这里统一用青色发光
   ========================================================= */

:root {
  --fx-time: 0.2s;
  --fx-glow: 0 0 14px rgba(0, 232, 255, 0.75);
  --fx-glow-strong: 0 0 8px rgba(0, 232, 255, 0.85);
}

/* 顶栏导航：悬停 = 当前位置高亮 */
.nav__link {
  transition: color var(--fx-time), text-shadow var(--fx-time);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
  text-shadow: var(--nav-active-shadow);
}

/* 页脚文字链接 */
.footer__link {
  transition: color var(--fx-time), text-shadow var(--fx-time);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: #fff;
  text-shadow: var(--nav-active-shadow);
}

/* 事前登録 按钮：主页大按钮 / 奖励区大按钮 / 顶栏按钮 */
.cta,
.rw-cta,
.head-cta {
  transition: transform var(--fx-time), filter var(--fx-time);
}

.cta:hover,
.rw-cta:hover,
.head-cta:hover,
.cta:focus-visible,
.rw-cta:focus-visible,
.head-cta:focus-visible {
  transform: scale(1.04);
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(0, 232, 255, 0.7));
}

.cta:active,
.rw-cta:active,
.head-cta:active {
  transform: scale(0.98);
}

/* 拡大表示 / 弹窗关闭 */
.char-zoom,
.gal-zoom,
.legal-modal__close {
  transition: transform var(--fx-time), filter var(--fx-time);
}

.char-zoom:hover,
.gal-zoom:hover,
.legal-modal__close:hover,
.char-zoom:focus-visible,
.gal-zoom:focus-visible,
.legal-modal__close:focus-visible {
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(var(--fx-glow-strong));
}

/* 私服 / 戦闘 tab */
.char-tab__btn {
  transition: color var(--fx-time), text-shadow var(--fx-time);
}

.char-tab__btn:hover:not(:disabled),
.char-tab__btn:focus-visible {
  color: #fff;
  text-shadow: var(--fx-glow);
}

/* 左右箭头：角色 / 系统 / 画廊 */
.char-slider__arrow,
.sys-slider__arrow,
.gal-slider__arrow {
  transition: transform var(--fx-time), filter var(--fx-time), opacity var(--fx-time);
}

.char-slider__arrow:hover:not(:disabled),
.sys-slider__arrow:hover:not(:disabled),
.gal-slider__arrow:hover:not(:disabled),
.char-slider__arrow:focus-visible,
.sys-slider__arrow:focus-visible,
.gal-slider__arrow:focus-visible {
  transform: scale(1.18);
  filter: brightness(1.35) drop-shadow(var(--fx-glow-strong));
}

.char-slider__arrow:disabled,
.sys-slider__arrow:disabled,
.gal-slider__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* 角色头像：悬停 = 选中，亮起设计稿的选中框 img_kuang_xuanzhong01 */
.char-slider__selected {
  transition: opacity var(--fx-time);
}

.char-slider__avatar {
  transition: filter var(--fx-time);
}

.char-slider__item:hover .char-slider__selected,
.char-slider__item:focus-visible .char-slider__selected,
.char-slider__item.is-active .char-slider__selected {
  opacity: 1;
}

.char-slider__item:hover .char-slider__avatar {
  filter: brightness(1.12);
}

/* 系统介绍 tab：未选中时悬停提亮底色 + 文字发光，选中态用按钮图 */
.sys-nav__btn {
  transition: background-color var(--fx-time);
}

.sys-nav__btn span {
  transition: text-shadow var(--fx-time);
}

.sys-nav__btn:hover:not(.is-active),
.sys-nav__btn:focus-visible:not(.is-active) {
  background: #2b66c4;
}

.sys-nav__btn:hover span,
.sys-nav__btn:focus-visible span {
  text-shadow: var(--fx-glow);
}

/* 画廊缩略图：悬停 = 选中（亮起选中框） */
.gal-thumbs__selected,
.gal-thumbs__frame {
  transition: opacity var(--fx-time);
}

.gal-thumbs__img {
  transition: filter var(--fx-time);
}

.gal-thumbs__item:hover .gal-thumbs__selected,
.gal-thumbs__item:focus-visible .gal-thumbs__selected {
  opacity: 1;
}

.gal-thumbs__item:hover .gal-thumbs__frame,
.gal-thumbs__item:focus-visible .gal-thumbs__frame {
  opacity: 0;
}

.gal-thumbs__item:hover .gal-thumbs__img {
  filter: brightness(1.12);
}

/* ---------- THANKS：事前登録完了ページ（thanks.html） ---------- */
/* 居中单屏：LOGO → 标题 → 说明 → 返回按钮 → SNS。背景沿用 TOP 的 img_beijing_ditu_01 */

.thx {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 190px;
  text-align: center;
  color: #fff;
}

.thx__logo {
  width: auto;
  height: 260px;
}

.thx__kicker {
  margin-top: 40px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nav-color);
  text-shadow: var(--nav-shadow);
}

.thx__title {
  margin-top: 14px;
  font-family: "Noto Serif JP", serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(2, 97, 254, 0.6);
}

.thx__lead {
  margin-top: 26px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.8;
  white-space: nowrap;
  color: #dbe6ff;
}

.thx__back {
  position: relative;
  display: block;
  margin-top: 48px;
  width: 666px;
  height: 148px;
}

.thx__back img {
  position: absolute;
  inset: 0;
}

.thx__back span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 400;
  white-space: nowrap;
  color: #fff;
  text-shadow: var(--cta-label-shadow);
}

.thx__sns {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 31px;
}

/* ---------- 五屏共用栏目头：对齐 Figma 网页01〜05 ----------
   五张设计稿的头部几何完全一致：
   「01」文本框 (44,111) 111×145 → 100px，行高 1.448（Figma 自动行高）
   栏目名   (194,137) 高 52     → 36px，行高 1.448，"/" 两侧约 20px 空隙
   放在文件末尾覆盖各屏原来的 110/156/88px 设定 */

.story__head,
.char__head,
.sys__head,
.rw__head,
.gal__head {
  left: 44px;
  top: 111px;
  gap: 39px;           /* 44 + 111（数字宽）+ 39 = 194 */
  align-items: flex-start;
}

.story__num,
.char__num,
.sys__num,
.rw__num,
.gal__num {
  font-size: 100px;
  line-height: 1.448;
}

.story__kicker,
.char__kicker,
.sys__kicker,
.rw__kicker,
.gal__kicker {
  margin-top: 26px;    /* 137 − 111 */
  font-size: 36px;
  line-height: 1.448;
  letter-spacing: 0;
  word-spacing: 11px;  /* 36px 的空格约 9px，补到 Figma 的约 20px */
}
