/* engagement.css — エンゲージメント向上コンポーネント */

/* ---- YouTube facade（クリックで再生） ---- */
.yt-facade {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-color: #000;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.yt-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}
.yt-facade:hover::after,
.yt-facade:focus::after {
  background: rgba(0, 0, 0, 0.05);
}
.yt-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  background: rgba(33, 33, 33, 0.85);
  border-radius: 12px;
  z-index: 1;
  transition: background 0.2s ease;
}
.yt-facade:hover .yt-facade-play {
  background: #ff0000;
}
.yt-facade-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}

/* ---- 本文中盤「あわせて読みたい」 ---- */
.inline-related {
  margin: 1.75rem 0;
  padding: 1rem 1.1rem;
  background: #f5f8ff;
  border: 1px solid #d3deff;
  border-left: 4px solid #3b5bdb;
  border-radius: 6px;
}
.inline-related-title {
  display: block;
  font-size: 0.95rem;
  color: #2a3f9d;
  margin-bottom: 0.5rem;
}
.inline-related ul {
  margin: 0;
  padding-left: 1.2rem;
}
.inline-related li {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

/* ---- 次に読む CTA ---- */
.next-read {
  margin: 2rem 0 1rem;
  padding: 1.1rem 1.2rem;
  background: #fffaf0;
  border: 1px solid #ffe0a3;
  border-left: 4px solid #f59f00;
  border-radius: 6px;
}
.next-read-title {
  display: block;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 0.6rem;
}
.next-read ul {
  margin: 0;
  padding-left: 1.2rem;
}
.next-read li {
  margin: 0.35rem 0;
}

/* ---- 注目記事ランキング ---- */
.popular-posts {
  margin: 2rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fcfcfc;
}
.popular-posts h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}
.popular-posts ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: pop;
}
.popular-posts li {
  counter-increment: pop;
  position: relative;
  padding: 0.45rem 0 0.45rem 2.1rem;
  border-bottom: 1px dashed #eee;
}
.popular-posts li:last-child {
  border-bottom: none;
}
.popular-posts li::before {
  content: counter(pop);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #868e96;
  border-radius: 50%;
}
.popular-posts li:nth-child(1)::before { background: #f5a623; }
.popular-posts li:nth-child(2)::before { background: #adb5bd; }
.popular-posts li:nth-child(3)::before { background: #cd7f32; }

/* ---- 一覧ページ絞り込みボックス ---- */
.list-filter {
  margin: 1.25rem 0;
}
.list-filter input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.list-filter-meta {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

/* 成人向け（R-18）コンテンツの注意表示 */
.r18-notice {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid #f0b8b2;
  border-left: 5px solid #b3261e;
  border-radius: 4px;
  background: #fdecea;
  color: #7a1b15;
  font-size: 0.95rem;
  line-height: 1.7;
}
.r18-notice strong { color: #b3261e; }
