/* ============================================================
   アニメ海外の反応まとめ — 楽天市場ライク（EC / ランキング）デザイン
   制約: 絵文字なし。星はインラインSVG(#f5a623)、装飾は原則CSS/SVG。
   主色: クリムゾン #BF0000（楽天レッド）。背景: 薄グレー #f7f7f7。
   ============================================================ */

:root {
  /* 楽天レッド系 */
  --brand: #bf0000; /* 楽天レッド（主色） */
  --brand-dark: #9c0000;
  --brand-2: #d81c1c;
  --brand-tint: #fdeaea;
  --brand-tint-line: #f4c9c9;

  --accent: #f5a623; /* ゴールド（星/強調） */
  --star: #b26a00;
  --star-empty: #8e8e99;

  /* ベース */
  --bg: #f7f7f7;
  --bg-2: #efefef;
  --surface: #ffffff;
  --surface-2: #fbfbfb;
  --ink: #1f1f1f;
  --ink-2: #333333;
  --muted: #666666;
  --muted-2: #888888;
  --line: #e6e6e6;
  --line-strong: #d5d5d5;

  --quote-bg: #fafafa;
  --quote-line: #ececec;
  --badge: #f0f0f0;

  --ok: #157a3a;
  --ok-bg: #eaf6ee;
  --ok-line: #cbe7d4;
  --warn-bg: #fff7e6;
  --warn-line: #f2dca8;
  --warn-ink: #7a5b10;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.12);

  --maxw: 1120px;
  --radius: 6px;
  --radius-sm: 4px;
  --hero-ink: #ffffff;
  --hero-sub: #ffe3e3;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header（クリムゾン地・白文字） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  border-bottom: 3px solid var(--brand-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.01em;
}
.logo:hover {
  text-decoration: none;
  color: #fff;
}
.logo .mark {
  background: #fff;
  color: var(--brand);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  -webkit-text-fill-color: var(--brand);
}
.logo .tag {
  font-size: 11px;
  font-weight: 600;
  color: #ffdede;
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}

/* ---------- カテゴリ帯（タブ的な導線） ---------- */
.cat-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
.cat-bar a {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.cat-bar a:hover {
  text-decoration: none;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-color: var(--brand-tint-line);
}

/* ---------- Notice / disclosure ---------- */
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  margin: 16px 0;
  line-height: 1.65;
}
.disclosure {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  margin: 14px 0;
}

/* ---------- Layout ---------- */
main {
  padding: 20px 0 48px;
}
.page-title {
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.28;
}
.lead {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14.5px;
}

/* セクションタイトル: フル幅のクリムゾン帯 */
.section-title {
  font-size: 17px;
  font-weight: 900;
  margin: 34px 0 16px;
  color: #fff;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius);
  padding: 10px 14px;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero（クリムゾンのバナー） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  margin: 6px 0 4px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--hero-ink);
  box-shadow: var(--shadow);
  border: 1px solid var(--brand-dark);
  isolation: isolate;
}
.hero .hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero h1.page-title {
  color: var(--hero-ink);
  margin: 0 0 10px;
  font-size: 30px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero .lead {
  color: var(--hero-sub);
  margin: 0;
  max-width: 56ch;
  font-size: 14.5px;
}
.hero .hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero .hero-stats .stat {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero .hero-stats .num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero .hero-stats .lbl {
  font-size: 12px;
  color: var(--hero-sub);
  font-weight: 700;
  opacity: 0.95;
}

/* ---------- Cards grid（EC的に情報密度高め） ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--brand-tint-line);
}
.card a.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.card a.card-link:hover {
  text-decoration: none;
}
.card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  padding: 14px 16px;
  line-height: 1.3;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.card .thumb .thumb-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card .thumb .thumb-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .thumb .thumb-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.66));
}
.card .thumb .thumb-title {
  position: relative;
  z-index: 2;
}
/* サムネ上のステータスバッジ（放送中/NEW 等） */
.thumb-badges {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.card .body {
  padding: 12px 13px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card .body h3 {
  margin: 2px 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.card .meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
}
.card .meta span {
  display: inline-flex;
  align-items: center;
}
.card .sv-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}
.card .excerpt {
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- ランキング順位バッジ ---------- */
.grid.ranked .card {
  position: relative;
}
.rank {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: #555;
  border-bottom-right-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
}
.rank.gold {
  background: linear-gradient(180deg, #e0a800, #c8920a);
}
.rank.silver {
  background: linear-gradient(180deg, #9aa4ad, #7c868f);
}
.rank.bronze {
  background: linear-gradient(180deg, #b5793e, #97612d);
}
/* 上位3位は赤で強調（1位はより濃く） */
.rank.gold,
.rank.silver,
.rank.bronze {
  color: #fff;
}
.grid.ranked .card:nth-child(1) .rank,
.grid.ranked .card:nth-child(2) .rank,
.grid.ranked .card:nth-child(3) .rank {
  min-width: 34px;
  height: 34px;
  font-size: 16px;
}

/* ---------- 星評価（インラインSVG） ---------- */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.stars .star {
  width: 15px;
  height: 15px;
  display: block;
}
.stars .star.full path {
  fill: var(--star);
}
.stars .star.empty path {
  /* 空星は塗りではなく輪郭で示す（web-fleet #309）。
     塗りだと「背景から浮かせる(3:1)」と「満星と区別する(3:1)」が両立しない
     （実測: 満星と空星の差が 1.48 しかなく、星の数＝評価が読めなかった）。
     輪郭にすれば形状でも区別でき、色は背景に対してだけ確保すればよい。 */
  fill: none;
  stroke: var(--star-empty);
  stroke-width: 1.6;
}
.rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 0 2px;
  flex-wrap: wrap;
}
.rating-num {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.rating-count {
  font-size: 11.5px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  background: var(--badge);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  line-height: 1.5;
}
.badge.season {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-color: var(--brand-tint-line);
}
.badge.lang {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-line);
  font-variant: small-caps;
  letter-spacing: 0.04em;
}
/* ステータス・配信バッジ */
.badge.onair {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
}
.badge.new {
  background: var(--accent);
  color: #3a2600;
  border-color: #d9911a;
}
.badge.sv {
  background: #eef0f2;
  color: #333;
  border-color: #dcdfe3;
}
.badge.sv.netflix {
  background: #111;
  color: #fff;
  border-color: #000;
}
.badge.sv.crunchyroll {
  background: #f47521;
  color: #fff;
  border-color: #d8620f;
}
.badge.sv.prime {
  background: #00a8e1;
  color: #fff;
  border-color: #0090c2;
}
.badge.sv.abema {
  background: #111;
  color: #23e07a;
  border-color: #000;
}
.badge.sv.dmm {
  background: #d80c18;
  color: #fff;
  border-color: #b40a14;
}
.badge.sv.danime {
  background: #ff6600;
  color: #fff;
  border-color: #e05a00;
}
.chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 2px 0 8px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 16px;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb span {
  margin: 0 6px;
  color: var(--muted-2);
}

/* ---------- Work header ---------- */
.work-head {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px 22px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.work-head .wh-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  z-index: 0;
}
.work-head .wh-inner {
  position: relative;
  z-index: 1;
}
.content-image {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
}
.content-image-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.content-image figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.content-image figcaption a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.work-main-image {
  margin-bottom: 0;
}
.episode-main-image {
  max-width: 760px;
  margin: 0 0 14px;
}
.work-head h1 {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.28;
}
.work-head .sub {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 12px;
  font-style: italic;
}
.work-head .synopsis {
  margin: 14px 0 0;
  color: var(--ink-2);
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--muted);
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.facts span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.facts b {
  color: var(--muted-2);
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Episodes ---------- */
.episode {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 0 0 20px;
  overflow: hidden;
}
.episode > h2 {
  margin: 0;
  padding: 13px 18px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--brand-dark);
}
.episode > h2 .epnum {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 900;
}
.episode > h2 .aired {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
}
.ep-note {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 18px 0;
  line-height: 1.65;
}
/* 反応リスト: 1件ずつを読みやすいカードで縦に並べ、明確に区切る */
.reactions {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Reaction card（コメント1件ずつ・可読性優先） ---------- */
.reaction {
  border: 1px solid var(--quote-line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 18px 17px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.reaction:hover {
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.reaction .rhead {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
/* コメント番号（一覧内の通し番号・ランキングではなく可読性の目印） */
.reaction .rnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 800;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.reaction .rhead .who {
  font-weight: 800;
  color: var(--ink);
  font-size: 13.5px;
}
/* 言語バッジ: 略称(EN)＋日本語名を明示 */
.reaction .rhead .badge.lang .lang-full {
  margin-left: 5px;
  font-variant: normal;
  letter-spacing: 0;
  font-weight: 700;
  opacity: 0.9;
}
.reaction .rhead .rstars .stars .star {
  width: 13px;
  height: 13px;
}
.reaction .rhead .score {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reaction .rhead .score::before {
  content: "\25B2"; /* ▲ */
  color: var(--brand);
  font-size: 9px;
}
/* 反応本文: 全文表示（省略・line-clamp なし）・行間広め・十分な文字サイズ */
.reaction blockquote.rtext {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* 段落・複数文の長文でも崩れないよう、段落間に余白を確保 */
.reaction blockquote.rtext p {
  margin: 0 0 0.9em;
}
.reaction blockquote.rtext p:last-child {
  margin-bottom: 0;
}
/* 出典（原文 permalink）へのリンク。翻訳元を必ず辿れるようにする（#172） */
.reaction .rsource {
  margin: 0.6em 0 0;
  font-size: 12.5px;
}
.reaction .rsource a {
  color: var(--muted, #667);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.reaction .rsource a:hover {
  color: var(--accent);
}

/* ---------- 原文の併記（#209・折りたたみ） ---------- */
/* 翻訳サイトに倣い、各反応の原文を控えめな引用として折りたたみ表示する。 */
.reaction .roriginal {
  margin: 0.7em 0 0;
  font-size: 13.5px;
}
.reaction .roriginal > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}
.reaction .roriginal > summary::-webkit-details-marker {
  display: none;
}
.reaction .roriginal > summary::before {
  content: "\FF0B"; /* ＋ */
  font-weight: 800;
  color: var(--muted-2);
}
.reaction .roriginal[open] > summary::before {
  content: "\2212"; /* − */
}
.reaction .roriginal > summary:hover {
  color: var(--accent);
}
.reaction blockquote.roriginal-text {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: var(--quote-bg);
  border: 1px solid var(--quote-line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- 返信スレッド（#209） ---------- */
/* 返信は親反応への↳リンクと短い引用で示し、カードを少し字下げして関係を可視化する。 */
.reaction--reply {
  margin-left: 20px;
  border-left: 3px solid var(--brand-tint-line);
}
.reaction .rreply {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.reaction .rreply:hover {
  color: var(--accent);
}
.reaction .rreply .rreply-who {
  color: var(--ink-2);
}
.reaction .rreply .rreply-num {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.reaction blockquote.rreply-quote {
  margin: 0 0 10px;
  padding: 6px 11px;
  background: var(--surface-2);
  border-left: 3px solid var(--quote-line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.reaction:target {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Amazon affiliate blocks ---------- */
.aff {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.aff h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}
.aff p.aff-lead {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
}
.aff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aff-btn {
  display: block;
  text-align: center;
  background: #ff9900;
  color: #131a24;
  font-weight: 800;
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e08600;
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
.aff-btn:hover {
  background: #ffad33;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.aff-btn.alt {
  background: #232f3e;
  color: #fff;
  border-color: #232f3e;
}
.aff-btn.alt:hover {
  background: #374863;
}

/* ---------- Season / plain lists ---------- */
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.list-plain li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color 0.15s;
}
.list-plain li a:hover {
  text-decoration: none;
  border-color: var(--brand);
}
.list-plain .count {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Updates list ---------- */
.updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.updates li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px 15px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  transition: border-color 0.15s;
}
.updates li:hover {
  border-color: var(--line-strong);
}
.updates .date {
  font-size: 11px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  background: var(--brand);
  border: 1px solid var(--brand-dark);
  padding: 2px 9px;
  border-radius: var(--radius-sm);
}
.updates .ttl {
  font-weight: 800;
  font-size: 14.5px;
}
.updates .meta {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #333;
  border-top: 4px solid var(--brand);
  margin-top: 32px;
  padding: 28px 0;
  font-size: 12.5px;
  color: #cfcfcf;
}
.site-footer .fnav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-weight: 700;
}
.site-footer a {
  color: #ffdede;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .disclosure {
  background: #3d3d3d;
  border-color: #4a4a4a;
  color: #bdbdbd;
}
.site-footer .fine {
  font-size: 11px;
  line-height: 1.7;
  color: #a8a8a8;
}

/* ---------- Facts: full-width rows ---------- */
.facts span.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  color: var(--ink-2);
}
.facts span.wide b {
  white-space: nowrap;
}

/* ---------- Tag references ---------- */
a.badge.tagref {
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
a.badge.tagref:hover {
  text-decoration: none;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-color: var(--brand-tint-line);
}

/* ---------- 作品目次の話数一覧（各話ページへのリンク集） ---------- */
.ep-index {
  margin: 8px 0 20px;
}
.ep-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.ep-toc li a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  height: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ep-toc li a:hover {
  text-decoration: none;
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.ep-toc .et-top {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.ep-toc .n {
  display: inline-block;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand-dark);
  padding: 1px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.ep-toc .t {
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.35;
}
.ep-toc .d {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.ep-toc .ex {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- 各話ページ: エピソード見出しヘッダー ---------- */
.ep-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.ep-head .ep-work {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 700;
}
.ep-head .ep-work a {
  color: var(--brand);
}
.ep-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ep-head h1 .epnum {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand-dark);
  padding: 3px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* 各話トップのナビ（作品トップへ戻る） */
.ep-topnav {
  margin: 0 0 16px;
}
.ep-topnav .back {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-line);
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.ep-topnav .back:hover {
  text-decoration: none;
  background: var(--surface);
}

/* ---------- Episode intro / source ---------- */
.ep-intro {
  padding: 13px 18px 0;
}
.ep-intro.card-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin-bottom: 4px;
}
.ep-lead {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 8px;
  line-height: 1.75;
}
.ep-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 0;
}
.ep-intro.card-intro .ep-note {
  padding: 0;
}
.ep-source {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
}
.ep-source a {
  color: var(--brand);
}

/* ---------- 各話ページ: 前後の話ナビ（タイトル付き） ---------- */
.ep-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin: 6px 0 22px;
}
.ep-nav a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-weight: 800;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-line);
  padding: 11px 15px;
  border-radius: var(--radius);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.ep-nav a:hover {
  text-decoration: none;
  background: var(--surface);
  border-color: var(--brand);
}
.ep-nav a .lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ep-nav a .t {
  font-size: 13.5px;
  line-height: 1.4;
}
.ep-nav a.next {
  text-align: right;
}
.ep-nav a.tolist {
  align-self: center;
  flex-direction: row;
  align-items: center;
  font-size: 13px;
  padding: 10px 16px;
  white-space: nowrap;
}

/* ---------- Prose (legal pages) ---------- */
.prose {
  max-width: 74ch;
}
.prose h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 26px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
  letter-spacing: -0.01em;
}
.prose p {
  margin: 0 0 14px;
  color: var(--ink-2);
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
  color: var(--ink-2);
}
.prose li {
  margin: 4px 0;
}
.prose a {
  color: var(--brand);
}
.prose .contact-mail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* ---------- Tag cloud ---------- */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 8px 0 20px;
}
.tagchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.tagchip:hover {
  text-decoration: none;
  border-color: var(--brand);
  color: var(--brand-dark);
}
.tagchip .c {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 1px 8px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Schedule ---------- */
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 8px 0;
}
.sched-day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.sched-h {
  margin: 0;
  padding: 11px 16px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  border-bottom: 1px solid var(--brand-dark);
}
.sched-list {
  list-style: none;
  margin: 0;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sched-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sched-list .ttl {
  font-weight: 800;
  font-size: 14.5px;
}
.sched-list .sm {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Related works ---------- */
.related {
  margin-top: 8px;
}

/* ---------- Footer secondary nav ---------- */
.site-footer .fnav.secondary {
  font-weight: 500;
  font-size: 12px;
  margin-top: -4px;
  margin-bottom: 14px;
}

/* ---------- 404 not found ---------- */
.notfound {
  max-width: 720px;
}
.notfound .lead {
  margin-bottom: 20px;
}
.backhome {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}
.backhome:hover {
  text-decoration: none;
  background: var(--brand-dark);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  body {
    font-size: 14.5px;
  }
  .site-header .wrap {
    min-height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .site-nav {
    margin-left: 0;
  }
  .logo .tag {
    display: none;
  }
  .hero {
    padding: 26px 20px 24px;
  }
  .hero h1.page-title {
    font-size: 24px;
  }
  .page-title,
  .work-head h1,
  .ep-head h1 {
    font-size: 21px;
  }
  .work-head {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  .episode-main-image {
    max-width: none;
  }
  .hero .hero-stats {
    gap: 16px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  /* 反応本文はスマホでも十分な文字サイズを維持 */
  .reaction blockquote.rtext {
    font-size: 15px;
    line-height: 1.8;
  }
  .reaction {
    padding: 14px 15px 15px;
  }
  /* 返信の字下げはスマホでは控えめに（横幅を圧迫しない） */
  .reaction--reply {
    margin-left: 10px;
  }
  /* 前後の話ナビは縦積みに */
  .ep-nav {
    grid-template-columns: 1fr;
  }
  .ep-nav a.next {
    text-align: left;
  }
  .ep-nav a.tolist {
    order: 3;
    justify-content: center;
  }
  .ep-toc {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── 海外の反応: 感情ラベルの色分け（左縦ボーダーは使わない） ── */
.emo {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.7;
}
.emo-hype {
  background: #e8462c;
}
.emo-funny {
  background: #e79400;
  color: #3a2a00;
}
.emo-moved {
  background: #2f80ed;
}
.emo-love {
  background: #e84393;
}
.emo-shock {
  background: #8e44ad;
}
.emo-angry {
  background: #c0392b;
}
.emo-scared {
  background: #3f51b5;
}
.emo-think {
  background: #12897b;
}
.reaction.r-hype {
  background:
    linear-gradient(0deg, rgba(232, 70, 44, 0.06), rgba(232, 70, 44, 0.06)),
    var(--surface);
  border-color: rgba(232, 70, 44, 0.38);
}
.reaction.r-funny {
  background:
    linear-gradient(0deg, rgba(231, 148, 0, 0.08), rgba(231, 148, 0, 0.08)),
    var(--surface);
  border-color: rgba(231, 148, 0, 0.42);
}
.reaction.r-moved {
  background:
    linear-gradient(0deg, rgba(47, 128, 237, 0.06), rgba(47, 128, 237, 0.06)),
    var(--surface);
  border-color: rgba(47, 128, 237, 0.38);
}
.reaction.r-love {
  background:
    linear-gradient(0deg, rgba(232, 67, 147, 0.06), rgba(232, 67, 147, 0.06)),
    var(--surface);
  border-color: rgba(232, 67, 147, 0.38);
}
.reaction.r-shock {
  background:
    linear-gradient(0deg, rgba(142, 68, 173, 0.06), rgba(142, 68, 173, 0.06)),
    var(--surface);
  border-color: rgba(142, 68, 173, 0.38);
}
.reaction.r-angry {
  background:
    linear-gradient(0deg, rgba(192, 57, 43, 0.08), rgba(192, 57, 43, 0.08)),
    var(--surface);
  border-color: rgba(192, 57, 43, 0.42);
}
.reaction.r-scared {
  background:
    linear-gradient(0deg, rgba(63, 81, 181, 0.06), rgba(63, 81, 181, 0.06)),
    var(--surface);
  border-color: rgba(63, 81, 181, 0.38);
}
.reaction.r-think {
  background:
    linear-gradient(0deg, rgba(18, 137, 123, 0.06), rgba(18, 137, 123, 0.06)),
    var(--surface);
  border-color: rgba(18, 137, 123, 0.38);
}

/* ---------- 各話ページ: よくある質問（FAQ・ニッチ長尾SEO） ---------- */
.faq {
  margin: 22px 0;
}
.faq-list {
  margin: 0;
}
.faq-list dt {
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 10px 0 0;
  line-height: 1.55;
}
.faq-list dt::before {
  content: "Q. ";
  color: var(--brand);
  font-weight: 800;
}
.faq-list dd {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink-2);
  line-height: 1.75;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.faq-list dd::before {
  content: "A. ";
  color: var(--muted);
  font-weight: 800;
}

/* ---------- 更新日・話数カバレッジ（#131 A-3・作品ページ H1 直下） ---------- */
.work-head .coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.work-head .coverage .cov-eps {
  font-weight: 800;
  color: var(--ink-2);
}
.work-head .coverage .cov-sep {
  color: var(--line-strong);
}
.work-head .coverage time {
  font-variant-numeric: tabular-nums;
}

/* ---------- 出典番号チップ + 出典一覧（#131 A-2・複数出典の話のみ） ---------- */
.rhead .rsrc-id,
.ep-sources-note .rsrc-id {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  line-height: 1.4;
  white-space: nowrap;
}
.rhead .rsrc-id:hover {
  color: var(--brand);
  border-color: var(--brand-tint-line);
  background: var(--brand-tint);
}
.ep-sources {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin: 0 0 22px;
}
.ep-sources .ep-sources-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.ep-sources .src-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ep-sources .src-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.ep-sources .src-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.ep-sources .src-list .src-n {
  font-weight: 800;
  color: var(--brand);
  min-width: 2.4em;
}
.ep-sources .src-list .src-host {
  color: var(--muted-2);
  font-weight: 700;
}
.ep-sources .src-list a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.ep-sources .src-list a:hover {
  color: var(--accent);
}
.ep-sources .src-list li:target {
  background: var(--brand-tint);
  border-radius: var(--radius-sm);
}

/* ---------- 五十音インデックス /anime/（#131 B-1） ---------- */
.kana-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.kana-nav a {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  background: var(--surface);
}
.kana-nav a:hover {
  color: var(--brand);
  border-color: var(--brand-tint-line);
  background: var(--brand-tint);
}
.idx-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.idx-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}
.idx-chip:hover {
  border-color: var(--brand-tint-line);
}
.idx-chip.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.idx-row {
  margin: 0 0 26px;
  scroll-margin-top: 80px;
}
.idx-row-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 12px;
  padding: 0 0 6px;
  border-bottom: 2px solid var(--brand);
}
.idx-row-head .idx-row-c {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
}
.idx-item[hidden] {
  display: none;
}

/* ---------- 公開変更履歴 /changelog（web-fleet #206） ---------- */
.clg-list { list-style: none; margin: 16px 0 0; padding: 0; }
.clg-list > li {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.clg-list > li:last-child { border-bottom: 0; }
.clg-date { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 6.5em; }
.clg-cat {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px;
  border-radius: 999px; background: var(--brand-tint); color: var(--brand-dark);
  border: 1px solid var(--brand-tint-line);
}
.clg-summary { flex: 1 1 auto; font-size: 14.5px; color: var(--ink-2); }
