/* ==========================================================
   NYANTERN 公式サイト — style.css
   色・フォント・余白はすべてCSS変数(トークン)で管理
   ========================================================== */

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

:root {
  /* ブランドカラー */
  --color-parchment: #F3E3C4;
  --color-cream: #FFF6DD;
  --color-ink: #3A2A1D;
  --color-indigo: #1A2440;
  --color-gold: #E7B64B;
  --color-amber: #D9823B;
  --color-mauve: #766184;
  --color-moss: #6F7D5A;
  --color-rose: #B98275;
  --color-flame: #A65240;
  --color-gold-deep: #B8862F;

  /* タイポグラフィ */
  --font-body: 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-en: 'EB Garamond', Georgia, serif;

  /* 余白 */
  --space-section: clamp(72px, 10vw, 96px);
  --space-inner: 24px;
  --radius: 8px;
}

/* ---- リセット ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.9;
}
img { max-width: 100%; height: auto; }
a { color: var(--color-amber); }
a:hover { color: var(--color-gold); }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* ---- アニメーション ---- */
@keyframes ny-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(231, 182, 75, 0.45); }
  50% { box-shadow: 0 0 34px rgba(231, 182, 75, 0.8); }
}
@keyframes ny-flicker {
  0%, 100% { opacity: 0.95; }
  42% { opacity: 0.7; }
  55% { opacity: 0.9; }
  71% { opacity: 0.75; }
}
@keyframes ny-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes ny-pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- reveal(JSが .is-inview を付与) ---- */
.js-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal.is-inview { opacity: 1; transform: none; }
.no-js .js-reveal { opacity: 1; transform: none; }
html.is-motion-off *, html.is-motion-off *::before, html.is-motion-off *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.is-motion-off .js-reveal { opacity: 1; transform: none; }

/* ---- モーション停止ボタン(reduced-motion環境でのみ表示) ---- */
.motion-stop {
  display: none;
  position: fixed; left: 14px; bottom: 14px; z-index: 70;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(58, 42, 29, 0.35);
  background: rgba(255, 246, 221, 0.95); color: var(--color-ink);
  font-family: var(--font-body); font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 8px rgba(58, 42, 29, 0.18);
}
@media (prefers-reduced-motion: reduce) { .motion-stop { display: block; } }

/* ==========================================================
   ヘッダー
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid rgba(58, 42, 29, 0.16);
  /* NOTE: backdrop-filter lives on ::before, not here — putting it directly on
     .site-header would make this element the "containing block" for any
     position:fixed descendant (the mobile nav panel), trapping it inside the
     header's own ~64px-tall box instead of the viewport. That was the bug
     behind the hamburger menu rendering hidden behind the page on mobile. */
}
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 246, 221, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 48px; width: auto; display: block; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; justify-content: flex-end; }
.global-nav a {
  text-decoration: none; color: var(--color-ink); font-size: 13px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; line-height: 1.35; padding: 4px 2px;
}
.global-nav a:hover { color: var(--color-amber); }
.global-nav a .en {
  font-family: var(--font-en); font-weight: 500; font-size: 10px;
  letter-spacing: 0.14em; color: var(--color-mauve); text-transform: uppercase;
}
.global-nav a[aria-current="page"] .jp::after { content: " ◆"; color: var(--color-gold); font-size: 9px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 44px; padding: 10px;
  background: none; border: 1px solid rgba(58, 42, 29, 0.3); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); border-radius: 2px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .global-nav {
    position: fixed; inset: 64px 0 0 0; z-index: 59;
    background: rgba(255, 246, 221, 0.98);
    padding: 28px 24px; overflow: auto;
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav a {
    flex-direction: row; align-items: baseline; gap: 10px;
    font-size: 17px; padding: 13px 8px;
    border-bottom: 1px solid rgba(58, 42, 29, 0.12);
  }
}

/* ==========================================================
   共通セクション
   ========================================================== */
.section { padding: var(--space-section) var(--space-inner); background: var(--color-cream); }
.section--parchment { background: var(--color-parchment); }
.section--night { position: relative; background-size: cover; background-position: center; }
.section--night.bg-village { background-image: linear-gradient(rgba(26,36,64,0.62), rgba(26,36,64,0.82)), url('../images/bg/home-window.png'); }
.section--night.bg-workshop { background-image: linear-gradient(rgba(26,36,64,0.72), rgba(26,36,64,0.86)), url('../images/bg/title-window.png'); }
.section--night.bg-twilight { background-image: linear-gradient(rgba(26,36,64,0.55), rgba(58,42,29,0.72)), url('../images/bg/twilight-meadow.png'); }
@supports (background-image: image-set(url('x.webp') 1x)) or (background-image: -webkit-image-set(url('x.webp') 1x)) {
  .section--night.bg-village { background-image: linear-gradient(rgba(26,36,64,0.62), rgba(26,36,64,0.82)), image-set(url('../images/bg/home-window.webp') 1x, url('../images/bg/home-window.png') 1x); }
  .section--night.bg-workshop { background-image: linear-gradient(rgba(26,36,64,0.72), rgba(26,36,64,0.86)), image-set(url('../images/bg/title-window.webp') 1x, url('../images/bg/title-window.png') 1x); }
  .section--night.bg-twilight { background-image: linear-gradient(rgba(26,36,64,0.55), rgba(58,42,29,0.72)), image-set(url('../images/bg/twilight-meadow.webp') 1x, url('../images/bg/twilight-meadow.png') 1x); }
}

.container { max-width: 1080px; margin: 0 auto; }
.container--narrow { max-width: 720px; margin: 0 auto; }
.container--wide { max-width: 1180px; margin: 0 auto; }

.section-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 44px; }
.section-head .diamond {
  width: 10px; height: 10px; background: var(--color-gold);
  transform: rotate(45deg); box-shadow: 0 0 12px rgba(231, 182, 75, 0.8);
}
.section-head h1, .section-head h2 {
  margin: 0; font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; letter-spacing: 0.08em;
}
.section-head .en {
  font-family: var(--font-en); font-size: 14px; letter-spacing: 0.24em;
  color: var(--color-mauve); text-transform: uppercase;
}
.section-head .lead { margin: 8px 0 0; font-size: 13px; line-height: 2.1; color: rgba(58, 42, 29, 0.8); }
.section--night .section-head h1, .section--night .section-head h2 { color: var(--color-cream); }
.section--night .section-head .en { color: rgba(243, 227, 196, 0.7); }
.section--night .section-head .lead { color: rgba(243, 227, 196, 0.85); }

/* ---- ボタン ---- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; border: none;
}
.btn--gold { background: var(--color-gold); color: var(--color-ink); animation: ny-glow 3.4s ease-in-out infinite; }
.btn--gold:hover { background: var(--color-parchment); color: var(--color-ink); }
.btn--ghost { border: 1px solid rgba(243, 227, 196, 0.65); color: var(--color-cream); background: none; }
.btn--ghost:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn--ghost-dark { border: 1px solid rgba(58, 42, 29, 0.35); color: var(--color-ink); background: none; }
.btn--ghost-dark:hover { border-color: var(--color-gold); color: var(--color-amber); }
.btn--night { background: var(--color-indigo); color: var(--color-cream); box-shadow: 0 0 20px rgba(26, 36, 64, 0.3); }
.btn--night:hover { background: #2A3760; color: var(--color-cream); }

.text-link { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.text-center { text-align: center; }

/* ---- 小さな灯り(装飾) ---- */
.lantern-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-gold); box-shadow: 0 0 18px 6px rgba(231, 182, 75, 0.6);
  animation: ny-flicker 4.5s ease-in-out infinite;
}
.lantern-dot--mauve { background: var(--color-mauve); box-shadow: 0 0 14px 3px rgba(118, 97, 132, 0.7); animation: none; }

/* ---- チップ ---- */
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--color-mauve); border: 1px solid rgba(118, 97, 132, 0.4);
  border-radius: 999px; padding: 3px 12px;
}
.chip--amber { color: var(--color-amber); border-color: rgba(217, 130, 59, 0.4); }
.chip--night { color: var(--color-cream); border-color: rgba(243, 227, 196, 0.55); font-size: 12px; letter-spacing: 0.14em; padding: 5px 16px; }

/* ==========================================================
   Hero(トップ)
   ========================================================== */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  padding: 72px 24px 88px; overflow: hidden; position: relative;
}
.hero__inner {
  position: relative; max-width: 760px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.hero__logo { width: min(480px, 86vw); filter: drop-shadow(0 6px 26px rgba(231, 182, 75, 0.35)); }
.hero__copy {
  margin: 0; font-family: var(--font-serif);
  font-size: clamp(24px, 4.4vw, 38px); font-weight: 700; line-height: 1.9;
  letter-spacing: 0.08em; color: var(--color-cream);
  text-shadow: 0 2px 18px rgba(26, 36, 64, 0.8);
}
.hero__copy-en {
  margin: 0; font-family: var(--font-en); font-style: italic; font-size: 15px;
  letter-spacing: 0.14em; color: rgba(243, 227, 196, 0.85);
}
.hero__lead { margin: 0; font-size: 14px; line-height: 2.1; color: rgba(243, 227, 196, 0.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .spark { position: absolute; border-radius: 50%; }
.hero .spark--1 { top: 18%; left: 12%; width: 8px; height: 8px; background: var(--color-gold); box-shadow: 0 0 22px 8px rgba(231,182,75,0.55); animation: ny-flicker 4.2s ease-in-out infinite; }
.hero .spark--2 { top: 32%; right: 14%; width: 6px; height: 6px; background: var(--color-gold); box-shadow: 0 0 18px 6px rgba(231,182,75,0.45); animation: ny-flicker 5.6s 1.2s ease-in-out infinite; }
.hero .spark--3 { bottom: 22%; left: 22%; width: 5px; height: 5px; background: var(--color-cream); box-shadow: 0 0 14px 5px rgba(255,246,221,0.4); animation: ny-flicker 6.4s 0.6s ease-in-out infinite; }

@media (max-width: 600px) {
  .hero { min-height: calc(100svh - 112px); padding: 48px 24px 52px; }
  .hero__inner { gap: 20px; }
  .hero__logo { width: min(400px, 78vw); }
  .hero__lead { line-height: 1.95; }
}

/* ==========================================================
   カード・グリッド
   ========================================================== */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.grid--tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.grid--gallery { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.note-card {
  background: var(--color-cream); border: 1px solid rgba(58, 42, 29, 0.14);
  border-radius: 6px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.note-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); box-shadow: 0 0 10px rgba(231, 182, 75, 0.8); }
.note-card h3 { margin: 0; font-family: var(--font-serif); font-size: 17px; letter-spacing: 0.06em; }
.note-card p { margin: 0; font-size: 13px; line-height: 2.1; color: rgba(58, 42, 29, 0.85); }
.section .note-card { background: var(--color-cream); }
.section:not(.section--parchment) .note-card { background: var(--color-parchment); }

/* ---- 物語カード ---- */
.story-card {
  background: var(--color-parchment); border: 1px solid rgba(58, 42, 29, 0.16);
  border-radius: 6px; padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 10px 30px rgba(58, 42, 29, 0.08); text-align: center;
}
.story-card p { margin: 0; font-family: var(--font-serif); font-size: clamp(15px, 2vw, 17px); line-height: 2.6; letter-spacing: 0.06em; }
.story-card .story-card__last { margin-top: 32px; font-size: clamp(17px, 2.4vw, 20px); font-weight: 700; letter-spacing: 0.1em; color: var(--color-amber); }

/* ---- 額装画像 ---- */
.framed { margin: 0; padding: 14px; background: var(--color-cream); border: 1px solid rgba(58, 42, 29, 0.16); border-radius: 6px; box-shadow: 0 12px 32px rgba(58, 42, 29, 0.1); }
.framed img { display: block; width: 100%; border-radius: 3px; }
.framed figcaption { margin: 12px 4px 2px; font-size: 12px; color: var(--color-mauve); text-align: right; font-family: var(--font-en); letter-spacing: 0.1em; }

/* ---- テラ ---- */
.tera { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; max-width: 1000px; margin: 0 auto; }
.tera__img { flex: 0 1 320px; display: flex; justify-content: center; }
.tera__img img { width: min(300px, 70vw); filter: drop-shadow(0 14px 30px rgba(217, 130, 59, 0.28)); animation: ny-float 5.5s ease-in-out infinite; }
.tera__body { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 18px; }
.tera__body h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: 0.1em; }
.tera__body .en { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.24em; color: var(--color-mauve); text-transform: uppercase; }
.tera__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--color-amber); letter-spacing: 0.08em; }
.tera__text { margin: 0; font-size: 14px; line-height: 2.3; color: rgba(58, 42, 29, 0.9); }
.tera__quote {
  margin: 0; padding: 16px 20px; background: var(--color-parchment);
  border-left: 3px solid var(--color-gold); border-radius: 0 6px 6px 0;
  font-family: var(--font-serif); font-size: 14px; line-height: 2.2; letter-spacing: 0.04em;
}

/* ---- 遊び場カード(夜) ---- */
.play-card {
  text-decoration: none; background: rgba(255, 246, 221, 0.06);
  border: 1px solid rgba(231, 182, 75, 0.35); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 12px;
}
.play-card:hover { background: rgba(231, 182, 75, 0.12); border-color: var(--color-gold); }
.play-card h3 { margin: 0; font-family: var(--font-serif); font-size: 19px; color: var(--color-cream); letter-spacing: 0.06em; }
.play-card .en { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.18em; color: rgba(243, 227, 196, 0.6); text-transform: uppercase; }
.play-card p { margin: 0; font-size: 13px; line-height: 2; color: rgba(243, 227, 196, 0.85); }

/* ---- キャラクターカード(トップ) ---- */
.char-card {
  text-decoration: none; color: var(--color-ink);
  background: var(--color-parchment); border: 1px solid rgba(58, 42, 29, 0.14);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.char-card:hover { border-color: var(--color-gold); box-shadow: 0 10px 26px rgba(58, 42, 29, 0.14); color: var(--color-ink); }
.char-card__bar { display: block; height: 4px; }
.char-card__img {
  display: flex; justify-content: center; padding: 26px 18px 12px;
  background: radial-gradient(circle at 50% 78%, rgba(231, 182, 75, 0.22), rgba(243, 227, 196, 0) 62%);
}
.char-card__img img { height: 170px; width: auto; filter: drop-shadow(0 8px 16px rgba(58, 42, 29, 0.2)); }
.char-card__body { display: flex; flex-direction: column; gap: 6px; padding: 6px 20px 24px; text-align: center; }
.char-card__name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: 0.1em; }
.char-card__name .en { font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; color: var(--color-mauve); margin-left: 8px; }
.char-card__title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.char-card__intro { font-size: 12px; line-height: 1.95; color: rgba(58, 42, 29, 0.85); }

/* ---- キャラクターカード(シルエット / Coming soon) ---- */
.char-card--silhouette { cursor: default; }
.char-card--silhouette .char-card__img img { filter: brightness(0); opacity: 0.55; }
.char-card--silhouette .char-card__name { color: rgba(58, 42, 29, 0.55); letter-spacing: 0.2em; }

/* ---- キャラクター詳細(一覧ページ) ---- */
.char-row {
  display: flex; flex-wrap: wrap; gap: 24px 36px; align-items: center;
  background: var(--color-parchment); border: 1px solid rgba(58, 42, 29, 0.14);
  border-radius: 10px; padding: 32px; overflow: hidden; position: relative;
}
.char-row__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.char-row__img { flex: 0 0 180px; display: flex; justify-content: center; margin: 0 auto; }
.char-row__img img { height: 200px; width: auto; filter: drop-shadow(0 10px 20px rgba(58, 42, 29, 0.22)); }
.char-row__body { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.char-row__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.char-row__head h2 { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 700; letter-spacing: 0.1em; }
.char-row__head .en { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.16em; color: var(--color-mauve); }
.char-row__head .title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.char-row__intro { margin: 0; font-size: 13.5px; line-height: 2.2; color: rgba(58, 42, 29, 0.9); }
.char-row dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 12.5px; line-height: 1.9; }
.char-row dt { font-weight: 700; color: var(--color-mauve); }
.char-row dd { margin: 0; color: rgba(58, 42, 29, 0.85); }
.char-row .note { margin: 0; font-size: 11.5px; color: rgba(58, 42, 29, 0.55); }

/* ---- Worksタイル ---- */
.work-tile {
  border: 1px solid rgba(58, 42, 29, 0.16); border-radius: 6px; padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--color-parchment);
}
.work-tile .en { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: 0.14em; }
.work-tile .jp { font-size: 12px; color: rgba(58, 42, 29, 0.75); }

/* ---- ギャラリー ---- */
.gallery-item { margin: 0; padding: 10px; background: var(--color-parchment); border: 1px solid rgba(58, 42, 29, 0.14); border-radius: 6px; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.gallery-item figcaption { margin: 10px 2px 0; font-size: 12px; color: rgba(58, 42, 29, 0.75); }
.gallery-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed rgba(58, 42, 29, 0.3); border-radius: 6px; padding: 32px; min-height: 180px;
}
.gallery-more p { margin: 0; font-size: 12.5px; line-height: 2; color: rgba(58, 42, 29, 0.7); text-align: center; }

/* ---- News ---- */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline;
  background: var(--color-cream); border: 1px solid rgba(58, 42, 29, 0.14);
  border-radius: 6px; padding: 18px 22px;
}
.section:not(.section--parchment) .news-item { background: var(--color-parchment); }
.news-item time { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.1em; color: var(--color-mauve); flex-shrink: 0; }
.news-item p { margin: 0; font-size: 13px; line-height: 1.9; }

/* ---- Follow ---- */
.follow { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; max-width: 640px; margin: 0 auto; }
.follow h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: 0.08em; line-height: 1.8; }
.follow p { margin: 0; font-size: 13px; line-height: 2.2; color: rgba(58, 42, 29, 0.85); }
.follow .fine { font-size: 12px; color: rgba(58, 42, 29, 0.6); }
.follow__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ==========================================================
   下層ページ共通
   ========================================================== */
.page-hero { padding: 80px 24px 56px; background: var(--color-parchment); text-align: center; }
.page-hero .section-head { margin-bottom: 0; }
.stub-box {
  width: 100%; background: var(--color-parchment);
  border: 1px dashed rgba(58, 42, 29, 0.3); border-radius: var(--radius);
  padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.stub-box p { margin: 0; }
.stub-box .stub-title { font-family: var(--font-serif); font-size: 16px; letter-spacing: 0.08em; }
.stub-box .stub-note { font-size: 12.5px; line-height: 2; color: rgba(58, 42, 29, 0.7); text-align: center; }
.back-link { text-align: center; padding-top: 24px; }

/* ==========================================================
   灯りの遊び場
   ========================================================== */
.pr-block { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; max-width: 640px; margin: 0 auto; }
.pr-block--wide { max-width: 920px; }
.pr-result {
  width: 100%; background: var(--color-parchment);
  border: 1px solid rgba(231, 182, 75, 0.6); border-radius: var(--radius);
  padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 0 40px rgba(231, 182, 75, 0.25);
  animation: ny-pop 0.5s ease-out;
}
.pr-result .date { margin: 0; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em; color: var(--color-mauve); }
.pr-result .msg { margin: 0; font-family: var(--font-serif); font-size: clamp(16px, 2.4vw, 19px); line-height: 2.3; letter-spacing: 0.05em; }
.pr-share-note { margin: 0; font-size: 12px; color: var(--color-mauve); min-height: 1em; }
.pr-caveat { margin: 0; text-align: center; font-size: 11.5px; line-height: 2; color: rgba(58, 42, 29, 0.6); }
[hidden] { display: none !important; }

.fortune-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; width: 100%; }
.fortune-card {
  background: var(--color-cream); border: 1px solid rgba(231, 182, 75, 0.55);
  border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
  box-shadow: 0 8px 24px rgba(58, 42, 29, 0.1);
  animation: ny-pop 0.5s ease-out;
}
.fortune-card__pos { display: flex; align-items: center; gap: 10px; }
.fortune-card__pos .num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-indigo); color: var(--color-gold);
  font-family: var(--font-serif); font-weight: 700; font-size: 16px;
}
.fortune-card__pos .note { font-size: 11px; line-height: 1.6; color: var(--color-mauve); font-weight: 700; }
.fortune-card__name { margin: 0; font-family: var(--font-serif); font-size: 17px; font-weight: 700; letter-spacing: 0.06em; }
.fortune-card__reading { margin: 0; font-size: 12.5px; line-height: 2; color: rgba(58, 42, 29, 0.9); }
.fortune-card__light { margin: 0; padding-top: 10px; border-top: 1px dashed rgba(58, 42, 29, 0.25); font-size: 12px; line-height: 2; color: var(--color-gold-deep); }

.shadow-hud { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.shadow-stage {
  position: relative; width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(180deg, #141c33, var(--color-indigo) 60%, #232f52);
  border-radius: 10px; border: 1px solid rgba(231, 182, 75, 0.3);
  overflow: hidden; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
  cursor: none;
}
.shadow-stage .star { position: absolute; border-radius: 50%; background: var(--color-cream); }
.shadow-stage .star--1 { top: 8%; right: 10%; width: 5px; height: 5px; box-shadow: 0 0 10px 3px rgba(255,246,221,0.5); }
.shadow-stage .star--2 { top: 16%; left: 14%; width: 4px; height: 4px; box-shadow: 0 0 8px 2px rgba(255,246,221,0.4); }
.shadow-btn {
  --glow: 0;
  position: absolute; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(52,42,68,0.95) 0%, rgba(76,62,94,0.8) 55%, rgba(76,62,94,0) 78%);
  box-shadow: 0 0 14px 2px rgba(30, 24, 44, 0.6);
  transition: left 0.05s linear, top 0.05s linear;
}
.shadow-btn.is-near {
  background: radial-gradient(circle, color-mix(in srgb, var(--color-gold) calc(var(--glow) * 100%), rgba(52,42,68,0.95)) 0%, rgba(76,62,94,0.8) 55%, rgba(76,62,94,0) 78%);
  box-shadow: 0 0 calc(14px + var(--glow) * 20px) calc(2px + var(--glow) * 8px) rgba(231, 182, 75, calc(0.3 + var(--glow) * 0.4));
}
.shadow-btn.is-lit {
  background: radial-gradient(circle, var(--color-cream) 0%, var(--color-gold) 45%, rgba(231,182,75,0) 75%);
  box-shadow: 0 0 28px 10px rgba(231, 182, 75, 0.5);
  animation: ny-pop 0.4s ease-out;
}
.lantern-light {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,221,0.35) 0%, rgba(231,182,75,0.16) 45%, rgba(231,182,75,0) 75%);
  transition: opacity 0.2s ease;
}
.shadow-pops {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding-top: 8px; gap: 6px; pointer-events: none; overflow: hidden;
}
.shadow-pop {
  display: flex; align-items: center; gap: 10px;
  background: rgba(26, 36, 64, 0.88); border: 1px solid; border-radius: 999px;
  padding: 6px 16px 6px 6px; animation: ny-pop 0.3s ease-out;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.shadow-pop.is-leaving { opacity: 0; transform: translateY(-6px); }
.shadow-pop img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.shadow-pop__body { text-align: left; }
.shadow-pop__name { margin: 0; font-family: var(--font-serif); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.shadow-pop__line { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--color-cream); }
.shadow-stage__done {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; padding: 20px; text-align: center;
  background: rgba(26, 36, 64, 0.72); animation: ny-pop 0.6s ease-out;
}
.shadow-stage__done p { margin: 0; font-family: var(--font-serif); font-size: clamp(15px, 2.4vw, 19px); color: var(--color-cream); letter-spacing: 0.06em; text-align: center; line-height: 1.9; }
.shadow-result-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 480px; }
.shadow-result-chip {
  border: 1px solid; border-radius: 999px; padding: 4px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; background: rgba(255,246,221,0.08);
}

/* ==========================================================
   お問い合わせフォーム
   ========================================================== */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; margin: 0 auto; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label { font-size: 13px; font-weight: 700; }
.form__field .req { color: var(--color-flame); font-size: 11px; }
.form__field input, .form__field textarea {
  padding: 13px 14px; border: 1px solid rgba(58, 42, 29, 0.3); border-radius: 6px;
  background: #FFFDF4; font-family: var(--font-body); font-size: 14px; color: var(--color-ink);
}
.form__field textarea { resize: vertical; }
.form__error { margin: 0; font-size: 12px; color: var(--color-flame); min-height: 1em; }
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; text-align: center; font-size: 11.5px; line-height: 2; color: rgba(58, 42, 29, 0.6); }
.form__submit { align-self: center; padding: 15px 44px; box-shadow: 0 0 18px rgba(231, 182, 75, 0.4); }
.form-thanks {
  background: var(--color-parchment); border: 1px solid rgba(231, 182, 75, 0.6);
  border-radius: var(--radius); padding: 44px 28px; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.form-thanks .thanks-title { margin: 0; font-family: var(--font-serif); font-size: 19px; letter-spacing: 0.08em; }
.form-thanks p { margin: 0; font-size: 13px; line-height: 2.2; color: rgba(58, 42, 29, 0.85); }

/* ==========================================================
   フッター
   ========================================================== */
.site-footer { background: var(--color-indigo); color: var(--color-parchment); padding: 56px 24px 32px; }
.site-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.site-footer__brand img { width: 220px; height: auto; display: block; }
.site-footer__brand p { margin: 0; font-size: 13px; line-height: 2; color: rgba(243, 227, 196, 0.8); }
.site-footer__brand .en { font-family: var(--font-en); letter-spacing: 0.08em; color: rgba(243, 227, 196, 0.55); }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 6px 40px; }
.site-footer__nav a { color: var(--color-parchment); text-decoration: none; font-size: 13px; padding: 6px 0; }
.site-footer__nav a:hover { color: var(--color-gold); }
.site-footer__sns { display: flex; flex-direction: column; gap: 10px; }
.site-footer__sns .label { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: rgba(243, 227, 196, 0.6); text-transform: uppercase; }
.site-footer__sns .icons { display: flex; gap: 12px; }
.site-footer__sns .icons a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(243, 227, 196, 0.4);
  color: var(--color-parchment); text-decoration: none; font-weight: 700; font-size: 14px;
}
.site-footer__sns .icons a:hover { border-color: var(--color-gold); color: var(--color-gold); }
.site-footer__sns p { margin: 0; font-size: 12px; color: rgba(243, 227, 196, 0.6); }
.site-footer__copy {
  margin: 0; padding-top: 20px; border-top: 1px solid rgba(243, 227, 196, 0.18);
  font-size: 12px; color: rgba(243, 227, 196, 0.55); text-align: center;
}

/* ---- 404 ---- */
.notfound { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
