/* =========================================================
   クロノ・トリガー考察Wiki  共通スタイル

   組み立ては ff10-wiki（ff10.wiki）と同じ。部品の名前と構造をそろえてある。
   違うのは配色とヒーローだけで、そこはこの作品に寄せている。

   テーマ：夜の空（深い紺）／振り子の金／ラヴォスの深紅
   ========================================================= */

/* ---------- カラーパレット ---------- */
:root {
  --c-deep:    #101828;   /* 夜の紺：ヘッダー・フッター */
  --c-dark:    #1b2438;   /* ナビ・見出し */
  --c-main:    #2f5d9e;   /* リンク・主要ボタン */
  --c-light:   #4b8fd0;   /* ホバー・アクセント */
  --c-line:    #d8dee8;   /* 罫線・淡い背景 */
  --c-bg:      #eef0f5;   /* ページ背景 */
  --c-paper:   #fdfcf8;   /* コンテンツ背景 */
  --gold:      #c9a227;   /* 振り子の金 */
  --gold-dark: #8a6d12;   /* 明るい地の上で 4.5:1 を満たす金。文字色はこちら */
  --crimson:   #a8323e;   /* ラヴォスの深紅。現在地の印など、差すところだけ */
  --c-glow:    #ffd9a0;   /* ゲートの光 */
  --text:      #1f2329;
  --text-sub:  #5a6270;
  --white:     #ffffff;

  /* 時代の色。年代バッジと「時代からたどる」で使う。
     作品の骨格が「時代を行き来すること」なので、色分けがそのまま案内になる。 */
  --era-prehistory: #a4642a;
  --era-antiquity:  #7b5ea7;
  --era-middle:     #3f7d52;
  --era-present:    #2f6fae;
  --era-future:     #5c7a8a;
  --era-end:        #b08d1f;

  --radius: 6px;
  --shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  --font-title: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(ellipse at top, rgba(58, 160, 216, 0.10), transparent 60%),
    var(--c-bg);
}
a { color: var(--c-main); text-decoration: none; }
a:hover { color: var(--c-light); text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(143, 227, 255, 0.18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(143, 227, 255, 0.12), transparent 30%),
    linear-gradient(180deg, var(--c-deep) 0%, var(--c-dark) 100%);
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--c-glow); }
.logo-mark {
  font-size: 30px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 180, 90, 0.8);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.12em;
  font-weight: bold;
}
.logo-sub {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.site-search {
  flex: 1;
  display: flex;
  max-width: 520px;
  margin-left: auto;
}
.site-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  font-size: 14px;
}
.site-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.site-search input:focus { outline: none; background: rgba(255, 255, 255, 0.18); }
.site-search button {
  padding: 8px 16px;
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gold);
  color: var(--c-deep);
  font-weight: bold;
  cursor: pointer;
}
.site-search button:hover { background: #e6c86e; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-size: 20px;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* =========================================================
   グローバルナビ
   ========================================================= */
.global-nav {
  background: var(--c-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.global-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
.global-nav a {
  display: block;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  border-bottom: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.global-nav a:hover,
.global-nav a.current {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: var(--gold);
  color: var(--white);
  text-decoration: none;
}

/* =========================================================
   ヒーロー（トップページ）
   ========================================================= */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 72px 20px 110px;
  overflow: hidden;
  /* 夜の空。ゲートの光が中央から差す。
     ff10-wiki は水面から深海への青だが、この作品は「時の裂け目」に寄せている。 */
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(255, 217, 160, 0.30), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(75, 143, 208, 0.35), transparent 70%),
    linear-gradient(180deg, #1d2a44 0%, #172236 40%, #131a2b 72%, #101828 100%);
}
/* 星。粒を疑似要素で散らすだけで、画像も Canvas も使わない */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.3px 1.3px at 28% 12%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.8px 1.8px at 44% 30%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.2px 1.2px at 63% 16%, rgba(255,255,255,.60), transparent),
    radial-gradient(1.7px 1.7px at 78% 27%, rgba(255,255,255,.80), transparent),
    radial-gradient(1.3px 1.3px at 89% 14%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 20% 62%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.4px 1.4px at 71% 58%, rgba(255,255,255,.45), transparent);
}
/* 振り子。ヒーローの中央でゆっくり揺れる */
.hero-pendulum {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 62px;
  margin-left: -1px;
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(201,162,39,0), rgba(201,162,39,.55));
  animation: pendulum-swing 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-pendulum::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(201, 162, 39, .85);
}
@keyframes pendulum-swing {
  0%, 100% { transform: rotate(-14deg); }
  50%      { transform: rotate(14deg); }
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-catch {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 0 0 8px;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: 36px;
  margin: 0 0 16px;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55), 0 0 40px rgba(143, 227, 255, 0.35);
}
.hero-lead {
  font-size: 15px;
  margin: 0 0 28px;
  opacity: 0.94;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--gold);
  color: var(--c-deep);
  box-shadow: 0 4px 14px rgba(212, 180, 90, 0.45);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
/* ---------- 区切りの弧（ヒーロー下端・フッター上端）----------
   ff10-wiki は波だが、この作品では振り子の軌跡にしている。
   動かさず、線だけで引く。 */
.hero-edge {
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 70px;
  z-index: 1;
  pointer-events: none;
}
.hero-edge svg { display: block; width: 100%; height: 100%; }
.hero-edge .fill { fill: var(--c-bg); }
.hero-edge .arc {
  fill: none;
  stroke: rgba(201, 162, 39, 0.45);
  stroke-width: 2;
}

.footer-arc {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 80px;
  pointer-events: none;
}
.footer-arc svg { display: block; width: 100%; height: 100%; }
.footer-arc .arc { fill: none; stroke-width: 2; }
.footer-arc .arc-1 { stroke: rgba(201, 162, 39, 0.40); }
.footer-arc .arc-2 { stroke: rgba(168, 50, 62, 0.35); }

/* =========================================================
   メインレイアウト（3カラム）
   ========================================================= */
.layout {
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}
.layout.layout-2col { grid-template-columns: 220px minmax(0, 1fr); }

/* ---------- サイドバー ---------- */
.side-box {
  background: var(--white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.side-title {
  margin: 0;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--white);
  background: linear-gradient(90deg, var(--c-dark), var(--c-main));
  border-left: 4px solid var(--gold);
}
.side-menu {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.side-menu li a {
  display: block;
  padding: 6px 14px 6px 26px;
  font-size: 13.5px;
  position: relative;
  color: var(--text);
}
.side-menu li a::before {
  content: "›";
  position: absolute;
  left: 13px;
  color: var(--c-light);
  font-weight: bold;
}
.side-menu li a:hover {
  background: var(--c-bg);
  color: var(--c-main);
  text-decoration: none;
}
.aeon-list li a::before { content: "✦"; color: var(--gold); font-size: 10px; top: 9px; }

.update-list, .rank-list {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
}
.update-list { list-style: none; }
.update-list li { padding: 4px 0; border-bottom: 1px dashed var(--c-line); }
.update-list li:last-child { border-bottom: none; }
.update-list .tag { margin-right: 7px; }  /* 自動分のカテゴリー名と題名の間隔（.column-feed の pill と同じ感覚） */
.update-list time {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
}
.rank-list { padding-left: 32px; }
.rank-list li { padding: 3px 0; }
.rank-list li::marker { color: var(--gold-dark); font-weight: bold; }

.info-table { width: 100%; font-size: 14px; }
.info-table th, .info-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 34%;
  background: var(--c-bg);
  color: var(--c-dark);
  font-weight: bold;
  white-space: nowrap;
}

/* =========================================================
   メインコンテンツ（Wiki記事風）
   ========================================================= */
.content {
  background: var(--white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 28px 32px;
  min-width: 0;
}
.wiki-section { margin-bottom: 36px; }
.wiki-section:last-child { margin-bottom: 0; }

/* 見出し */
.section-title,
.content h2 {
  font-size: 22px;
  margin: 8px 0 16px;
  padding: 6px 12px;
  color: var(--white);
  background: linear-gradient(90deg, var(--c-dark) 0%, var(--c-main) 70%, var(--c-light) 100%);
  border-left: 5px solid var(--gold);
  border-radius: 3px;
  position: relative;
}
.content h3 {
  font-size: 19px;
  margin: 28px 0 12px;
  padding: 4px 10px;
  color: var(--c-dark);
  background: var(--c-bg);
  border-left: 4px solid var(--c-light);
  border-bottom: 1px solid var(--c-line);
}
.content h4 {
  font-size: 17px;
  margin: 20px 0 8px;
  padding-bottom: 3px;
  color: var(--c-dark);
  border-bottom: 2px dotted var(--c-light);
}
.content p { margin: 0 0 14px; }

/* パンくず */
.breadcrumb {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--c-light); }

/* 記事ヘッダー */
.article-header {
  border-bottom: 2px solid var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
}
.article-header h1 {
  font-family: var(--font-title);
  font-size: 28px;
  margin: 0 0 4px;
  color: var(--c-deep);
}
.article-meta { font-size: 12px; color: var(--text-sub); }
.article-meta span + span::before { content: "｜"; margin: 0 6px; }

/* 目次 */
.toc {
  display: inline-block;
  min-width: 260px;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 12px 20px 12px 16px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 13.5px;
}
.toc-title {
  font-weight: bold;
  color: var(--c-dark);
  margin-bottom: 6px;
}
.toc ol { margin: 0; padding-left: 1.6em; }
.toc ol ol { margin-top: 2px; }
.toc li { padding: 1px 0; }

/* インフォボックス（記事右上） */
.infobox {
  float: right;
  width: 280px;
  margin: 0 0 18px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-paper);
  font-size: 12.5px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.infobox-title {
  padding: 8px 12px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: var(--white);
  background: linear-gradient(90deg, var(--c-dark), var(--c-main));
  border-bottom: 2px solid var(--gold);
}
.infobox-image {
  display: block;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 56px;
  background:
    radial-gradient(circle at 50% 40%, rgba(143, 227, 255, 0.4), transparent 45%),
    linear-gradient(180deg, var(--c-main), var(--c-deep));
}
.infobox table { width: 100%; }
.infobox th, .infobox td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.infobox th { width: 36%; background: var(--c-bg); color: var(--c-dark); white-space: nowrap; }
.infobox tr:last-child th, .infobox tr:last-child td { border-bottom: none; }

/* テーブル */
.wiki-table {
  width: 100%;
  margin: 0 0 20px;
  font-size: 15px;
  border: 1px solid var(--c-line);
}
.wiki-table th, .wiki-table td {
  padding: 8px 12px;
  border: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.wiki-table thead th {
  background: linear-gradient(180deg, var(--c-main), var(--c-dark));
  color: var(--white);
  font-weight: bold;
  white-space: nowrap;
}
.wiki-table tbody th {
  background: var(--c-bg);
  color: var(--c-dark);
  white-space: nowrap;
}
.wiki-table tbody tr:nth-child(even) { background: #f7fbfe; }
.wiki-table tbody tr:hover { background: #e9f4fb; }
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
.table-scroll .wiki-table { margin-bottom: 0; min-width: 560px; }

/* カード（トップページ） */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.card {
  display: block;
  padding: 18px 16px;
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-light);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--c-bg));
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(19, 93, 155, 0.18);
  border-top-color: var(--gold);
  text-decoration: none;
}
.card-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.card h3 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 15px;
  color: var(--c-dark);
  background: none;
  border: none;
}
.card p { margin: 0; font-size: 12.5px; color: var(--text-sub); }

/* チャートリスト */
.chart-list {
  counter-reset: chart;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 16px;
}
.chart-list li {
  counter-increment: chart;
  position: relative;
  padding: 6px 8px 6px 40px;
  border-bottom: 1px dashed var(--c-line);
}
.chart-list li::before {
  content: counter(chart, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 6px;
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: var(--gold-dark);
  border-right: 2px solid var(--gold);
}

/* 注意・補足ボックス */
.note, .warning, .tip {
  margin: 0 0 18px;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius);
  border: 1px solid;
  position: relative;
  font-size: 13.5px;
}
.note::before, .warning::before, .tip::before {
  position: absolute;
  left: 14px;
  top: 10px;
  font-size: 18px;
}
.note    { background: #eef6fb; border-color: #b9dcee; }
.note::before { content: "💡"; }
.tip     { background: #f2f9ee; border-color: #c3e2b6; }
.tip::before { content: "✅"; }
.warning { background: #fff5ec; border-color: #f2cfae; }
.warning::before { content: "⚠️"; }

/* 召喚獣セクションの装飾 */
.aeon-section {
  margin-top: 32px;
  padding-top: 8px;
  clear: both;
}
.aeon-name-en {
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-left: 10px;
  font-weight: normal;
}
.stat-bar {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-light), var(--c-main));
  vertical-align: middle;
  margin-right: 6px;
}

/* 関連ページ */
.related {
  margin-top: 36px;
  padding: 14px 18px;
  border-top: 2px solid var(--gold);
  background: var(--c-paper);
  border-radius: 0 0 var(--radius) var(--radius);
}
.related h2 {
  background: none;
  border: none;
  color: var(--c-dark);
  padding: 0;
  margin: 0 0 8px;
  font-size: 15px;
}
.related ul { margin: 0; columns: 2; font-size: 13.5px; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: 40px;
  background: linear-gradient(180deg, var(--c-dark), var(--c-deep));
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 12.5px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px 24px; }
.footer-links { margin: 0 0 12px; }
.footer-links a {
  color: var(--white);
  margin: 0 12px;
  display: inline-block;   /* 1つのリンクの途中で折り返さない（狭い幅で「ゲ／ーマーズWiki」と割れた。2026-09-18） */
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { margin: 0; opacity: 0.75; line-height: 1.7; }

/* トップへ戻る */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-main);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 50;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--c-light); text-decoration: none; color: var(--white); }

/* =========================================================
   解説・考察（独自記事）
   ========================================================= */
/* ナビ・サイドバーの見出しは金色系で他カテゴリと区別 */
.global-nav .nav-column a { color: var(--gold); }
.global-nav .nav-column a:hover,
.global-nav .nav-column a.current { color: #f0d98a; }
.side-title-column {
  background: linear-gradient(90deg, #4a3a10, var(--gold-dark));
  border-left-color: #f0d98a;
}
.column-list li a::before { content: "✎"; color: var(--gold-dark); font-size: 11px; }

/* タグ */
.tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: bold;
  line-height: 1.6;
  color: var(--white);
  background: var(--text-sub);
  vertical-align: middle;
  white-space: nowrap;
}
.tag-kaisetsu { background: var(--c-main); }
.tag-kousatsu { background: var(--gold-dark); }
.tag-sub { background: var(--white); color: var(--c-dark); border: 1px solid var(--c-line); font-weight: normal; }

/* トップページの新着リスト */
.column-feed { list-style: none; margin: 0 0 8px; padding: 0; }
.column-feed li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--c-line);
  font-size: 14px;
}
.column-feed li a { flex: 1; min-width: 0; }
.column-feed time { font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.more-link { text-align: right; font-size: 13px; margin: 0; }

/* 一覧ページの絞り込みボタン */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.tag-filter button {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--white);
  color: var(--c-dark);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tag-filter button:hover { background: var(--c-bg); }
.tag-filter button.active {
  background: var(--c-main);
  border-color: var(--c-main);
  color: var(--white);
}

/* 一覧ページの記事カード */
.column-list-items { list-style: none; margin: 0; padding: 0; }
/* サムネイルは出さないので1カラム。
   同じカテゴリーの記事が並ぶと同じ絵が続いて読みにくかった。 */
/* タイル。罫線1本の区切りだと見出しが本文の h2 装飾（青い帯）を拾って
   リンク文字が帯に溶け、記事だと分からなかった（2026-09-17）。
   見出しは h2 でも h3 でも同じ見た目にし、帯・色・余白をここで打ち消す */
.column-item {
  margin: 0 0 12px;
  padding: 14px 18px 12px;
  background: var(--white);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  break-inside: avoid;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.column-item:hover,
.column-item:focus-within {
  border-color: var(--c-light);
  border-left-color: var(--c-light);
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.14);
  transform: translateY(-1px);
}
.column-item.is-hidden { display: none; }
.column-item h2,
.column-item h3 {
  margin: 0 0 6px;
  padding: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-dark);
  background: none;
  border: none;
  border-radius: 0;
  position: static;
}
.column-item h2 a,
.column-item h3 a {
  display: block;
  color: var(--c-main);
  text-decoration: none;
  padding-right: 22px;
  position: relative;
}
.column-item h2 a::after,
.column-item h3 a::after {
  content: "›";
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--gold-dark);
  font-weight: bold;
}
.column-item:hover h2 a,
.column-item:hover h3 a { color: var(--c-light); text-decoration: underline; }
.column-item h2 a:focus-visible,
.column-item h3 a:focus-visible { outline: 2px solid var(--c-light); outline-offset: 2px; }
.column-item .tags { margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.column-item p { margin: 0 0 6px; font-size: 14.5px; color: var(--text-sub); }
.column-item .meta { font-size: 12px; color: var(--text-sub); }
.column-item .meta span + span::before { content: "｜"; margin: 0 6px; }
.column-empty { display: none; padding: 24px; text-align: center; color: var(--text-sub); }
.column-empty.is-visible { display: block; }

/* 記事ページ */
.article-header .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.article-lead {
  font-size: 15.5px;
  padding: 14px 18px;
  margin: 0 0 20px;
  border-left: 4px solid var(--gold);
  background: var(--c-paper);
  color: var(--text);
}
.disclaimer {
  margin: 0 0 20px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-sub);
  background: var(--c-bg);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
}
.quote-box {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 4px solid var(--c-light);
  background: var(--c-bg);
  font-style: normal;
  font-size: 14px;
}
.quote-box cite { display: block; margin-top: 4px; font-size: 12px; color: var(--text-sub); }
.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-paper);
  font-size: 13px;
}
.author-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--white);
  background: linear-gradient(180deg, var(--c-main), var(--c-deep));
  border: 2px solid var(--gold);
}
.author-box strong { display: block; color: var(--c-dark); }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-size: 13.5px;
}
.post-nav a {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--white);
}
.post-nav a:hover { background: var(--c-bg); text-decoration: none; }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--text-sub); font-size: 11.5px; }

@media (max-width: 768px) {

  .post-nav { flex-direction: column; }
}

/* =========================================================
   検索・404
   ========================================================= */
.search-inline {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}
.search-inline input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-size: 14px;
}
.search-inline input:focus { outline: 2px solid var(--c-light); border-color: var(--c-light); }
.search-inline .btn { border: none; cursor: pointer; padding: 9px 22px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { padding: 14px 4px; border-bottom: 1px solid var(--c-line); }
.search-title { font-size: 16px; font-weight: bold; }
.search-url { display: block; font-size: 12px; color: var(--text-sub); margin: 2px 0 4px; }
.search-results p { margin: 0; font-size: 13.5px; color: var(--text); }
.search-results mark { background: #fff2b3; color: inherit; padding: 0 2px; }

/* 動きを抑える設定のユーザーにはアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  .hero-pendulum { animation: none; transform: rotate(0deg); }
  html { scroll-behavior: auto; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr); }
  .layout.layout-2col { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar-right { grid-column: 1 / -1; }
  .sidebar-right .side-box { display: inline-block; width: calc(50% - 10px); vertical-align: top; margin-right: 16px; }
  .sidebar-right .side-box:nth-child(2n) { margin-right: 0; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .wiki-table, .post_content .wp-block-table table { font-size: 14px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .site-search { order: 3; width: 100%; max-width: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .global-nav { display: none; }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; padding: 0; }
  .global-nav a { border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-left: 3px solid transparent; }
  .global-nav a:hover, .global-nav a.current { border-left-color: var(--gold); border-bottom-color: rgba(255, 255, 255, 0.08); }

  .hero { padding: 44px 16px 70px; }
  .hero h1 { font-size: 26px; }

  .layout, .layout.layout-2col { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; padding: 0 12px; }
  .sidebar-left { order: 2; }
  .content { order: 1; padding: 16px 16px 24px; }
  .sidebar-right { order: 3; }
  .sidebar-right .side-box { display: block; width: auto; margin-right: 0; }

  .infobox { float: none; width: 100%; margin: 0 0 18px; }
  .related ul { columns: 1; }
}

/* ===== データ表の補助 ===== */
.wiki-table-compact th, .wiki-table-compact td { padding: 4px 8px; font-size: 0.9em; white-space: nowrap; }
.wiki-table ul.plain { margin: 0; padding-left: 1.1em; }
.wiki-table ul.plain li { margin: 2px 0; }

/* ===== お問い合わせフォーム ===== */
.form-msg {
  border: 1px solid;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 22px;
  line-height: 1.7;
}
.form-msg-ok { background: #eef8f1; border-color: #b6ddc3; color: #1d5b34; }
.form-msg-ng { background: #fff3f3; border-color: #edc0c0; color: #8a2b2b; }

.contact-form { margin: 22px 0 8px; }
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--c-dark);
}
.form-row .req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--c-main);
  color: var(--white);
  font-size: 11px;
  font-weight: normal;
  vertical-align: 2px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.form-row textarea { resize: vertical; min-height: 180px; }
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--c-light);
  border-color: var(--c-light);
}
.form-row small { display: block; margin-top: 5px; color: var(--text-sub); font-size: 12.5px; }

/* ハニーポット：画面の外に出す。display:none にはしない */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy { font-size: 13px; color: var(--text-sub); }
.form-actions { margin: 22px 0 6px; }
.form-actions .btn { border: none; cursor: pointer; font-family: inherit; }

/* 送信内容の控え */
.copy-box {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.btn-copy {
  padding: 6px 18px;
  border: 1px solid var(--c-main);
  border-radius: 999px;
  background: var(--white);
  color: var(--c-main);
  font-size: 13px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
}
.btn-copy:hover { background: var(--c-bg); }
/* pre を使うと記事本文のコードブロック装飾を拾うので div + pre-wrap にする */
.copy-body {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.8;
}
.copy-note { margin: 10px 0 0; font-size: 12.5px; color: var(--text-sub); }

/* =========================================================
   このサイトで足した部品
   ff10-wiki には無いもの（時代・ページ送り）だけをここに置く。
   ========================================================= */

/* ---------- 時代 ---------- */
.side-title-era { background: linear-gradient(90deg, var(--c-dark), var(--gold-dark)); }
.era-list li { border: 0 !important; }
.era-list a {
  display: flex !important;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px !important;
  border-left: 4px solid var(--era, var(--c-dark));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.era-list a:hover { background: var(--c-bg); text-decoration: none; }
.era-list .year {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}

/* 時代のタグ。カテゴリーのタグと同じ形で、色だけ時代のもの */
.tag-era[data-era="prehistory"] { background: var(--era-prehistory); }
.tag-era[data-era="antiquity"]  { background: var(--era-antiquity); }
.tag-era[data-era="middle"]     { background: var(--era-middle); }
.tag-era[data-era="present"]    { background: var(--era-present); }
.tag-era[data-era="future"]     { background: var(--era-future); }
.tag-era[data-era="end"]        { background: var(--era-end); }
a.tag:hover { color: var(--white); text-decoration: none; filter: brightness(1.15); }

/* ---------- ページ送り ---------- */
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 28px 0 4px;
}
.pager-item,
.pager-nav {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  font-size: 13.5px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--white);
}
.pager-item:hover,
.pager-nav:hover { background: var(--c-bg); text-decoration: none; }
.pager-item.is-current {
  background: var(--c-main);
  border-color: var(--c-main);
  color: var(--white);
  font-weight: bold;
}
.pager-dots { color: var(--text-sub); padding: 0 2px; }

/* ---------- 記事本文の中で使う印 ---------- */
.notice {
  padding: 18px;
  text-align: center;
  color: var(--text-sub);
  background: var(--c-bg);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
}

/* 読み上げにだけ残す文字 */
.u-visuallyHidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   本文に残っている旧テーマ（WordPress + SWELL）のクラス

   記事は移行時の HTML をそのまま持っている。100本のマークアップを
   書き換えるより、**クラス名だけ受け止めて新しい見た目に寄せる。**
   ここを消すと本文の装飾が素の HTML に戻る。
   ========================================================= */

/* 見出し。ff10-wiki の h2 / h3 と同じ形にそろえる */
.post_content h2.wp-block-heading,
.post_content h3.wp-block-heading,
.post_content h4.wp-block-heading { margin-top: 32px; }

/* 箇条書き */
.post_content .wp-block-list { margin: 0 0 16px; padding-left: 1.4em; }
.post_content .wp-block-list li { margin-bottom: 6px; }
.post_content .is-style--list-under-dashed > li,
.post_content .-list-under-dashed > li {
  border-bottom: 1px dashed var(--c-line);
  padding-bottom: 6px;
}

/* 表。ff10-wiki の .wiki-table と同じ見た目にする */
.post_content .wp-block-table { margin: 0 0 20px; overflow-x: auto; }
.post_content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}
.post_content .wp-block-table.has-fixed-layout table { table-layout: fixed; }
.post_content .wp-block-table th,
.post_content .wp-block-table td {
  border: 1px solid var(--c-line);
  padding: 8px 10px;
  vertical-align: top;
}
.post_content .wp-block-table thead th {
  background: linear-gradient(180deg, var(--c-main), var(--c-dark));
  color: var(--white);
  text-align: left;
  font-weight: bold;
}
.post_content .wp-block-table tbody tr:nth-child(even) { background: var(--c-bg); }

/* 表のヘッダーを画面上端に追従させる（2026-09-17）。
   総当たり表は 40 行あり、下のほうで「この○はどの列か」が分からなくなっていた。
   - 表が枠に収まるとき（is-fit。main.js が付ける）は枠の overflow を外し、
     素の position: sticky に任せる。表の終わりでヘッダーが押し出され、次の表の
     ヘッダーへ切り替わるのはブラウザ標準の挙動
   - 収まらず横スクロールになるとき（主にスマホ）は overflow-x: auto の枠が
     スクロール領域になって sticky が画面に効かないので、main.js がヘッダーの写し
     （.sticky-thead）を position: fixed で置き、横スクロールに合わせてずらす */
.post_content .wp-block-table.is-fit { overflow: visible; }
.post_content .wp-block-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  /* border-collapse だと罫線が貼り付いてこないので、下辺だけ影で補う */
  box-shadow: 0 1px 0 var(--c-line);
}
.post_content .sticky-thead {
  position: fixed;
  top: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  display: none;
}
.post_content .sticky-thead table { table-layout: fixed; margin: 0; }

/* 注意ボックス（ネタバレ注意など）。ff10-wiki の .note と同じ扱い */
/* ネタバレ注意。考察・コラムは全記事に出るので、深紅の帯だと本文より先に目を取る。
   薄い地と細い左罫の1行の注記にして、本文の邪魔をしない（2026-09-17） */
.post_content .swell-block-capbox,
.post_content .cap_box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0 0 20px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--crimson);
  border-radius: var(--radius);
  background: var(--c-paper);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
}
.post_content .cap_box_ttl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--crimson);
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}
.post_content .cap_box_content { flex: 1 1 20em; padding: 0; }
.post_content .cap_box_content p { margin: 0; }
.post_content .cap_box_content mark { color: inherit; }

/* 記事どうしのリンクカード。**画像は載せない**ので、枠と文字だけにする */
.post_content .c-blogCard {
  display: block;
  margin: 0 0 18px;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
}
.post_content .c-blogCard__link { display: block; padding: 12px 16px; color: inherit; }
.post_content .c-blogCard__link:hover { background: var(--c-bg); text-decoration: none; }
.post_content .c-blogCard__thumb { display: none; }
.post_content .c-blogCard__caption { display: block; font-size: 11.5px; color: var(--gold-dark); }
.post_content .c-blogCard__title { margin: 2px 0 4px; font-size: 15px; color: var(--c-main); font-weight: bold; }
.post_content .c-blogCard__excerpt { margin: 0; font-size: 12.5px; color: var(--text-sub); }

/* 蛍光ペン */
.post_content .swl-marker { background: linear-gradient(transparent 62%, #ffe9a8 62%); }
.post_content .mark_green { background: linear-gradient(transparent 62%, #cdeccd 62%); }

/* 文字サイズ・色の指定。旧テーマの変数は無いので素の値に寄せる */
.post_content .swl-fz.u-fz-l { font-size: 1.08em; }
.post_content .has-swl-deep-01-color { color: var(--c-main); }

/* 本文中の画像。**ゲーム画面は載せないので、残っているのは図版だけ** */
.post_content .wp-block-image { margin: 0 0 20px; }
.post_content .wp-block-image img { border-radius: var(--radius); }

/* タグを横に並べる。サイドバーと記事下で使う */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-list li { border: 0 !important; }
.tag-list a {
  display: inline-block;
  padding: 3px 10px !important;
  font-size: 12px;
  color: var(--c-dark) !important;
  background: var(--white);
  border: 1px solid var(--c-line);
  border-radius: 999px;
}
.tag-list a:hover { background: var(--c-bg); text-decoration: none; }

/* 列の多いデータ表は、狭い画面では横スクロールさせる。
   縦に潰れて読めなくなるより、はみ出させたほうが読める。 */
.post_content .wp-block-table:not(.has-fixed-layout) table { min-width: 700px; }

/* 「誰が装備できるか」の総当たり表。
   ク・マ・ル…の1文字が7列並ぶので、ここだけ幅を詰めて中央に寄せる。
   詰めておかないと、名前や入手方法の列が潰れて読めなくなる。 */
.post_content .eq {
  width: 2.1em;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
  white-space: nowrap;
}
/* 見出しはキャラクター名を縦書きにする。
   横書きだと1列 4em ぶん要って表が横に伸びるが、
   縦なら 2em で済み、略さずに名前を出せる。 */
.post_content th.eq {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: .8em;
  letter-spacing: .08em;
  padding-top: 8px;
  padding-bottom: 8px;
  margin: 0 auto;
}
/* 名前の列は折り返させない。折り返すと2文字ずつに潰れて読めなくなる。
   装備列を細くしてあるので、これだけで本文幅に収まる。 */
.post_content table:has(.eq) td:first-child,
.post_content table:has(.eq) th { white-space: nowrap; }
.post_content td.eq { color: var(--gold-dark); font-weight: 700; }
/* 入手方法の列に最低幅を与える。文字を 15px にしたとき、ここが 9 文字で折り返して
   1行が 4〜5 行の高さになっていた（2026-09-17 に実測。ページ全高 +44%） */
.post_content table:has(.eq) td:last-child { min-width: 13.5em; }
/* 装備できない印は沈める。目で追うのは○だけでいい */
.post_content td.eq-no { color: var(--text-sub); font-weight: 400; }

/* ---------- 2段のグローバルナビ ----------
   上段が攻略データ、下段が読みもの。地の色を変えて段を見分けさせる。 */
.global-nav .nav-read {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.global-nav .nav-read a {
  padding: 7px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}
.global-nav .nav-read a:hover,
.global-nav .nav-read a.current {
  border-bottom-color: var(--crimson);
  color: var(--white);
}

/* 読みもののカード。ff10-wiki がナビと見出しで解説を金色に振っているのと
   同じ扱いで、攻略データのカードと見分けられるようにする。 */
.card.card-column { border-top-color: var(--gold); }
.card.card-column h3 { color: var(--gold-dark); }

/* ---------- 記事末尾の関連商品（疑似ポチップ） ----------
   ff10-wiki の .p-box と同じ組み方。当サイトも Amazon だけなので
   ボタンは1つ。価格は扱わない。
   ステマ規制の表示は必ず箱のいちばん上に出す。 */

.c-articleCta {
  margin: 40px 0 8px;
  padding: 18px 20px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

.c-articleCta__pr {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
}
.c-articleCta__prTag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--c-paper);
  background: var(--text-sub);
  border-radius: 3px;
}
.c-articleCta__pr a { color: var(--text-sub); text-decoration: underline; }

/* 広告である表示（景品表示法5条3号・ステマ規制）。**箱のいちばん上に、全幅で。**
   出しているのは manage の共通部品（app/product-hub/ProductHub.php）で、
   文言は app/product-hub/config.php の pr_text にある。
   **この箱は grid-template-areas で組んでいる**ので、領域名を足さないと
   自動配置になり、画像の側へ入り込む。 */
.c-productBox {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-areas:
    "pr    pr"
    "image body"
    "btns  btns";
  gap: 14px 20px;
}
.c-productBox__pr {
  grid-area: pr;
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--c-line);
  color: var(--c-text-weak);
  font-size: 0.75rem;
  line-height: 1.7;
}
.c-productBox__pr-tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.0625rem 0.5rem;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
}
.c-productBox + .c-productBox {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--c-line);
}

.c-productBox__image {
  grid-area: image;
  display: grid;
  place-items: center;
}
.c-productBox__image img {
  width: auto;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.c-productBox__body { grid-area: body; align-self: center; }
.c-productBox__title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.7;
}
.c-productBox__title a { color: var(--c-dark); }
.c-productBox__title a:hover { text-decoration: underline; }
.c-productBox__info {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-sub);
}
.c-productBox__review { margin: 0; font-size: 12px; }
.c-productBox__review a { color: var(--c-main); }

.c-productBox__btns {
  grid-area: btns;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
/* Amazon だけを塗って主導線にする（サイトの .btn-primary と同じ金色） */
.c-productBox__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.c-productBox__btn.-amazon {
  background: var(--gold);
  color: var(--c-deep);
  box-shadow: 0 4px 14px rgba(212, 180, 90, .45);
}
.c-productBox__btn.-amazon:hover {
  transform: translateY(-2px);
  color: var(--c-deep);
  text-decoration: none;
}

/* スマホ幅は1列に積む。**"pr" を落とさないこと。** 広告表示（.c-productBox__pr）は
   grid-area: pr を持つので、ここに無いと暗黙の2列目に押し出されて幅を取り、
   1列目（画像と本文）がほぼ幅 0 になる。商品名が1文字ずつ縦に落ち、画像が消えていた
   （2026-09-18 に実測して直した）。 */
@media (max-width: 600px) {
  .c-productBox {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pr" "image" "body" "btns";
  }
}

/* ---------- シェアボタン ----------
   UI を入れ替えたときに、商品ボックスと同じくスタイルが抜け落ちていた。
   マークアップは app/views/partials/share.php。
   形は .c-productBox__btn（サイト共通のピル型ボタン）にそろえ、
   色だけ各サービスのものを使って見分けられるようにする。 */

.c-share {
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}
.c-share__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}
.c-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-share__list > li { margin: 0; }

.c-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 38px;
  padding: 6px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.c-share__btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.c-share__btn.-x        { background: #000; }
.c-share__btn.-facebook { background: #1877f2; }
.c-share__btn.-hatena   { background: #00a4de; }
.c-share__btn.-line     { background: #06c755; }

/* コピーだけは共有先ではないので、塗らずに輪郭だけにする。
   押すと文字が「コピーしました」に変わるぶん、幅を広めに取っておく */
.c-share__btn.-copy {
  min-width: 132px;
  color: var(--c-dark);
  background: transparent;
  border: 1px solid var(--c-line);
}
.c-share__btn.-copy:hover {
  color: var(--c-dark);
  background: var(--c-bg);
  filter: none;
}

/* 時代のアーカイブに出す章の一覧。
   章番号が飛び飛びになるので、chart-list の連番は消す。
   タイトルに「第4章」と入っているので、それで足りる。 */
.chart-list-plain li { padding-left: 14px; }
.chart-list-plain li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 2px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.chart-place {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
}

/* 本文中に差しこんだ商品ボックスにも枠を付ける。
   記事末尾のものは .c-articleCta が枠を持っているので、
   本文側（.post_content の中）だけを対象にして二重にしない。 */
.post_content .c-productBox {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 8px;
}

/* ---------- お問い合わせフォーム ----------
   ff10-wiki の .contact-form と同じ組み方。
   UI を入れ替えたときにここも抜け落ちていた。 */

.c-notice {
  padding: 14px 18px;
  margin: 0 0 22px;
  line-height: 1.7;
  border: 1px solid;
  border-radius: 8px;
}
.c-notice.-success { background: #eef8f1; border-color: #b6ddc3; color: #1d5b34; }
.c-notice.-error   { background: #fff3f3; border-color: #edc0c0; color: #8a2b2b; }

.c-contactForm { margin: 22px 0 8px; }
.c-contactForm p { margin: 0 0 18px; }
.c-contactForm label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-dark);
}
.c-contactForm__req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 400;
  vertical-align: 2px;
  color: var(--c-paper);
  background: var(--c-main);
  border-radius: 3px;
}
.c-contactForm .full-width {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.c-contactForm textarea.full-width { min-height: 180px; resize: vertical; }
.c-contactForm .full-width:focus {
  outline: 2px solid var(--c-light);
  border-color: var(--c-light);
}
.c-contactForm .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 46px;
  padding: 8px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-deep);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 180, 90, .45);
  transition: transform .15s;
}
.c-contactForm .button:hover { transform: translateY(-2px); }

/* ハニーポットは画面の外へ出す。**display:none にはしない。**
   表示を消す指定は入力欄ごと無視するボットがあり、罠として働かなくなる。 */
.u-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 目次 ----------
   ff10-wiki の .toc と同じ組み方。本文中のものは <details> で畳める。
   これも UI 差し替えのときに抜け落ちていた。 */

.c-toc {
  display: inline-block;
  min-width: 260px;
  max-width: 100%;
  margin: 0 0 24px;
  padding: 12px 20px 12px 16px;
  font-size: 13.5px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 8px;
}
.c-toc__title {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--c-dark);
  cursor: pointer;
  list-style: none;
}
.c-toc__title::-webkit-details-marker { display: none; }
/* 開閉の向きを三角で示す */
.c-toc__title::before {
  content: "▶";
  display: inline-block;
  margin-right: 6px;
  font-size: 10px;
  transition: transform .15s;
}
.c-toc[open] > .c-toc__title::before { transform: rotate(90deg); }

.c-toc__list { margin: 0; padding-left: 1.6em; }
.c-toc__child { margin-top: 2px; }
.c-toc__item { padding: 1px 0; }

/* サイドバーの目次は箱を二重にしない。side-box が枠を持っている */
.side-box .c-toc__list { font-size: 13px; }

/* 本文中の「目次へ戻る」 */
.c-backToToc {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: 12.5px;
  color: var(--text-sub);
}

/* 目次を右カラムに貼り付けておく箱 */
.side-box-sticky { position: sticky; top: 16px; }

/* マーカーの色違い。.swl-marker が下線の形を持ち、色だけここで差し替える。
   指定が無いと、青も橙もすべて黄色で出てしまう。 */
.post_content .swl-marker.mark_yellow { background-image: linear-gradient(transparent 62%, #ffe9a8 62%); }
.post_content .swl-marker.mark_orange { background-image: linear-gradient(transparent 62%, #ffd2a8 62%); }
.post_content .swl-marker.mark_blue   { background-image: linear-gradient(transparent 62%, #bfe0f7 62%); }
.post_content .swl-marker.mark_green  { background-image: linear-gradient(transparent 62%, #c6ecc6 62%); }

/* Amazon のライセンス契約 (q) が求める表示。フッターに常設する。
   目立たせる必要はないが、読める大きさは保つ。 */
.footer-amazon-notice {
  max-width: 900px;
  margin: 14px auto 0;
  font-size: 11px;
  line-height: 1.8;
  opacity: .55;
}

/* =========================================================
   読みもの（考察・コラムなど nav_group=read の記事）
   攻略データと違い長文を読ませるので、本文だけ文字を大きくし、1行の長さを絞る。
   body（攻略データ側）は 17px（2026-09-17 に 15px から上げた）。意図した分岐。CLAUDE.md 参照
   ========================================================= */
.is-reading .post_content {
  font-size: 18px;
  line-height: 1.85;
  max-width: 42em;
}
.is-reading .post_content p { margin: 0 0 1.2em; }
.is-reading .post_content h2 { font-size: 24px; margin: 1.6em 0 0.8em; }
.is-reading .post_content h3 { font-size: 20px; margin: 1.6em 0 0.6em; }
.is-reading .post_content h4 { font-size: 18px; margin: 1.4em 0 0.5em; }
.is-reading .post_content .quote-box { font-size: 16px; }
.is-reading .post_content .quote-box cite { font-size: 13px; }
.is-reading .post_content .toc { font-size: 15px; }
@media (max-width: 768px) {
  .is-reading .post_content { font-size: 17px; }
  .is-reading .post_content h2 { font-size: 22px; }
  .is-reading .post_content h3 { font-size: 19px; }
  .is-reading .post_content h4 { font-size: 17px; }
}

/* 手元だけに出る OGP プレビュー（single.php。本番には出ない） */
.ogp-preview img { display: block; max-width: 600px; width: 100%; height: auto; border: 1px solid var(--c-line); border-radius: var(--radius); }
.ogp-preview-note { font-size: 12.5px; color: var(--text-sub); }
.ogp-preview-note code { font-size: 12px; }
