/* c01 / アズプロ攻略データベース 見た目。
   明るい空・草原のファンタジー（青・白・黄）。画像を使わないので、色とタイポグラフィ・
   カード・インラインSVGで寂しくならないようにする。CSS変数は :root に一式（ライト固定。2026-10-27 L0 決定）。
   このファイルは sitegen 既定の static/style.css を完全に上書きする（README「既定 → 作品側で
   上書き」）ので、既定テーマが持っていたクラス（.yt-lite 等）もここで一通り定義する。 */

:root {
  color-scheme: light;
  --fg: #16202c;
  --bg: #eef1f6;
  --bg-alt: #ffffff;
  --muted: #5c6f82;
  --accent: #2f7dd1;
  --accent-dark: #1c5aa3;
  --accent-soft: #e4f1ff;
  --yellow: #ffcc33;
  --yellow-soft: #fff6dc;
  --border: #d8e6f6;
  --card-bg: #ffffff;
  --shadow: rgba(31, 90, 150, 0.10);
  --radius: 14px;
  --danger: #c0392b;
  --key: #d23b3b;
  --th-bg: #f1f4f9;
  --h2-bg: #1f2a44;
  --h2-fg: #ffffff;
}

/* ライト固定（2026-10-27 L0）。ダークモードの切り替えは持たない */

* { box-sizing: border-box; }

html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--fg);
  background: var(--bg);
  background-image: radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 60%);
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; border-radius: 6px; }

a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.4; }
h1 svg, h2 svg { vertical-align: -4px; margin-right: 0.4em; color: var(--accent); }

/* ---- ヘッダー ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg-alt) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 64rem; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; text-decoration: none; color: var(--fg);
  font-size: 1.05rem;
}
.brand-mark { flex: none; }
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.main-nav > a { text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.main-nav > a:hover { text-decoration: underline; }

.nav-db { position: relative; }
.nav-db summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 0.92rem;
  color: var(--fg); display: flex; align-items: center; gap: 0.3rem;
}
.nav-db summary::-webkit-details-marker { display: none; }
.nav-db summary::after { content: "▾"; font-size: 0.7em; color: var(--muted); }
.nav-db[open] summary::after { content: "▴"; }
.nav-db-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 24px var(--shadow);
  display: flex; flex-direction: column; min-width: 10rem; padding: 0.4rem; z-index: 30;
}
.nav-db-menu a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem; border-radius: 8px; font-size: 0.92rem; text-decoration: none; color: var(--fg);
}
.nav-db-menu a:hover { background: var(--accent-soft); }
.nav-db-menu a svg { color: var(--accent); }

@media (max-width: 640px) {
  .header-inner { position: relative; }
  .nav-toggle-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 34px; height: 30px; margin-left: auto; cursor: pointer; order: 2;
  }
  .nav-toggle-btn span { display: block; height: 2px; background: var(--fg); border-radius: 2px; }
  .main-nav {
    order: 4; flex-basis: 100%; margin-left: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.2s ease;
  }
  .main-nav > a, .nav-db { width: 100%; padding: 0.55rem 0; border-top: 1px solid var(--border); }
  .nav-db summary { padding: 0.55rem 0; }
  .nav-db-menu { position: static; box-shadow: none; border: none; padding-left: 1.4rem; margin-top: -0.2rem; }
  .nav-toggle:checked ~ .main-nav { max-height: 60vh; }
}

/* ---- レイアウト ---- */
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.2rem 1rem 2.5rem;
}
.hero + section, section + section { margin-top: 2.2rem; }

.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.crumb-sep { padding: 0 0.1rem; }

/* ---- フッター ---- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 1.2rem 1rem 2rem;
  text-align: center;
}
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; font-size: 0.85rem; margin-bottom: 0.6rem; }
.site-footer nav a { text-decoration: none; color: var(--fg); }
.site-footer nav a:hover { text-decoration: underline; }

/* ---- ホーム: ヒーロー / カウントダウン ---- */
.hero { text-align: center; padding: 1.4rem 0 0.4rem; }
.hero h1 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.hero-tagline { color: var(--muted); margin: 0 auto 1.3rem; max-width: 30rem; font-size: 0.92rem; }

.countdown-card {
  display: inline-block; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.8rem; box-shadow: 0 8px 24px var(--shadow);
  background-image: linear-gradient(135deg, var(--yellow-soft), transparent 60%);
}
.countdown-label { margin: 0 0 0.3rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.countdown-value { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; }
.countdown-number { font-size: 2.4rem; font-weight: 800; color: var(--accent-dark); font-feature-settings: "tnum"; }
.countdown-unit { font-size: 1rem; color: var(--muted); }

/* ---- カード格子（データベース・ツール） ---- */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
  margin: 1rem 0 0; padding: 0; list-style: none;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.db-card, .tool-card, .entry-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 0.7rem; text-decoration: none; color: var(--fg);
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.db-card:hover, .tool-card:hover, .entry-card:hover {
  transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 22px var(--shadow);
}
.db-card-icon, .tool-card-icon, .entry-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
}
.db-card-label, .tool-card-title { font-weight: 700; font-size: 0.95rem; }
.db-card-count {
  font-size: 0.74rem; color: var(--muted);
  background: var(--yellow-soft); border-radius: 999px; padding: 0.1rem 0.6rem;
}
.tool-card-desc { font-size: 0.76rem; color: var(--muted); }

/* ---- 一覧ページ（キャラ・キボ・イベント） ---- */
.entry-grid .entry-card { flex-direction: row; text-align: left; padding: 0.8rem 0.9rem; gap: 0.7rem; }
.entry-card-icon { flex: none; width: 2.4rem; height: 2.4rem; }
.entry-card-body { display: flex; flex-direction: column; min-width: 0; }
.entry-card-name { font-weight: 700; font-size: 0.95rem; }
.entry-card-aka { font-size: 0.76rem; color: var(--muted); }

/* ---- 記事一覧（ホーム抜粋・/articles/） ---- */
.article-cards, .article-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.article-card a, .article-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; flex-wrap: wrap;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.75rem 0.9rem; text-decoration: none; color: var(--fg);
}
.article-list li { display: flex; }
.article-list li a { border: none; padding: 0; flex: 1 1 auto; background: none; }
.article-card a:hover, .article-list li:hover { border-color: var(--accent); }
.article-card-title, .article-list li a { font-weight: 600; font-size: 0.92rem; }
.article-card time, .article-list li time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.more-link { text-align: right; font-size: 0.88rem; margin-top: 0.6rem; }

/* ---- 個別ページ ---- */
.item-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.6rem; }
.item-icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
}
.item-heading h1 { margin: 0; }
.aka { color: var(--muted); margin: 0.2rem 0 0; font-size: 0.9rem; }
.profile { margin-top: 0.9rem; }
.cv { color: var(--muted); font-size: 0.9rem; }

.item-dl, dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 1rem 0; }
.item-dl dt, dl dt { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.item-dl dd, dl dd { margin: 0; }

.back-link { margin-top: 1.6rem; font-size: 0.9rem; }
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* ---- 記事ページ（国内攻略大手の型。2026-10-27 L0） ---- */
article.post {
  max-width: 760px; margin: 0 auto; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 20px 24px 28px; font-size: 16px; line-height: 1.8;
}
@media (max-width: 560px) { article.post { padding: 16px; } }
article .meta { color: var(--muted); font-size: 0.85rem; display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.article-body { margin-top: 1.2rem; }
.article-body :where(h2, h3) { margin-top: 1.6rem; }
.article-body p { margin: 0.9rem 0; }

.kind { font-size: 0.72rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.55rem; margin-right: 0.4em; }
.kind-news { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }

/* 要約（本文最初の <p class="lead">） */
.lead { font-size: 17px; color: var(--muted); margin: 0.9rem 0; }

/* 目次 */
nav.toc { border: 1px solid var(--border); border-radius: 4px; padding: 8px 14px; font-size: 14px; margin: 1rem 0; }
nav.toc b { font-size: 13px; display: block; margin-bottom: 0.2rem; }
nav.toc ol { margin: 4px 0 0; padding-left: 1.4em; color: var(--accent); }
nav.toc a { color: inherit; text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }

/* 本文 h2 / h3（濃紺の帯・左のアクセント線） */
.article-body h2, .related h2 {
  font-size: 18px; font-weight: 700; background: var(--h2-bg); color: var(--h2-fg);
  padding: 8px 14px; margin: 30px 0 12px; border-bottom: 3px solid var(--accent);
  border-radius: 3px 3px 0 0;
}
.article-body h3 {
  font-size: 16px; font-weight: 700; padding: 2px 0 4px 10px;
  border-left: 4px solid var(--accent); border-bottom: 1px solid var(--border);
  margin: 20px 0 10px;
}

/* チェックリスト */
ul.chk { list-style: none; margin: 0 0 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; }
ul.chk li { padding-left: 1.6em; position: relative; font-size: 15px; }
ul.chk li + li { border-top: 1px dashed var(--border); }
ul.chk li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.95em; height: 0.95em;
  border: 2px solid var(--accent); border-radius: 2px;
}
ul.chk li::after {
  content: ""; position: absolute; left: 0.3em; top: 0.55em; width: 0.35em; height: 0.6em;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 強調語 */
.key { color: var(--key); font-weight: 700; }

/* 関連記事 */
.related .rel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0.6rem; }
.related .rel a {
  display: block; border: 1px solid var(--border); border-radius: 4px; padding: 8px 12px;
  color: var(--accent); text-decoration: none; font-size: 14px; font-weight: 700;
}
.related .rel a:hover { text-decoration: underline; }
@media (max-width: 560px) { .related .rel { grid-template-columns: 1fr; } }

/* ---- 広告枠 / YouTube 埋め込み（既定テーマから継承） ---- */
.ad-slot { margin: 1.5rem 0; min-height: 1px; }

.yt-lite {
  position: relative; cursor: pointer; background: #000;
  aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  border-radius: 10px; margin: 1.2rem 0;
}
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lite-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 2.5rem; color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}
.yt-lite iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- 出典欄 ---- */
.citations {
  margin-top: 2.2rem; padding: 0.9rem 1rem; border-top: none;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.78rem; color: var(--muted);
}
.citations summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--muted); list-style-position: inside; }
.citations summary:hover { color: var(--accent); }
.citations-meta { font-weight: 500; margin-left: 0.6em; font-size: 0.92em; }
.citations[open] summary { margin-bottom: 0.5rem; }
.citations ul { padding-left: 1.1rem; margin: 0; }
.citations li { margin-bottom: 0.2rem; }
.citations a { color: var(--muted); }

/* ---- 必須ページの dl（運営者情報） ---- */
.site-footer, main dl { word-break: break-word; }

/* 記事の鮮度（sitegen: 最終確認日・ゲームのバージョン・閲覧時の「要再確認」・更新履歴） */
.freshness { font-size: 0.85rem; color: var(--muted); }
p.freshness { margin: 0.3em 0 0; }
li .freshness { margin-left: 0.4em; }
.stale-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 999px;
  padding: 0 0.6em;
  margin-left: 0.4em;
}
.stale-badge[hidden] { display: none; }
.history { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.history h2 { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.3rem; }
.history { font-size: 0.85rem; color: var(--muted); }
.history ul { padding-left: 1.2rem; }
.history time { color: var(--muted); margin-right: 0.4em; }

/* 記事の表（報酬の段など）。狭い画面では横にだけ流す。.table-wrap/.vt（検証記事）は別定義でここには含めない */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 0.6rem 0 0.8rem; font-size: 15px;
}
.article-body th, .article-body td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.article-body th { white-space: nowrap; }
.article-body tbody th, .article-body td:first-child { white-space: nowrap; }
.article-body th { background: var(--th-bg); font-weight: 700; }
.article-body td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- 公式の絵（scripts/make_images.py → static/img/<表>/<id>.webp）。絵は名前・データと同じ枠に組む ---- */
.art-credit, .hero-credit { font-size: 0.72rem; color: var(--muted); margin: 0.6rem 0 0; }

/* ---- ホーム（2026-10-27 統合案: 空気＋今 → やること・新着 → キャラ → データベース → 舞台・ツール） ---- */
main:has(.home-hero) { max-width: 66rem; }
main:has(.post) { max-width: 50rem; }
.home-hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 22rem;
  background: linear-gradient(160deg, var(--accent-dark), var(--accent));
  box-shadow: 0 10px 28px var(--shadow); color: #fff;
}
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 24, 52, 0) 25%, rgba(8, 24, 52, 0.86)); }
.home-hero-in, .status-band { position: relative; z-index: 1; }
.home-hero-credit { position: absolute; z-index: 1; right: 0.7rem; top: 0.5rem; font-size: 0.66rem; color: rgba(255, 255, 255, 0.82); }
.home-hero-in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem 1.4rem; padding: 1.3rem 1.3rem 1rem; }
.home-hero h1 {
  flex: 1 1 18rem; margin: 0; font-size: clamp(1.45rem, 3.4vw, 2.2rem); line-height: 1.25; font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); text-wrap: balance;
}
.home-hero h1 small { display: block; font-size: 0.85rem; font-weight: 700; opacity: 0.88; margin-bottom: 0.2rem; }
.pv-link {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--yellow); color: #1a1a1a; font-weight: 800; font-size: 0.88rem; padding: 0.5rem 1rem; border-radius: 999px;
}
.pv-link::before { content: ""; border-left: 0.6rem solid #1a1a1a; border-top: 0.38rem solid transparent; border-bottom: 0.38rem solid transparent; }
.pv-link:hover { filter: brightness(1.05); }
.status-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.25); }
.status-cell { background: rgba(10, 28, 58, 0.58); backdrop-filter: blur(8px); padding: 0.65rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.status-lbl { font-size: 0.72rem; font-weight: 700; opacity: 0.85; }
.status-big { font-size: 1.6rem; line-height: 1.15; font-weight: 800; color: var(--yellow); font-feature-settings: "tnum"; }
.status-big small { font-size: 0.78rem; color: #fff; opacity: 0.88; margin-left: 0.15rem; font-weight: 600; }
.status-sub { font-size: 0.72rem; opacity: 0.85; }
.status-bar { display: block; height: 0.38rem; background: rgba(255, 255, 255, 0.22); border-radius: 999px; overflow: hidden; margin: 0.15rem 0; }
.status-bar b { display: block; height: 100%; background: var(--yellow); border-radius: 999px; }

.home-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0.9rem; margin-top: 1.2rem; }
.home-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem 1rem; min-width: 0; }
.home-sec { margin-top: 1.8rem; min-width: 0; }
.home-db { margin-top: 1.8rem; }
.home-h { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin: 0 0 0.7rem; font-size: 1.1rem; }
.home-h small { font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.home-h a { margin-left: auto; font-size: 0.82rem; font-weight: 700; }
.todo-count { font-size: 0.8rem; font-weight: 800; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 0 0.55rem; font-feature-settings: "tnum"; }
.todo-count:empty { display: none; }
.todo-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.todo-mini li { display: flex; align-items: center; gap: 0.55rem; padding: 0.35rem 0.55rem; border-radius: 10px; }
.todo-mini li::before { content: ""; flex: none; width: 1rem; height: 1rem; border: 2px solid var(--accent); border-radius: 4px; }
.todo-mini li.is-done::before { background: var(--accent); box-shadow: inset 0 0 0 2px var(--card-bg); }
.todo-mini li.is-done a { color: var(--muted); text-decoration: line-through; }
.todo-mini li.is-next { background: var(--yellow-soft); }
.todo-mini a { color: var(--fg); text-decoration: none; font-weight: 600; flex: 1; min-width: 0; }
.todo-mini a:hover { color: var(--accent); }
.todo-mini .due { flex: none; font-size: 0.72rem; font-weight: 700; color: var(--danger); white-space: nowrap; }
.todo-note { margin: 0.5rem 0 0; font-size: 0.72rem; color: var(--muted); }
.todo-page { margin: 1rem 0 1.5rem; padding: 0.8rem 1rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.todo-page a { font-weight: 700; }
.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.todo li { display: flex; align-items: flex-start; gap: 0.6rem; }
.todo label { display: flex; align-items: flex-start; gap: 0.55rem; flex: 1; cursor: pointer; }
.todo input { width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; accent-color: var(--accent); flex: none; }
.todo input:checked + span { color: var(--muted); text-decoration: line-through; }
.todo li > a, .todo .due { flex: none; font-size: 0.74rem; font-weight: 700; white-space: nowrap; margin-top: 0.2rem; }
.todo .due { color: var(--danger); }
.feed { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.feed li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.5rem; align-items: baseline; padding: 0.45rem 0; border-top: 1px dashed var(--border); }
.feed li:first-child { border-top: 0; }
.feed time { font-size: 0.74rem; color: var(--muted); white-space: nowrap; font-feature-settings: "tnum"; }
.feed a { color: var(--fg); text-decoration: none; font-weight: 600; }
.feed a:hover { color: var(--accent); }
.pill { font-size: 0.66rem; font-weight: 700; padding: 0.02rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.pill-news { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill-upd { background: var(--accent-soft); color: var(--accent-dark); }
.pill-new { background: color-mix(in srgb, #2e9d6a 16%, transparent); color: #2e9d6a; }

/* 横に流す並び（スマホのキャラ・キボ）: スクロールバーは地の色になじませる（2026-10-27 L0） */
.cast, .kibo-row { scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent; }
.cast::-webkit-scrollbar, .kibo-row::-webkit-scrollbar { height: 6px; }
.cast::-webkit-scrollbar-track, .kibo-row::-webkit-scrollbar-track { background: transparent; }
.cast::-webkit-scrollbar-thumb, .kibo-row::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 999px; }

.cast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
.cast-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 17rem;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--fg);
  background: linear-gradient(180deg, var(--accent-soft), var(--yellow-soft)); border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.15s;
}
.cast-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.cast-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }
.cast-cap { position: relative; display: flex; flex-direction: column; gap: 0.15rem; padding: 1.8rem 0.65rem 0.65rem; background: linear-gradient(180deg, transparent, var(--card-bg) 42%); }
.cast-cap b { font-size: 0.98rem; }
.cast-cv { font-size: 0.7rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.chips span { font-size: 0.66rem; font-weight: 700; padding: 0 0.45rem; line-height: 1.65; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.chips .chip-star { background: var(--yellow-soft); color: #9a6a00; }
.chips .chip-tbd { background: transparent; border: 1px dashed var(--border); color: var(--muted); font-weight: 500; }
.chips .el-fire { background: #fde6df; color: #c94b2c; }
.chips .el-thunder { background: #ece4fb; color: #7a52c7; }
.chips .el-water, .chips .el-ice { background: #def0fb; color: #1f78b4; }
.chips .el-wood, .chips .el-wind { background: #e2f5e6; color: #2e8a4a; }

.db { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.db-index { display: flex; flex-direction: column; gap: 0.35rem; }
.db-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--fg);
  border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.75rem; font-weight: 700; font-size: 0.9rem; background: var(--bg);
}
.db-index a:hover { border-color: var(--accent); }
.db-index em { font-style: normal; font-weight: 600; color: var(--accent-dark); font-feature-settings: "tnum"; }
.sys-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.5rem; }
.sys-group { border: 1px solid var(--border); border-radius: 12px; padding: 0.55rem 0.75rem; background: var(--bg); }
.sys-group h3 { margin: 0 0 0.25rem; font-size: 0.86rem; display: flex; justify-content: space-between; }
.sys-group h3 em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.sys-group ul { margin: 0; padding: 0; list-style: none; font-size: 0.8rem; display: flex; flex-direction: column; gap: 0.12rem; }
.sys-group li::before { content: "›"; color: var(--accent); margin-right: 0.35rem; font-weight: 800; }
.sys-group a { color: var(--fg); text-decoration: none; }
.sys-group a:hover { color: var(--accent); text-decoration: underline; }
.kibo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.7rem; }
.kibo-row a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--fg); border: 1px solid var(--border); border-radius: 12px; padding: 0.35rem; background: var(--bg); font-size: 0.76rem; font-weight: 700; }
.kibo-row a:hover { border-color: var(--accent); }
.kibo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

.world-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem; }
.place, .tool-tile { display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none; color: var(--fg); padding: 0.6rem 0.85rem; border-radius: 12px; border: 1px solid var(--border); }
.place { border-left: 3px solid var(--yellow); background: var(--card-bg); }
.tool-tile { background: linear-gradient(135deg, var(--yellow-soft), var(--card-bg) 70%); }
.place b, .tool-tile b { font-size: 0.95rem; }
.place span, .tool-tile span { font-size: 0.78rem; color: var(--muted); }
.place:hover, .tool-tile:hover { border-color: var(--accent); }

@media (max-width: 640px) {
  .home-hero { min-height: 17rem; border-radius: 12px; }
  .home-hero-in { padding: 1rem 0.9rem 0.8rem; }
  /* スマホ: 状況の帯は絵の下に出し、1 行ずつ読めるようにする（2026-10-27 L0: 重ねると見づらい） */
  .home-hero { min-height: 0; background: #0f2442; }
  .home-hero-img, .home-hero::after { bottom: auto; height: 12rem; }
  .home-hero-in { min-height: 12rem; align-content: flex-end; }
  .status-band { grid-template-columns: minmax(0, 1fr); gap: 0; background: transparent; border-top: 0; }
  .status-cell {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; align-items: center;
    padding: 0.6rem 0.95rem; background: transparent; backdrop-filter: none; border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .status-lbl { grid-column: 1; grid-row: 1; font-size: 0.82rem; }
  .status-sub { grid-column: 1; grid-row: 2; font-size: 0.7rem; }
  .status-big { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; text-align: right; white-space: nowrap; }
  .status-bar { grid-column: 1 / -1; grid-row: 3; margin-top: 0.35rem; }
  .home-two, .db { grid-template-columns: minmax(0, 1fr); }
  .cast { grid-template-columns: repeat(5, 8.5rem); overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
  .cast-card { min-height: 12.5rem; scroll-snap-align: start; }
  .db-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .db-index a { flex-direction: column; align-items: center; padding: 0.4rem 0.2rem; font-size: 0.78rem; }
  .db-index em { font-size: 1.05rem; order: -1; }
  .kibo-row { grid-template-columns: repeat(5, 6.5rem); overflow-x: auto; padding-bottom: 0.5rem; }
}

/* 一覧: 絵つきカード */
.art-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--fg);
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow); transition: transform 0.15s, border-color 0.15s;
}
.art-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.art-card-img {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--yellow-soft));
}
.art-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.art-card-kibo .art-card-img img { object-fit: contain; padding: 0.6rem; }
.art-card-body { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.8rem 0.8rem; }
.entry-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.entry-card-tags span { font-size: 0.7rem; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 0.05rem 0.5rem; }

/* 個別: 絵とプロフィールを横に（スマホは縦） */
.item-hero.has-img { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.4rem; align-items: start; }
.item-art {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--yellow-soft));
}
.item-art img { display: block; width: 100%; max-height: 32rem; object-fit: contain; }
.item-art figcaption { font-size: 0.7rem; color: var(--muted); padding: 0.3rem 0.6rem; text-align: right; }
.item-hero-kibo .item-art img { padding: 1rem; }
@media (max-width: 640px) {
  .item-hero.has-img { grid-template-columns: 1fr; gap: 0.8rem; }
  .item-art img { max-height: 22rem; }
}
.look-list { padding-left: 1.2rem; }
.cbt-box {
  margin-top: 1.6rem; padding: 0.4rem 1.1rem 0.8rem; border-radius: var(--radius);
  background: var(--yellow-soft); border: 1px solid var(--border);
}
.cbt-box h2 { font-size: 1.05rem; }
.cbt-note { font-size: 0.82rem; color: var(--muted); margin-top: -0.3rem; }

/* 記事: 話題のキャラを本文の横に */
.article-figure {
  float: right; width: 11rem; margin: 0 0 0.8rem 1rem; text-decoration: none; color: var(--fg);
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.article-figure img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  background: linear-gradient(160deg, var(--accent-soft), var(--yellow-soft)); }
.article-figure span { display: block; font-size: 0.78rem; padding: 0.4rem 0.6rem; }
@media (max-width: 640px) { .article-figure { float: none; width: 100%; margin: 0.8rem 0; display: flex; align-items: center; }
  .article-figure img { width: 6rem; flex: none; } }

/* --- 2026-10-27 段 1: 個別ページを出さない行を一覧で読ませる・出典一覧・制作方針 --- */
.page-lead, .list-intro { color: var(--muted); max-width: 46em; margin: 0 0 1.2rem; }
.list-toc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.4rem; }
.list-toc a { background: var(--card-bg); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.8rem; font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--fg); }
.list-toc a:hover { border-color: var(--accent); color: var(--accent); }
.list-toc em, .list-group h2 em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 0.35em; font-size: 0.85em; }
.list-group { margin-bottom: 1.8rem; scroll-margin-top: 4.5rem; }
.entry-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.8rem; }
.entry-full { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1rem; scroll-margin-top: 4.5rem; }
.entry-full h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.entry-full h3 small { font-weight: 500; color: var(--muted); margin-left: 0.5em; font-size: 0.78em; }
.entry-full p { margin: 0; font-size: 0.9rem; line-height: 1.7; }
.entry-full .entry-meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.4rem; }
.entry-full .entry-more { margin-top: 0.5rem; font-weight: 700; }
.entry-grid-full { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.art-card-full { cursor: default; scroll-margin-top: 4.5rem; }
.art-card-full:hover { transform: none; border-color: var(--border); }
.entry-card-text { font-size: 0.84rem; line-height: 1.65; margin-top: 0.35rem; color: var(--fg); }
.entry-card-more { font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-top: 0.3rem; }
.citations-h { font-size: 0.85rem; margin: 0 0 0.5rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.citations-all { margin-left: auto; font-weight: 700; }
.citations ul { font-size: 0.82rem; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.source-list li { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.8rem; display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; align-items: baseline; font-size: 0.88rem; scroll-margin-top: 4.5rem; }
.source-list cite { font-style: normal; font-weight: 700; }
.source-list a { color: var(--muted); word-break: break-all; font-size: 0.8rem; }
.source-date { color: var(--muted); font-size: 0.78rem; margin-left: auto; }
.policy-table { border-collapse: collapse; width: 100%; max-width: 46em; margin-bottom: 0.8rem; }
.policy-table th, .policy-table td { border-bottom: 1px solid var(--border); padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; font-size: 0.9rem; }
.pill-official { background: var(--accent-soft); color: var(--accent-dark); }
.pill-cbt { background: var(--yellow-soft); color: color-mix(in srgb, var(--yellow) 45%, var(--fg)); }
.pill-verified { background: color-mix(in srgb, #2e9d6a 16%, transparent); color: #2e9d6a; }

/* --- 2026-10-27 段 2: 背景（P1）・左メニュー（P2）・飛び先（A2）・検索（A1） --- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* P1 固定の背景。絵を薄く敷き、下へ地の色に溶かす。切り替えは 0.5 秒 */
.bg-switch { position: fixed; inset: 0 0 auto 0; height: 78vh; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-switch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, var(--bg) 96%); }
.bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center 22%; opacity: 0; transition: opacity 0.5s ease-in-out; filter: saturate(0.9); }
.bg-layer.is-on { opacity: 0.32; }
@media (prefers-reduced-motion: reduce) { .bg-layer { transition: none; } }
body { background-image: none; }

/* A1 検索 */
.site-search { position: relative; flex: 1 1 14rem; max-width: 24rem; margin-left: auto; }
.site-search input {
  width: 100%; font: inherit; font-size: 0.9rem; padding: 0.38rem 0.8rem 0.38rem 2rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card-bg); color: var(--fg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6f82' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 1rem; background-position: 0.7rem center;
}
.site-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-results {
  position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; z-index: 40; max-height: 70vh; overflow-y: auto;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 30px var(--shadow); padding: 0.3rem;
}
.search-hit { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0.65rem; border-radius: 8px; text-decoration: none; color: var(--fg); }
.search-hit b { font-size: 0.92rem; }
.search-hit span { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.search-hit mark { background: var(--yellow-soft); color: var(--fg); padding: 0 0.1em; border-radius: 3px; }
.search-hit:hover, .search-hit.is-active { background: var(--accent-soft); }
.search-empty { margin: 0; padding: 0.7rem; font-size: 0.85rem; color: var(--muted); }

/* P2 左メニュー（群で分ける） */
.side-nav { display: flex; flex-direction: column; gap: 1rem; }
.side-h { margin: 0 0 0.25rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.side-group { display: flex; flex-direction: column; }
.side-group a { display: flex; align-items: center; gap: 0.55rem; padding: 0.38rem 0.6rem; border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 0.9rem; font-weight: 600; }
.side-group a svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin: 0; }
.side-group a em { font-style: normal; margin-left: auto; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.side-group a:hover { background: var(--accent-soft); }
.side-group a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.side-group-site a { font-weight: 500; font-size: 0.84rem; color: var(--muted); }

@media (min-width: 1100px) {
  body { padding-left: 14.5rem; }
  .site-header { margin-left: -14.5rem; }
  .header-inner { max-width: none; padding-left: 1.2rem; padding-right: 1.6rem; }
  .side-nav {
    position: fixed; top: 3.35rem; left: 0; bottom: 0; width: 14.5rem; overflow-y: auto;
    padding: 1.1rem 0.8rem 2rem; border-right: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-alt) 88%, transparent); backdrop-filter: blur(6px);
  }
}
@media (max-width: 1099.98px) {
  .nav-toggle-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 34px; height: 30px; cursor: pointer; flex: none;
  }
  .nav-toggle-btn span { display: block; height: 2px; background: var(--fg); border-radius: 2px; }
  .side-nav {
    position: sticky; top: 3.35rem; z-index: 19; flex-direction: row; flex-wrap: wrap; gap: 0.8rem 1.6rem;
    max-height: 0; overflow: hidden; transition: max-height 0.2s ease; padding: 0 1rem;
    background: var(--bg-alt); border-bottom: 1px solid transparent;
  }
  .side-group { min-width: 10rem; }
  .nav-toggle:checked ~ .side-nav { max-height: 80vh; overflow-y: auto; padding: 0.8rem 1rem 1rem; border-bottom-color: var(--border); box-shadow: 0 10px 24px var(--shadow); }
}
@media (max-width: 640px) {
  .site-search { order: 4; flex-basis: 100%; max-width: none; margin-left: 0; }
  .nav-toggle-btn { margin-left: auto; }
}

/* A2 飛び先ボタン */
.jump-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.4rem; }
.jump {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 999px;
  text-decoration: none; color: var(--fg); font-weight: 700; font-size: 0.9rem; box-shadow: 0 2px 8px var(--shadow);
}
.jump svg { width: 18px; height: 18px; color: var(--accent); margin: 0; }
.jump em { font-style: normal; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.jump:hover { border-color: var(--accent); color: var(--accent-dark); }

/* 背景が透けるので、本文の板は地の色を少し透かす */
.home-panel, .entry-full, .art-card, .cast-card, .source-list li { backdrop-filter: blur(2px); }

/* 出典は本文の後ろに小さく 1 段（2026-10-27 L0「大々的すぎる。そっと置く」）。全体は /sources/ */
.citations {
  margin-top: 2.6rem; padding: 0.7rem 0 0; background: none; border: none; border-top: 1px dashed var(--border); border-radius: 0;
  font-size: 0.72rem; color: var(--muted); line-height: 1.6;
}
.citations-h { display: inline; margin: 0 0.5rem 0 0; font-size: inherit; font-weight: 700; color: var(--muted); }
.citations-meta { font-weight: 500; margin-left: 0.4em; }
.citations-all { margin-left: 0.6em; font-weight: 500; }
.citations ul { display: inline; padding: 0; margin: 0; list-style: none; font-size: inherit; }
.citations li { display: inline; margin: 0; }
.citations li + li::before { content: "／"; margin: 0 0.25em; color: var(--border); }
.citations cite { font-style: normal; }
.citations a { color: var(--muted); text-decoration-color: var(--border); }
.citations a:hover { color: var(--accent); }
.cite-date { display: none; }

/* --- 段 3 ① 一覧の型 --- */
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 0.7rem; }
.list-meta { margin: 0; font-size: 0.85rem; color: var(--muted); display: flex; gap: 0.9rem; align-items: baseline; }
.list-meta b { font-size: 1.15rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.view-toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--card-bg); }
.view-toggle button { font: inherit; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.85rem; border: 0; background: none; color: var(--muted); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.filter-bar { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0.9rem; margin-bottom: 1rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.filter-label { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; min-width: 3.2rem; }
.filter-btn {
  font: inherit; font-size: 0.82rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); cursor: pointer;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-reset { align-self: flex-start; font: inherit; font-size: 0.78rem; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.filter-note { margin: 0; font-size: 0.72rem; color: var(--muted); }
.el-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--muted); }
.el-dot.el-fire { background: #e0603f; } .el-dot.el-water { background: #3b8be0; } .el-dot.el-wind { background: #4fb59a; }
.el-dot.el-earth { background: #b0874a; } .el-dot.el-ice { background: #7cc6e8; } .el-dot.el-thunder { background: #9a6ae0; }
.el-dot.el-wood { background: #5aa84a; } .el-dot.el-light { background: #e8c23a; } .el-dot.el-dark { background: #5a4a7a; }
.list-cell { display: flex; }
.list-cell > * { flex: 1; }
.list-empty { color: var(--muted); font-size: 0.9rem; }
/* リスト表示: 絵を小さく左、文を右に 1 行ずつ */
.entry-grid.is-list { grid-template-columns: 1fr; gap: 0.45rem; }
.entry-grid.is-list .art-card { flex-direction: row; align-items: stretch; }
.entry-grid.is-list .art-card-img { width: 5.5rem; flex: none; aspect-ratio: auto; }
.entry-grid.is-list .art-card-body { padding: 0.5rem 0.8rem; justify-content: center; }
.entry-grid.is-list .entry-card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- 段 3 ② 個別ページの型 --- */
.ih {
  --band: var(--accent);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  min-height: 11rem; margin: 0 0 0.9rem; border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--border); box-shadow: 0 4px 16px var(--shadow);
}
.ih::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 46%; background: var(--band); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); opacity: 0.9; }
.ih-fire { --band: linear-gradient(135deg, #f08a5d, #c94b2c); }
.ih-thunder { --band: linear-gradient(135deg, #b08ef0, #6a46c2); }
.ih-water { --band: linear-gradient(135deg, #6fb0f0, #2f6fc2); }
.ih-wind { --band: linear-gradient(135deg, #7fd1b8, #2f9a7a); }
.ih-wood { --band: linear-gradient(135deg, #8fcf6f, #4a8a3a); }
.ih-earth { --band: linear-gradient(135deg, #d6b07a, #9a7040); }
.ih-ice { --band: linear-gradient(135deg, #a8def5, #5aa6cf); }
.ih-light { --band: linear-gradient(135deg, #f5dc7a, #d0a420); }
.ih-dark { --band: linear-gradient(135deg, #8a7aaa, #4a3a6a); }
.ih-none { --band: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.ih-text { position: relative; z-index: 1; padding: 1.3rem 1.3rem 1.1rem; }
.ih-kicker { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.ih h1 { margin: 0.1rem 0 0; font-size: 2rem; line-height: 1.2; }
.ih-cv { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.85rem; }
.ih-art { position: relative; z-index: 1; margin: 0; width: 13rem; align-self: stretch; }
.ih-art img { display: block; width: 100%; height: 100%; max-height: 15rem; object-fit: cover; object-position: center 12%; }
.ih-art figcaption { position: absolute; right: 0.5rem; bottom: 0.3rem; font-size: 0.6rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
@media (max-width: 560px) { .ih-art { width: 9rem; } .ih h1 { font-size: 1.6rem; } }

.ih-summary { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; }
.tok { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 8px; background: var(--card-bg); border: 1px solid var(--border); }
.tok-ic svg { width: 15px; height: 15px; color: var(--accent); margin: 0; vertical-align: -2px; }
.tok-star { color: #b07a00; background: var(--yellow-soft); border-color: transparent; letter-spacing: 0.05em; }
.tok-cbt { font-size: 0.68rem; font-weight: 700; padding: 0.05rem 0.5rem; background: var(--yellow-soft); color: color-mix(in srgb, var(--yellow) 40%, var(--fg)); border-color: transparent; margin-left: 0.5rem; vertical-align: 2px; }

.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.4rem; margin: 0 0 1rem; }
.tabs a {
  text-align: center; padding: 0.55rem 0.6rem; border-radius: 10px 10px 0 0; text-decoration: none; font-weight: 700; font-size: 0.9rem;
  color: var(--muted); background: var(--card-bg); border: 1px solid var(--border); border-bottom: 3px solid var(--border);
}
.tabs a[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.tab-panel { margin-bottom: 1.4rem; }
.has-tabs .tab-panel .sec-h { display: none; }
.sec-h { font-size: 1.05rem; display: flex; align-items: center; }
.sub-h { font-size: 0.9rem; margin: 1.1rem 0 0.4rem; color: var(--muted); }
.note { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.8rem; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.4rem; margin-top: 0.8rem; }
.kv-list { display: grid; gap: 0.4rem; }
.kv { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.kv-k { padding: 0.5rem 0.7rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); background: var(--accent-soft); }
.kv-v { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.5rem; }
.stat { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.9rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; }
.stat-k { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.stat-v { font-size: 1.25rem; font-weight: 800; display: inline-flex; align-items: center; gap: 0.4rem; }
.stat-star { color: #b07a00; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-list li { font-size: 0.82rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.tag-list-strong li { font-weight: 700; }

/* --- 段 3 ③ 検証ページの型（A3）: 問い → 先に結論 → 式 → 表（確認状態の列） --- */
.vq { padding: 1rem 1.1rem; margin: 0 0 1.2rem; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.vq-tag { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.75rem; color: var(--muted); }
.vq-q { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.45; }
.vc { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.6rem; margin: 0.4rem 0 1rem; }
.vc-item { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.8rem 0.9rem; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--border); }
.vc-item b { font-size: 1rem; }
.vc-item span { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.vc-warn { border-style: dashed; }
.vf { padding: 0.8rem 1rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 0.92rem; line-height: 1.7; }
.table-wrap { overflow-x: auto; margin: 0.6rem 0 1rem; }
.vt { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card-bg); }
.vt th, .vt td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.vt th { background: var(--th-bg); font-weight: 700; white-space: nowrap; }
.vt .num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.vt-best td { background: color-mix(in srgb, var(--yellow-soft) 70%, transparent); }
.st { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 999px; margin: 0.1rem 0; }
.st-ok { background: color-mix(in srgb, #2e9d6a 16%, transparent); color: #2e9d6a; }
.st-tbd { border: 1px dashed var(--border); color: var(--muted); }
