/* ============================================================
   anime-news.css — アニメニュースまとめ記事（post_type=post）用スタイル
   AI 生成下書き（docs/SKILL-news.md 手順7）のクラス付き HTML に対応する。
   すべてクラススコープで定義し、素の h2/p 等は親テーマの装飾に任せる。
   ============================================================ */

/* ── リード文 ─────────────────────────────────────────────── */
.news-lead {
  background: var(--brand-primary-bg, #f0f9ff);
  border: 1px solid var(--brand-primary-border, #bae6fd);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin: 1rem 0 1.4rem;
  line-height: 1.9;
  color: #1f2937;
}

/* ── 本日の速報一覧（リード直下のダイジェスト） ───────────── */
ul.news-digest {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: .55rem .9rem;
  border: 1px dashed var(--brand-primary-border, #bae6fd);
  border-radius: 8px;
  font-size: .9rem;
}
ul.news-digest > li {
  position: relative;
  padding: .3rem 0 .3rem 1.25rem;
  line-height: 1.7;
}
ul.news-digest > li::before {
  content: "▸";
  position: absolute;
  left: .2rem;
  color: var(--brand-primary, #0ea5e9);
  font-weight: 700;
}

/* ── ハイシン会話（キャラ画像つき吹き出し） ────────────────
   キャラ画像の差し替え方法:
     子テーマの images/ フォルダに以下の 2 ファイルを置くだけで反映される
     （CSS の変更は不要。無い間は色つきサークル＋名前ラベルで表示される）:
       images/hisin-hai.png  … ハイのアイコン（正方形・160px 以上推奨）
       images/hisin-shin.png … シンのアイコン（同上）
   ──────────────────────────────────────────────────────── */
.hisin-talk {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin: 1.1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
}
.hisin-talk__item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  max-width: 92%;
}
/* シンは右寄せ（LINE 風） */
.hisin-talk__item--shin {
  flex-direction: row-reverse;
  align-self: flex-end;
}
/* アバター＋名前ラベルの縦組み */
.hisin-talk__chara {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  width: 3.4rem;
}
.hisin-talk__avatar {
  display: block;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
/* 画像が置かれるまでのノーイメージ状態は色つきサークルで表示 */
.hisin-talk__item--hai .hisin-talk__avatar {
  background-color: var(--brand-primary-dark, #0369a1);
  background-image: url("../images/hisin-hai.png");
}
.hisin-talk__item--shin .hisin-talk__avatar {
  background-color: #f472b6; /* pink-400 */
  background-image: url("../images/hisin-shin.png");
}
.hisin-talk__name {
  font-size: .7rem;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.2;
}
.hisin-talk__bubble {
  position: relative;
  margin: .35rem 0 0;
  padding: .7rem .95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  line-height: 1.8;
  font-size: .95rem;
}
.hisin-talk__item--hai  .hisin-talk__bubble {
  border-color: var(--brand-primary-border, #bae6fd);
  background: var(--brand-primary-bg, #f0f9ff);
}
.hisin-talk__item--shin .hisin-talk__bubble {
  border-color: #fbcfe8; /* pink-200 */
  background: #fdf2f8;   /* pink-50 */
}
/* 吹き出しのしっぽ */
.hisin-talk__bubble::before {
  content: "";
  position: absolute;
  top: .95rem;
  border: 7px solid transparent;
}
.hisin-talk__item--hai .hisin-talk__bubble::before {
  left: -13px;
  border-right-color: var(--brand-primary-border, #bae6fd);
}
.hisin-talk__item--shin .hisin-talk__bubble::before {
  right: -13px;
  border-left-color: #fbcfe8;
}

/* ── 作品ページへの導線ボタン ─────────────────────────────── */
.news-work-link {
  margin: 1rem 0 1.6rem;
}
.news-work-link a {
  display: inline-block;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: var(--brand-primary-dark, #0369a1);
  color: #fff !important;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  transition: background .15s ease, transform .15s ease;
}
.news-work-link a:hover {
  background: var(--brand-primary, #0ea5e9);
  transform: translateY(-1px);
}
.news-work-link a + a { margin-left: .5rem; }

/* ── その他のニュース（箇条書き） ─────────────────────────── */
ul.news-other {
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
}
ul.news-other > li {
  position: relative;
  padding: .65rem .8rem .65rem 1.9rem;
  border-bottom: 1px dashed #e5e7eb;
  line-height: 1.8;
}
ul.news-other > li:last-child { border-bottom: none; }
ul.news-other > li::before {
  content: "▸";
  position: absolute;
  left: .6rem;
  color: var(--brand-primary, #0ea5e9);
  font-weight: 700;
}

/* ── 締めの注意書き ───────────────────────────────────────── */
.news-note {
  margin: 1.4rem 0 1rem;
  padding: .7rem .95rem;
  background: #fffbeb;             /* amber-50 */
  border-left: 4px solid #f59e0b;  /* amber-500 */
  border-radius: 0 6px 6px 0;
  font-size: .88rem;
  color: #78350f;
  line-height: 1.8;
}

/* ── 出典（折りたたみ） ───────────────────────────────────── */
details.news-sources {
  margin: 1rem 0 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: .85rem;
}
details.news-sources > summary {
  cursor: pointer;
  padding: .6rem .95rem;
  font-weight: 700;
  color: #374151;
  list-style: none;
}
details.news-sources > summary::-webkit-details-marker { display: none; }
details.news-sources > summary::before {
  content: "▸ ";
  color: var(--brand-primary, #0ea5e9);
}
details.news-sources[open] > summary::before { content: "▾ "; }
details.news-sources ul {
  margin: 0;
  padding: .2rem 1.2rem .8rem 2rem;
}
details.news-sources li {
  margin: .25rem 0;
  line-height: 1.7;
  overflow-wrap: anywhere; /* 長いURLでレイアウトを壊さない */
}
details.news-sources a {
  color: var(--brand-primary-dark, #0369a1);
}

/* ── モバイル調整 ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hisin-talk { padding: .75rem; }
  .hisin-talk__item { max-width: 100%; }
  .hisin-talk__chara { width: 2.9rem; }
  .hisin-talk__avatar { width: 2.6rem; height: 2.6rem; }
  .news-work-link a { display: block; text-align: center; }
  .news-work-link a + a { margin-left: 0; margin-top: .5rem; }
}
