@charset "utf-8";

/* ===========================================================================
   ようかいぴーす 公式サイト

   見た目の芯は「ゲームの画面部品をそのまま使う」ことです。
   見出しの木札、パネルの羊皮紙、緑のボタンは、すべてアプリが読んでいる
   Assets.xcassets の画像を9スライス（border-image）で伸ばして使っています。
   =========================================================================== */

:root {
  /* 墨と紙 */
  --ink: #3a2a1a;
  --ink-soft: #6d573f;
  --ink-faint: #93805f;
  --cream: #fbf1d5;

  /* 金と木 */
  --gold: #d9ae56;
  --gold-light: #f6dfa0;
  --gold-dark: #a2761f;
  --bark: #4a3018;
  --bark-deep: #24160a;

  /* 森 */
  --forest-deep: #081008;
  --moss: #3f7d2c;

  /* 属性 */
  --fire: #ff8b2c;
  --water: #4bb6f5;
  --wind: #7ecb4e;
  --red: #e04a33;

  --shell: 1080px;
  --header-h: 78px;

  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Yu Gothic", system-ui, sans-serif;

  /* ゲーム画面の部品 */
  --frame-wood: url("../img/ui/wood-frame-title.webp");
  --frame-plate: url("../img/ui/wood-plate.webp");
  --frame-button: url("../img/ui/btn-green.webp");
  --frame-band: url("../img/ui/band-frame.webp");
  --frame-panel: url("../img/ui/panel-frame.webp");
  --paper-panel: url("../img/ui/panel-paper.webp");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--forest-deep);
  /* ヒーローの下に敷く地。左右の端に灯籠と葉を並べ、中央を暗く空けた縦タイル。
     横は幅いっぱいに合わせ、縦だけ繰り返す。上下は build_page_background で
     溶け合わせてあるので継ぎ目は出ない。 */
  background-image:
    linear-gradient(180deg, rgba(4, 10, 6, .22), rgba(4, 10, 6, .22)),
    url("../img/page-bg.webp");
  background-size: auto, 100% auto;
  background-position: center top;
  background-repeat: no-repeat, repeat-y;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

.shell { width: min(var(--shell), calc(100% - 32px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 10px 18px; background: var(--cream); color: var(--ink);
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* ゲームらしい文字。濃いフチと落ち影で、シールのように浮かせる。 */
.sticker {
  color: #fff;
  paint-order: stroke fill;
  text-shadow:
    2px 0 0 #4a2c10, -2px 0 0 #4a2c10, 0 2px 0 #4a2c10, 0 -2px 0 #4a2c10,
    2px 2px 0 #4a2c10, -2px 2px 0 #4a2c10, 2px -2px 0 #4a2c10, -2px -2px 0 #4a2c10,
    0 5px 0 #2c1806, 0 9px 16px rgba(0, 0, 0, .6);
}

/* ===========================================================================
   ヘッダー：細い木の梁。上端に葉が垂れ、両端に提灯を吊るす。
   =========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, .55)),
    url("../img/ui/wood-bar.webp") center / auto 100% repeat-x,
    #2b1c0c;
  border-bottom: 2px solid #150c04;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .6);
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 -2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold-light) 50%, var(--gold) 90%, transparent);
}

/* 梁の上端から垂れる葉。大きさと色を変えた3列を、少しずつずらして重ねる。
   1列だけだと粒が揃いすぎて泡のように見えるため。 */
.site-header__vine {
  position: absolute; inset: -6px 0 auto; height: 22px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, #86c04c 0 6.5px, transparent 7px) 0 0 / 34px 22px repeat-x,
    radial-gradient(circle at 50% 46%, #5d9a34 0 8px, transparent 8.5px) 17px 0 / 34px 22px repeat-x,
    radial-gradient(circle at 50% 26%, #3f7226 0 5px, transparent 5.5px) 9px 2px / 22px 22px repeat-x;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55));
}

/* 両端の灯籠。左用の透過画像を右側では水平反転して使う。 */
.lantern {
  position: absolute;
  top: 0;
  z-index: 2;
  width: clamp(150px, 12vw, 184px);
  aspect-ratio: 2 / 3;
  pointer-events: none;
  background: url("../img/ui/header-lantern.png") left top / contain no-repeat;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .5));
}
.lantern--left { left: 0; }
.lantern--right { right: 0; transform: scaleX(-1); }

.site-header__inner {
  width: min(calc(var(--shell) + 160px), calc(100% - 120px));
  margin-inline: auto; min-height: var(--header-h);
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
}

.site-logo img {
  width: clamp(96px, 8.6vw, 124px);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .7));
  transition: transform .2s;
}
.site-logo:hover img { transform: scale(1.05) rotate(-2deg); }

.global-nav { margin-inline: auto; }
.global-nav__list { display: flex; align-items: stretch; gap: clamp(2px, .7vw, 10px); }

/* 日本語＋英字の2段。現在地は金の枠を回す。 */
.global-nav__link {
  display: grid; grid-template-columns: auto auto; align-items: center;
  column-gap: 5px; padding: 6px 11px 4px;
  border: 2px solid transparent; border-radius: 12px;
  text-decoration: none; color: var(--cream); white-space: nowrap;
  transition: background .2s, border-color .2s, transform .18s;
}
/* メニュー左の妖玉。元絵は水色なので、色相を回して属性ごとに色を変えている。 */
.global-nav__mark {
  grid-row: 1 / 3; width: 15px; height: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}
.global-nav__mark--water { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.global-nav__mark--fire { filter: hue-rotate(-168deg) saturate(1.25) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.global-nav__mark--wind { filter: hue-rotate(-88deg) saturate(1.1) drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.global-nav__ja {
  font-size: clamp(12px, 1.15vw, 15px); font-weight: 900; letter-spacing: .02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .85);
}
.global-nav__en {
  grid-column: 2; font-size: 8.5px; font-weight: 500; letter-spacing: .14em;
  color: rgba(246, 223, 160, .68); line-height: 1;
}
.global-nav__link:hover {
  background: rgba(255, 226, 150, .12);
  border-color: rgba(217, 174, 86, .5);
  transform: translateY(-2px);
}
.global-nav__link.is-current {
  background: rgba(20, 12, 4, .55);
  border-color: var(--gold);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .6), 0 0 12px rgba(217, 174, 86, .35);
}
.global-nav__link.is-current .global-nav__ja { color: var(--gold-light); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 42px; padding: 0 10px; cursor: pointer;
  background: rgba(0, 0, 0, .3); border: 2px solid var(--gold); border-radius: 12px;
}
.nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--cream); transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================================================
   ボタン：ゲームの緑ボタンと木札を9スライスで伸ばす
   =========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 2px 16px; min-height: 26px;
  font-size: clamp(14px, 1.4vw, 16px); font-weight: 900; text-decoration: none;
  color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .55);
  cursor: pointer; background: none;
  border-style: solid; border-width: 24px 72px;
  border-image: var(--frame-button) 50 150 fill / 24px 72px stretch;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .45));
  transition: transform .16s, filter .16s;
}
.btn:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)) brightness(1.08); }
.btn:active { transform: translateY(-1px); }
.btn--wide { padding-inline: 44px; }

.btn--wood {
  border-width: 24px 56px;
  border-image: var(--frame-plate) 64 148 fill / 24px 56px stretch;
  color: var(--cream);
}

/* ヘッダーのダウンロード。押してほしいので光を纏わせる。 */
.btn--cta { position: relative; }
.btn--cta::after {
  content: ""; position: absolute; inset: -8px; border-radius: 999px; pointer-events: none;
  animation: cta-pulse 2.6s ease-out infinite;
}
@keyframes cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 214, 128, .45); }
  70% { box-shadow: 0 0 0 16px rgba(255, 214, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 214, 128, 0); }
}
.btn__stack { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.btn__ja { font-size: inherit; font-weight: 900; }
.btn__en { font-size: 8.5px; font-weight: 500; letter-spacing: .14em; opacity: .8; }

.site-header__cta { border-width: 19px 57px; border-image-width: 19px 57px; font-size: 14px; min-height: 14px; }

/* ===========================================================================
   ヒーロー：森の参道を一枚敷き、左にロゴ、右に3匹と端末を置く。
   =========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(82vh, 760px);
  display: flex; align-items: center;
  padding: clamp(18px, 2.6vw, 40px) 0 clamp(24px, 3.4vw, 52px);
}
.hero__bg {
  position: absolute; inset: -3% -3% 0; z-index: -3;
  background: url("../img/hero-forest.webp") center 58% / cover no-repeat;
  animation: hero-drift 30s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(-.5%, 0, 0); }
  to { transform: scale(1.08) translate3d(.5%, -.8%, 0); }
}

/* 木漏れ日。斜めの光の帯をゆっくり揺らす。 */
.hero__rays {
  position: absolute; inset: -22% -12% 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(102deg,
    rgba(255, 246, 208, 0) 0 52px,
    rgba(255, 246, 208, .1) 52px 80px,
    rgba(255, 246, 208, 0) 80px 164px);
  mix-blend-mode: screen;
  animation: rays-sway 15s ease-in-out infinite alternate;
}
@keyframes rays-sway {
  from { transform: translateX(-3%) rotate(-.5deg); opacity: .6; }
  to { transform: translateX(3%) rotate(.5deg); opacity: .95; }
}

.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(112% 82% at 50% 46%, transparent 40%, rgba(6, 16, 8, .58) 100%),
    linear-gradient(180deg, rgba(6, 16, 8, .52), transparent 24%, rgba(6, 16, 8, .5));
}

/* 妖火。ふわふわ舞う光の粒。 */
.hero__spirits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spirit {
  position: absolute; width: 11px; height: 15px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 66%, #eaf9ff, #58c8ff 52%, rgba(40, 140, 220, 0) 78%);
  animation: spirit-float 11s ease-in-out infinite;
}
.spirit--warm { background: radial-gradient(circle at 50% 66%, #fff4d8, #ffb04a 52%, rgba(220, 130, 40, 0) 78%); }
@keyframes spirit-float {
  0% { transform: translate3d(0, 24px, 0) scale(.7); opacity: 0; }
  18% { opacity: .95; }
  82% { opacity: .8; }
  100% { transform: translate3d(14px, -160px, 0) scale(.75); opacity: 0; }
}

.hero__inner {
  width: min(calc(var(--shell) + 60px), calc(100% - 40px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center; gap: clamp(8px, 1.6vw, 26px);
}

.hero__logo img {
  width: min(100%, 520px);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .65));
  animation: logo-in 1s cubic-bezier(.2, .9, .3, 1.2) both, logo-idle 6s 1.1s ease-in-out infinite;
}
@keyframes logo-in {
  from { transform: translateY(-46px) scale(.84); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes logo-idle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(-.7deg); }
}

.hero__catch { margin: clamp(2px, .8vw, 10px) 0 clamp(12px, 1.8vw, 20px); }
.hero__catch img {
  width: min(100%, 430px);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6));
  animation: fade-up .9s .35s ease-out both;
}
@keyframes fade-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.ribbon {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  padding: 2px 10px; min-height: 22px;
  font-size: clamp(13px, 1.4vw, 17px); font-weight: 900; color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
  border-style: solid; border-width: 24px 72px;
  border-image: var(--frame-button) 50 150 fill / 24px 72px stretch;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5));
  animation: fade-up .9s .5s ease-out both;
}

/* ストアのバッジ。見本と同じく黒地の角丸を2枚ならべる。 */
.store-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  animation: fade-up .9s .62s ease-out both;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 7px 20px; border-radius: 11px; text-decoration: none;
  color: #fff; background: #0b0b0f;
  border: 2px solid rgba(255, 255, 255, .72);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .55);
  transition: transform .18s, border-color .18s;
}
.badge:hover { transform: translateY(-3px); border-color: var(--gold-light); }
.badge__mark { flex: 0 0 auto; }
.badge__text { display: flex; flex-direction: column; line-height: 1.2; }
.badge__text small { font-size: 9.5px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.badge__text strong { font-size: 19px; font-weight: 900; letter-spacing: .01em; }
.badge--soon { cursor: default; opacity: .82; }
.badge--soon:hover { transform: none; border-color: rgba(255, 255, 255, .72); }

/* 右側：3匹と端末。端末は3匹の後ろから覗く。 */
.hero__art {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-end;
  min-height: clamp(300px, 42vw, 520px);
}
.hero__characters {
  position: relative; z-index: 2;
  width: min(78%, 480px); margin-right: -4%;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6));
  animation: chara-in 1.1s .25s cubic-bezier(.2, .9, .3, 1.2) both, chara-idle 5.4s 1.4s ease-in-out infinite;
}
@keyframes chara-in {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes chara-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero__phone {
  position: relative; z-index: 1;
  width: min(34%, 232px); align-self: center;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .7));
  animation: fade-up 1s .5s ease-out both, phone-idle 7s 1.5s ease-in-out infinite;
}
@keyframes phone-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-13px) rotate(1deg); }
}

/* ヒーローの足元。下のセクションの地と同じ色まで落として、境目を出さない。 */
.hero__ground {
  position: absolute; inset: auto 0 -1px; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(31, 45, 39) 96%);
}

/* ===========================================================================
   セクションの骨格
   =========================================================================== */
.section { padding: clamp(26px, 3.4vw, 46px) 0; }
.section--tight { padding-top: clamp(14px, 2vw, 22px); }

/* 見出し：ゲームの木札（wood_frame_title）をそのまま伸ばす */
.plate {
  --band-h: 28px;   /* 枠の帯の太さ（縦） */
  --band-w: 88px;   /* 同（横）。元絵のスライス比 56:175 に合わせる */
  position: relative; z-index: 3;
  width: fit-content; max-width: 100%;
  margin: 0 auto clamp(-24px, -2.2vw, -14px);
  padding: 2px 10px;
  /* 地は木目。band-frame.webp（スライス 56/175）では桟が
     上下 : スライスの 21%〜75%　／　左右 : 端の飾りが 0%〜39%
     にあるので、上下は 45%、左右は 25% 外へずらすと木目の縁が桟の下に入る。 */
  background: url("../img/ui/wood-bar.webp") center / auto 100% repeat-x border-box border-box;
  border-radius: 999px;
  border-style: solid;
  border-width: var(--band-h) var(--band-w);
  border-image: var(--frame-band) 56 175 /
    var(--band-h) var(--band-w) /
    calc(var(--band-h) * .45) calc(var(--band-w) * .25) stretch;
  font-size: clamp(19px, 2.5vw, 29px); font-weight: 900; line-height: 1.15;
  color: var(--cream); text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .7), 0 6px 14px rgba(0, 0, 0, .7);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5));
}
.plate span { display: block; white-space: nowrap; }
.plate--sm {
  --band-h: 19px; --band-w: 60px;
  margin: 0 0 16px;
  font-size: clamp(14px, 1.6vw, 17px);
}

/* パネル：ゲームの羊皮紙（parchment_frame）をそのまま伸ばす */
/* パネルは「地」と「枠」を別々の画像で組み立てる。
   枠だけを border-image で伸ばし、地の和紙には変倍をかけない（cover なので
   縦横比は保たれ、はみ出したぶんが切れるだけ）。

   地と枠のあいだに隙間ができないよう、枠は border-image-outset で外へずらす。
   ずらす量は、元絵の中で「木の桟」がスライスのどこに描かれているかで決めている。
   panel-frame.webp（スライス150）では桟が
     左右 : スライスの 13%〜43%　／　上下 : 27%〜55%
   にあるので、外へ 30% ずらすと桟がちょうど地の縁をまたぐ。
   結果、地の四隅は必ず桟の下に潜り込み、桟より外へは出ない。 */
.panel {
  --frame-w: clamp(38px, 4.4vw, 58px);
  position: relative;
  padding: clamp(10px, 1.6vw, 20px) clamp(10px, 1.6vw, 22px) clamp(8px, 1.2vw, 14px);
  /* background-origin の既定は padding-box。そのままだとボーダーの内側にしか
     地が敷かれず、枠との間に border-width ぶんの隙間が空く。border-box にして
     ボーダーの下まで地を伸ばす。 */
  background: var(--paper-panel) center / cover no-repeat border-box border-box;
  border-style: solid;
  border-width: var(--frame-w);
  border-image: var(--frame-panel) 150 / var(--frame-w) / calc(var(--frame-w) * .3) stretch;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .6));
}

.plate + .panel { padding-top: clamp(22px, 2.6vw, 34px); }

.section__more { margin-top: clamp(18px, 2.2vw, 26px); text-align: center; }
.empty { padding: 30px 0; text-align: center; color: var(--ink-soft); }
.lead { text-align: center; font-size: clamp(14px, 1.5vw, 16px); color: var(--ink-soft); margin-bottom: 24px; }

/* 属性の妖火 */
.flame {
  display: inline-block; flex: 0 0 auto; width: 15px; height: 21px;
  border-radius: 50% 50% 50% 50% / 66% 66% 34% 34%;
  background: linear-gradient(180deg, #d9f2ff, var(--water) 55%, #1a6ba8);
  box-shadow: 0 0 12px rgba(75, 182, 245, .85);
  animation: flame-flicker 1.9s ease-in-out infinite;
}
.flame--fire { background: linear-gradient(180deg, #ffe3b4, var(--fire) 55%, #c8511a); box-shadow: 0 0 12px rgba(255, 139, 44, .85); }
.flame--water { background: linear-gradient(180deg, #d9f2ff, var(--water) 55%, #1a6ba8); box-shadow: 0 0 12px rgba(75, 182, 245, .85); }
.flame--wind { background: linear-gradient(180deg, #e2f8c8, var(--wind) 55%, #2f7526); box-shadow: 0 0 12px rgba(126, 203, 78, .85); }
@keyframes flame-flicker {
  0%, 100% { transform: scaleY(1) rotate(-3deg); }
  50% { transform: scaleY(1.14) rotate(3deg); }
}

.accent-red { color: var(--red); }
.accent-orange { color: #e0761a; }
.accent-green { color: #3f7d2c; }
.accent-purple { color: #7b45c4; }
.accent-blue { color: #2081c4; }

/* スクロールしてきたら浮かび上がる */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ===========================================================================
   ストーリー（オープニングの6枚）
   =========================================================================== */
.story-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.story-scene__art {
  position: relative; overflow: hidden; border-radius: 18px; background: #fff;
  border: 3px solid var(--gold-dark); box-shadow: 0 10px 22px rgba(58, 38, 20, .35);
}
.story-scene__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s; }
.story-scene:hover .story-scene__art img { transform: scale(1.05); }
.story-scene__no {
  position: absolute; top: -12px; left: -10px; z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px;
  font-size: 17px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 40% 32%, #7fc153, #35621f);
  border: 3px solid var(--gold-light); border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.story-scene { position: relative; }
.story-scene__text { margin-top: 13px; font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }

/* トップのストーリー欄 */
.story-teaser { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.25fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.story-teaser__lead { font-size: clamp(23px, 3.3vw, 38px); font-weight: 900; line-height: 1.42; }
.story-teaser__lead u { text-decoration: none; border-bottom: 5px solid var(--gold); padding-bottom: 2px; }
.story-teaser__body { margin: 16px 0 24px; font-size: 14px; color: var(--ink-soft); }
.story-teaser__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.shot { position: relative; }
.shot__frame {
  padding: 7px; border-radius: 16px; background: linear-gradient(180deg, #fffcf1, #e9d9ac);
  border: 3px solid var(--gold-dark); box-shadow: 0 10px 22px rgba(0, 0, 0, .3);
}
.shot__frame img { border-radius: 10px; aspect-ratio: 16 / 11; object-fit: cover; }
.shot__label {
  position: absolute; top: -15px; left: 12px; z-index: 2;
  padding: 4px 16px; font-size: 12px; font-weight: 900; color: var(--cream); white-space: nowrap;
  background: linear-gradient(180deg, #5f8f3f, #345f22);
  border: 2px solid var(--gold); border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}

/* ===========================================================================
   特長カード
   =========================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 22px); }
.feature { display: flex; flex-direction: column; gap: 11px; transition: transform .22s; }
.feature:hover { transform: translateY(-6px); }
.feature__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; min-height: 60px; }
.feature__head .flame { grid-row: 1 / 3; }
.feature__lead { font-size: 12.5px; color: var(--ink-soft); }
.feature__lead em { font-style: normal; font-weight: 900; color: var(--ink); }
.feature__title { font-size: clamp(15px, 1.6vw, 18.5px); font-weight: 900; line-height: 1.24; }

.feature__shot {
  position: relative; overflow: hidden; padding: 6px; border-radius: 15px;
  background: linear-gradient(180deg, #4a3218, #1f1408);
  border: 3px solid var(--gold-dark); box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
}
.feature__shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 24%; border-radius: 9px; transition: transform .4s; }
.feature:hover .feature__shot img { transform: scale(1.06); }
.feature__shot::after {
  content: ""; position: absolute; inset: 6px; border-radius: 9px; pointer-events: none;
  box-shadow: inset 0 0 26px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 226, 160, .25);
}
.feature__caption { font-size: 12px; line-height: 1.65; color: var(--ink-soft); text-align: center; }

/* ===========================================================================
   3匹 / 妖怪カード
   =========================================================================== */
.starter-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); }
.starter { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 16px; align-items: center; }
.starter__art img { width: 100%; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .32)); animation: chara-idle 4.6s ease-in-out infinite; }
.starter:nth-child(2) .starter__art img { animation-delay: .5s; }
.starter:nth-child(3) .starter__art img { animation-delay: 1s; }
.starter__name { display: flex; align-items: center; gap: 9px; font-size: clamp(19px, 2.1vw, 24px); font-weight: 900; }
.starter__desc { margin: 7px 0 9px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.starter__link { font-size: 12px; color: var(--gold-dark); font-weight: 900; }

/* ===========================================================================
   おしらせ
   =========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.news-card { position: relative; }
.news-card__link {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px;
  height: 100%; padding: 14px; text-decoration: none;
  background: linear-gradient(180deg, #fffcf0, #f0e2bd);
  border: 2px solid var(--gold-dark); border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  transition: transform .2s, box-shadow .2s;
}
.news-card__link:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0, 0, 0, .38); }
.news-card__thumb { display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #e6d8b0, #d2c091); }
.news-card__thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.news-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.news-card__title { font-size: 16px; font-weight: 900; }
.news-card__text { font-size: 12px; line-height: 1.65; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__date { margin-top: auto; font-size: 11px; color: var(--ink-faint); }

.badge-new {
  position: absolute; top: -10px; left: -8px; z-index: 3;
  padding: 3px 13px; font-size: 11px; font-weight: 900; letter-spacing: .06em; color: #fff;
  background: linear-gradient(180deg, #f0604f, #b12a20);
  border: 2px solid #fff3da; border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
  animation: badge-pop 2.4s ease-in-out infinite;
}
@keyframes badge-pop { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.09); } }

/* ===========================================================================
   下層ページ
   =========================================================================== */
.page-head {
  position: relative; padding: clamp(34px, 5vw, 66px) 0 clamp(26px, 3.4vw, 40px); text-align: center;
  background:
    linear-gradient(180deg, rgba(6, 16, 8, .45), rgba(6, 16, 8, .8)),
    url("../img/screens/night-shrine.webp") center 34% / cover no-repeat;
  border-bottom: 3px solid var(--bark-deep);
}
.page-head::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold-light) 50%, var(--gold) 88%, transparent);
}
.page-head__title {
  font-size: clamp(26px, 3.8vw, 44px); font-weight: 900;
  color: #fff;
  text-shadow:
    2px 0 0 #4a2c10, -2px 0 0 #4a2c10, 0 2px 0 #4a2c10, 0 -2px 0 #4a2c10,
    2px 2px 0 #4a2c10, -2px 2px 0 #4a2c10, 2px -2px 0 #4a2c10, -2px -2px 0 #4a2c10,
    0 5px 0 #2c1806, 0 9px 16px rgba(0, 0, 0, .6);
}
.page-head__lead { margin-top: 12px; font-size: 14px; color: rgba(251, 241, 213, .88); text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }

.breadcrumb { padding: 12px 0; font-size: 12px; color: rgba(251, 241, 213, .68); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .55; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.prose h3 { margin: 30px 0 12px; padding-left: 13px; font-size: 18px; border-left: 5px solid var(--gold); }
.prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; font-size: 14px; line-height: 1.95; }
.prose ul { margin: 0 0 16px; padding-left: 1.4em; list-style: disc; }
.prose ol { margin: 0 0 16px; padding-left: 1.5em; list-style: decimal; }
.prose li { font-size: 14px; line-height: 1.95; }
.prose strong { color: #8a5a10; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(20px, 3vw, 42px); align-items: center; }
/* 縦長のゲーム画面は、端末の枠に入れて見せる。
   元絵が 941×1672 と細長いので、そのまま置くと段組みが縦に伸びてしまう。 */
.split__art {
  width: min(100%, 268px); margin-inline: auto; padding: 8px;
  border-radius: 30px; border: 2px solid #55555f;
  background: linear-gradient(155deg, #33333c, #0e0e12);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .6);
}
.split__art img { border-radius: 23px; aspect-ratio: 941 / 1672; object-fit: cover; width: 100%; }

/* 端末枠に入れない、ふつうの絵（キャラや道具）。 */
.split__art--plain {
  width: min(100%, 380px); padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none;
}
.split__art--plain img { aspect-ratio: auto; border-radius: 0; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .4)); }

.cell-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cell-card { padding: 16px 18px; border-radius: 14px; background: rgba(255, 252, 240, .78); border: 2px dashed var(--gold-dark); }
.cell-card__key { font-size: 19px; font-weight: 900; color: #8a5a10; letter-spacing: .06em; }
.cell-card__body { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }

.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 18px 16px; text-align: center; border-radius: 16px; background: linear-gradient(180deg, #fffcf0, #eee0b9); border: 2px solid var(--gold-dark); box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
.fact__label { font-size: 12px; color: var(--ink-soft); }
.fact__value { font-size: clamp(17px, 2vw, 22px); font-weight: 900; color: #8a5a10; margin: 4px 0 6px; }
.fact__note { font-size: 11.5px; line-height: 1.7; color: var(--ink-faint); }

.chapter-list { display: grid; gap: 12px; }
.chapter {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 20px; border-radius: 16px;
  background: linear-gradient(180deg, #fffcf0, #f0e2bd);
  border: 2px solid var(--gold-dark); box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}
.chapter__no { font-size: 15px; font-weight: 900; color: #fff; text-align: center; padding: 4px 0; border-radius: 999px; background: linear-gradient(180deg, #7fc153, #35621f); border: 2px solid var(--gold); }
.chapter__name { font-size: clamp(17px, 2vw, 21px); font-weight: 900; }
.chapter__stages { font-size: 12px; color: var(--ink-soft); }
.chapter__closing { font-size: 12px; font-weight: 900; color: #fff; padding: 4px 14px; border-radius: 999px; background: linear-gradient(180deg, #c9553f, #8d2a1c); border: 2px solid var(--gold); white-space: nowrap; }
.chapter--final .chapter__closing { background: linear-gradient(180deg, #7b45c4, #4a2183); }

.place-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.place { display: flex; flex-direction: column; gap: 12px; }
.place__art { position: relative; overflow: hidden; border-radius: 16px; border: 3px solid var(--gold-dark); box-shadow: 0 10px 20px rgba(0, 0, 0, .38); }
.place__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s; }
.place:hover .place__art img { transform: scale(1.06); }
.place__lead { position: absolute; bottom: 10px; left: 10px; padding: 3px 12px; font-size: 11px; font-weight: 900; color: var(--cream); background: rgba(30, 18, 8, .84); border: 2px solid var(--gold); border-radius: 999px; }
.place__name { font-size: clamp(18px, 2vw, 22px); font-weight: 900; }
.place__body { font-size: 13px; line-height: 1.8; color: var(--ink-soft); }

.item-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 12px; border-radius: 16px;
  background: radial-gradient(circle at 50% 26%, #fffdf4, #ecdcb2);
  border: 2px solid var(--gold-dark); box-shadow: 0 6px 14px rgba(0, 0, 0, .24);
  transition: transform .2s;
}
.item:hover { transform: translateY(-5px); }
.item__art { width: 76px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.item__name { font-size: 14px; font-weight: 900; }
.item__effect { font-size: 11.5px; line-height: 1.7; color: var(--ink-soft); }
.item__price { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 900; color: #8a5a10; }
.item__price img { width: 18px; }

.menu-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2.6vw, 34px); }
.menu-row li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 900; color: var(--ink-soft); }
.menu-row img { width: 54px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .28)); }

/* ===========================================================================
   図鑑
   =========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.filter-bar__chip {
  padding: 7px 19px; font-size: 13px; font-weight: 900; text-decoration: none; color: var(--cream);
  background: rgba(32, 20, 10, .78); border: 2px solid var(--gold-dark); border-radius: 999px;
  transition: transform .16s, background .18s;
}
.filter-bar__chip:hover { transform: translateY(-2px); background: rgba(60, 40, 18, .9); }
.filter-bar__chip.is-active { color: var(--ink); background: linear-gradient(180deg, var(--gold-light), var(--gold)); border-color: var(--cream); }

.youkai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: clamp(11px, 1.6vw, 18px); }
.youkai-card {
  display: flex; flex-direction: column; gap: 8px; padding: 11px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #fffcf0, #eddfb6);
  border: 2px solid var(--gold-dark); border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .26);
  transition: transform .2s, box-shadow .2s;
}
.youkai-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 26px rgba(0, 0, 0, .38); }
.youkai-card__art { display: grid; place-items: center; padding: 6px; border-radius: 12px; background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, .9), rgba(214, 196, 152, .55)); }
.youkai-card__art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.youkai-card__name { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 900; }
.youkai-card__tag { align-self: center; padding: 2px 12px; font-size: 10px; font-weight: 900; color: var(--cream); background: var(--bark); border-radius: 999px; }
.youkai-card__tag--boss { background: linear-gradient(180deg, #c9553f, #8d2a1c); }
.youkai-card__tag--partner { background: linear-gradient(180deg, #6aab45, #35621f); }
.youkai-card__tag--secret { background: linear-gradient(180deg, #6b5a8a, #3a2c55); }

/* 伏せている妖怪。姿を真っ黒に落とし、ハテナを重ねる。
   絵そのものは差し替えず、見せ方だけで隠している。 */
.youkai-card--secret { cursor: default; }
.youkai-card--secret:hover { transform: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .26); }
.youkai-card--secret .youkai-card__art {
  position: relative;
  background: radial-gradient(circle at 50% 38%, #5b5140, #2c2519);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
}
.youkai-card--secret .youkai-card__art img { opacity: .55; }
.youkai-card--secret .youkai-card__name { color: var(--ink-faint); letter-spacing: .12em; }
.youkai-card__question {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 48px; font-weight: 900; line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 2px 0 rgba(30, 18, 6, .8), 0 0 18px rgba(246, 223, 160, .5);
}

.youkai-detail { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.youkai-detail__art {
  padding: 18px; border-radius: 20px;
  background: radial-gradient(circle at 50% 66%, rgba(255, 255, 255, .92), rgba(212, 194, 150, .5));
  border: 3px solid var(--gold-dark);
}
.youkai-detail__art img { animation: chara-idle 5s ease-in-out infinite; }
.youkai-detail__kana { font-size: 13px; color: var(--ink-faint); }
.youkai-detail__name { display: flex; align-items: center; gap: 11px; font-size: clamp(25px, 3.2vw, 36px); font-weight: 900; }

.spec-list { margin-top: 20px; border-top: 2px dashed rgba(162, 118, 31, .5); }
.spec-list__row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 2px dashed rgba(162, 118, 31, .5); font-size: 14px; }
.spec-list__key { font-size: 13px; color: var(--ink-soft); }
.pref-tag { display: inline-block; margin: 4px 4px 0 0; padding: 2px 11px; font-size: 11px; font-weight: 900; color: var(--cream); background: var(--bark); border-radius: 999px; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pager__link { padding: 8px 20px; font-size: 13px; font-weight: 900; text-decoration: none; color: var(--cream); background: rgba(32, 20, 10, .82); border: 2px solid var(--gold-dark); border-radius: 999px; }
.pager__link:hover { background: rgba(60, 40, 18, .92); }

/* ===========================================================================
   おしらせ一覧・投稿一覧
   =========================================================================== */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-row {
  position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px 20px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #fffcf0, #f0e2bd);
  border: 2px solid var(--gold-dark); border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .26);
  transition: transform .2s;
}
.news-row:hover { transform: translateX(6px); }
.news-row__thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.news-row__title { font-size: 17px; font-weight: 900; }
.news-row__text { font-size: 13px; color: var(--ink-soft); }
.news-row__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.tag { padding: 3px 13px; font-size: 11px; font-weight: 900; color: var(--cream); background: var(--moss); border-radius: 999px; white-space: nowrap; }
.tag--important, .tag--maintenance { background: linear-gradient(180deg, #d9563f, #932a1c); }
.tag--update { background: linear-gradient(180deg, #3f9fd8, #1f6799); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span {
  min-width: 42px; padding: 8px 13px; text-align: center; text-decoration: none; font-weight: 900;
  color: var(--cream); background: rgba(32, 20, 10, .78);
  border: 2px solid var(--gold-dark); border-radius: 11px;
}
.pagination .is-current { color: var(--ink); background: linear-gradient(180deg, var(--gold-light), var(--gold)); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.post-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(180deg, #fffcf0, #eddfb6);
  border: 2px solid var(--gold-dark); border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .28);
  transition: transform .2s;
}
.post-card:hover { transform: translateY(-5px); }
.post-card__thumb { aspect-ratio: 4 / 3; background: #e6d8b0; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 16px; }
.post-card__name { font-size: 17px; font-weight: 900; }
.post-card__author { font-size: 11px; color: var(--ink-faint); }
.post-card__text { font-size: 12px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.post-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); }
.post-gallery { display: flex; flex-direction: column; gap: 12px; }
.post-gallery img { border: 3px solid var(--gold-dark); border-radius: 16px; }

/* ===========================================================================
   フォーム
   =========================================================================== */
.form { display: flex; flex-direction: column; gap: 22px; }

/* 機械よけの入れ物。人には見せないが、display:none だと埋めない機械もいるので
   画面の外へ追い出すだけにしておく。読み上げからは aria-hidden で外している。 */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 900; }
.field__hint { font-size: 12px; font-weight: 500; line-height: 1.75; color: var(--ink-soft); }
.required { padding: 2px 9px; font-size: 10px; color: #fff; background: linear-gradient(180deg, #e0604f, #b12a20); border-radius: 999px; }
.optional { padding: 2px 9px; font-size: 10px; color: var(--ink-soft); background: #e3d3aa; border-radius: 999px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%; padding: 12px 15px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: #fffdf5; border: 2px solid #ddc99a; border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.85; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 174, 86, .3); outline: none;
}

.checkbox-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px;
  max-height: 264px; overflow-y: auto; padding: 14px;
  background: #fffdf5; border: 2px solid #ddc99a; border-radius: 12px;
}
.checkbox { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--moss); }

.consent {
  display: flex; gap: 13px; padding: 17px 19px; cursor: pointer;
  font-size: 13px; font-weight: 500; line-height: 1.85;
  background: rgba(255, 253, 245, .84); border: 2px dashed var(--gold-dark); border-radius: 14px;
}
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--moss); }

.form__actions { display: flex; justify-content: center; gap: 14px; }

.alert { padding: 17px 21px; border-radius: 14px; font-size: 14px; line-height: 1.85; }
.alert--error { color: #8b2c1e; background: #fdeae6; border: 2px solid #e3a294; }
.alert--success { color: #2b5a1c; background: #ecf7e5; border: 2px solid #a7d093; }
.alert ul { margin: 8px 0 0; padding-left: 1.3em; list-style: disc; }
.alert strong { display: block; margin-bottom: 4px; font-size: 15px; }

.rules { padding: 20px 24px; background: rgba(255, 253, 245, .74); border: 2px solid #ddc99a; border-radius: 16px; }
.rules h3 { margin: 0 0 10px; font-size: 16px; }
.rules ul { margin: 0; padding-left: 1.3em; list-style: disc; }
.rules li { font-size: 13px; font-weight: 500; line-height: 1.95; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border-radius: 14px; background: rgba(255, 253, 245, .8); border: 2px solid #ddc99a; }
.step__no { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; font-size: 14px; font-weight: 900; color: #fff; background: linear-gradient(180deg, #7fc153, #35621f); border: 2px solid var(--gold); border-radius: 50%; }
.step__body { font-size: 12.5px; font-weight: 500; line-height: 1.8; color: var(--ink-soft); }
.step__body b { display: block; font-size: 14px; font-weight: 900; color: var(--ink); }

.invite { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
.invite__art { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .3)); animation: chara-idle 5s ease-in-out infinite; }
.invite__title { font-size: clamp(21px, 2.7vw, 30px); font-weight: 900; margin-bottom: 10px; }
.invite__text p { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }

/* ===========================================================================
   フッター
   =========================================================================== */
.site-footer {
  margin-top: clamp(30px, 5vw, 64px); padding: clamp(28px, 4vw, 46px) 0 18px;
  color: var(--cream);
  background:
    linear-gradient(180deg, rgba(255, 238, 195, .14), rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .55)),
    url("../img/ui/wood-bar.webp") center / auto 100% repeat-x,
    var(--bark);
  border-top: 3px solid var(--bark-deep);
}
.site-footer__inner { width: min(var(--shell), calc(100% - 32px)); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 32px); }
.site-footer__logo img { width: 136px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.footer-nav { flex: 1 1 340px; }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 10px 0; }
/* 区切り線は項目の「後ろ」に置く。前に置くと、折り返した行の先頭に
   線だけが残って浮いて見えるため。 */
.footer-nav__list li { position: relative; padding: 0 15px; }
.footer-nav__list li:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; height: 12px;
  border-right: 1px solid rgba(251, 241, 213, .35); transform: translateY(-50%);
}
.footer-nav a { font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); text-decoration: underline; }

.social-list { display: flex; gap: 10px; }
.social-list__link {
  display: grid; place-items: center; width: 42px; height: 42px; color: var(--cream);
  border: 2px solid rgba(251, 241, 213, .6); border-radius: 50%;
  transition: background .2s, transform .2s;
}
.social-list__link:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }

.site-footer__copyright { margin-top: 24px; text-align: center; font-size: 12px; font-weight: 500; color: rgba(251, 241, 213, .66); }

.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: grid; place-items: center; width: 52px; height: 52px; cursor: pointer;
  color: var(--cream); background: radial-gradient(circle at 42% 32%, #6b4726, #2c1a0a);
  border: 3px solid var(--gold); border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .5);
  transition: transform .2s;
}
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top[hidden] { display: none; }

/* ===========================================================================
   レスポンシブ
   =========================================================================== */
@media (max-width: 1120px) {
  .site-header__inner { width: calc(100% - 104px); }
  .global-nav__list { gap: 13px; }
  .global-nav__link { font-size: 13.5px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .lantern { display: none; }
  .site-header__inner { width: calc(100% - 26px); gap: 12px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-header__cta { display: none; }

  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    max-height: 0; overflow: hidden;
    background: linear-gradient(180deg, #4a3018, #241609);
    border-bottom: 3px solid var(--gold-dark);
    transition: max-height .3s ease;
  }
  .global-nav.is-open { max-height: 460px; }
  .global-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
  .global-nav__list li { border-top: 1px solid rgba(251, 241, 213, .14); }
  .global-nav__list li:first-child { border-top: 0; }
  .global-nav__link { padding: 14px 22px; font-size: 15px; }
  .global-nav__link::after { display: none; }

  .hero { min-height: auto; padding-bottom: 0; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 6px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__logo img { width: min(100%, 360px); }
  .hero__catch img { width: min(100%, 330px); }
  .store-badges { justify-content: center; }
  .hero__art { min-height: 0; justify-content: center; margin-top: 14px; }
  .hero__characters { width: min(72%, 340px); margin-right: -6%; }
  .hero__phone { width: min(30%, 150px); }

  .story-teaser { grid-template-columns: 1fr; }
  .story-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .starter-list { grid-template-columns: 1fr; gap: 18px; }
  .place-list { grid-template-columns: 1fr; }
  .place { grid-template-columns: 150px minmax(0, 1fr); align-items: center; display: grid; }
  .split { grid-template-columns: 1fr; }
  .youkai-detail { grid-template-columns: 1fr; }
  .post-detail { grid-template-columns: 1fr; }
  .invite { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .invite__art { width: 138px; }
  .steps { grid-template-columns: 1fr; }
  .cell-list { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 78px minmax(0, 1fr); }
  .chapter__closing { grid-column: 2; justify-self: start; }
  .news-row { grid-template-columns: 76px minmax(0, 1fr); }
  .news-row__meta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 620px) {
  /* 幅いっぱいに合わせると左右の灯籠が潰れるので、下限を決めて中央を見せる。 */
  body { background-size: auto, 1100px auto; }

  .plate { --band-h: 19px; --band-w: 60px; }
  .plate span { white-space: normal; }
  .panel { --frame-w: 30px; padding: 8px 4px 4px; }
  .btn { border-width: 20px 60px; border-image-width: 20px 60px; }
  .ribbon { border-width: 20px 60px; border-image-width: 20px 60px; }
  .badge { padding: 6px 14px; min-height: 52px; }
  .badge__text strong { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { flex-direction: row; align-items: center; gap: 14px; }
  .feature__head { order: 2; flex: 1 1 auto; min-height: 0; }
  .feature__shot { order: 1; flex: 0 0 124px; }
  .feature__caption { order: 3; display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .story-strip { grid-template-columns: 1fr; }
  .story-teaser__shots { grid-template-columns: 1fr; gap: 28px; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid { grid-template-columns: 1fr; }
  .spec-list__row { grid-template-columns: 1fr; gap: 2px; }
  .place { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .footer-nav__list { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
