@charset "utf-8";
/*
  「神柄の雫」公式サイト

  地(和紙・藍・金箔)とちぎり目は、デザイン案の絵から切り出した画像を敷いている
  (tools/textures.py)。色を直に書かずに画像を使っているのは、和紙の粒と
  ちぎり口の形を案そのままにするため。CSS の色は、画像が届かないときの下地。

  面の切り替わりは「上が破れた紙」が1枚重なる形にしてある。
  破れた紙は幅いっぱいに引き伸ばし、その紙の中に面の頭が隠れる。
*/

/* ------------------------------------------------------------------ */
/* 下ごしらえ                                                          */
/* ------------------------------------------------------------------ */
:root {
  --washi: #f3ece2;
  --washi-deep: #e7dfd0;
  --indigo: #141f2e;
  --indigo-soft: #1d2b40;
  --navy: #0e141e;
  --ink: #16120e;
  --ink-soft: #3f3730;
  --ink-pale: #6d6258;
  --gold: #c8a24a;
  --gold-pale: #e2cb9c;
  --vermilion: #9d2f26;
  --vermilion-bright: #c0392b;

  --page: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --tear-scale: 1;        /* ちぎり紙の大きさ。狭い画面では小さくする */

  --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --gothic: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  --latin: 'Cormorant Garamond', 'Times New Roman', serif;
  --dot: 'DotGothic16', monospace;
}

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

html {
  scroll-behavior: smooth;
  /* 上の帯に隠れないように、飛び先を少し下げる */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--mincho);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }

/* 目には見せず、読み上げと検索には渡す */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page { width: min(100% - var(--gutter) * 2, var(--page)); margin-inline: auto; }

/* ------------------------------------------------------------------ */
/* 上の帯                                                              */
/* ------------------------------------------------------------------ */
.masthead {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: 10px var(--gutter);
  color: #f2ece1;
  transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
/* 最初は鍵絵の上に透けて乗り、少し下げると藍の帯になる */
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/indigo.png');
  background-size: 360px;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}
.masthead::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(242,236,225,.34) 12%, rgba(242,236,225,.34) 88%, transparent);
}
.masthead.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.masthead.is-stuck::before { opacity: 1; }
.masthead.is-stuck::after { background: linear-gradient(to right, transparent, rgba(200,162,74,.5), transparent); }

.masthead__logo { flex: 0 0 auto; }
.masthead__logo img { width: clamp(96px, 11vw, 132px); image-rendering: pixelated; }

.masthead__nav { margin-inline: auto 0; }
.masthead__list { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.masthead__link {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 6px 2px;
  position: relative;
}
.masthead__en {
  font-family: var(--latin);
  font-size: 15px;
  letter-spacing: .18em;
  font-weight: 600;
}
.masthead__jp {
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: .04em;
  opacity: .82;
}
.masthead__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease, left .3s ease;
}
.masthead__link:hover::after, .masthead__link[aria-current='page']::after { left: 10%; width: 80%; }

.masthead__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px 11px 18px;
  border-radius: 999px;
  font-family: var(--gothic);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, #c0392b, #8e2018);
  box-shadow: 0 6px 18px rgba(150, 40, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.masthead__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(150, 40, 30, .45), inset 0 1px 0 rgba(255,255,255,.28); }
.masthead__cta--quiet {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(242, 236, 225, .35);
  box-shadow: none;
  cursor: default;
}
.masthead__cta--quiet:hover { transform: none; box-shadow: none; }
.masthead__cta svg { width: 17px; height: 17px; flex: 0 0 auto; }

.masthead__burger { display: none; }

/* ------------------------------------------------------------------ */
/* 鍵絵 (FV)                                                           */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  background: #0b1020;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 46%;
  /* ごくゆっくり寄っていく。止め絵に見えない程度に */
  animation: hero-drift 32s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.015); }
  to { transform: scale(1.075); }
}
/* 四隅を落として、文字と題字を浮かせる */
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 78% at 50% 62%, transparent 38%, rgba(6, 10, 22, .55) 100%),
    linear-gradient(to bottom, rgba(6, 10, 22, .55) 0%, transparent 24%, transparent 62%, rgba(6, 10, 22, .6) 100%);
}

.hero__copy {
  position: absolute;
  /* 中央に置くと鍵絵の雫に重なる。左の山肌の暗いところに寄せる */
  top: clamp(258px, 34vh, 400px);
  left: var(--gutter);
  max-width: min(46%, 30em);
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 2.05;
  letter-spacing: .22em;
  text-indent: .22em;
  color: #f3eee4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85), 0 0 34px rgba(8, 14, 30, .7);
  animation: rise-in 1.6s .35s both cubic-bezier(.2, .7, .3, 1);
}

.hero__logo {
  position: absolute;
  /* 中央寄せに transform を使わない。現れる動きが transform を上書きしてしまうため */
  left: 0; right: 0;
  margin-inline: auto;
  bottom: clamp(152px, 22vh, 214px);
  width: clamp(230px, 30vw, 380px);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .6));
  animation: rise-in 1.5s .6s both cubic-bezier(.2, .7, .3, 1);
}
.hero__logo img { image-rendering: pixelated; width: 100%; }

.hero__scroll {
  position: absolute;
  left: 0; right: 0; bottom: clamp(84px, 11vh, 118px);
  margin-inline: auto;
  width: max-content;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #efe8dc;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: .4em;
  text-indent: .4em;
  opacity: .85;
}
.hero__scroll::before {
  content: '';
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(239, 232, 220, .8));
}
.hero__scroll span { animation: bob 2.4s ease-in-out infinite; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ------------------------------------------------------------------ */
/* 面の地とちぎり目                                                     */
/* ------------------------------------------------------------------ */
.sheet {
  position: relative;
  /* 飾りが横へはみ出しても横スクロールを出さない。
     clip なら縦は visible のままなので、上へ伸ばすちぎり紙は切られない */
  overflow-x: clip;
  padding-block: clamp(92px, 11vw, 148px) clamp(84px, 10vw, 132px);
  isolation: isolate;
}
/* 上の面へ少し食い込ませる。ちぎり紙はこれとは別に、絶対位置で更に上まで伸びる */
.sheet + .sheet, .band + .sheet, .hero + .sheet { margin-top: -40px; }

.sheet--washi { background: var(--washi) url('../img/washi.png') repeat; background-size: 420px; color: var(--ink); }
.sheet--indigo { background: var(--indigo) url('../img/indigo.png') repeat; background-size: 420px; color: #f2ece1; }

/* ちぎり紙。面の一番上に、幅いっぱいで1枚。
   --th は紙の高さ、--te は「破れ目の一番深い所」までの高さ。
   面の頭に破れ目の一番深い所を合わせると、面の直線の縁がどこにも出ない */
.sheet__tear {
  position: absolute;
  left: 0; right: 0;
  height: calc(var(--th) * var(--tear-scale));
  top: calc(var(--te) * var(--tear-scale) * -1);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 3;
}
.sheet__tear--washi { --th: 104px; --te: 66px; background-image: url('../img/tear-washi-top.png'); }
.sheet__tear--indigo { --th: 121px; --te: 77px; background-image: url('../img/tear-indigo-top.png'); }
.sheet__tear--washi2 { --th: 85px; --te: 57px; background-image: url('../img/tear-washi-top2.png'); }
/* 使い回すときは左右を返す。同じ破れ方が並んで見えないように */
.sheet__tear--flip { transform: scaleX(-1); }

/* 青海波。藍の面にだけ、ごく薄く */
.sheet--indigo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60' viewBox='0 0 120 60'%3E%3Cg fill='none' stroke='%23c8a24a' stroke-width='2'%3E%3Cpath d='M0 60a60 60 0 01120 0M-60 60a60 60 0 01120 0M60 60a60 60 0 01120 0'/%3E%3Cpath d='M15 60a45 45 0 0190 0M-45 60a45 45 0 0190 0M75 60a45 45 0 0190 0'/%3E%3Cpath d='M30 60a30 30 0 0160 0M-30 60a30 30 0 0160 0M90 60a30 30 0 0160 0'/%3E%3Cpath d='M45 60a15 15 0 0130 0M-15 60a15 15 0 0130 0M105 60a15 15 0 0130 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 130px;
  opacity: .032;
  z-index: 0;
  pointer-events: none;
}
/* 本文は飾りより手前へ。飾り(絶対位置)と ちぎり紙 には触らない */
.sheet > .page { position: relative; z-index: 2; }

/* ------------------------------------------------------------------ */
/* 見出し (筆文字 + ラテン + 落款)                                      */
/* ------------------------------------------------------------------ */
.brush {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.brush__title { margin: 0; font-weight: normal; line-height: 0; }
.brush__ink {
  display: block;
  /* 抜いた筆文字は白1色。色は mask で乗せる */
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: left center; mask-position: left center;
}
.sheet--indigo .brush__ink { background-color: #f6f1e7; }
.brush__ink--story { -webkit-mask-image: url('../img/ink-story.png'); mask-image: url('../img/ink-story.png'); width: clamp(168px, 17vw, 232px); aspect-ratio: 678 / 495; }
.brush__ink--character { -webkit-mask-image: url('../img/ink-character.png'); mask-image: url('../img/ink-character.png'); width: clamp(196px, 20vw, 266px); aspect-ratio: 771 / 252; }
.brush__ink--world { -webkit-mask-image: url('../img/ink-world.png'); mask-image: url('../img/ink-world.png'); width: clamp(168px, 17vw, 228px); aspect-ratio: 678 / 384; }
.brush__ink--system { -webkit-mask-image: url('../img/ink-system.png'); mask-image: url('../img/ink-system.png'); width: clamp(224px, 24vw, 320px); aspect-ratio: 1385 / 405; }
.brush__ink--news { -webkit-mask-image: url('../img/ink-news.png'); mask-image: url('../img/ink-news.png'); width: clamp(224px, 24vw, 320px); aspect-ratio: 1391 / 396; }

.brush__foot { display: flex; align-items: center; gap: 14px; }
.brush__kicker {
  font-family: var(--latin);
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--vermilion);
}
.sheet--indigo .brush__kicker { color: #e8dfcf; letter-spacing: .38em; }
.brush__seal { width: 30px; opacity: .95; }

/* ------------------------------------------------------------------ */
/* 物語                                                                */
/* ------------------------------------------------------------------ */
.story__inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  grid-template-areas:
    "head art"
    "text art"
    "more art";
  align-items: center;
  justify-content: start;
  column-gap: clamp(24px, 5vw, 80px);
  row-gap: clamp(16px, 2vw, 26px);
}
.story__head { grid-area: head; align-self: end; }
.story__inner .story__text { grid-area: text; }
.story__inner .story__more { grid-area: more; align-self: start; }
.story__inner .story__art { grid-area: art; }
.story__text {
  max-width: 34em;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2.15;
  letter-spacing: .12em;
  color: var(--ink-soft);
}
.story__text p { margin: 0; }
.story__art { justify-self: end; width: 100%; max-width: 640px; }
.story__art img {
  width: 100%;
  mix-blend-mode: multiply;
  /* 切り出しの左端が直線で出てしまうので、そこだけ透かす */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%);
  mask-image: linear-gradient(to right, transparent, #000 9%);
}

/* ------------------------------------------------------------------ */
/* 登場人物                                                            */
/* ------------------------------------------------------------------ */
.character__inner { display: grid; gap: clamp(28px, 4vw, 48px); }
.character__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.character__lead {
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: .18em;
  color: #efe7d9;
  margin-bottom: 6px;
}
.forms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.8vw, 26px);
}
.form { display: grid; justify-items: center; gap: 12px; text-align: center; }
.form__disc {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #2c3d5c, #101a2b 72%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
/* 金の輪。地に敷いた金箔を細い輪だけ見せる */
.form__disc::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: url('../img/gold.png') center / 180px, var(--gold);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.form__disc img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.form:hover .form__disc, .form:focus-within .form__disc { transform: translateY(-6px) scale(1.03); }
.form__jp { font-size: clamp(17px, 1.7vw, 22px); letter-spacing: .12em; color: #f5efe4; }
.form__en {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .24em;
  color: rgba(226, 203, 156, .82);
  margin-top: -8px;
}
.form__note {
  font-size: 12px;
  line-height: 1.85;
  letter-spacing: .06em;
  color: rgba(239, 231, 217, .62);
  max-width: 15em;
}

/* 金雲。形だけ抜いてあるので、地に金箔を流して見せる */
.kumo {
  position: absolute;
  background: url('../img/gold.png') center / 240px;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  opacity: .92;
  pointer-events: none;
  z-index: 0;
}
.kumo--left {
  left: 0; bottom: 0;
  width: clamp(130px, 17vw, 240px); aspect-ratio: 570 / 390;
  opacity: .8;
  -webkit-mask-image: url('../img/cloud-left.png'); mask-image: url('../img/cloud-left.png');
}
.kumo--right {
  right: 0; top: 74px;
  width: clamp(120px, 16vw, 230px); aspect-ratio: 570 / 390;
  opacity: .72;
  -webkit-mask-image: url('../img/cloud-left.png'); mask-image: url('../img/cloud-left.png');
  /* 同じ雲を左右に返して使う */
  transform: scaleX(-1);
}

/* ------------------------------------------------------------------ */
/* 世界                                                                */
/* ------------------------------------------------------------------ */
.world { padding-bottom: clamp(150px, 16vw, 230px); overflow: hidden; }
.world__inner { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.world__lead { margin-top: 34px; font-size: clamp(14px, 1.1vw, 16px); line-height: 2.3; letter-spacing: .14em; color: var(--ink-soft); }
.world__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
.shot { position: relative; }
.shot--wide { grid-column: 1 / -1; }
.shot__frame {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 28, 22, .18);
  box-shadow: 0 14px 34px rgba(60, 48, 34, .22);
  background: #0d1119;
}
.shot__frame img { width: 100%; image-rendering: pixelated; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.shot:hover .shot__frame img { transform: scale(1.035); }
/* 題の札。和紙を切って貼ったように、少しはみ出させる */
.shot__label {
  position: absolute;
  left: 8px; bottom: -14px;
  padding: 7px 18px 8px;
  background: var(--washi) url('../img/washi.png') repeat;
  background-size: 300px;
  box-shadow: 0 6px 16px rgba(50, 40, 28, .26);
  z-index: 2;
}
.shot--wide .shot__label { left: auto; right: 12px; }
.shot__jp { font-size: clamp(14px, 1.15vw, 16px); letter-spacing: .14em; color: var(--ink); }
.shot__note { font-size: 11px; letter-spacing: .06em; color: var(--ink-pale); line-height: 1.6; }

.world__branch { position: absolute; right: 0; top: clamp(60px, 7vw, 110px); width: clamp(110px, 14vw, 200px); opacity: .9; pointer-events: none; z-index: 0; }
.world__moon {
  position: absolute;
  right: clamp(84px, 11vw, 160px); top: clamp(38px, 5vw, 86px);
  width: clamp(84px, 11vw, 158px); aspect-ratio: 1;
  border-radius: 50%;
  background: url('../img/gold.png') center / cover;
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
/* 面の裾の山並みと鳥居 */
.world__ridge {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(86px, 10vw, 150px);
  background: url('../img/deco-ridge.webp') repeat-x bottom / auto 100%;
  opacity: .92;
  pointer-events: none;
  z-index: 0;
}
.world__torii {
  position: absolute; left: 0; bottom: 0;
  width: clamp(190px, 26vw, 360px);
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------------ */
/* ゲーム画面の帯                                                       */
/* ------------------------------------------------------------------ */
.band {
  position: relative;
  min-height: clamp(280px, 38vw, 460px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0b0f16;
}
.band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8, 12, 20, .82) 0%, rgba(8, 12, 20, .66) 30%, rgba(8, 12, 20, .22) 60%, rgba(8, 12, 20, .48) 100%);
}
.band__copy {
  position: relative;
  z-index: 1;
  /* 絵は右が明るいので、覆いの濃い左に置く */
  justify-self: start;
  align-self: center;
  max-width: min(52%, 24em);
  margin-left: var(--gutter);
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.95;
  letter-spacing: .18em;
  text-indent: .18em;
  color: #f4eee3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
}

/* ------------------------------------------------------------------ */
/* システム                                                            */
/* ------------------------------------------------------------------ */
.system__inner { display: grid; gap: clamp(30px, 4vw, 52px); }
.system__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.system__lead { font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .18em; color: #efe7d9; margin-bottom: 6px; }
.system__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); }
.trick {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 2.4vw, 30px);
  background: rgba(244, 238, 227, .045);
  border: 1px solid rgba(226, 203, 156, .2);
  position: relative;
}
/* 隅だけ金で留める。全部を線で囲うと図表に見える */
.trick::before, .trick::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--gold);
  opacity: .8;
}
.trick::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.trick::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.trick__en { font-family: var(--latin); font-size: 12px; letter-spacing: .3em; color: var(--gold-pale); }
.trick__jp { font-size: clamp(17px, 1.6vw, 21px); letter-spacing: .12em; color: #f6f0e5; }
.trick__body { font-size: 14px; line-height: 2.1; letter-spacing: .08em; color: rgba(239, 231, 217, .75); }
.trick__shot { display: block; margin-top: 4px; border: 1px solid rgba(226, 203, 156, .22); overflow: hidden; }
.trick__shot img { width: 100%; image-rendering: pixelated; }

/* ------------------------------------------------------------------ */
/* お知らせ                                                            */
/* ------------------------------------------------------------------ */
.news__inner { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.news__lead { margin-top: 30px; font-size: 14px; line-height: 2.2; letter-spacing: .1em; color: var(--ink-soft); }
.news__list { display: grid; }
.news__row {
  display: grid;
  grid-template-columns: 8.5em 8.5em minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 18px;
  padding: 20px 6px 20px 2px;
  border-bottom: 1px solid rgba(34, 28, 22, .16);
  transition: background-color .3s ease, padding-left .3s ease;
}
.news__list > li:first-child .news__row { border-top: 1px solid rgba(34, 28, 22, .16); }
.news__row:hover { background: rgba(200, 162, 74, .1); padding-left: 10px; }
.news__date { font-family: var(--dot); font-size: 13px; letter-spacing: .1em; color: var(--ink-pale); }
.news__tag {
  justify-self: start;
  padding: 3px 12px;
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: .1em;
  color: #f4eee3;
  background: var(--indigo-soft);
}
.news__tag[data-cat='update'] { background: #35502f; }
.news__tag[data-cat='media'] { background: #6a4a1f; }
.news__tag[data-cat='event'] { background: #7a2b25; }
.news__title { font-size: clamp(14px, 1.15vw, 16px); letter-spacing: .08em; line-height: 1.8; }
.news__more {
  justify-self: start;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid rgba(34, 28, 22, .35);
  font-family: var(--gothic);
  font-size: 13px;
  letter-spacing: .12em;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.news__more:hover { background: var(--ink); color: var(--washi); border-color: var(--ink); }
.news__empty { padding: 30px 0; color: var(--ink-pale); }

/* ------------------------------------------------------------------ */
/* お知らせの一覧・本文ページ                                           */
/* ------------------------------------------------------------------ */
.article {
  padding-top: clamp(130px, 14vw, 180px);
  padding-bottom: clamp(80px, 9vw, 120px);
  background: var(--washi) url('../img/washi.png') repeat;
  background-size: 420px;
  min-height: 100svh;
}
.article__inner { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.crumbs { display: flex; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--ink-pale); margin-bottom: 26px; }
.crumbs a:hover { color: var(--vermilion); }
.article__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.article__title {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.7;
  letter-spacing: .06em;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(34, 28, 22, .2);
}
.article__body { margin-top: 34px; font-size: 15px; line-height: 2.3; letter-spacing: .05em; color: var(--ink-soft); }
.article__body p { margin-bottom: 1.6em; }
.article__body h2 {
  font-size: 19px; letter-spacing: .1em; color: var(--ink);
  margin: 2.4em 0 1em; padding-left: 14px; border-left: 3px solid var(--vermilion);
}
.article__body h3 { font-size: 16px; letter-spacing: .1em; color: var(--ink); margin: 2em 0 .8em; }
.article__body ul { margin: 0 0 1.6em; padding-left: 1.4em; list-style: disc; }
.article__body li { margin-bottom: .5em; }
.article__body a { color: var(--vermilion); text-decoration: underline; text-underline-offset: 4px; }
.article__body img { margin: 2em 0; box-shadow: 0 12px 30px rgba(60, 48, 34, .22); }
.article__back { margin-top: 56px; }

/* ------------------------------------------------------------------ */
/* 裾                                                                  */
/* ------------------------------------------------------------------ */
.foot {
  position: relative;
  background: var(--navy) url('../img/indigo.png') repeat;
  background-size: 420px;
  color: #ded5c6;
  padding-block: clamp(34px, 4vw, 48px);
}
.foot__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.foot__mark { display: flex; align-items: center; gap: 16px; }
.foot__mark img { width: 116px; image-rendering: pixelated; }
.foot__tagline { font-size: 12px; letter-spacing: .14em; color: rgba(222, 213, 198, .7); }
.foot__links { display: flex; gap: 18px; margin-inline: auto; flex-wrap: wrap; }
.foot__links a { font-family: var(--gothic); font-size: 12px; letter-spacing: .1em; opacity: .8; }
.foot__links a:hover { opacity: 1; color: var(--gold-pale); }
.foot__copy { font-size: 11px; letter-spacing: .08em; color: rgba(222, 213, 198, .5); width: 100%; text-align: right; margin-top: 18px; }

/* ------------------------------------------------------------------ */
/* 小さい画面                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 960px) {
  :root { --tear-scale: .74; }
  .masthead { padding: 8px var(--gutter); }
  .masthead__burger {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-left: auto;
    background: none; border: 0; cursor: pointer;
    color: inherit;
  }
  .masthead__burger span { display: block; width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .3s ease, background-color .3s ease; }
  .masthead__burger span::before, .masthead__burger span::after {
    content: ''; position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; transition: transform .3s ease;
  }
  .masthead__burger span::before { top: -7px; }
  .masthead__burger span::after { top: 7px; }
  .masthead.is-open .masthead__burger span { background: transparent; }
  .masthead.is-open .masthead__burger span::before { transform: translateY(7px) rotate(45deg); }
  .masthead.is-open .masthead__burger span::after { transform: translateY(-7px) rotate(-45deg); }

  .masthead__nav {
    position: fixed;
    inset: 0 0 auto;
    padding: 86px var(--gutter) 34px;
    background: var(--indigo) url('../img/indigo.png') repeat;
    background-size: 360px;
    transform: translateY(-100%);
    transition: transform .42s cubic-bezier(.2, .7, .3, 1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    z-index: -1;
  }
  .masthead.is-open .masthead__nav { transform: translateY(0); }
  .masthead__list { flex-direction: column; align-items: stretch; gap: 0; }
  .masthead__link { justify-items: start; gap: 4px; padding: 16px 4px; border-bottom: 1px solid rgba(242, 236, 225, .14); }
  .masthead__en { font-size: 17px; }
  /* 狭い画面では ロゴ → Steam → 三本線 の順。並べ替えないとロゴに重なる */
  .masthead__logo { order: 1; }
  .masthead__cta { order: 2; margin-left: auto; padding: 9px 14px; font-size: 12px; }
  .masthead__cta span { display: none; }
  .masthead__burger { order: 3; margin-left: 2px; }
  .masthead__nav { order: 4; }

  .hero__copy { top: clamp(210px, 27vh, 300px); max-width: none; font-size: clamp(16px, 4.2vw, 21px); letter-spacing: .16em; text-indent: .16em; }
  .hero__logo { width: min(74vw, 330px); }

  .story__inner { grid-template-columns: 1fr; grid-template-areas: "head" "text" "more" "art"; justify-content: stretch; }
  .story__text { max-width: none; }
  .story__art { justify-self: center; max-width: 560px; }

  .forms { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .forms > :nth-child(4) { grid-column: 1 / 2; }
  .form__note { display: none; }

  .world__inner, .news__inner { grid-template-columns: 1fr; }
  .world__grid { grid-template-columns: 1fr; }
  .world__lead, .news__lead { margin-top: 18px; }
  .shot--wide .shot__label { right: auto; left: 8px; }
  /* 縦に並ぶと、はみ出した札が次の絵に重なる */
  .shot { margin-bottom: 20px; }
  .world__moon, .world__branch { display: none; }

  .system__grid { grid-template-columns: 1fr; }

  .news__row { grid-template-columns: 7em 1fr; }
  .news__title { grid-column: 1 / -1; }

  .band__copy { max-width: none; margin-right: var(--gutter); }
  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__links { margin-inline: 0; }
  .foot__copy { text-align: left; }
}

@media (max-width: 560px) {
  .forms { grid-template-columns: repeat(2, 1fr); }
  .forms > :nth-child(4) { grid-column: auto; }
  .forms > :last-child { grid-column: 1 / -1; justify-self: center; width: 52%; }
}

/* 動きを控える設定のときは、動かさない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* 画面に入ってきたら、そっと現れる */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* 各ページ共通                                                        */
/* ------------------------------------------------------------------ */
.brush__ink--media { -webkit-mask-image: url('../img/ink-media.png'); mask-image: url('../img/ink-media.png'); width: clamp(210px, 22vw, 300px); aspect-ratio: 1298 / 420; }
.brush__ink--play { -webkit-mask-image: url('../img/ink-play.png'); mask-image: url('../img/ink-play.png'); width: clamp(180px, 19vw, 258px); aspect-ratio: 1113 / 420; }

/* ページの頭。ゲーム画面の上に筆文字の題を置く */
.phead {
  position: relative;
  min-height: clamp(300px, 34vw, 430px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0b0f16;
  padding-block: clamp(96px, 11vw, 132px) clamp(46px, 5vw, 72px);
}
.phead__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.phead__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 12, 20, .82) 0%, rgba(8, 12, 20, .42) 38%, rgba(8, 12, 20, .5) 72%, rgba(8, 12, 20, .78) 100%),
    linear-gradient(to right, rgba(8, 12, 20, .74) 0%, rgba(8, 12, 20, .2) 56%, transparent 100%);
}
.phead__inner { position: relative; display: grid; gap: 18px; }
.phead__lead {
  font-size: clamp(14px, 1.35vw, 18px);
  letter-spacing: .2em;
  color: #efe7d9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
  max-width: 34em;
}
.brush--light .brush__ink { background-color: #f6f1e7; }
.brush--light .brush__kicker { color: #e2cb9c; }

.crumbs--page { padding-top: 22px; margin-bottom: -10px; color: #b3a893; }
.crumbs--page a:hover { color: var(--gold); }

/* 面の中の、筆文字ではない見出し */
.section__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(19px, 2vw, 26px);
  letter-spacing: .12em;
  color: #f6f0e5;
  margin-bottom: 14px;
}
.section__title span {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold-pale);
  font-weight: 600;
}
.section__title--dark { color: var(--ink); }
.section__title--dark span { color: var(--vermilion); }
.section__lead {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2.2;
  letter-spacing: .1em;
  color: rgba(239, 231, 217, .78);
  max-width: 42em;
}
.sheet--washi .section__lead { color: var(--ink-soft); }
.section__lead--wide { margin-bottom: clamp(26px, 3vw, 44px); }

/* 「続きはこちら」 */
.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 4px;
  font-family: var(--gothic);
  font-size: 13px;
  letter-spacing: .12em;
  border-bottom: 1px solid currentColor;
  transition: gap .25s ease, color .25s ease;
}
.more:hover { gap: 16px; color: var(--vermilion); }
.sheet--indigo .more:hover { color: var(--gold-pale); }
.story__more { margin: 0; }

/* ------------------------------------------------------------------ */
/* Steam への誘い (どのページの裾にも置く)                              */
/* ------------------------------------------------------------------ */
.call {
  position: relative;
  background: var(--indigo) url('../img/indigo.png') repeat;
  background-size: 420px;
  color: #f2ece1;
  padding-block: clamp(44px, 5vw, 70px);
  text-align: center;
  border-top: 1px solid rgba(200, 162, 74, .28);
}
.call__inner { display: grid; justify-items: center; gap: 6px; }
.call__state {
  font-family: var(--gothic);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold-pale);
}
.call__title { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .18em; }
.call__note { font-size: 12px; letter-spacing: .08em; color: rgba(242, 236, 225, .6); }
.call__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.call__steam {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--gothic);
  font-size: 14px;
  letter-spacing: .1em;
  color: #fff;
  background: linear-gradient(135deg, #c0392b, #8e2018);
  box-shadow: 0 8px 22px rgba(150, 40, 30, .4), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.call__steam:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(150, 40, 30, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.call__steam svg { width: 18px; height: 18px; }
.call__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--gothic); font-size: 13px; letter-spacing: .1em;
  border-bottom: 1px solid rgba(242, 236, 225, .45);
  padding-bottom: 3px;
  transition: gap .25s ease, color .25s ease;
}
.call__more:hover { gap: 14px; color: var(--gold-pale); }

/* ------------------------------------------------------------------ */
/* 物語ページ                                                          */
/* ------------------------------------------------------------------ */
.story__inner--page {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  grid-template-areas: "text art";
  align-items: center;
}
.story__inner--page .story__text { max-width: 32em; }
.prose__gap { height: .85em; }

/* ------------------------------------------------------------------ */
/* 登場人物ページ                                                      */
/* ------------------------------------------------------------------ */
.forms--page { row-gap: 34px; }
.form--page .form__note { font-size: 13px; color: rgba(239, 231, 217, .74); }
.form--coming .form__disc img { filter: grayscale(.55) brightness(.8); }
.form--coming .form__disc::after { opacity: .5; }
.form__coming {
  font-family: var(--gothic);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 2px 9px;
  border: 1px solid rgba(226, 203, 156, .5);
  color: var(--gold-pale);
  border-radius: 999px;
}

.foe {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  margin-top: clamp(26px, 3vw, 42px);
  padding: clamp(20px, 2.4vw, 34px);
  background: rgba(22, 18, 14, .045);
  border: 1px solid rgba(34, 28, 22, .14);
}
.foe__art img { width: 100%; image-rendering: pixelated; }
.foe__text { display: grid; gap: 6px; align-content: start; }
.foe__en { font-family: var(--latin); font-size: 12px; letter-spacing: .3em; color: var(--vermilion); }
.foe__title { font-size: 13px; letter-spacing: .12em; color: var(--ink-pale); }
.foe__jp { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: .1em; }
.foe__body { font-size: 14px; line-height: 2.1; letter-spacing: .06em; color: var(--ink-soft); margin-top: 6px; }
.foe__shot { grid-column: 2 / -1; margin-top: 4px; border: 1px solid rgba(34, 28, 22, .18); overflow: hidden; }
.foe__shot img { width: 100%; image-rendering: pixelated; }

/* ------------------------------------------------------------------ */
/* 世界ページ                                                          */
/* ------------------------------------------------------------------ */
.world--page { padding-bottom: clamp(160px, 17vw, 250px); }
.places { display: grid; gap: clamp(26px, 3.4vw, 52px); }
.place {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
}
.place--flip > .place__shot { order: 2; }
.place__shot { overflow: hidden; border: 1px solid rgba(34, 28, 22, .18); box-shadow: 0 14px 34px rgba(60, 48, 34, .2); background: #0d1119; }
.place__shot img { width: 100%; image-rendering: pixelated; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.place:hover .place__shot img { transform: scale(1.03); }
.place__en { font-family: var(--latin); font-size: 12px; letter-spacing: .3em; color: var(--vermilion); }
.place__jp { font-size: clamp(19px, 2vw, 26px); letter-spacing: .12em; margin: 4px 0 10px; }
.place__body { font-size: 14px; line-height: 2.2; letter-spacing: .06em; color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* システムページ                                                      */
/* ------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(20px, 2.4vw, 34px); }
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: 999px;
  background: rgba(244, 238, 227, .06);
  border: 1px solid rgba(226, 203, 156, .28);
  font-size: 14px; letter-spacing: .1em;
}
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.chip--coming { opacity: .52; }

/* ------------------------------------------------------------------ */
/* メディアページ                                                      */
/* ------------------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gallery__open {
  display: block; width: 100%; padding: 0; border: 1px solid rgba(34, 28, 22, .18);
  background: #0d1119; cursor: zoom-in; position: relative; overflow: hidden; font: inherit; color: inherit;
  box-shadow: 0 12px 28px rgba(60, 48, 34, .18);
}
.gallery__open img { width: 100%; image-rendering: pixelated; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.gallery__open:hover img { transform: scale(1.04); }
.gallery__label {
  position: absolute; left: 0; bottom: 0;
  padding: 6px 16px;
  background: rgba(20, 31, 46, .88);
  color: #f2ece1;
  font-size: 12px; letter-spacing: .12em;
}
.media__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.media__logo img { width: min(100%, 320px); image-rendering: pixelated; margin-top: 10px; }

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: clamp(20px, 5vw, 60px);
  background: rgba(6, 10, 18, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lightbox__figure img { max-width: 100%; max-height: 78vh; image-rendering: pixelated; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox__figure figcaption { color: #e7dfcf; font-size: 13px; letter-spacing: .14em; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  background: none; border: 1px solid rgba(242, 236, 225, .4); border-radius: 50%;
  color: #f2ece1; font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(242, 236, 225, .12); }

/* ------------------------------------------------------------------ */
/* あそぶページ                                                        */
/* ------------------------------------------------------------------ */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: 0; }
.fact { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 14px; padding: 15px 4px; border-bottom: 1px solid rgba(34, 28, 22, .16); }
.fact dt { font-family: var(--gothic); font-size: 12px; letter-spacing: .1em; color: var(--ink-pale); }
.fact dd { margin: 0; font-size: 14px; letter-spacing: .06em; }
.buy { margin-top: clamp(24px, 3vw, 40px); }

.qas { display: grid; gap: clamp(18px, 2.2vw, 30px); }
.qa { padding-left: 16px; border-left: 2px solid rgba(200, 162, 74, .55); }
.qa__q { font-size: clamp(15px, 1.5vw, 18px); letter-spacing: .1em; color: #f6f0e5; margin-bottom: 6px; }
.qa__a { font-size: 14px; line-height: 2.2; letter-spacing: .06em; color: rgba(239, 231, 217, .78); }

.specs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs caption { text-align: left; }
.specs th, .specs td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(34, 28, 22, .16); letter-spacing: .05em; }
.specs thead th { font-family: var(--gothic); font-size: 12px; letter-spacing: .14em; color: var(--ink-pale); border-bottom-color: rgba(34, 28, 22, .3); }
.specs tbody th { font-family: var(--gothic); font-size: 12px; color: var(--ink-pale); width: 9em; font-weight: normal; }
.specs__note { margin-top: 14px; font-size: 12px; color: var(--ink-pale); letter-spacing: .05em; }

/* ------------------------------------------------------------------ */
/* 小さい画面 (各ページ)                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .phead { align-items: center; }
  .story__inner--page { grid-template-columns: 1fr; grid-template-areas: "text" "art"; }
  .story__inner--page .story__text { max-width: none; }
  .foe { grid-template-columns: 1fr; }
  .foe__art img { width: min(60%, 220px); margin-inline: auto; }
  .foe__shot { grid-column: 1 / -1; }
  .place { grid-template-columns: 1fr; }
  .place--flip > .place__shot { order: 0; }
  .gallery { grid-template-columns: 1fr; }
  .media__foot { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .specs { overflow-x: auto; }
  .specs table { min-width: 520px; }
}

/* 主人公・ボスのような「絵 + 文」の一段 */
.lead-figure {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: center;
}
.lead-figure__art {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 30%, #2c3d5c, #101a2b 72%);
  box-shadow: 0 14px 34px rgba(60, 48, 34, .3);
}
.lead-figure__art::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: url('../img/gold.png') center / 180px, var(--gold);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.lead-figure__art img { width: 100%; height: 100%; object-fit: cover; }
.lead-figure__text { display: grid; gap: 6px; align-content: center; }

/* 姿の「できること」 */
.form__skill {
  font-family: var(--gothic);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 2px 10px;
  border: 1px solid rgba(226, 203, 156, .45);
  color: var(--gold-pale);
  border-radius: 999px;
}

/* ボスの名乗り */
.foe__quote {
  margin: 8px 0 2px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: .1em;
  color: var(--vermilion);
}
.sheet--indigo .foe { background: rgba(244, 238, 227, .05); border-color: rgba(226, 203, 156, .22); }
.sheet--indigo .foe__en { color: var(--gold-pale); }
.sheet--indigo .foe__title { color: rgba(239, 231, 217, .62); }
.sheet--indigo .foe__jp { color: #f6f0e5; }
.sheet--indigo .foe__quote { color: #e6b9a6; }
.sheet--indigo .foe__body { color: rgba(239, 231, 217, .78); }
.sheet--indigo .foe__shot { border-color: rgba(226, 203, 156, .22); }

/* 村の人たち */
.villagers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.villager { display: grid; justify-items: center; gap: 4px; text-align: center; }
.villager__art {
  display: grid;
  place-items: end center;
  width: 100%;
  aspect-ratio: 1;
  background: rgba(22, 18, 14, .05);
  border: 1px solid rgba(34, 28, 22, .14);
  overflow: hidden;
}
.villager__art img { width: 86%; image-rendering: pixelated; }
.villager__jp { font-size: 16px; letter-spacing: .1em; margin-top: 8px; }
.villager__en { font-family: var(--latin); font-size: 11px; letter-spacing: .22em; color: var(--vermilion); margin-top: -6px; }
.villager__role { font-size: 12px; line-height: 1.9; letter-spacing: .04em; color: var(--ink-pale); }

/* システムページの姿の札 */
.chip { flex-direction: column; align-items: flex-start; padding: 12px 18px; border-radius: 6px; gap: 2px; }
.chip img { width: 40px; height: 40px; }
.chip__jp { font-size: 15px; letter-spacing: .1em; color: #f6f0e5; }
.chip__skill { font-family: var(--gothic); font-size: 11px; letter-spacing: .06em; color: var(--gold-pale); }

@media (max-width: 960px) {
  .lead-figure { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lead-figure__art { width: min(58%, 230px); }
  .lead-figure__text { justify-items: center; }
  .villagers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ */
/* 手直し                                                              */
/* ------------------------------------------------------------------ */
/* 札の中身は上から詰める (下に余りを配られると題と本文が離れる) */
.trick { align-content: start; }

/* 現在地は頭の帯の中。絵の上に乗るので明るい色で */
.phead .crumbs { padding-top: 0; margin-bottom: 4px; color: rgba(242, 236, 225, .72); }
.phead .crumbs a:hover { color: var(--gold-pale); }

/* 左右を入れ替えても、絵の幅は変わらないように */
.place--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }

/* 並べた絵の高さをそろえる */
.gallery__open img { aspect-ratio: 16 / 9; object-fit: cover; }

/* あらすじの本文は、もう少し大きく */
.story__inner--page .story__text { font-size: clamp(15px, 1.3vw, 19px); letter-spacing: .14em; line-height: 2.2; }

/* ------------------------------------------------------------------ */
/* 化ける姿はゲーム内のドット絵。にじませない                           */
/* ------------------------------------------------------------------ */
.form__disc img,
.lead-figure__art img,
.chip img {
  image-rendering: pixelated;
  object-fit: contain;
}
/* 丸の中に収める。正方形を丸に入れるので、七割ちょっとまでしか使えない
   (一番横に広いアカオニが縁からはみ出さない寸法) */
.form__disc img { width: 74%; height: 74%; margin: 13%; }
.lead-figure__art img { width: 72%; height: 72%; margin: 14%; }
.chip img { padding: 2px; }

/* ------------------------------------------------------------------ */
/* ゲームの中身の一覧 (できること・頼まれごと・拾えるもの・言葉)        */
/* ------------------------------------------------------------------ */
.section__gap { margin-top: clamp(46px, 5.5vw, 84px); }

/* できること */
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.action {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(34, 28, 22, .16);
}
.action__jp { font-size: 15px; letter-spacing: .12em; }
.action__note { font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--ink-pale); }

/* 頼まれごと */
.quests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.quest {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 26px);
  background: rgba(22, 18, 14, .04);
  border: 1px solid rgba(34, 28, 22, .14);
  border-left: 3px solid rgba(34, 28, 22, .3);
}
.quest--main { border-left-color: var(--vermilion); background: rgba(157, 47, 38, .05); }
.quest--sub { border-left-color: var(--gold); }
.quest--hunt { border-left-color: #6a4a1f; }
.quest--gather { border-left-color: #35502f; }
.quest__tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; }
.quest__kind {
  font-family: var(--gothic);
  padding: 2px 10px;
  color: #f4eee3;
  background: var(--indigo-soft);
}
.quest--main .quest__kind { background: var(--vermilion); }
.quest--hunt .quest__kind { background: #6a4a1f; }
.quest--gather .quest__kind { background: #35502f; }
.quest__level { color: var(--gold); letter-spacing: .1em; }
.quest__client { color: var(--ink-pale); margin-left: auto; }
.quest__jp { font-size: clamp(16px, 1.5vw, 19px); letter-spacing: .1em; }
.quest__body { font-size: 13px; line-height: 2; letter-spacing: .04em; color: var(--ink-soft); }
.quest__steps {
  list-style: none;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(34, 28, 22, .22);
  counter-reset: step;
}
.quest__steps li {
  position: relative;
  padding-left: 22px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-pale);
  counter-increment: step;
}
.quest__steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 15px; height: 15px;
  display: grid; place-items: center;
  border: 1px solid rgba(34, 28, 22, .3);
  border-radius: 50%;
  font-family: var(--dot);
  font-size: 9px;
}

/* 拾えるもの */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.item {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: clamp(14px, 1.8vw, 20px);
  background: rgba(244, 238, 227, .045);
  border: 1px solid rgba(226, 203, 156, .2);
}
.item__jp { font-size: 15px; letter-spacing: .12em; color: #f6f0e5; }
.item__effect {
  justify-self: start;
  font-family: var(--gothic);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 2px 9px;
  border: 1px solid rgba(226, 203, 156, .45);
  border-radius: 999px;
  color: var(--gold-pale);
}
.item__body { font-size: 12.5px; line-height: 1.95; letter-spacing: .03em; color: rgba(239, 231, 217, .72); }

/* 店 */
.shop__lines { display: grid; gap: 6px; margin-top: 14px; }
.shop__lines li { font-size: 14px; letter-spacing: .1em; color: var(--gold-pale); }

/* 世界の言葉 */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin: 0; }
.gloss {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(226, 203, 156, .18);
}
.gloss dt { font-size: 14px; letter-spacing: .1em; color: var(--gold-pale); }
.gloss dd { margin: 0; font-size: 13px; line-height: 2; letter-spacing: .04em; color: rgba(239, 231, 217, .76); }

/* そのほかの敵 */
.foes__intro { margin-top: clamp(30px, 3.5vw, 48px); }
.foes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 16px; }
.foes__item {
  display: grid; align-content: start; gap: 6px;
  padding: clamp(16px, 2vw, 22px);
  background: rgba(244, 238, 227, .045);
  border: 1px solid rgba(226, 203, 156, .2);
}
.foes__jp { font-size: 17px; letter-spacing: .1em; color: #f6f0e5; }
.foes__body { font-size: 13px; line-height: 2; letter-spacing: .04em; color: rgba(239, 231, 217, .74); }

@media (max-width: 960px) {
  .actions, .quests, .items, .glossary, .foes { grid-template-columns: 1fr; }
  .quest__client { margin-left: 0; }
}

/* 世界の言葉は生成りの紙の上。山並みより手前に来ないよう、面の中に収める */
.sheet--washi .gloss { border-bottom-color: rgba(34, 28, 22, .16); }
.sheet--washi .gloss dt { color: var(--vermilion); }
.sheet--washi .gloss dd { color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* 鍵絵の下の押し口 (トレーラー)                                        */
/* ------------------------------------------------------------------ */
.hero__stack {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(140px, 20vh, 200px);
  display: grid;
  justify-items: center;
  gap: 18px;
}
.hero__stack .hero__logo { position: static; bottom: auto; }
.hero__actions { animation: rise-in 1.5s .9s both cubic-bezier(.2, .7, .3, 1); }

.trailer__open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px 11px 16px;
  border: 1px solid rgba(226, 203, 156, .7);
  border-radius: 999px;
  background: rgba(8, 12, 22, .45);
  color: #f3eee4;
  font-family: var(--gothic);
  font-size: 13px;
  letter-spacing: .14em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.trailer__open svg { width: 14px; height: 14px; color: var(--gold-pale); }
.trailer__open:hover, .trailer__open:focus-visible { background: rgba(200, 162, 74, .22); border-color: var(--gold-pale); transform: translateY(-2px); }

/* トレーラーの窓 */
.trailer[hidden] { display: none; }
.trailer {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; gap: 12px;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 9, 16, .92);
}
.trailer__frame {
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.trailer__frame video, .trailer__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer__close {
  position: absolute; top: 14px; right: 18px;
  width: 44px; height: 44px;
  background: none; border: 0; color: #f3eee4;
  font-size: 30px; line-height: 1; cursor: pointer;
}
.trailer__note { font-family: var(--gothic); font-size: 12px; letter-spacing: .1em; color: rgba(243, 238, 228, .7); }
.trailer__note a { border-bottom: 1px solid currentColor; }

/* 見出し絵つきの大きな押し口 (メディア) */
.poster { position: relative; overflow: hidden; border: 1px solid rgba(226, 203, 156, .3); background: #000; }
.poster img { width: 100%; display: block; opacity: .82; transition: transform .8s cubic-bezier(.2,.7,.3,1), opacity .4s ease; }
.poster:hover img { transform: scale(1.03); opacity: .95; }
.trailer__open--poster {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 30px 16px 22px;
  font-size: 15px;
  background: rgba(8, 12, 22, .6);
}
.trailer__open--poster:hover, .trailer__open--poster:focus-visible { transform: translate(-50%, -52%); }
.trailer__open--poster svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ */
/* 作品概要 (鍵絵のすぐ下)                                              */
/* ------------------------------------------------------------------ */
.pitch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.pitch__kicker { font-family: var(--latin); font-size: 13px; font-weight: 600; letter-spacing: .42em; color: var(--gold-pale); }
.pitch__headline {
  display: grid;
  margin-top: 10px;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: .06em;
  color: #f6f0e5;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}
.pitch__sub {
  margin-top: 14px;
  font-size: clamp(14px, 1.3vw, 17px);
  letter-spacing: .18em;
  color: var(--gold-pale);
}
.pitch__body { margin-top: 22px; display: grid; gap: 12px; font-size: 14px; line-height: 2.1; letter-spacing: .08em; color: rgba(239, 231, 217, .8); }
.pitch__clips { display: grid; gap: clamp(12px, 1.6vw, 20px); }

/* ゲーム画面の動き */
.clip { position: relative; border: 1px solid rgba(226, 203, 156, .28); background: #0b0f16; overflow: hidden; }
.clip__video { display: block; width: 100%; aspect-ratio: 800 / 494; object-fit: cover; image-rendering: pixelated; }
.clip__cap {
  position: absolute; left: 0; bottom: 0;
  padding: 6px 14px;
  font-family: var(--gothic); font-size: 11px; letter-spacing: .12em;
  color: #f3eee4;
  background: linear-gradient(to right, rgba(8, 12, 20, .78), rgba(8, 12, 20, 0));
  width: 100%;
}

/* ------------------------------------------------------------------ */
/* 対応機種の札                                                        */
/* ------------------------------------------------------------------ */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.platform {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(226, 203, 156, .42);
  background: rgba(244, 238, 227, .05);
  color: #f3eee4;
  transition: background-color .25s ease, border-color .25s ease;
}
.platform svg { grid-row: 1 / 3; width: 22px; height: 22px; }
.platform__name { font-family: var(--gothic); font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.platform__state { font-family: var(--gothic); font-size: 10.5px; letter-spacing: .1em; color: var(--gold-pale); }
a.platform:hover { background: rgba(200, 162, 74, .16); border-color: var(--gold-pale); }
.platform--soon { color: rgba(243, 238, 228, .7); border-style: dashed; }
.platform--soon .platform__state { color: rgba(226, 203, 156, .7); }
.platforms--call { justify-content: center; margin-top: 24px; }
.platforms--dark .platform { color: var(--ink); border-color: rgba(34, 28, 22, .3); background: rgba(255, 255, 255, .35); }
.platforms--dark .platform__state { color: var(--vermilion); }
.platforms--dark a.platform:hover { background: rgba(200, 162, 74, .18); }

/* ------------------------------------------------------------------ */
/* 会話                                                                */
/* ------------------------------------------------------------------ */
.talk__inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.talk__lead { margin-top: 6px; font-size: clamp(15px, 1.35vw, 19px); letter-spacing: .18em; color: var(--ink); }
.talk__body { margin-top: 18px; font-size: 14px; line-height: 2.2; letter-spacing: .08em; color: var(--ink-soft); }
.talk__shots { display: grid; gap: clamp(24px, 2.6vw, 34px); }
.talk__shot .shot__frame img { width: 100%; }

/* ------------------------------------------------------------------ */
/* 化ける (登場人物ページ)                                              */
/* ------------------------------------------------------------------ */
.bakeru {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(30px, 4vw, 56px);
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid rgba(226, 203, 156, .22);
}
.bakeru__chart img { width: 100%; image-rendering: pixelated; }
.bakeru__text { display: grid; gap: 12px; }
.trick__shot--figure { border: 0; background: none; }
.trick__shot--figure img { image-rendering: pixelated; }

/* ------------------------------------------------------------------ */
/* メディア (動画)                                                      */
/* ------------------------------------------------------------------ */
.movie { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: 22px; align-items: start; }
.movie__clips { display: grid; gap: clamp(12px, 1.6vw, 20px); align-content: start; }
.inline-link { color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.inline-link:hover { color: var(--gold-pale); }
.sheet--washi .inline-link:hover { color: var(--vermilion); }

/* ------------------------------------------------------------------ */
/* プレスキット                                                        */
/* ------------------------------------------------------------------ */
.boiler { display: grid; gap: 16px; max-width: 58em; }
.boiler__short {
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(244, 238, 227, .05);
  font-size: 15px; line-height: 2.1; letter-spacing: .06em; color: #f6f0e5;
}
.boiler__long { font-size: 14px; line-height: 2.1; letter-spacing: .06em; color: rgba(239, 231, 217, .8); }
.kits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: 26px;
}
.kit__open { display: grid; gap: 4px; }
.kit__thumb {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(34, 28, 22, .18);
  background: #fff url('../img/washi.png');
  background-size: 300px;
  box-shadow: 0 10px 26px rgba(60, 48, 34, .16);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.kit__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.kit__open:hover .kit__thumb { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60, 48, 34, .24); }
.kit__jp { margin-top: 8px; font-size: 14px; letter-spacing: .1em; color: var(--ink); }
.kit__note { font-family: var(--gothic); font-size: 11px; letter-spacing: .08em; color: var(--ink-pale); }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; margin: 18px 0 26px; }
.contact {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(226, 203, 156, .5);
  font-family: var(--gothic); font-size: 15px; letter-spacing: .08em; color: #f6f0e5;
}
.contact svg { width: 18px; height: 18px; color: var(--gold-pale); }
.contact:hover { background: rgba(200, 162, 74, .16); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(226, 203, 156, .42);
  color: #f3eee4;
}
.social svg { grid-row: 1 / 3; width: 18px; height: 18px; }
.social__label { font-family: var(--gothic); font-size: 12.5px; letter-spacing: .08em; }
.social__handle { font-family: var(--gothic); font-size: 10.5px; letter-spacing: .06em; color: var(--gold-pale); }
.social:hover { background: rgba(200, 162, 74, .16); border-color: var(--gold-pale); }

/* ------------------------------------------------------------------ */
/* 裾 (SNS・版元)                                                      */
/* ------------------------------------------------------------------ */
.foot__social { display: flex; gap: 8px; margin-left: auto; }
.foot__social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(222, 213, 198, .22);
  font-family: var(--gothic); font-size: 11px; letter-spacing: .08em;
  color: rgba(222, 213, 198, .85);
}
.foot__social svg { width: 15px; height: 15px; }
.foot__social a:hover { color: var(--gold-pale); border-color: var(--gold-pale); }
.foot__company {
  width: 100%;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(222, 213, 198, .14);
}
.foot__maker img { width: 96px; opacity: .9; }
.foot__maker:hover img { opacity: 1; }
.foot__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--gothic); font-size: 11.5px; letter-spacing: .06em; color: rgba(222, 213, 198, .72); }
.foot__meta a:hover { color: var(--gold-pale); }
.foot__copy { margin-top: 14px; }

@media (max-width: 960px) {
  .hero__stack { bottom: clamp(120px, 17vh, 170px); }
  .pitch__inner, .talk__inner, .bakeru, .movie { grid-template-columns: 1fr; }
  .pitch__clips { grid-template-columns: 1fr 1fr; }
  .talk__shots { grid-template-columns: 1fr; }
  .foot__social { margin-left: 0; }
  .foot__company { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .pitch__clips { grid-template-columns: 1fr; }
  .trailer__open--poster { padding: 12px 20px 12px 16px; font-size: 13px; }
  .kits { grid-template-columns: repeat(2, 1fr); }
}

/* 筆文字の無い題 (プレスキットなど)。筆の題と同じ場所に、明朝の太字で置く */
.phead__text {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .08em;
  color: #f6f1e7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}

/* ------------------------------------------------------------------ */
/* 読みやすさ: 本文はゴシック・大きめ・字間は詰める。明朝は題と鍵絵だけ */
/* ------------------------------------------------------------------ */
body { font-family: var(--gothic); font-size: 16px; line-height: 1.9; letter-spacing: .02em; }
.hero__copy, .story__text, .band__copy, .pitch__headline, .call__title, .phead__text, .foe__quote, .post__title, .foe__jp, .place__jp, .trick__jp, .form__jp, .villager__jp, .quest__jp, .item__jp, .section__title, .talk__lead, .character__lead, .system__lead, .phead__lead, .article__title { font-family: var(--mincho); }
.masthead__jp, .foot__links a, .news__tag, .more, .call__steam, .trailer__open, .platform__name, .platform__state { font-family: var(--gothic); }
.pitch__body, .talk__body, .trick__body, .foe__body, .place__body, .villager__role, .form__note, .quest__body, .item__body, .qa__a, .gloss dd, .section__lead, .world__lead, .news__lead, .story__body, .boiler__long, .action__note, .foes__body, .specs td, .facts dd, .call__note { letter-spacing: .03em; }
.pitch__body { font-size: 16px; line-height: 2; color: rgba(243, 238, 228, .92); }
.talk__body { font-size: 16px; line-height: 2; color: var(--ink); }
.trick__body { font-size: 15.5px; line-height: 1.95; color: rgba(243, 238, 228, .9); }
.section__lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 2; color: rgba(243, 238, 228, .9); }
.sheet--washi .section__lead { color: var(--ink); }
.world__lead, .news__lead { font-size: clamp(15px, 1.15vw, 17px); color: var(--ink); }
.form__note { font-size: 13.5px; color: rgba(243, 238, 228, .85); }
.form__en, .trick__en, .entry__meta, .brush__kicker, .pitch__kicker, .section__title span { letter-spacing: .24em; }
.foe__body, .place__body, .villager__role, .quest__body, .item__body, .qa__a, .gloss dd, .boiler__long, .action__note, .foes__body { font-size: 15.5px; line-height: 1.95; }
.sheet--indigo .foe__body, .sheet--indigo .quest__body, .sheet--indigo .item__body, .sheet--indigo .qa__a, .sheet--indigo .boiler__long, .sheet--indigo .foes__body { color: rgba(243, 238, 228, .9); }
.shot__note, .kit__note { font-size: 12.5px; }
.news__title { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.75; }
.article__body { font-size: 17px; line-height: 1.95; letter-spacing: .02em; color: #2a241e; }
.article__body h2 { font-size: 22px; line-height: 1.5; letter-spacing: .04em; margin: 2.2em 0 .9em; }
.article__body h3 { font-size: 18.5px; line-height: 1.5; margin: 1.8em 0 .7em; }
.article__body h4 { font-size: 16.5px; margin: 1.5em 0 .6em; color: var(--ink); }
.article__body p { margin-bottom: 1.5em; }
.article__body ol { margin: 0 0 1.5em; padding-left: 1.6em; }
.article__body li { margin-bottom: .45em; }
.article__body blockquote { margin: 0 0 1.5em; padding: 14px 22px; border-left: 3px solid var(--gold); background: rgba(200, 162, 74, .08); color: var(--ink-soft); }
.article__body blockquote p:last-child { margin-bottom: 0; }
.article__body hr { border: 0; height: 1px; margin: 2.4em 0; background: linear-gradient(to right, transparent, rgba(34, 28, 22, .3), transparent); }
.article__body figure { margin: 2em 0; }
.article__body figure img { margin: 0; width: 100%; }
.article__body figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-pale); text-align: center; }
.article__body pre { margin: 0 0 1.5em; padding: 16px 18px; overflow: auto; background: #1d2431; color: #e6e1d6; font-size: 13.5px; line-height: 1.7; border-radius: 6px; }
.article__body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: rgba(34, 28, 22, .08); padding: 2px 6px; border-radius: 4px; }
.article__body pre code { background: none; padding: 0; }
.article__body .embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: #000; }
.article__body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__body strong { color: var(--ink); }
.muted { color: var(--ink-pale); }

/* ------------------------------------------------------------------ */
/* 開発ブログ・お知らせの一覧                                           */
/* ------------------------------------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(34, 28, 22, .22);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  transition: background-color .2s ease, color .2s ease;
}
.tag:hover { background: var(--ink); color: var(--washi); }
.sheet--indigo .tag, .post__meta .tag { border-color: rgba(226, 203, 156, .5); color: #f3eee4; }
.sheet--indigo .tag:hover, .post__meta .tag:hover { background: var(--gold-pale); color: var(--ink); }

.entry { display: grid; gap: 14px; align-content: start; }
.entry__cover {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(34, 28, 22, .18);
  box-shadow: 0 14px 34px rgba(60, 48, 34, .18);
  background: #0d1119;
  aspect-ratio: 16 / 9;
}
.entry__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.entry:hover .entry__cover img { transform: scale(1.035); }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12.5px; color: var(--ink-pale); }
.entry__meta time { font-family: var(--dot); font-size: 13px; letter-spacing: .08em; }
.entry__title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; line-height: 1.6; letter-spacing: .02em; color: var(--ink); }
.entry__title a:hover { color: var(--vermilion); }
.entry__excerpt { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); }
.entry .more { margin-top: 4px; }
.entry--big { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3.4vw, 48px); align-items: center; margin-bottom: clamp(36px, 5vw, 64px); padding-bottom: clamp(30px, 4vw, 56px); border-bottom: 1px solid rgba(34, 28, 22, .16); }
.entry--big .entry__title { font-size: clamp(22px, 2.2vw, 32px); }
.entry--big .entry__excerpt { font-size: 15.5px; }
.entries__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(16px, 2.4vw, 30px); }
.entries__grid--dark .entry__title { color: #f6f0e5; }
.entries__grid--dark .entry__title a:hover { color: var(--gold-pale); }
.entries__grid--dark .entry__excerpt { color: rgba(243, 238, 228, .82); }
.entries__grid--dark .entry__meta { color: rgba(243, 238, 228, .7); }
.entries__grid--dark .entry__cover { border-color: rgba(226, 203, 156, .3); }
.entries__grid--dark .more { color: #f3eee4; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: clamp(36px, 5vw, 60px); }
.pager__link, .pager__now { min-width: 42px; padding: 8px 14px; text-align: center; font-size: 14px; border: 1px solid rgba(34, 28, 22, .22); }
.pager__link:hover { background: var(--ink); color: var(--washi); }
.pager__now { background: var(--ink); color: var(--washi); border-color: var(--ink); }

/* トップの開発ブログ */
.blogs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.blogs__lead { font-size: clamp(15px, 1.3vw, 18px); letter-spacing: .12em; color: var(--ink); }
.blogs .entry__title { font-size: clamp(16px, 1.3vw, 18px); }
.news--after { padding-top: 0; }
.news--after .news__inner { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid rgba(34, 28, 22, .14); }

/* ------------------------------------------------------------------ */
/* 記事の本文                                                          */
/* ------------------------------------------------------------------ */
.post__head { position: relative; min-height: clamp(360px, 46vw, 560px); display: grid; align-items: end; overflow: hidden; background: #0b0f16; padding-block: clamp(110px, 12vw, 150px) clamp(40px, 5vw, 64px); }
.post__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.post__veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(8, 12, 20, .78) 0%, rgba(8, 12, 20, .3) 40%, rgba(8, 12, 20, .55) 75%, rgba(8, 12, 20, .9) 100%); }
.post__headinner { position: relative; display: grid; gap: 14px; }
.post__headinner > * { max-width: 900px; }
.post__kicker { font-family: var(--latin); font-size: 13px; font-weight: 600; letter-spacing: .42em; color: var(--gold-pale); }
.post__title { font-size: clamp(26px, 3.4vw, 44px); font-weight: 700; line-height: 1.45; letter-spacing: .04em; color: #f6f1e7; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: rgba(243, 238, 228, .85); }
.post__meta time { font-family: var(--dot); font-size: 14px; letter-spacing: .08em; }
.post__preview { padding: 12px var(--gutter); background: #7a2b25; color: #fff; font-size: 13.5px; text-align: center; }
.post__body-wrap { background: var(--washi) url('../img/washi.png') repeat; background-size: 420px; padding-block: clamp(44px, 6vw, 80px) clamp(60px, 7vw, 100px); }
.post__inner { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.post__lead { font-size: 17.5px; line-height: 2; color: var(--ink); padding-bottom: 26px; margin-bottom: 30px; border-bottom: 1px solid rgba(34, 28, 22, .18); }
.toc { margin: 0 0 36px; padding: 18px 22px; border: 1px solid rgba(34, 28, 22, .18); background: rgba(255, 255, 255, .35); }
.toc__title { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ink-pale); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; line-height: 1.9; }
.toc a { color: var(--ink); border-bottom: 1px solid rgba(34, 28, 22, .25); }
.toc a:hover { color: var(--vermilion); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(34, 28, 22, .18); }
.share__x, .share__copy { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(34, 28, 22, .3); background: none; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.share__x svg { width: 14px; height: 14px; }
.share__x:hover, .share__copy:hover { background: var(--ink); color: var(--washi); }
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.neighbors:empty { display: none; }
.neighbor--empty { border: 0; background: none; }
.neighbor { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border: 1px solid rgba(34, 28, 22, .18); background: rgba(255, 255, 255, .3); transition: background-color .2s ease; }
.neighbor:hover { background: rgba(200, 162, 74, .14); }
.neighbor img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; }
.neighbor--older { grid-template-columns: minmax(0, 1fr) 96px; text-align: right; }
.neighbor--older img { order: 2; }
.neighbor__text { display: grid; gap: 2px; min-width: 0; }
.neighbor__label { font-size: 11.5px; letter-spacing: .1em; color: var(--ink-pale); }
.neighbor__title { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.related { padding-block: clamp(50px, 6vw, 80px); }
.related .section__title { margin-bottom: 26px; }

@media (max-width: 960px) {
  .entry--big { grid-template-columns: 1fr; }
  .entries__grid { grid-template-columns: 1fr 1fr; }
  .neighbors { grid-template-columns: 1fr; }
  .neighbor--older { grid-template-columns: 96px minmax(0, 1fr); text-align: left; }
  .neighbor--older img { order: 0; }
}
@media (max-width: 560px) {
  .entries__grid { grid-template-columns: 1fr; }
  .post__title { font-size: 24px; }
  .article__body { font-size: 16px; }
}


/* ------------------------------------------------------------------ */
/* 言語の切り替えと英語版                                                 */
/* ------------------------------------------------------------------ */
.masthead__item--lang { margin-left: clamp(4px, 1vw, 12px); }
.masthead__lang, .foot__lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; padding: 5px 11px;
  border: 1px solid rgba(242, 236, 225, .45); border-radius: 999px;
  font-family: var(--gothic); font-size: 12px; font-weight: 500; letter-spacing: .1em; line-height: 1;
  color: #f2ece1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.masthead__lang:hover, .foot__lang:hover { background: var(--gold-pale); border-color: var(--gold-pale); color: var(--ink); }
.foot__lang { margin-left: 8px; padding: 4px 10px; font-size: 11.5px; }

/* 英語版: 字間は英語向けに詰め、見出しはラテン書体に差し替える */
html[lang='en'] body { letter-spacing: 0; }
html[lang='en'] .hero__copy {
  max-width: min(50%, 20em);
  font-family: var(--latin); font-size: clamp(20px, 2.1vw, 28px); font-weight: 600; font-style: italic;
  line-height: 1.45; letter-spacing: .02em; text-indent: 0;
}
html[lang='en'] .story__text {
  letter-spacing: 0; line-height: 1.9; max-width: 32em;
  font-family: var(--latin); font-size: clamp(18px, 1.5vw, 22px); font-weight: 500;
}
html[lang='en'] .story__text p { margin: 0 0 .2em; }
html[lang='en'] .story__inner--page .story__text { max-width: 30em; }
html[lang='en'] .band__copy {
  font-family: var(--latin); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; font-style: italic;
  letter-spacing: .02em; line-height: 1.4; text-indent: 0;
}
html[lang='en'] .pitch__headline, html[lang='en'] .post__title, html[lang='en'] .article__title,
html[lang='en'] .section__title, html[lang='en'] .call__title, html[lang='en'] .foe__jp, html[lang='en'] .place__jp,
html[lang='en'] .trick__jp, html[lang='en'] .quest__jp, html[lang='en'] .item__jp, html[lang='en'] .villager__jp,
html[lang='en'] .form__jp, html[lang='en'] .phead__text, html[lang='en'] .entry__title, html[lang='en'] .neighbor__title,
html[lang='en'] .qa__q, html[lang='en'] .foes__jp, html[lang='en'] .shot__jp, html[lang='en'] .kit__jp, html[lang='en'] .action__jp {
  letter-spacing: .01em;
}
html[lang='en'] .pitch__headline { font-family: var(--latin); font-weight: 700; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.15; }
html[lang='en'] .section__title, html[lang='en'] .call__title, html[lang='en'] .post__title, html[lang='en'] .article__title, html[lang='en'] .phead__text {
  font-family: var(--latin); font-weight: 700;
}
html[lang='en'] .section__title { font-size: clamp(26px, 2.6vw, 34px); }
html[lang='en'] .section__title span { font-family: var(--mincho); letter-spacing: .2em; font-size: 12px; }
html[lang='en'] .trick__en, html[lang='en'] .foe__en, html[lang='en'] .place__en, html[lang='en'] .form__en,
html[lang='en'] .villager__en, html[lang='en'] .masthead__jp {
  font-family: var(--mincho); letter-spacing: .18em;
}
html[lang='en'] .phead__lead, html[lang='en'] .talk__lead, html[lang='en'] .character__lead, html[lang='en'] .system__lead,
html[lang='en'] .foe__quote, html[lang='en'] .world__lead, html[lang='en'] .news__lead, html[lang='en'] .blogs__lead {
  letter-spacing: .02em;
}
html[lang='en'] .foe__quote { font-style: italic; }
html[lang='en'] .call__note { letter-spacing: 0; }
html[lang='en'] .masthead__en { letter-spacing: .14em; }
html[lang='en'] .call__more, html[lang='en'] .more, html[lang='en'] .news__more { letter-spacing: .04em; }

@media (max-width: 960px) {
  .masthead__item--lang { margin: 14px 0 0; }
  .masthead__lang { padding: 8px 16px; font-size: 13px; }
  html[lang='en'] .hero__copy { max-width: none; font-size: clamp(18px, 4.6vw, 22px); letter-spacing: .02em; }
  html[lang='en'] .story__text { max-width: none; }
}

/* 面の小見出し: 長い題 (英語) は添え字を次の行に落とす */
.section__title { flex-wrap: wrap; row-gap: 2px; }

@media (max-width: 960px) {
  /* .place--flip の2列指定が後ろにあって狭い幅の1列を上書きしていた */
  .place, .place--flip { grid-template-columns: 1fr; }
  .place--flip > .place__shot { order: 0; }
  .place__shot img { width: 100%; }
}

/* 化ける姿の札: 並んだ札の高さが揃うとき、余りを行に配らない (名前の位置が揃わなくなる) */
.form { align-content: start; }

/* ------------------------------------------------------------------ */
/* 沿革 (年表)                                                          */
/* ------------------------------------------------------------------ */
.tl { position: relative; list-style: none; padding: 0; margin: clamp(26px, 3.6vw, 44px) 0 0; }
.tl::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 0; width: 1px; background: rgba(34, 28, 22, .24); }
.tl__year { position: relative; padding-left: 40px; margin: 30px 0 22px; font-family: var(--latin); font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; letter-spacing: .06em; line-height: 1; color: var(--ink); }
.tl__year:first-child { margin-top: 0; }
.tl__year::before { content: ''; position: absolute; left: 0; top: 50%; width: 15px; height: 15px; margin-top: -8px; border-radius: 50%; background: var(--vermilion); box-shadow: 0 0 0 4px var(--washi); }
.tl__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 40%); gap: 16px clamp(22px, 3vw, 44px); align-items: start; padding: 0 0 clamp(34px, 4vw, 54px) 40px; }
.tl__item::before { content: ''; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--washi); }
.tl__item--event::before { background: var(--vermilion); }
.tl__when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.tl__date { font-family: var(--dot); font-size: 15px; letter-spacing: .08em; color: var(--ink-soft); }
.tl__note { font-family: var(--gothic); font-size: 12px; color: var(--ink-pale); }
.tl__title { font-family: var(--mincho); font-size: clamp(19px, 1.9vw, 25px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; color: var(--ink); margin-bottom: 10px; }
.tl__body.article__body { font-size: 15.5px; line-height: 1.9; }
.tl__body.article__body > :last-child { margin-bottom: 0; }
.tl__photo { margin: 0; border: 1px solid rgba(34, 28, 22, .18); background: #0d1119; box-shadow: 0 14px 34px rgba(60, 48, 34, .18); }
.tl__photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tl__photo--pixel img { image-rendering: pixelated; }
.tl__item--draft { outline: 1px dashed var(--vermilion); outline-offset: 10px; }
.news__tag[data-cat='dev'] { background: rgba(31, 55, 90, .9); color: #f3eee4; }
.news__tag[data-cat='release'] { background: rgba(184, 140, 40, .92); color: #fffaf0; }
.news__tag[data-cat='company'] { background: rgba(90, 84, 76, .9); color: #f3eee4; }
html[lang='en'] .tl__title { font-family: var(--latin); font-size: clamp(21px, 2vw, 27px); letter-spacing: .01em; }
@media (max-width: 760px) {
  .tl__item { grid-template-columns: 1fr; padding-left: 30px; }
  .tl__year { padding-left: 30px; }
  .tl__photo { order: -1; }
}
.tl__body.article__body { margin-top: 0; letter-spacing: .02em; }

/* 上の帯: 品目が8つになったので、添え字を折り返さず間を少し詰める */
.masthead__jp { white-space: nowrap; }
.masthead__list { gap: clamp(10px, 1.9vw, 30px); }
@media (min-width: 961px) and (max-width: 1180px) {
  .masthead__en { font-size: 13.5px; letter-spacing: .12em; }
  .masthead__cta { padding: 10px 14px; }
  .masthead__cta span { display: none; }
}

/* 数字は桁を揃えて読ませる (日付・価格・動作環境の表) */
.news__date, .entry__meta time, .post__meta time, .tl__date, .specs table, .facts dd { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* 細い画面のあらすじ                                                  */
/* ------------------------------------------------------------------ */
/* あらすじは1行1文で切ってある。折り返すと意味の切れ目が崩れるので、
   細い画面では字を画面幅に追従させて1行に収める。前の指定より後に置くこと */
@media (max-width: 560px) {
  .story__text, .story__inner--page .story__text { font-size: clamp(11px, 3.7vw, 16px); letter-spacing: .06em; }
  html[lang='en'] .story__text, html[lang='en'] .story__inner--page .story__text { font-size: clamp(12px, 3.8vw, 18px); letter-spacing: 0; }
}
