/* ============================================
   ナルボル体験談サイト - グローバルスタイル
   カスタマイズ時は :root の変数を変更してください
   ============================================ */

:root {
  /* === レガシー v2 パレット（一部ページのみ残存。新規実装は v3 トークンを使用） === */
  --color-border: #e8e8e8;              /* 関連体験談・アフィリエイト枠のボーダー */
  --color-bg: #f4f4f6;                  /* body 背景 */

  /* === タイポグラフィ === */
  --font-body: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-size-base: 16px;
  --line-height: 1.8;

  /* === v3 デザインシステム トークン（2026-04-24 UI/UX リデザイン） === */
  /* 和紙絵巻の墨・朱・和紙の色彩体系。新規実装はこちらを使用 */
  --ink: #1a1a1a;
  --ink-80: rgba(26,26,26,0.8);
  --ink-60: rgba(26,26,26,0.6);
  --ink-40: rgba(26,26,26,0.4);
  --ink-20: rgba(26,26,26,0.12);
  --scroll: #fff3ec;
  --scroll-deep: #fbe6d3;
  --scroll-dark: #f3d9bc;
  --fire: #e8621a;
  --fire-dark: #c04e10;
  --fire-soft: #ffe0c8;
  --vermilion: #8b1f12;

  /* === スペーシング === */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* === レイアウト === */
  --max-width: 1100px;
  --max-width-text: 720px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* === シャドウ === */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.16);

  /* === トランジション === */
  --transition-base: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ リセット ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { font-size: var(--font-size-base); scroll-behavior: smooth; overflow-x: clip; width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--scroll);
  line-height: var(--line-height);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* モバイルで要素がビューポートを押し広げないための保険 */
main { max-width: 100vw; overflow-x: clip; }

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

a { color: var(--fire); text-decoration: none; }
a:hover { text-decoration: none; }


/* ============ ボタン ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--fire);
  font-weight: 800;
  transition: transform 0.22s cubic-bezier(.5,1.4,.4,1), box-shadow 0.22s cubic-bezier(.5,1.4,.4,1);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translate(-2px,-2px);
  box-shadow: 7px 7px 0 var(--fire);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--fire);
  font-weight: 800;
  transition: transform 0.22s cubic-bezier(.5,1.4,.4,1), box-shadow 0.22s cubic-bezier(.5,1.4,.4,1);
}
.btn-outline:hover {
  background: var(--scroll);
  color: var(--ink);
  text-decoration: none;
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--fire);
}

.btn-large {
  padding: 1rem 2.4rem;
  font-size: 1.05rem;
}

/* ============ タグ ============ */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--fire-soft);
  color: var(--ink);
  border: 1.5px solid var(--fire);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
}

.tag-large {
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
}

/* メディア種別タグ（アニメ・漫画など）：シリーズタグと色を変えて区別 */
.tag-media {
  background: var(--scroll-deep);
  color: var(--ink-80);
  border-color: var(--ink-40);
}

/* ============ セクション共通 ============ */
.section {
  padding: var(--space-lg) 0;
}

body { background-color: var(--color-bg); }

.section-inner,
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* モバイル: セクション余白を圧縮（画面幅を有効活用） */
@media (max-width: 720px) {
  .section { padding: 32px 0 40px; }
  .section-inner,
  .container { padding: 0 16px; }
}
@media (max-width: 420px) {
  .section { padding: 24px 0 32px; }
  .section-inner,
  .container { padding: 0 12px; }
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--fire) 0%, rgba(232,98,26,0.2) 100%);
  border-radius: 2px;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fire);
}

/* ============ .mp カードグリッド（v3 stories 一覧） ============ */
.mp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

/* ============ CTAセクション ============ */
/* 下部 CTA — homepage `.cta` と同じ視覚言語に統一 */
.cta-fire {
  position: relative; overflow: hidden;
  padding: 120px 32px 132px;
  background: var(--fire);
  color: #fff;
  text-align: center;
}
.cta-fire::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-conic-gradient(from 180deg at 50% 50%,
      transparent 0deg, transparent 2deg,
      rgba(26,26,26,0.12) 2deg, rgba(26,26,26,0.12) 2.4deg);
  mask-image: radial-gradient(circle at 50% 50%, transparent 180px, #000 520px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 180px, #000 520px);
}
.cta-fire::after {
  content: '声';
  position: absolute; right: -80px; bottom: -140px;
  font-family: var(--font-serif); font-weight: 700; font-size: 560px;
  line-height: 0.8; color: var(--ink); opacity: 0.08;
  pointer-events: none;
}

.cta-inner {
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 2; text-align: center;
}

.cta-stamp-p100 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; background: var(--ink); color: var(--fire);
  font-weight: 900; font-size: 12px; letter-spacing: 0.24em;
  border-radius: 999px; margin-bottom: 28px;
  transform: rotate(-2deg);
}

.cta-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: #fff;
  word-break: keep-all; overflow-wrap: break-word;
}
.cta-title .box {
  display: inline-block; background: var(--ink); color: var(--fire);
  padding: 0 14px; margin: 0 2px;
  transform: rotate(-1deg);
}

.cta-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.9; font-weight: 500;
  max-width: 640px; margin: 0 auto 44px;
  color: rgba(255,255,255,0.95);
}
.cta-desc .nb {
  display: inline-block; font-weight: 900; color: #fff;
  background: rgba(26,26,26,0.25); padding: 2px 10px; border-radius: 6px;
  margin: 2px 4px;
}

/* p100 CTA ボタン — homepage `.cta-cta` と完全同値 */
.cta-fire .btn,
.cta-fire .btn-primary,
.cta-fire .btn-primary.btn-large {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 48px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 18px; font-weight: 900; letter-spacing: 0.04em;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(26,26,26,0.4);
  transition: all 0.22s cubic-bezier(.5,1.4,.4,1);
  min-height: 56px;
}
.cta-fire .btn-primary:hover,
.cta-fire .btn-primary.btn-large:hover {
  background: #fff; color: var(--ink);
  border-color: var(--ink);
  transform: translate(-3px,-3px);
  box-shadow: 11px 11px 0 rgba(26,26,26,0.4);
}
.cta-fire .btn-primary .arrow,
.cta-fire .btn-primary.btn-large .arrow { transition: transform 0.25s ease; }
.cta-fire .btn-primary:hover .arrow,
.cta-fire .btn-primary.btn-large:hover .arrow { transform: translateX(8px); }

.cta-note {
  margin-top: 28px; font-size: 13px;
  color: rgba(255,255,255,0.85); font-weight: 500;
}
.cta-note a {
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.85);
  padding-bottom: 1px;
}
.cta-note a:hover { border-bottom-color: #fff; }

@media (max-width: 720px) {
  .cta-fire { padding: 56px 20px 64px; }
  .cta-fire::before { mask-image: radial-gradient(circle at 50% 50%, transparent 100px, #000 360px); -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 100px, #000 360px); }
  .cta-fire::after { font-size: 320px; right: -80px; bottom: -120px; }
  .cta-stamp-p100 { margin-bottom: 18px; padding: 6px 14px; font-size: 11px; }
  .cta-title { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 18px; }
  .cta-desc { font-size: 0.95rem; line-height: 1.85; margin-bottom: 28px; }
  .cta-fire .btn-primary,
  .cta-fire .btn-primary.btn-large {
    padding: 14px 22px; font-size: 15px;
    width: 100%; max-width: 100%;
    justify-content: center; box-sizing: border-box;
    min-height: 50px; gap: 10px;
    box-shadow: 5px 5px 0 rgba(26,26,26,0.4);
  }
  .cta-note { margin-top: 18px; font-size: 12px; }
}

/* ============ ページヘッダー（v3 — homepage section titles と統一） ============ */
.page-header {
  background: var(--scroll);
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  border-bottom: 2px solid var(--ink);
}
.page-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--fire);
  pointer-events: none;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.55rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.page-desc {
  color: var(--ink-80);
  font-size: 0.95rem;
  font-weight: 600;
}
.page-desc strong {
  color: var(--fire);
  font-size: 1.35em;
  font-weight: 900;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  margin: 0 2px;
}

@media (max-width: 720px) {
  .page-header { padding: 32px 0 24px; }
  .page-header-inner { padding: 0 16px; }
  .page-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .page-desc { font-size: 0.9rem; }
}
@media (max-width: 420px) {
  .page-header { padding: 24px 0 20px; }
  .page-header-inner { padding: 0 12px; }
}

/* ============ 体験談一覧ページ ============ */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.filter-toolbar .filter-bar { margin-bottom: 0; }

.filter-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sort-select:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.sort-select:focus { outline: none; box-shadow: 3px 3px 0 var(--fire); }

.btn-random {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-random:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--fire);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--fire);
}
.filter-btn.active {
  background: var(--fire);
  color: #fff;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

/* NEWバッジ */
.badge-new {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--fire);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* キャラクターフィルターチップ（v3） */
.chara-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: var(--fire-soft);
  border: 1.5px solid var(--fire);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.chara-filter-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-60);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.15rem;
  font-weight: 900;
}
.chara-filter-chip button:hover { color: var(--fire); }

.filter-no-results {
  text-align: center;
  color: var(--ink-60);
  padding: var(--space-lg) 0;
  font-weight: 500;
}

.submit-nudge {
  text-align: center;
  padding: var(--space-lg) 28px;
  margin-top: var(--space-md);
  background: var(--scroll-deep);
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink-80);
}
.submit-nudge p { margin-bottom: var(--space-sm); font-weight: 700; color: var(--ink); }

/* 体験談一覧: モバイル調整 */
@media (max-width: 720px) {
  .filter-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
  }
  .filter-toolbar .filter-bar {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .filter-toolbar-right {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    align-items: center;
  }
  .filter-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
  .sort-select { padding: 0.45rem 0.75rem; font-size: 0.8rem; width: 100%; min-width: 0; }
  .btn-random { padding: 0.45rem 0.9rem; font-size: 0.8rem; white-space: nowrap; }
  .mp-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .chara-filter-chip { font-size: 0.8rem; padding: 0.35rem 0.75rem; }
  .submit-nudge { padding: var(--space-md) 20px; margin-left: 4px; margin-right: 4px; }
}

/* さらに狭い画面: 並び替えとランダムボタンを縦積み */
@media (max-width: 420px) {
  .filter-toolbar-right {
    grid-template-columns: 1fr;
  }
  .btn-random { width: 100%; justify-content: center; }
}

/* ============ 推し一覧ページ ============ */
.chara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: var(--space-md);
}
.chara-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1.25rem 0.75rem;
  min-height: 90px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s cubic-bezier(.5,1.4,.4,1), box-shadow 0.22s cubic-bezier(.5,1.4,.4,1), color 0.15s;
}
.chara-card:hover {
  transform: translate(-1px,-1px);
  box-shadow: 5px 5px 0 var(--fire);
  color: var(--fire);
  text-decoration: none;
}
.chara-card-name {
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.chara-card-count {
  font-size: 0.85rem;
  color: var(--fire);
  font-weight: 800;
}
.chara-note {
  color: var(--ink-60);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
}
.chara-note a { margin-left: 0.5rem; }

/* ============ 関連体験談（詳細ページ） ============ */
.related-stories {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.related-stories-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-60);
  margin-bottom: 1.25rem;
}
.related-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ============ トースト通知 ============ */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.75rem);
  background: #333;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  white-space: pre-line;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  max-width: min(360px, 90vw);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.share-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ 投稿完了ページ ============ */
.thanks-box {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  max-width: 480px;
  margin: 0 auto;
}
.thanks-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fire);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: 4px 4px 0 var(--ink);
}
.thanks-box h2 {
  font-weight: 900;
  color: var(--ink);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.005em;
}
.thanks-box p {
  color: var(--ink-80);
  line-height: var(--line-height);
  margin-bottom: 0.5rem;
}

/* ============ ガイドラインページ ============ */
.guidelines-article {
  padding: var(--space-lg) 0;
}

.guidelines-inner {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.gl-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--ink-20);
  color: var(--ink-80);
}

.gl-section h2 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--fire);
  display: inline-block;
  letter-spacing: -0.005em;
}

.gl-section p, .gl-section li {
  line-height: 1.9;
  margin-bottom: 0.5rem;
}

.gl-section ul, .gl-section ol {
  padding-inline-start: 1.5em;
}

.gl-section--warning {
  background: var(--fire-soft);
  border: 2px solid var(--fire);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 4px 4px 0 var(--ink-20);
}

.gl-section--image {
  background: var(--scroll-deep);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 4px 4px 0 var(--ink-20);
}

/* ============ About ページ ============ */
.about-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.75;
  background: var(--scroll-deep);
  border-inline-start: 4px solid var(--fire);
  padding: 0.85rem 1rem;
  padding-inline-start: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.gl-section--cta {
  border-bottom: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: var(--space-sm);
}

.gl-note {
  font-size: 0.875rem;
  color: var(--ink-60);
  background: var(--scroll-deep);
  border-inline-start: 3px solid var(--ink-40);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: var(--space-sm);
}

.gl-cta {
  text-align: center;
  padding-top: var(--space-md);
}
.gl-cta p { margin-bottom: var(--space-sm); color: var(--ink-60); }

/* ============ 投稿ページ ============ */
.submit-section {
  padding: var(--space-lg) 0;
}

.submit-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.pre-submit-check {
  background: #fff;
  border: 2px solid var(--ink);
  border-inline-start: 5px solid var(--fire);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  box-shadow: 4px 4px 0 var(--ink-20);
}

.pre-submit-check h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
}

.check-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.form-embed-wrapper {
  margin-bottom: var(--space-md);
}

/* Googleフォームのiframe高さ。フォームの設問を大幅に変更した場合はここを更新してください */
.form-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 3200px;
  border: none;
}

/* フォームURL未設定時のプレースホルダー */
.form-placeholder {
  background: #fff;
  border: 2px dashed var(--ink-40);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.form-placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.form-placeholder h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.form-placeholder ol {
  text-align: start;
  display: inline-block;
  padding-inline-start: 1.5em;
  margin: var(--space-sm) 0;
}
.form-placeholder li { margin-bottom: 0.5rem; line-height: 1.7; }

.form-placeholder code {
  background: var(--scroll-deep);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--ink);
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-60);
  margin-top: var(--space-sm) !important;
}

.submit-guideline-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-60);
  margin-top: var(--space-md);
}

/* 旧 Footer (.site-footer, .footer-inner, .footer-logo, .logo-mark-small,
   .footer-nav, .footer-note) は v3 Footer (.foot) に置換済みのため撤去。*/

/* ============ レスポンシブ ============ */
@media (max-width: 640px) {
  .section-inner, .page-header-inner,
  .story-detail-inner, .guidelines-inner, .submit-inner { padding: 0 var(--space-sm); }

  .mp-list { grid-template-columns: 1fr; }

  .story-share { flex-direction: column; align-items: flex-start; }
  .btn-x-share, .btn-ig-share { width: 100%; justify-content: center; }

  .story-nav { flex-direction: column; }
  .story-nav .btn { width: 100%; text-align: center; }

  .section-header { flex-direction: column; gap: 0.5rem; }
}

/* ============ 言語切り替え ============ */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--ink-20);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--ink-80);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.22s, color 0.22s;
}
.lang-switcher-btn:hover { border-color: var(--ink); color: var(--fire); }

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--ink-20);
  min-width: 140px;
  z-index: 200;
  list-style: none;
  padding: 0.4rem 0;
}
.lang-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.lang-menu li a:hover { background: var(--scroll); color: var(--fire); }
.lang-menu li[aria-selected="true"] a {
  color: var(--fire);
  font-weight: 800;
}

/* ============ 翻訳ノーティス ============ */
.translation-notice {
  font-size: 0.8rem;
  color: var(--ink-60);
  margin-top: 0.5rem;
  font-style: italic;
}
.translation-notice--translated { color: var(--fire); }

/* ============ 投稿フォームの言語ノート ============ */
.submit-lang-note {
  background: var(--fire-soft);
  border-inline-start: 3px solid var(--fire);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ============ RTL (Arabic) ============ */
[dir="rtl"] .site-nav { margin-left: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .story-nav { flex-direction: row-reverse; }
[dir="rtl"] .filter-toolbar { flex-direction: row-reverse; }
[dir="rtl"] .filter-toolbar-right { flex-direction: row-reverse; }
[dir="rtl"] .footer-nav { text-align: right; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
@media (max-width: 640px) {
  [dir="rtl"] .hero-actions { flex-direction: column; }
  [dir="rtl"] .story-nav { flex-direction: column; }
}

/* ============ v3 RTL — box-shadow X 反転 + SVG 反転 ============ */
/* 物理 box-shadow にしか宿らない X 軸方向のオフセットを RTL で反転する。
   論理プロパティが存在しないため override で対応。 */

/* Buttons — 共通 */
[dir="rtl"] .btn-primary { box-shadow: -5px 5px 0 var(--fire); }
[dir="rtl"] .btn-primary:hover { box-shadow: -7px 7px 0 var(--fire); }
[dir="rtl"] .btn-outline { box-shadow: -4px 4px 0 var(--fire); }
[dir="rtl"] .btn-outline:hover { box-shadow: -6px 6px 0 var(--fire); }
[dir="rtl"] .sort-select:hover { box-shadow: -3px 3px 0 var(--ink); }
[dir="rtl"] .sort-select:focus { box-shadow: -3px 3px 0 var(--fire); }
[dir="rtl"] .btn-random { box-shadow: -4px 4px 0 var(--fire); }
[dir="rtl"] .btn-random:hover { box-shadow: -3px 3px 0 var(--fire); }
[dir="rtl"] .filter-btn.active { box-shadow: -3px 3px 0 var(--ink); }

/* カード／パネル類 */
[dir="rtl"] .gl-section--warning,
[dir="rtl"] .gl-section--image,
[dir="rtl"] .pre-submit-check,
[dir="rtl"] .calendar-month,
[dir="rtl"] .image-hint,
[dir="rtl"] .lang-menu,
[dir="rtl"] .wish-card { box-shadow: -4px 4px 0 var(--ink-20); }
[dir="rtl"] .wish-card:hover { box-shadow: -5px 5px 0 var(--fire); }
[dir="rtl"] .thanks-box { box-shadow: -4px 4px 0 var(--ink); }
[dir="rtl"] .chara-card,
[dir="rtl"] .fav-item { box-shadow: -3px 3px 0 var(--ink); }
[dir="rtl"] .chara-card:hover,
[dir="rtl"] .fav-item:hover { box-shadow: -5px 5px 0 var(--fire); }

/* p100 */
[dir="rtl"] .p100-bar-track { box-shadow: -3px 3px 0 var(--ink-20); }
[dir="rtl"] .p100-why-card { box-shadow: -5px 5px 0 var(--ink); }
[dir="rtl"] .p100-why-card:hover { box-shadow: -8px 8px 0 var(--fire); }
[dir="rtl"] .p100-why-card--highlight { box-shadow: -5px 5px 0 var(--ink); }
[dir="rtl"] .p100-why-card--highlight:hover { box-shadow: -8px 8px 0 var(--ink); }
[dir="rtl"] .p100-participant-link:hover .p100-participant-avatar { box-shadow: -3px 3px 0 var(--fire); }

/* p100 / homepage 共通 CTA ボタン */
[dir="rtl"] .cta-fire .btn,
[dir="rtl"] .cta-fire .btn-primary,
[dir="rtl"] .cta-fire .btn-primary.btn-large,
[dir="rtl"] .cta-cta { box-shadow: -7px 7px 0 rgba(26,26,26,0.4); }
[dir="rtl"] .cta-fire .btn-primary:hover,
[dir="rtl"] .cta-fire .btn-primary.btn-large:hover,
[dir="rtl"] .cta-cta:hover { box-shadow: -11px 11px 0 rgba(26,26,26,0.4); }

/* Hero / Mission / Header */
[dir="rtl"] .brand-mark { box-shadow: -3px 3px 0 var(--ink); }
[dir="rtl"] .header-cta:hover { box-shadow: -3px 3px 0 var(--ink); }
[dir="rtl"] .hero-eyebrow { box-shadow: -3px 3px 0 var(--fire); }
[dir="rtl"] .hero-sub .q { box-shadow: -2px 2px 0 rgba(26,26,26,0.18); }
[dir="rtl"] .type-caret { box-shadow: -2px 2px 0 var(--ink); }
[dir="rtl"] .panel { box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .panel:hover { box-shadow: -10px 10px 0 var(--ink); }
[dir="rtl"] .rank-frame { box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .here-flag,
[dir="rtl"] .mission-goal-mark { box-shadow: -2px 2px 0 var(--fire-dark, #b24610); }

/* mp（VoiceCard / StoryCard） */
[dir="rtl"] .mp { box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .mp:hover { box-shadow: -10px 12px 0 var(--ink); }
[dir="rtl"] .mp-thumb { box-shadow: -3px 3px 0 var(--ink); }

/* All-link（一覧 / 関連 stories） */
[dir="rtl"] .all-link { box-shadow: -5px 5px 0 var(--fire); }
[dir="rtl"] .all-link:hover { box-shadow: -8px 8px 0 var(--fire); }

/* homepage btn-primary (mobile breakpoint) */
[dir="rtl"] .btn-primary { box-shadow: -5px 5px 0 var(--ink); }
[dir="rtl"] .btn-primary:hover { box-shadow: -8px 8px 0 var(--ink); }
[dir="rtl"] .btn-primary:active { box-shadow: -1px 1px 0 var(--ink); }

/* story-detail */
[dir="rtl"] .story-detail .story-detail-inner,
[dir="rtl"] .story-detail .story-image img { box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .story-detail .action-btn { box-shadow: -4px 4px 0 var(--fire); }
[dir="rtl"] .story-detail .action-btn:hover { box-shadow: -6px 6px 0 var(--fire); }
[dir="rtl"] .story-detail .action-btn.favorited { box-shadow: -4px 4px 0 var(--ink); }
[dir="rtl"] .story-detail .action-btn.favorited:hover { box-shadow: -6px 6px 0 var(--ink); }
[dir="rtl"] .story-detail .like-cta { box-shadow: -6px 6px 0 var(--fire); }
[dir="rtl"] .story-detail .like-cta-link:hover { box-shadow: -3px 3px 0 var(--ink); }
[dir="rtl"] .story-detail .affiliate-link:hover { box-shadow: -4px 4px 0 var(--fire); }
[dir="rtl"] .story-detail .story-prev-next .prev-next-link:hover { box-shadow: -3px 3px 0 var(--fire); }
[dir="rtl"] .story-detail .story-cta .btn.btn-primary.btn-large { box-shadow: -7px 7px 0 var(--fire); }
[dir="rtl"] .story-detail .story-cta .btn.btn-primary.btn-large:hover { box-shadow: -9px 9px 0 var(--fire); }
[dir="rtl"] .story-detail .story-nav-actions .btn.btn-outline:hover { box-shadow: -3px 3px 0 var(--fire); }
[dir="rtl"] .story-detail .story-nav-actions .btn.btn-primary { box-shadow: -4px 4px 0 var(--fire); }
[dir="rtl"] .story-detail .story-nav-actions .btn.btn-primary:hover { box-shadow: -6px 6px 0 var(--fire); }

/* SVG: チャクラ線の流れを反転（flowing アニメーションも自動反転） */
[dir="rtl"] .chakra-lines { transform: scaleX(-1); }

/* mobile breakpoint 内の v3 影 */
@media (max-width: 720px) {
  [dir="rtl"] .brand-mark { box-shadow: -2px 2px 0 var(--ink); }
  [dir="rtl"] .hero-actions .btn { box-shadow: -3px 3px 0 var(--ink); }
  [dir="rtl"] .hero-actions .btn-outline { box-shadow: -3px 3px 0 var(--fire); }
  [dir="rtl"] .mp { box-shadow: -5px 5px 0 var(--ink); }
  [dir="rtl"] .cta-fire .btn-primary,
  [dir="rtl"] .cta-fire .btn-primary.btn-large { box-shadow: -5px 5px 0 rgba(26,26,26,0.4); }
  [dir="rtl"] .story-detail .story-detail-inner { box-shadow: -4px 4px 0 var(--ink); }
}

/* ── 回遊性機能 ── */

/* わかる！& お気に入りボタン */
/* .story-engagement / .btn-like / .btn-favorite は .story-actions / .action-btn に統合済み */

/* 前後ナビ */
.story-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.prev-next-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fire);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 45%;
  overflow: hidden;
}
.prev-next-link:hover {
  text-decoration: none;
}
.prev-next-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prev-next-arrow {
  flex-shrink: 0;
}
.story-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* カードの既読バッジ & お気に入りボタン */
.badge-read {
  display: inline-block;
  background: #aaa;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
/* お気に入りページ */
.favorites-section { padding: 3rem 0 5rem; min-height: 50vh; }
.favorites-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--space-md); }
.favorites-empty { text-align: center; color: var(--ink-60); padding: 3rem 0; }
.fav-item {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.22s cubic-bezier(.5,1.4,.4,1), box-shadow 0.22s cubic-bezier(.5,1.4,.4,1);
}
.fav-item:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 var(--fire);
  text-decoration: none;
  color: var(--ink);
}
.fav-item-meta { margin-bottom: 0.5rem; }
.fav-item-catchphrase {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 0.5rem;
  quotes: none;
  letter-spacing: -0.005em;
}
.fav-item-name { font-size: 0.85rem; color: var(--ink-60); margin: 0; }

/* ========== Calendar Page ========== */
.calendar-today-section {
  background: var(--ink);
  padding: 2rem 0;
  margin-bottom: 2rem;
  color: #fff;
  border-bottom: 4px solid var(--fire);
}
.today-heading {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.005em;
}
.today-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.today-event {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.today-event-title {
  font-weight: 600;
  font-size: 0.95rem;
}
.today-event-year {
  font-size: 0.8rem;
  opacity: 0.75;
}

.calendar-legend {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--scroll-deep);
  border: 1.5px solid var(--ink-20);
  border-radius: var(--radius);
}
.legend-item {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.legend-real { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.legend-inuniverse { background: #e8eaf6; color: #283593; border: 1px solid #9fa8da; }
.legend-birthday-char { background: #fce4ec; color: #880e4f; border: 1px solid #f48fb1; }
.legend-birthday-va { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }

.calendar-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
.calendar-month {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink-20);
}
.calendar-month-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin: 0;
  border-bottom: 3px solid var(--fire);
  letter-spacing: -0.005em;
}
.month-number {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--fire);
  letter-spacing: -0.02em;
}
.month-label {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
}
.month-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.2);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
}
.calendar-empty {
  padding: 1rem 1.25rem;
  color: var(--ink-60);
  font-size: 0.875rem;
  margin: 0;
}
.calendar-events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.calendar-event {
  display: flex;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px dashed var(--ink-20);
  align-items: flex-start;
}
.calendar-event:last-child { border-bottom: none; }
.calendar-event--real { border-left: 3px solid #e65100; }
.calendar-event--inuniverse { border-left: 3px solid #3949ab; }
.calendar-event--birthday_char { border-left: 3px solid #c2185b; }
.calendar-event--birthday_va { border-left: 3px solid #388e3c; }

.event-date {
  min-width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.event-day {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.event-day-label {
  font-size: 0.7rem;
  color: var(--ink-60);
  font-weight: 700;
}
.event-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.event-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.event-badge--real { background: #fff3e0; color: #e65100; }
.event-badge--inuniverse { background: #e8eaf6; color: #283593; }
.event-badge--birthday_char { background: #fce4ec; color: #880e4f; }
.event-badge--birthday_va { background: #e8f5e9; color: #1b5e20; }

.event-series {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  flex-shrink: 0;
}
.event-series--naruto { background: #fff8e1; color: #f57f17; }
.event-series--boruto { background: #e3f2fd; color: #0d47a1; }
.event-series--both { background: #f3e5f5; color: #4a148c; }

.event-title {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.event-year {
  width: 100%;
  font-size: 0.775rem;
  color: var(--ink-60);
  margin: 0;
  font-weight: 600;
}
.event-desc {
  width: 100%;
  font-size: 0.8rem;
  color: var(--ink-60);
  margin: 0.25rem 0 0;
  line-height: 1.6;
}
.calendar-note {
  font-size: 0.8rem;
  color: var(--ink-60);
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ========== Image hint (submit page) ========== */
.image-hint {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--scroll-deep);
  margin-bottom: 1.5rem;
  box-shadow: 4px 4px 0 var(--ink-20);
}
.image-hint summary {
  padding: 0.875rem 1rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.image-hint summary::-webkit-details-marker { display: none; }
.image-hint[open] summary { border-bottom: 1.5px solid var(--ink-40); }
.image-hint-body {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
}
.image-hint-body ol {
  margin: 0.5rem 0 1rem 1.25rem;
}
.image-hint-note {
  font-size: 0.8rem;
  color: var(--ink-60);
  margin-top: 0.5rem;
}

/* ========== Guidelines steps ========== */
.gl-steps {
  margin: 0.75rem 0 1rem 1.25rem;
  line-height: 1.9;
}
.gl-steps li {
  margin-bottom: 0.5rem;
}

/* ========== Guidelines positive note ========== */
.gl-positive-note {
  background: var(--scroll-deep);
  border-inline-start: 4px solid var(--fire);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: var(--ink-80);
}

/* ========== Image hint URL example ========== */
.image-hint-url-example {
  background: #fff;
  border: 1.5px solid var(--ink-20);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.825rem;
  line-height: 1.8;
}
.image-hint-url-example code {
  background: var(--scroll-deep);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.image-hint-url-ok { color: #2e7d32; }
.image-hint-url-ng { color: #c62828; }
.image-hint-url-tip { color: var(--fire); margin-top: 0.5rem; }

/* ============ データページ ============ */
.data-page .page-subtitle {
  color: var(--ink-60);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.data-section h2::after { content: none; }

.data-note {
  font-size: 0.875rem;
  color: var(--ink-60);
  margin-bottom: 1.25rem;
}

/* ドーナツグラフ */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.donut-hole {
  position: absolute;
  inset: 30px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink-20);
}

.donut-total {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.donut-label-sm {
  font-size: 0.75rem;
  color: var(--ink-60);
}

.donut-legend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-name {
  flex: 1;
  font-weight: 700;
  color: var(--ink-80);
}

.legend-count {
  color: var(--ink-60);
  font-size: 0.85rem;
  font-weight: 700;
}

/* 棒グラフ */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 10rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
}

.bar-label {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 700;
}

.bar-track {
  background: var(--scroll-deep);
  border: 1.5px solid var(--ink-20);
  border-radius: 100px;
  height: 18px;
  overflow: hidden;
}

.bar-track--sm {
  height: 12px;
  flex: 1;
}

.bar-fill {
  height: 100%;
  background: var(--fire);
  border-radius: 100px;
  transition: width 0.4s ease;
}

.bar-count {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--ink);
  text-align: end;
}

/* キャラランキング */
.chara-ranking {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chara-row {
  display: grid;
  grid-template-columns: 1.8rem 8rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
}

.chara-rank {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chara-rank--top {
  background: var(--fire);
  color: #fff;
}

.chara-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* 国リスト */
.country-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.country-row {
  display: grid;
  grid-template-columns: 7rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
}

.country-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* Wish カード */
.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wish-card {
  display: block;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink-20);
  transition: transform 0.22s cubic-bezier(.5,1.4,.4,1), box-shadow 0.22s cubic-bezier(.5,1.4,.4,1);
}

.wish-card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 var(--fire);
  text-decoration: none;
}

.wish-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.wish-name {
  font-size: 0.8rem;
  color: var(--ink-60);
}

.data-cta {
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .donut-wrap { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .bar-row { grid-template-columns: 7rem 1fr 2rem; }
  .chara-row { grid-template-columns: 1.8rem 6rem 1fr 2rem; }
  .country-row { grid-template-columns: 5.5rem 1fr 2rem; }
  .wish-grid { grid-template-columns: 1fr; }
}

/* ============ アフィリエイトセクション ============ */
.affiliate-section {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 10px;
}

.affiliate-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.affiliate-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.affiliate-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid var(--color-border, #e0e0e0);
  transition: border-color 0.15s, background 0.15s;
}

.affiliate-link:hover {
  border-color: var(--fire);
  background: var(--scroll);
}

.affiliate-shop {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.affiliate-link.affiliate-bandai .affiliate-shop    { background: #0033a0; }
.affiliate-link.affiliate-animate .affiliate-shop   { background: #e60026; }
.affiliate-link.affiliate-jump-store .affiliate-shop { background: #e8621a; }
.affiliate-link.affiliate-mercari .affiliate-shop   { background: #ff0211; }
.affiliate-link.affiliate-amazon .affiliate-shop    { background: #f90; color: #111; }

.affiliate-title {
  flex: 1;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affiliate-arrow {
  color: var(--ink-60);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ============ アクセシビリティ: アニメーション軽減設定 ============ */
/* 旧 Hero 固有の reduced-motion ルールは v3 Hero では不要のため撤去。
   v3 CSS 末尾の @media (prefers-reduced-motion: reduce) が全体を制御。*/

/* ============================================================
   PROJECT 100 — トップページバナー
   ============================================================ */
.p100-banner {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
  border-top: none;
  border-bottom: 4px solid var(--fire);
}
.p100-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.p100-banner-left {
  flex-shrink: 0;
}
.p100-banner-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fire);
  margin: 0 0 0.25rem;
}
.p100-banner-nums {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  line-height: 1;
}
.p100-banner-current {
  font-size: 2.9rem;
  font-weight: 900;
  color: var(--fire);
  letter-spacing: -0.03em;
}
.p100-banner-sep {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.4);
}
.p100-banner-total {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.6);
}
.p100-banner-unit {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-inline-start: 0.1em;
}
.p100-banner-next {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.p100-banner-next strong {
  color: var(--fire);
  font-weight: 800;
}
.p100-banner-right {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.p100-banner-bar-wrap {
  width: 100%;
}
.p100-banner-track {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: visible;
}
.p100-banner-fill {
  height: 100%;
  background: var(--fire);
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 4px;
}
.p100-banner-marker {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,0.3);
  transform: translateX(-50%);
}
.p100-banner-link {
  align-self: flex-end;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.p100-banner-link:hover {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .p100-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .p100-banner-right {
    width: 100%;
  }
  .p100-banner-current { font-size: 2.2rem; }
}

/* ============================================================
   PROJECT 100 — 専用LPページ (/project100)
   ============================================================ */

/* p100 ヒーロー — homepage `.cta` と同じ視覚言語（放射線 + 巨大文字 + ink stamp pill） */
.p100-hero {
  position: relative; overflow: hidden;
  padding: 120px 32px 132px;
  background: var(--fire);
  color: #fff;
  text-align: center;
}
.p100-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-conic-gradient(from 180deg at 50% 50%,
      transparent 0deg, transparent 2deg,
      rgba(26,26,26,0.12) 2deg, rgba(26,26,26,0.12) 2.4deg);
  mask-image: radial-gradient(circle at 50% 50%, transparent 180px, #000 520px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 180px, #000 520px);
}
.p100-hero::after {
  content: '100';
  position: absolute; right: -80px; bottom: -140px;
  font-weight: 900; font-size: 560px;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.08;
  letter-spacing: -0.04em;
  pointer-events: none;
  font-family: var(--font-body);
}
.p100-hero-inner {
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 2;
}
.p100-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; background: var(--ink); color: var(--fire);
  font-weight: 900; font-size: 12px; letter-spacing: 0.24em;
  border-radius: 999px; margin-bottom: 28px;
  transform: rotate(-2deg);
}
.p100-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: #fff;
  word-break: keep-all; overflow-wrap: break-word;
}
.p100-title .box {
  display: inline-block; background: var(--ink); color: var(--fire);
  padding: 0 14px; margin: 0 2px;
  transform: rotate(-1deg);
}
.p100-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.9; font-weight: 500;
  max-width: 640px; margin: 0 auto;
  color: rgba(255,255,255,0.95);
}
.p100-desc .nb {
  display: inline-block; font-weight: 900; color: #fff;
  background: rgba(26,26,26,0.25); padding: 2px 10px; border-radius: 6px;
  margin: 2px 4px;
}
@media (max-width: 720px) {
  .p100-hero { padding: 56px 20px 64px; }
  .p100-hero::before { mask-image: radial-gradient(circle at 50% 50%, transparent 100px, #000 360px); -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 100px, #000 360px); }
  .p100-hero::after { font-size: 320px; right: -80px; bottom: -120px; }
  .p100-eyebrow { margin-bottom: 18px; padding: 6px 14px; font-size: 11px; }
  .p100-title { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 18px; }
  .p100-desc { font-size: 0.95rem; line-height: 1.85; }
}

.p100-counter-section {
  padding: 4rem 0 3rem;
  background: var(--scroll);
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.p100-counter {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.p100-numbers-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2em;
  margin-bottom: 1.75rem;
  animation: p100-pop-in 0.85s cubic-bezier(.5,1.6,.4,1) both;
}
@keyframes p100-pop-in {
  0% { opacity: 0; transform: scale(0.78); }
  100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .p100-numbers-row { animation: none; }
}
.p100-big-num {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--fire);
  line-height: 1;
  letter-spacing: -0.04em;
}
.p100-slash {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--ink-40);
  font-weight: 700;
}
.p100-goal-num {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.p100-unit {
  font-size: 1.5rem;
  color: var(--ink-60);
  margin-inline-start: 0.1em;
}
.p100-bar-wrap {
  margin-bottom: 1rem;
}
.p100-bar-track {
  position: relative;
  height: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink-20);
}
.p100-bar-fill {
  position: relative;
  height: 100%;
  background: var(--fire);
  border-radius: 999px 0 0 999px;
  width: var(--p100-pct, 0%);
  min-width: 6px;
  animation: p100-bar-grow 1.5s 0.35s cubic-bezier(.5,1.4,.4,1) both;
  overflow: hidden;
}
@keyframes p100-bar-grow {
  0% { width: 0; }
  100% { width: var(--p100-pct, 0%); }
}
/* バー上を流れる光（チャクラ） */
.p100-bar-fill::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  animation: p100-bar-shine 2.6s 1.9s cubic-bezier(.4,0,.2,1) infinite;
  transform: translateX(-100%);
}
@keyframes p100-bar-shine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(380%); }
}
@media (prefers-reduced-motion: reduce) {
  .p100-bar-fill { animation: none; width: var(--p100-pct, 0%); }
  .p100-bar-fill::after { animation: none; opacity: 0; }
}
.p100-bar-marker {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 18px;
  background: var(--vermilion);
  transform: translateX(-50%);
}
.p100-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--ink-60);
  font-weight: 700;
}
.p100-next-label {
  font-size: 0.9rem;
  color: var(--ink-80);
  margin-top: 0.25rem;
}
.p100-next-label strong {
  color: var(--fire);
  font-weight: 800;
}

.p100-why-section {
  padding: 4.5rem 0;
  background: var(--scroll);
}
.p100-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.p100-why-card {
  position: relative;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 5px 5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(.5,1.4,.4,1), box-shadow 0.28s cubic-bezier(.5,1.4,.4,1);
}
.p100-why-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 8px 8px 0 var(--fire);
}
.p100-why-num {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--fire-soft);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.p100-why-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  color: var(--fire);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p100-why-icon svg {
  width: 100%;
  height: 100%;
}
.p100-why-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.p100-why-card h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--fire);
  margin-top: 0.7rem;
  border-radius: 1px;
}
.p100-why-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-80);
  margin: 0;
}
.p100-why-fact {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  letter-spacing: 0.02em;
}
.p100-why-fact-dot {
  color: var(--fire);
  font-size: 0.5rem;
}
.p100-why-flags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.flag-svg {
  width: 18px;
  height: 12px;
  border-radius: 1.5px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  display: block;
  flex-shrink: 0;
}

/* 3枚目のハイライト（オレンジ反転） */
.p100-why-card--highlight {
  background: var(--fire);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--ink);
}
.p100-why-card--highlight:hover {
  box-shadow: 8px 8px 0 var(--ink);
}
.p100-why-card--highlight .p100-why-num {
  color: rgba(255, 255, 255, 0.22);
}
.p100-why-card--highlight .p100-why-icon {
  color: #fff;
}
.p100-why-card--highlight h3 {
  color: #fff;
}
.p100-why-card--highlight h3::after {
  background: rgba(255, 255, 255, 0.7);
}
.p100-why-card--highlight p {
  color: rgba(255, 255, 255, 0.94);
}
.p100-why-card--highlight .p100-why-fact {
  color: rgba(255, 255, 255, 0.88);
}
.p100-why-card--highlight .p100-why-fact strong {
  color: #fff;
  font-weight: 700;
}

/* 20×5 ドットグリッド（幅いっぱいに展開） */
.p100-dot-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  margin: 1rem 0 0.4rem;
  width: 100%;
}
.p100-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.p100-dot--filled {
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.55);
}

/* Fade-up アニメ */
@media (prefers-reduced-motion: no-preference) {
  .p100-why-card {
    opacity: 0;
    transform: translateY(16px);
    animation: p100-fade-up 0.6s ease forwards;
  }
  .p100-why-card:nth-child(1) { animation-delay: 0.00s; }
  .p100-why-card:nth-child(2) { animation-delay: 0.12s; }
  .p100-why-card:nth-child(3) { animation-delay: 0.24s; }
}
@keyframes p100-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.p100-milestones-section {
  padding: 3.5rem 0;
}
.p100-section-heading {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 2rem;
  text-align: center;
  letter-spacing: -0.005em;
}
.p100-milestones {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  flex-direction: column;
}
.p100-milestone {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--ink-20);
}
.p100-milestone:last-child { border-bottom: none; }
.p100-milestone-indicator {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 2px solid var(--ink);
}
.p100-milestone--done .p100-milestone-indicator {
  background: var(--ink);
  color: #fff;
}
.p100-milestone--next .p100-milestone-indicator {
  background: var(--fire);
  color: #fff;
  box-shadow: 0 0 0 3px var(--fire-soft);
}
.p100-milestone--upcoming .p100-milestone-indicator {
  background: #fff;
  color: var(--ink-40);
  border-color: var(--ink-40);
  border-style: dashed;
}
.p100-milestone-body { flex: 1; }
.p100-milestone-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.p100-milestone-count {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--fire);
  letter-spacing: -0.01em;
}
.p100-milestone--upcoming .p100-milestone-count { color: var(--ink-40); }
.p100-milestone-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}
.p100-milestone--upcoming .p100-milestone-label { color: var(--ink-40); }
.p100-milestone-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.p100-milestone-badge--done {
  background: var(--fire-soft);
  color: var(--ink);
  border-color: var(--fire);
}
.p100-milestone-badge--next {
  background: var(--fire);
  color: #fff;
  border-color: var(--ink);
}
.p100-milestone-reward {
  font-size: 0.82rem;
  color: var(--ink-60);
  margin: 0;
}
.p100-milestone--upcoming .p100-milestone-reward { color: var(--ink-40); }

.p100-participants-section {
  padding: 3.5rem 0;
}
.p100-participants-count {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fire);
  margin-inline-start: 0.4em;
}
.p100-participants-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-60);
  margin: -1.2rem 0 1.75rem;
}
.p100-participants-wall {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.p100-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 4.5rem;
}
.p100-participant-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
}
.p100-participant-link:hover .p100-participant-avatar {
  background: var(--ink);
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--fire);
}
.p100-participant-avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--fire);
  color: #fff;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.p100-participant-avatar--empty {
  background: #fff;
  color: var(--ink-40);
  border: 2px dashed var(--ink-40);
}
.p100-participant-name {
  font-size: 0.7rem;
  color: var(--ink-80);
  text-align: center;
  max-width: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.p100-participant-name--empty { color: var(--ink-40); }

/* ================================================================
   V3 DESIGN SYSTEM (naruboru v3 — 2026-04-24 UI/UX リデザイン)
   正典: public/_preview/ninja-gathering.v3-final.html
   参照: public/_preview/_v3-refs/*.css（機能別に分割抽出済み）
   ================================================================ */
  /* ========== HEADER ========== */
  .header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(255, 243, 236, 0.88);
    border-bottom: 2px solid var(--ink);
  }
  .header-inner {
    max-width: 1280px; margin: 0 auto; padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .brand { display: flex; align-items: center; gap: 12px; font-weight: 900; text-decoration: none; }
  .brand-mark {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--fire); color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-serif); font-size: 22px; font-weight: 700;
    border: 2.5px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transform: rotate(-6deg);
    transition: transform 0.3s cubic-bezier(.5,1.6,.4,1);
    flex-shrink: 0;
  }
  .brand:hover .brand-mark { transform: rotate(6deg) scale(1.08); }
  .brand-text .jp { font-size: 17px; letter-spacing: 0.04em; }
  .brand-text .sub { font-size: 10px; letter-spacing: 0.14em; color: var(--fire-dark); font-weight: 700; margin-top: 2px; }

  .nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; }
  .nav a { text-decoration: none; position: relative; padding: 4px 0; }
  .nav a::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0;
    background: var(--fire); transition: width 0.3s ease;
  }
  .nav a:hover::after { width: 100%; }

  .header-cta {
    background: var(--ink); color: #fff;
    padding: 9px 20px; border-radius: 999px; font-weight: 900;
    text-decoration: none; font-size: 12.5px; letter-spacing: 0.06em;
    line-height: 1.3;
    border: 2px solid var(--ink); transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .header-cta:hover { background: var(--fire); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
  .menu-btn { display: none; background: transparent; border: 2px solid var(--ink); border-radius: 8px; width: 40px; height: 40px; padding: 0; cursor: pointer; }
  .menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }

  /* v3 リンク色の上書き（グローバル `a { color: var(--fire) }` が干渉するため明示的に反転）*/
  .header a:not(.header-cta),
  .header .brand,
  .header .nav a,
  .brand-text .jp { color: var(--ink); }
  .brand-text .jp { font-weight: 900; }
  .header .nav a:hover { color: var(--fire); text-decoration: none; }
  .header a:hover { text-decoration: none; }
  /* CTA ボタンは常に白文字（通常・hover 共通）*/
  .header .header-cta,
  .header .header-cta:hover,
  .header .header-cta:focus,
  .header .header-cta:visited { color: #fff; }

  /* ========== HERO ========== */
  .hero {
    position: relative; overflow: hidden;
    padding: 96px 32px 120px;
    background: var(--scroll);
  }
  .speed-lines {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
      repeating-conic-gradient(from 0deg at 70% 40%,
        transparent 0deg, transparent 1.2deg,
        rgba(26,26,26,0.07) 1.2deg, rgba(26,26,26,0.07) 1.6deg);
    mask-image: radial-gradient(circle at 70% 40%, transparent 220px, #000 600px);
    -webkit-mask-image: radial-gradient(circle at 70% 40%, transparent 220px, #000 600px);
  }
  .hero-kanji {
    position: absolute; right: -40px; top: 40px; z-index: 0;
    font-family: var(--font-serif); font-weight: 700;
    font-size: 42vw; line-height: 0.8; color: var(--fire);
    opacity: 0.06; pointer-events: none;
    animation: float 12s ease-in-out infinite;
  }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

  /* 背景装飾（スワール・葉は廃止済み、grain テクスチャのみ） */

  /* grain テクスチャ: 印刷物・紙の質感 */
  .hero::after {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none; z-index: 5;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
  }

  .hero-inner {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 900; letter-spacing: 0.18em;
    color: var(--ink); background: #fff;
    padding: 8px 16px; border-radius: 999px;
    border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--fire);
    margin-bottom: 28px;
    transform: rotate(-2deg);
  }
  .hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }

  .hero-title {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 1.15; letter-spacing: -0.01em;
    font-weight: 900; margin-bottom: 28px;
    position: relative;
    word-break: keep-all; overflow-wrap: break-word;
    max-width: max-content;
  }
  .hero-title .line-1,
  .hero-title .line-2 {
    display: block;
    text-align: start;
    white-space: nowrap;
  }
  .hero-title .line-2 { margin-top: 0.06em; }
  .hero-title .hl {
    position: relative; display: inline-block; color: var(--fire);
  }
  .hero-title .hl::after {
    content: ''; position: absolute; left: -4px; right: -4px; bottom: 4px; height: 14px;
    background: var(--ink); z-index: -1; transform: skewX(-8deg);
  }
  .hero-title .underline-swoop {
    stroke: var(--fire); stroke-width: 5; fill: none;
    display: block; margin-top: -6px; margin-inline-start: 4px; max-width: 100%;
  }

  /* タイピング風レベレーション: JS が .t-chunk を .t-char に分割し順に is-on */
  .hero-title[data-typing]:not([data-ready]) .t-chunk { visibility: hidden; }
  .hero-title[data-typing] .t-char {
    opacity: 0;
    transition: opacity 0.12s ease-out;
  }
  .hero-title[data-typing] .t-char.is-on { opacity: 1; }
  /* .hl の黒塗り下地は、最初の一字が出るまで待つ */
  .hero-title[data-typing] .hl::after {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .hero-title[data-typing] .hl.is-revealed::after { opacity: 1; }

  .type-caret {
    display: inline-block;
    width: 3px; height: 0.82em;
    background: var(--fire);
    vertical-align: -0.08em;
    margin: 0 2px;
    border-radius: 1px;
    box-shadow: 2px 2px 0 var(--ink);
    animation: typeCaret 0.9s step-end infinite;
  }
  .type-caret.fade-out {
    animation: none;
    opacity: 0;
    transition: opacity 0.6s ease;
  }
  @keyframes typeCaret {
    50% { opacity: 0; }
  }
  /* 初期表示: data-ready 前 caret は非表示（初期レイアウトシフト抑止） */
  .hero-title[data-typing]:not([data-ready]) .type-caret { display: none; }

  @media (prefers-reduced-motion: reduce) {
    .hero-title[data-typing] .t-char { opacity: 1; transition: none; }
    .hero-title[data-typing] .hl::after { opacity: 1; transition: none; }
    .type-caret { animation: none; display: none; }
  }

  .hero-sub {
    font-size: 1.05rem; line-height: 1.9; color: #333;
    margin-bottom: 36px; max-width: 540px;
  }
  .hero-sub .q {
    display: inline-block; background: #fff; padding: 2px 10px; border-radius: 6px;
    border: 1.5px solid var(--ink); font-weight: 700; margin: 0 2px 4px 0;
    box-shadow: 2px 2px 0 rgba(26,26,26,0.18);
  }

  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border-radius: 999px;
    font-weight: 900; font-size: 15px; letter-spacing: 0.04em;
    line-height: 1.3;
    text-decoration: none; cursor: pointer;
    border: 2.5px solid var(--ink);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    font-family: var(--font-body);
    min-height: 48px;
    min-width: 220px;
  }
  .btn-primary {
    background: var(--fire); color: #fff;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
  .btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

  .hero-arrow { transition: transform 0.25s cubic-bezier(.5,1.6,.4,1); }
  .btn:hover .hero-arrow { transform: translateX(6px); }

  .hero-stack { position: relative; height: 460px; }
  .panel {
    position: absolute; background: #fff;
    border: 2.5px solid var(--ink);
    border-radius: 14px; padding: 20px 22px;
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 0.3s cubic-bezier(.5,1.6,.4,1);
    cursor: pointer;
  }
  .panel:hover { transform: translate(-3px, -3px) rotate(0deg) !important; box-shadow: 10px 10px 0 var(--ink); z-index: 10; }
  .panel-1 { top: 0;    left: 0;    width: 78%; transform: rotate(-3deg); }
  .panel-2 { top: 150px; right: 0;  width: 80%; transform: rotate(2.5deg); }
  .panel-3 { bottom: 0; left: 8%;   width: 84%; transform: rotate(-1.5deg); }
  .panel .series {
    display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: 0.14em;
    padding: 3px 10px; background: var(--fire); color: #fff; border-radius: 999px;
    border: 1.5px solid var(--ink); margin-bottom: 10px;
  }
  .panel .series.boruto { background: #fff4e6; color: var(--fire); border-color: var(--fire); }
  .panel p {
    font-size: 15px; font-weight: 700; line-height: 1.55;
    position: relative; padding-inline-start: 22px;
  }
  .panel p::before {
    content: '「'; position: absolute; inset-inline-start: 0; top: -2px;
    font-family: var(--font-serif); color: var(--fire); font-weight: 700;
  }
  .panel .meta { font-size: 11px; color: #888; margin-top: 10px; font-weight: 700; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
  .flag-svg { width: 18px; height: 12px; border: 1px solid rgba(0,0,0,0.15); border-radius: 2px; display: inline-block; flex-shrink: 0; }

  .scroll-cue {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    font-size: 11px; letter-spacing: 0.3em; color: var(--ink); font-weight: 900;
    text-align: center; z-index: 3;
  }
  .scroll-cue .line { display: block; width: 1px; height: 36px; background: var(--ink); margin: 10px auto 0; animation: drop 1.6s ease-in-out infinite; transform-origin: top; }
  @keyframes drop { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

  /* ========== MISSION / PROJECT 100 (scroll theme) ========== */
  .mission {
    background:
      radial-gradient(circle at 15% 25%, rgba(232,98,26,0.10) 0%, transparent 42%),
      radial-gradient(circle at 88% 80%, rgba(232,98,26,0.08) 0%, transparent 45%),
      linear-gradient(180deg, var(--scroll-deep) 0%, var(--scroll-dark) 100%);
    color: var(--ink);
    padding: 96px 32px 120px; position: relative; overflow: hidden;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }
  /* 和紙繊維テクスチャ */
  .mission::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
      repeating-linear-gradient(92deg, transparent 0 40px, rgba(26,26,26,0.025) 40px 41px),
      repeating-linear-gradient(2deg, transparent 0 60px, rgba(26,26,26,0.02) 60px 61px);
    mix-blend-mode: multiply;
  }
  .mission-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
  .mission-header {
    max-width: 720px; margin: 0 0 48px; text-align: start;
  }
  .mission-eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 900; letter-spacing: 0.22em;
    color: #fff; background: var(--ink);
    padding: 6px 14px; border-radius: 4px;
    margin-bottom: 18px;
    transform: rotate(-1.5deg);
  }
  .mission-title {
    font-size: clamp(1.8rem, 4.2vw, 3.2rem); font-weight: 900; line-height: 1.2; letter-spacing: -0.01em;
  }
  .mission-title .fire { color: var(--fire); }
  .mission-lead {
    font-size: 1rem; line-height: 1.9; max-width: 720px; margin: 10px 0 0;
    color: var(--ink-80);
  }
  .mission-lead strong { color: var(--ink); }

  /* 絵巻本体: 和紙テクスチャ + 朱の太縁（木軸・エンドキャップは撤廃し、最小記号で絵巻性を表現）*/
  .rank-frame {
    background: #fff;
    border: 2.5px solid var(--ink);
    border-radius: 14px;
    padding: 40px 44px 36px;
    position: relative;
    margin: 0 auto;
    max-width: 1080px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .rank-top { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 18px; gap: 24px; flex-wrap: wrap; }
  .rank-count {
    font-family: var(--font-body); font-weight: 900;
    font-size: 52px; line-height: 1; color: var(--ink);
  }
  .rank-count .big { color: var(--fire); font-size: 84px; letter-spacing: -0.03em; }
  .rank-count .slash { color: var(--ink-40); margin: 0 6px; }
  .rank-count .goal { font-size: 26px; color: var(--ink-60); }

  /* 進捗バー + 「いまここ」マーカー（ビューポート進入でぐいーんと伸びる）*/
  .rank-progress {
    position: relative;
    width: 100%; max-width: 640px;
    margin: 56px auto 40px;
    height: 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--scroll-deep, #f0ebe0);
  }
  .rank-progress-fill {
    position: absolute; inset: 0;
    width: 0;
    background: var(--fire);
    border-radius: 999px;
    overflow: hidden;
    transition: width 1.4s cubic-bezier(0.22, 1.4, 0.36, 1);
  }
  .rank-progress.in-view .rank-progress-fill { width: var(--progress); }

  /* 「いまここ」マーカー: 塗りのインライン終端に追従（inset-inline-start を独立アニメ）*/
  .rank-progress-here {
    position: absolute;
    top: 50%; inset-inline-start: 0%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition:
      inset-inline-start 1.4s cubic-bezier(0.22, 1.4, 0.36, 1),
      opacity 0.35s ease 1.0s;
  }
  .rank-progress.in-view .rank-progress-here {
    inset-inline-start: var(--progress);
    opacity: 1;
  }
  /* RTL では right アンカーになるため translate を反転して中心揃え */
  [dir="rtl"] .rank-progress-here {
    transform: translate(50%, -50%);
  }
  .here-dot {
    display: block;
    width: 18px; height: 18px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--fire);
  }
  .rank-progress.in-view .here-dot {
    animation: hereRipple 1.8s ease-out infinite 1.1s;
  }
  .here-flag {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) rotate(-2.5deg);
    background: var(--ink); color: #fff;
    font-size: 11px; font-weight: 900; letter-spacing: 0.16em;
    padding: 5px 10px; border-radius: 4px;
    white-space: nowrap;
    box-shadow: 2px 2px 0 var(--fire-dark, #b24610);
  }
  .here-flag::after {
    content: '';
    position: absolute;
    left: 50%; top: 100%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border: 5px solid transparent;
    border-top-color: var(--ink);
  }

  /* ゴール「100」スタンプ */
  .rank-progress-goal {
    position: absolute;
    inset-inline-start: calc(100% + 14px); top: 50%;
    transform: translateY(-50%) rotate(4deg);
  }
  .goal-mark {
    display: inline-block;
    font-family: var(--font-serif, serif);
    font-weight: 900; font-size: 16px;
    color: var(--vermilion, #c43f1a);
    border: 2.5px solid var(--vermilion, #c43f1a);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  @keyframes hereRipple {
    0%   { box-shadow: 0 0 0 0 rgba(232, 98, 26, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(232, 98, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 98, 26, 0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .rank-progress-fill { transition: none; }
    .rank-progress-here { transition: none; opacity: 1; }
    .rank-progress.in-view .here-dot { animation: none; }
  }

  /* PROJECT 100 詳細ページへの導線 */
  .rank-more {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 24px;
    font-size: 12px; font-weight: 900; letter-spacing: 0.14em;
    color: var(--ink-80); text-decoration: none;
    border-bottom: 1.5px solid var(--ink-20);
    padding-bottom: 3px;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .rank-more:hover { color: var(--fire); border-color: var(--fire); }
  .rank-count .goal .unit {
    font-size: 0.62em; color: var(--ink-60); font-weight: 700;
    margin-inline-start: 2px; letter-spacing: 0.04em;
  }
  .rank-meta {
    text-align: end; font-size: 13px; line-height: 1.7; letter-spacing: 0.04em;
  }
  .rank-meta .label { font-size: 11px; font-weight: 900; letter-spacing: 0.22em; color: var(--fire-dark); }
  .rank-meta .val { font-size: 20px; font-weight: 900; color: var(--ink); display: block; margin-top: 4px; }
  .rank-meta .val .num { color: var(--fire); }

  /* Chapter ladder — 絵巻場面マーカー × チャクラノード metaphor */
  .ladder {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
    margin-bottom: 36px; position: relative;
  }
  /* 章間チャクラ線（SVG ベジェ・発光）
     ladder の下辺（章マーカー底部の chakra-core 位置）を繋ぐ */
  .chakra-lines {
    position: absolute; left: 0; right: 0; bottom: -14px;
    width: 100%; height: 28px;
    pointer-events: none; z-index: 1;
    overflow: visible;
  }
  .chakra-lines path {
    fill: none; stroke-linecap: round;
    filter: drop-shadow(0 0 3px rgba(232,98,26,0.55));
  }
  .chakra-lines path.flowing {
    stroke: var(--fire); stroke-width: 2.5;
    stroke-dasharray: 6 7;
    animation: chakraflow 3.2s linear infinite;
  }
  .chakra-lines path.dormant {
    stroke: rgba(122,47,8,0.3); stroke-width: 1.2;
    stroke-dasharray: 3 5;
    filter: none;
  }
  @keyframes chakraflow {
    to { stroke-dashoffset: -26; }
  }
  .ladder > .rank-step { z-index: 2; }
  /* 章マーカー: 絵巻の章段（和紙に墨の縦区切り）*/
  .rank-step {
    background: transparent;
    border: none;
    padding: 18px 12px 22px;
    position: relative; text-align: center;
    transition: all 0.3s ease;
  }
  /* 左右の墨縦線（章の区切り）*/
  .rank-step::before {
    content: ''; position: absolute;
    top: 8px; bottom: 8px; right: -7px;
    width: 1px;
    background: repeating-linear-gradient(180deg,
      rgba(122,47,8,0.38) 0 4px,
      transparent 4px 7px);
  }
  .ladder .rank-step:last-child::before { display: none; }
  .rank-step.reached {
    background: linear-gradient(180deg, rgba(232,98,26,0.08), rgba(232,98,26,0.18));
  }
  .rank-step.reached .seal { color: #c04e10; }
  .rank-step.current .seal { color: var(--fire); text-shadow: 0 0 12px rgba(232,98,26,0.4); }
  .rank-step .seal-wrap {
    position: relative; width: 56px; height: 56px; margin: 0 auto 10px;
  }
  /* 章番号墨文字ラベル */
  .rank-step .seal {
    position: relative; z-index: 2;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 700; color: var(--ink-40); font-size: 22px;
    transition: all 0.3s ease;
  }
  /* チャクラコア（章マーカー底部の単一発光点） */
  .rank-step .chakra-core {
    position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    border: 1.5px dashed var(--ink-20); background: var(--scroll);
    z-index: 3;
  }
  .rank-step.reached .chakra-core {
    border-style: solid; border-color: var(--fire); background: var(--fire);
    box-shadow: 0 0 10px rgba(232,98,26,0.55), 0 0 22px rgba(232,98,26,0.25);
  }
  .rank-step.current .chakra-core {
    animation: corepulse 1.8s ease-in-out infinite;
  }
  @keyframes corepulse {
    0%,100% { transform: translateX(-50%) scale(1);   box-shadow: 0 0 10px rgba(232,98,26,0.55), 0 0 22px rgba(232,98,26,0.25); }
    50%     { transform: translateX(-50%) scale(1.35); box-shadow: 0 0 18px rgba(232,98,26,0.85), 0 0 36px rgba(232,98,26,0.45); }
  }
  .rank-step .rank-ch {
    font-family: var(--font-body); font-weight: 900;
    font-size: 11px; letter-spacing: 0.22em; color: var(--ink-40);
    margin-bottom: 4px;
  }
  .rank-step.reached .rank-ch { color: var(--fire-dark); }
  .rank-step .rank-name {
    font-size: 13px; font-weight: 900; letter-spacing: 0.06em;
    color: var(--ink-80);
  }
  .rank-step.reached .rank-name { color: var(--ink); }
  .rank-step.current .rank-name { color: var(--fire-dark); }
  .rank-step .rank-num {
    font-size: 10px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.1em;
    color: var(--ink-40); margin-top: 6px;
  }
  .rank-step.reached .rank-num { color: var(--fire); }
  .rank-step.current::after {
    content: 'いま ここ'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--fire); color: #fff; font-size: 9.5px; font-weight: 900;
    padding: 3px 10px; border-radius: 999px; letter-spacing: 0.14em;
    border: 1.5px solid var(--ink);
    white-space: nowrap;
  }

  .country-row { margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .country-row .label { font-size: 11px; font-weight: 900; letter-spacing: 0.22em; color: var(--ink-60); }
  .flags-mini { display: flex; gap: 8px; flex-wrap: wrap; }
  .flag-chip {
    padding: 6px 14px; background: var(--scroll);
    border: 1.5px solid var(--ink-20);
    border-radius: 999px; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    color: var(--ink);
  }
  .flag-chip.dashed { border-style: dashed; color: var(--ink-80); }

  /* ========== MANGA PANELS (STORIES) ========== */
  .stories {
    padding: 96px 32px 120px;
    background: linear-gradient(180deg, var(--scroll-dark) 0%, var(--scroll) 100%);
    position: relative; overflow: hidden;
  }
  .stories::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(26,26,26,0.07) 1px, transparent 1.5px);
    background-size: 22px 22px;
    pointer-events: none;
  }
  .stories-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
  .stories-header { margin-bottom: 56px; }
  .stories-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 0.22em;
    color: #fff; background: var(--ink); padding: 6px 14px; border-radius: 4px;
    margin-bottom: 18px; transform: rotate(-1.5deg);
  }
  .stories-title {
    font-size: clamp(1.8rem, 4.2vw, 3.2rem); font-weight: 900; line-height: 1.2;
    max-width: 900px;
  }
  .stories-title .stroke {
    color: var(--ink);
  }

  .manga-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(80px, auto);
    gap: 22px;
  }
  .mp {
    background: #fff; border: 2.5px solid var(--ink);
    border-radius: 14px; padding: 22px 22px 20px;
    position: relative;
    box-shadow: 6px 6px 0 var(--ink);
    transition: transform 0.25s cubic-bezier(.5,1.4,.4,1), box-shadow 0.25s ease;
    text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column;
    min-width: 0;
    max-width: 100%;
  }
  .mp:hover {
    transform: translate(-3px, -4px) rotate(var(--hr, 0deg));
    box-shadow: 10px 12px 0 var(--ink);
    z-index: 5;
  }
  .mp .mp-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
  }
  .mp .chip {
    font-size: 10px; font-weight: 900; letter-spacing: 0.14em;
    padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mp .chip.naruto { background: var(--fire); color: #fff; }
  .mp .chip.boruto { background: #fff4e6; color: var(--fire); border: 1.5px solid var(--fire); }
  .mp .chip.two    { background: #fff; color: var(--ink); }
  .mp .shuriken {
    width: 22px; height: 22px; color: var(--ink);
    opacity: 0.35; flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(.3,1.8,.3,1), opacity 0.25s;
  }
  .mp:hover .shuriken { transform: rotate(360deg); opacity: 1; color: var(--fire); }
  .mp .q {
    font-size: 17px; font-weight: 900; line-height: 1.55; letter-spacing: -0.005em;
    flex: 1; margin-bottom: 16px;
  }
  .mp .q .pop {
    background: var(--fire); color: #fff; padding: 0 4px; border-radius: 3px;
  }
  .mp .byline { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
  .mp .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--fire); color: #fff;
    display: grid; place-items: center; font-weight: 900; font-size: 14px;
    border: 2px solid var(--ink); flex-shrink: 0;
  }
  .mp .byline .who { line-height: 1.3; }
  .mp .byline .who .name { font-weight: 900; display: block; }
  .mp .byline .who .place { font-size: 10px; color: #888; letter-spacing: 0.08em; }

  /* 画像付き投稿のみ: カード右上に「ピン留めポラロイド」を absolute 配置
     カード高さに一切影響を与えず、v3 のピン留め紙片言語と整合させる */
  .mp-thumb {
    position: absolute;
    top: -14px;
    inset-inline-end: -14px;
    width: 82px;
    height: 62px;
    border: 2.5px solid var(--ink);
    border-radius: 4px;
    background: #fff;
    box-shadow: 3px 3px 0 var(--ink);
    overflow: hidden;
    transform: rotate(3deg);
    transition: transform 0.25s cubic-bezier(.5,1.4,.4,1);
    z-index: 4;
  }
  .mp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .mp-thumb-tag {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--ink-60, #555);
    background: var(--scroll-deep, #f0ebe0);
  }
  .mp-thumb.mp-thumb-fallback img { display: none; }
  .mp-thumb.mp-thumb-fallback .mp-thumb-tag { display: flex; }
  .mp:hover .mp-thumb { transform: rotate(0deg) translate(-2px, -2px); }
  /* 画像付きカードは装飾の手裏剣を隠す（ポラロイドと役割重複）*/
  .mp[data-has-image] .shuriken { display: none; }

  /* DOM 順: a, c, d, e, g, h, i, j, b
     段1: a(5) + c(3) + d(4) = 12
     段2: e(5) + g(4) + h(3) = 12
     段3: i(4) + j(4) + b(4) = 12 */
  .mp-a { grid-column: span 5; --hr: -1deg;   transform: rotate(-1deg); }
  .mp-c { grid-column: span 3; --hr: -0.5deg; transform: rotate(-0.5deg); margin-top: 12px; }
  .mp-d { grid-column: span 4; --hr: 0.8deg;  transform: rotate(0.8deg); margin-top: -8px; }
  .mp-e { grid-column: span 5; --hr: -1.3deg; transform: rotate(-1.3deg); }
  .mp-g { grid-column: span 4; --hr: -0.8deg; transform: rotate(-0.8deg); margin-top: -10px; }
  .mp-h { grid-column: span 3; --hr: 1.5deg;  transform: rotate(1.5deg); margin-top: 6px; }
  .mp-i { grid-column: span 4; --hr: -0.6deg; transform: rotate(-0.6deg); }
  .mp-j { grid-column: span 4; --hr: 0.7deg;  transform: rotate(0.7deg); margin-top: -8px; }
  .mp-b { grid-column: span 4; --hr: 1.2deg;  transform: rotate(1.2deg); margin-top: 14px; }

  .mp-img {
    background: linear-gradient(135deg, #ffd9b8 0%, #ffbb85 100%);
    color: var(--ink);
    align-items: flex-start; justify-content: space-between;
  }
  .mp-img .hatched {
    position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(26,26,26,0.06) 0 2px, transparent 2px 8px);
  }
  .mp-img .bigq {
    font-family: var(--font-serif); font-size: 140px; line-height: 0.7; color: var(--ink); opacity: 0.12;
    position: absolute; top: 0; inset-inline-end: 12px; pointer-events: none;
  }
  .mp-img .caption {
    position: relative; z-index: 1;
    font-size: 19px; font-weight: 900; line-height: 1.55;
    width: 100%; max-width: 100%;
    text-align: start;
    padding-inline-end: 56px;
    box-sizing: border-box;
  }
  .mp-img .caption .row { display: block; }
  .mp-img .caption .row + .row { margin-top: 0.18em; }
  .mp-img .caption em { font-style: normal; color: var(--fire-dark); }
  .mp-img .cap-meta {
    position: relative; z-index: 1;
    font-size: 11px; font-weight: 900; letter-spacing: 0.18em;
  }

  .stories-foot {
    display: flex; justify-content: center; margin-top: 56px;
  }
  .all-link {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 900; color: var(--ink); text-decoration: none;
    padding: 14px 28px; background: #fff;
    border: 2.5px solid var(--ink); border-radius: 999px;
    box-shadow: 5px 5px 0 var(--fire);
    transition: all 0.2s ease;
    min-height: 48px;
  }
  .all-link:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--fire); }

  /* ========== CTA ========== */
  .cta {
    position: relative; overflow: hidden;
    padding: 120px 32px 132px;
    background: var(--fire);
    color: #fff;
  }
  .cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      repeating-conic-gradient(from 180deg at 50% 50%,
        transparent 0deg, transparent 2deg,
        rgba(26,26,26,0.12) 2deg, rgba(26,26,26,0.12) 2.4deg);
    mask-image: radial-gradient(circle at 50% 50%, transparent 180px, #000 520px);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 180px, #000 520px);
  }
  .cta::after {
    content: '忍';
    position: absolute; right: -80px; bottom: -140px;
    font-family: var(--font-serif); font-weight: 700; font-size: 560px;
    line-height: 0.8; color: var(--ink); opacity: 0.08;
    pointer-events: none;
  }
  .cta-inner {
    max-width: 900px; margin: 0 auto;
    position: relative; z-index: 2; text-align: center;
  }
  .cta-stamp {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; background: var(--ink); color: var(--fire);
    font-weight: 900; font-size: 12px; letter-spacing: 0.24em;
    border-radius: 999px; margin-bottom: 28px;
    transform: rotate(-2deg);
  }
  .cta h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 900; line-height: 1.15; letter-spacing: -0.01em;
    margin-bottom: 28px;
    word-break: keep-all; overflow-wrap: break-word;
  }
  .cta h2 .box {
    display: inline-block; background: var(--ink); color: var(--fire);
    padding: 0 14px; margin: 0 2px;
    transform: rotate(-1deg);
  }
  .cta-lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.9; font-weight: 500;
    max-width: 640px; margin: 0 auto 44px;
    color: rgba(255,255,255,0.95);
  }
  .cta-lead .row { display: block; }
  .cta-lead .row + .row { margin-top: 8px; }
  .cta-lead .nb {
    display: inline-block; font-weight: 900; color: #fff;
    background: rgba(26,26,26,0.25); padding: 2px 10px; border-radius: 6px;
    margin: 2px 4px;
  }

  .cta-cta {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 22px 48px; border-radius: 999px;
    background: var(--ink); color: #fff;
    font-size: 18px; font-weight: 900; letter-spacing: 0.04em;
    text-decoration: none;
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 rgba(26,26,26,0.4);
    transition: all 0.22s cubic-bezier(.5,1.4,.4,1);
    min-height: 56px;
  }
  .cta-cta:hover {
    background: #fff; color: var(--ink);
    transform: translate(-3px,-3px);
    box-shadow: 11px 11px 0 rgba(26,26,26,0.4);
  }
  .cta-cta .arrow { transition: transform 0.25s ease; }
  .cta-cta:hover .arrow { transform: translateX(8px); }

  .cta-note {
    margin-top: 28px; font-size: 13px;
    color: rgba(255,255,255,0.85); font-weight: 500;
  }
  .cta-note a { color: #fff; border-bottom: 2px solid rgba(255,255,255,0.85); padding-bottom: 1px; }
  .cta-note a:hover { border-bottom-color: #fff; }

  /* ========== FOOTER (現行公開版と一致) ========== */
  .foot {
    background: var(--ink); color: rgba(255,255,255,0.6);
    padding: 48px 32px; text-align: center;
    font-size: 13px;
  }
  .foot .brand-mark { display: inline-grid; margin-bottom: 16px; }
  .foot .links { display: flex; gap: 20px 28px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
  .foot a { color: rgba(255,255,255,0.75); text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; }
  .foot a:hover { color: var(--fire); }
  .foot .note { font-size: 11px; color: rgba(255,255,255,0.5); }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-stack { height: 440px; max-width: 460px; margin: 0 auto; }
    .nav { display: none; }
    .menu-btn { display: block; }
    /* ハンバーガー展開時のドロップダウン */
    .header { position: relative; }
    .nav.nav-open {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--scroll);
      padding: 12px 24px 20px;
      border-top: 2.5px solid var(--ink);
      box-shadow: 0 8px 0 var(--fire), 0 8px 24px rgba(26,26,26,0.12);
      z-index: 100;
    }
    .nav.nav-open a { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--ink-20); }
    .nav.nav-open a:last-of-type { border-bottom: none; }
    .nav.nav-open .lang-switcher { padding-top: 8px; }
    .nav.nav-open .lang-menu { position: static; box-shadow: none; border: 1px solid var(--ink-20); margin-top: 8px; }
    .rank-frame { padding: 32px 36px 28px; margin: 0 auto; max-width: none; }
    .manga-grid { grid-template-columns: repeat(6, 1fr); }
    .mp-a,.mp-b,.mp-c,.mp-d,.mp-e,.mp-g,.mp-h,.mp-i,.mp-j { grid-column: span 6; margin-top: 0; margin-left: 0; }
  }
  @media (max-width: 640px) {
    .preview-banner { font-size: 10px; letter-spacing: 0.14em; padding: 6px 10px; gap: 10px; }
    .header-inner { padding: 10px 16px; gap: 10px; }
    .header-cta { padding: 9px 16px; font-size: 12px; }
    .brand-text .jp { font-size: 15px; }
    .brand-text .sub { display: none; }
    .brand-mark { width: 38px; height: 38px; font-size: 19px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); }
    .hero-title .underline-swoop { stroke-width: 3; }

    .hero { padding: 64px 20px 80px; overflow: hidden; }
    /* 装飾 SVG はモバイルで間引く（密度過多回避） */
    .hero-eyebrow { font-size: 10.5px; padding: 6px 12px; letter-spacing: 0.14em; }
    .hero-title { font-size: clamp(1.7rem, 7.5vw, 2.4rem); line-height: 1.25; max-width: 100%; }
    .hero-title .line-1, .hero-title .line-2 { white-space: nowrap; }
    /* モバイル: 「瞬間」装飾を黒塗り skew から fire の細い下線に置き換え視認性を確保 */
    .hero-title .hl::after {
      left: 0; right: 0; bottom: -2px; height: 3px;
      background: var(--fire); transform: none;
    }
    .hero-sub { font-size: 0.95rem; line-height: 1.85; margin-bottom: 28px; }
    .hero-actions .btn { width: 100%; justify-content: center; padding: 11px 18px; min-width: 0; min-height: 44px; font-size: 14.5px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
    .hero-actions .btn-outline { box-shadow: 3px 3px 0 var(--fire); }
    .hero-actions { gap: 10px; margin-bottom: 28px; }
    /* モバイルでは右側プレビューカードは下部 "最新の投稿" に任せるため非表示 */
    .hero-stack { display: none; }
    .scroll-cue { display: none; }

    .mission { padding: 40px 14px 48px; }
    .mission-header { text-align: start; max-width: none; margin-bottom: 20px; }
    .mission-lead { margin: 10px 0 0; max-width: none; }
    .rank-frame {
      padding: 28px 20px 24px; margin: 0 14px; max-width: none;
    }
    .rank-progress { max-width: 100%; margin: 36px auto 28px; }
    .rank-progress-goal { inset-inline-start: auto; inset-inline-end: 0; top: calc(100% + 8px); transform: rotate(4deg); }
    .goal-mark { font-size: 13px; padding: 1px 6px; }
    .rank-count { font-size: 44px; }
    .rank-count .big { font-size: 72px; }
    .rank-count .goal { font-size: 22px; }
    .rank-meta { text-align: start; width: 100%; }
    .rank-meta .val { font-size: 16px; }
    .rank-meta .val .num { white-space: normal; }
    /* モバイル: ladder を1列・横並びシンプル化 */
    .ladder {
      display: flex; flex-direction: column; gap: 2px;
      margin-bottom: 4px;
    }
    .rank-step {
      padding: 8px 10px;
      display: grid;
      grid-template-columns: 48px 1fr auto 14px;
      grid-template-areas:
        "seal ch  num core"
        "seal name name core";
      align-items: center; column-gap: 14px; row-gap: 2px;
      text-align: start;
    }
    .rank-step::before { display: none; }
    .rank-step .seal-wrap { grid-area: seal; margin: 0; width: 48px; height: 48px; }
    .rank-step .seal      { width: 48px; height: 48px; font-size: 20px; }
    .rank-step .rank-ch   { grid-area: ch;   margin: 0; font-size: 10px; }
    .rank-step .rank-name { grid-area: name; font-size: 14px; }
    .rank-step .rank-num  { grid-area: num;  margin: 0; font-size: 10.5px; }
    .rank-step .chakra-core {
      grid-area: core; position: static; transform: none;
      width: 12px; height: 12px;
    }
    .rank-step.current .chakra-core { animation: corepulseStatic 1.8s ease-in-out infinite; }
    @keyframes corepulseStatic {
      0%,100% { transform: scale(1);    box-shadow: 0 0 8px rgba(232,98,26,0.55); }
      50%     { transform: scale(1.35); box-shadow: 0 0 14px rgba(232,98,26,0.85); }
    }
    /* current の "いま ここ" バッジはモバイルでは step の外側上に押し出し、文字との被りを回避 */
    .ladder .rank-step.current { margin-top: 14px; }
    .rank-step.current::after {
      top: -12px; left: 12px; transform: none;
      font-size: 9px; padding: 2px 8px; letter-spacing: 0.12em;
    }
    /* モバイルでは章間チャクラ線（横方向ベジェ）は意味を失うため非表示 */
    .chakra-lines { display: none; }
    .country-row { gap: 10px; margin-top: 18px; }
    .country-row .label { width: 100%; }
    /* Project 100 縦圧縮追加項目 */
    .rank-top { margin-bottom: 14px; gap: 12px; }

    .stories { padding: 72px 20px 88px; }
    .stories-header { margin-bottom: 40px; }
    .stories-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .manga-grid { grid-template-columns: 1fr; gap: 18px; }
    .mp-a,.mp-b,.mp-c,.mp-d,.mp-e,.mp-g,.mp-h,.mp-i,.mp-j {
      grid-column: 1 / -1; transform: none; margin-top: 0; margin-inline-start: 0; --hr: 0deg;
    }
    /* モバイルは 3 カードに絞り込み（最初の声 + 短い声 + 投稿 CTA）*/
    .mp-d, .mp-e, .mp-g, .mp-h, .mp-i, .mp-j { display: none; }
    .mp { padding: 18px 18px 16px; box-shadow: 5px 5px 0 var(--ink); }
    .mp .q { font-size: 16px; }
    .mp-img .caption { font-size: 16px; padding-inline-end: 24px; }
    .mp-img .bigq { font-size: 100px; }

    .cta { padding: 56px 20px 64px; }
    .cta-stamp { margin-bottom: 18px; padding: 6px 14px; font-size: 11px; }
    .cta h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-bottom: 18px; }
    .cta-lead { font-size: 0.95rem; line-height: 1.85; margin-bottom: 28px; }
    .cta-cta {
      padding: 14px 22px; font-size: 15px;
      width: 100%; max-width: 100%;
      justify-content: center; box-sizing: border-box;
      min-height: 50px; gap: 10px;
      box-shadow: 5px 5px 0 rgba(26,26,26,0.4);
    }
    .cta-note { margin-top: 18px; font-size: 12px; }
    .cta::after { font-size: 320px; right: -80px; bottom: -120px; }

    .foot { padding: 36px 20px; }
    .foot .links { gap: 14px 20px; }
  }

  /* ========== REDUCED MOTION (a11y) ========== */
  /* 本ファイルのアニメはすべて「可視状態からの微動」のみ（0%→1 のフェードインは無し）。
     そのため duration 短縮のみで不可視事故は発生しない。transform/opacity の強制上書きはしない。*/
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

/* ============================================================
   V3 DESIGN SYSTEM — STORY DETAIL
   v3 リデザイン後の体験談詳細ページスタイル本体。
   （旧 .story-detail block と .v3 prefix は Phase 7+ で撤廃済み）
   ============================================================ */

.story-detail { background: var(--scroll); padding: 48px 0 64px; }
.story-detail .story-detail-inner { background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); padding: 40px 44px 48px; max-width: 820px; margin: 0 auto; position: relative; }

/* パンくず */
.story-detail .breadcrumb { color: var(--ink-60); font-size: 13px; font-weight: 600; margin-bottom: 28px; }
.story-detail .breadcrumb a { color: var(--ink-80); text-decoration: none; transition: color 0.15s; }
.story-detail .breadcrumb a:hover { color: var(--fire); }
.story-detail .breadcrumb span { color: var(--ink); font-weight: 700; }

/* ヘッダー */
.story-detail .story-header { margin-bottom: 36px; }
.story-detail .story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.story-detail .story-tags .tag-large { font-size: 12px; font-weight: 900; letter-spacing: 0.14em; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--fire); color: #fff; text-transform: uppercase; }
.story-detail .story-tags .tag-large.tag-media { background: #fff4e6; color: var(--fire); border-color: var(--fire); }
.story-detail .story-catchphrase { font-family: var(--font-body); font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; line-height: 1.5; color: var(--ink); margin: 0 0 20px; letter-spacing: -0.005em; word-break: keep-all; overflow-wrap: break-word; }
.story-detail .story-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 700; color: var(--ink-60); align-items: center; }
.story-detail .story-meta .story-name { color: var(--ink); font-size: 15px; font-weight: 900; }
.story-detail .story-meta .story-meta-item { position: relative; padding-inline-start: 14px; }
.story-detail .story-meta .story-meta-item::before { content: '·'; position: absolute; inset-inline-start: 0; color: var(--ink-40); }
.story-detail .story-meta .story-date { color: var(--ink-60); font-weight: 500; }

.story-detail .translation-notice { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 0.14em; padding: 6px 14px; border-radius: 4px; background: var(--ink); color: #fff; margin-top: 20px; transform: rotate(-1.2deg); }
.story-detail .translation-notice.translation-notice--translated { background: var(--fire); }

/* 画像 */
.story-detail .story-image { margin: 36px 0 36px; }
.story-detail .story-image img { width: 100%; border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink); display: block; }
.story-detail .story-image-caption { font-size: 12px; font-weight: 600; color: var(--ink-60); margin-top: 12px; text-align: center; }

/* 本文 */
.story-detail .story-body { margin: 36px 0; }
.story-detail .story-section { margin-bottom: 32px; }
.story-detail .story-section h2 { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: 0.22em; padding: 6px 14px; border-radius: 4px; background: var(--ink); color: #fff; margin-bottom: 16px; transform: rotate(-1.5deg); text-transform: none; }
.story-detail .story-section p { color: var(--ink-80); line-height: 1.9; font-size: 15px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: break-word; }
.story-detail .story-section--wish h2 { background: var(--fire); }

/* ひとこと */
.story-detail .story-message { background: var(--fire-soft); border-inline-start: 4px solid var(--fire); border-radius: 4px; padding: 22px 28px; margin: 36px 0; }
.story-detail .story-message .message-label { font-size: 11px; font-weight: 900; letter-spacing: 0.22em; color: var(--fire); margin-bottom: 10px; text-transform: uppercase; }
.story-detail .story-message .message-quote { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.7; margin: 0; }

/* アクションバー */
.story-detail .story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 24px; }
.story-detail .action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-family: var(--font-body); font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 4px 4px 0 var(--fire); transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s; }
.story-detail .action-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fire); }
.story-detail .action-btn .action-icon { display: inline-flex; }
.story-detail .action-btn.liked,
.story-detail .action-btn.favorited { background: var(--fire); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.story-detail .action-btn.liked:hover,
.story-detail .action-btn.favorited:hover { box-shadow: 6px 6px 0 var(--ink); }

/* わかる！CTA バブル */
.story-detail .like-cta { background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--fire); padding: 18px 22px; margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.story-detail .like-cta.like-cta--visible { opacity: 1; transform: translateY(0); }
.story-detail .like-cta-text { color: var(--ink); font-weight: 700; font-size: 14px; flex: 1; margin: 0; }
.story-detail .like-cta-link { display: inline-flex; align-items: center; padding: 8px 16px; background: var(--fire); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 900; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.story-detail .like-cta-link:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.story-detail .like-cta-close { background: none; border: none; cursor: pointer; color: var(--ink-60); font-size: 20px; line-height: 1; padding: 0 4px; font-weight: 900; }
.story-detail .like-cta-close:hover { color: var(--fire); }

/* アフィリエイト */
.story-detail .affiliate-section { margin: 40px -44px; padding: 36px 44px; background: var(--scroll-deep); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.story-detail .affiliate-label { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: 0.22em; padding: 6px 14px; border-radius: 4px; background: var(--ink); color: #fff; margin-bottom: 18px; transform: rotate(-1.2deg); text-transform: uppercase; }
.story-detail .affiliate-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.story-detail .affiliate-link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.story-detail .affiliate-link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--fire); }
.story-detail .affiliate-shop { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; padding: 3px 9px; border-radius: 3px; background: var(--fire); color: #fff; flex-shrink: 0; }
.story-detail .affiliate-title { flex: 1; font-size: 14px; font-weight: 700; }
.story-detail .affiliate-arrow { color: var(--ink-60); font-weight: 900; }

/* 関連体験談 */
.story-detail .related-stories { margin: 48px 0 36px; }
.story-detail .related-stories-title { font-family: var(--font-body); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; color: var(--ink); margin-bottom: 24px; letter-spacing: 0.02em; }
.story-detail .related-stories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

/* 前後ナビ */
.story-detail .story-prev-next { display: flex; justify-content: space-between; gap: 14px; margin: 40px 0 28px; flex-wrap: wrap; }
.story-detail .story-prev-next .prev-next-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; max-width: 48%; }
.story-detail .story-prev-next .prev-next-link:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--fire); }
.story-detail .story-prev-next .prev-next-arrow { font-weight: 900; color: var(--fire); }
.story-detail .story-prev-next .prev-next-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 投稿CTA / ナビアクション */
.story-detail .story-cta { text-align: center; margin: 44px 0 0; padding: 32px 24px; background: var(--scroll-deep); border: 2px solid var(--ink); border-radius: 12px; }
.story-detail .story-cta .btn.btn-primary.btn-large { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 900; text-decoration: none; box-shadow: 7px 7px 0 var(--fire); transition: transform 0.15s, box-shadow 0.15s; }
.story-detail .story-cta .btn.btn-primary.btn-large:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--fire); }
.story-detail .story-cta-sub { display: flex; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.story-detail .btn-text-link { background: none; border: none; cursor: pointer; color: var(--ink-60); font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.15s; font-family: var(--font-body); padding: 4px 8px; }
.story-detail .btn-text-link:hover { color: var(--fire); }

/* 多言語詳細ページの .story-nav-actions（.btn.btn-outline 含む） */
.story-detail .story-nav { text-align: center; margin: 44px 0 0; }
.story-detail .story-nav-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.story-detail .story-nav-actions .btn { display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none; border: 2px solid var(--ink); transition: transform 0.15s, box-shadow 0.15s; cursor: pointer; font-family: var(--font-body); }
.story-detail .story-nav-actions .btn.btn-outline { background: #fff; color: var(--ink); }
.story-detail .story-nav-actions .btn.btn-outline:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--fire); }
.story-detail .story-nav-actions .btn.btn-primary { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--fire); }
.story-detail .story-nav-actions .btn.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fire); }

/* モバイル調整 */
@media (max-width: 720px) {
  .story-detail .story-detail-inner { padding: 28px 22px 32px; box-shadow: 4px 4px 0 var(--ink); }
  .story-detail .affiliate-section { margin: 32px -22px; padding: 28px 22px; }
  .story-detail .story-meta { gap: 10px; }
  .story-detail .story-meta .story-meta-item { padding-inline-start: 0; }
  .story-detail .story-meta .story-meta-item::before { display: none; }
  .story-detail .story-prev-next { flex-direction: column; }
  .story-detail .story-prev-next .prev-next-link { max-width: 100%; justify-content: space-between; }
}
