/* ad-slot.css — 広告枠（2026-10-25・CEO 決定: LiveBase + 広告募集を HP の 2 箇所に）
 *
 * 方針: 読み込み前に高さを確保して画面のずれを出さない（aspect-ratio）、横スクロールを出さない、
 * 画像は変形させない（object-fit: cover）、「PR」の表記を必ず付ける、操作部に重ねない（フロー内のみ）。
 * 色は site.css / lp.css のトークンだけを使う。
 */
.ad-slot {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border, rgba(168, 85, 247, 0.18));
  border-radius: var(--radius, 14px);
  overflow: hidden;
  background: var(--bg-card, rgba(16, 18, 32, 0.92));
}
.ad-slot[hidden] { display: none; }
.ad-slot__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}
@media (min-width: 768px) {
  .ad-slot__viewport { aspect-ratio: 6 / 1; }
}
.ad-slot__item {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}
.ad-slot__item.is-active {
  opacity: 1;
  pointer-events: auto;
}
.ad-slot__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-slot__pr {
  /* 右上に置く（2026-10-26）— 左上は LiveBase のロゴ・募集バナーの「LiverStats」の頭文字に重なっていた */
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  pointer-events: none;
}
.ad-slot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--text-muted, #a1a1aa);
}
.ad-slot__about {
  color: var(--text-muted, #a1a1aa);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ad-slot__about:hover { color: var(--text, #f5f3ff); }
.ad-slot__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ad-slot__dots {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ad-slot__dot {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ad-slot__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim, #71717a);
}
.ad-slot__dot[aria-current="true"]::before { background: var(--neon, #c084fc); }
.ad-slot__btn {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border, rgba(168, 85, 247, 0.18));
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #a1a1aa);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.ad-slot__btn:hover { color: var(--text, #f5f3ff); }
.ad-slot--single .ad-slot__controls { display: none; }

/* 置き場所ごとの余白（lp.css / blog.css は触らない） */
.lp-ad { padding: 1.25rem 0 0.5rem; }
.lp-ad .ad-slot { max-width: 1080px; }
.article__ad { max-width: 44rem; margin: 2.5rem auto 0; }
.lp-ad .ad-slot[hidden], .article__ad .ad-slot[hidden] { display: none; }

/* 2026-10-25 スマホの指で押せる大きさに（CEO「スマホでも正確に見やすく」・担当 C の実測: ‹ › 28×24・点 20×20・PR 11px）。
   位置と並びはそのまま・当たり判定と文字だけ大きく。 */
.ad-slot__btn { width: 40px; height: 36px; font-size: 16px; }
.ad-slot__dot { width: 28px; height: 28px; }
.ad-slot__dot::before { width: 8px; height: 8px; }
.ad-slot__bar { font-size: 13px; padding: 8px 10px; min-height: 40px; }
.ad-slot__about { padding: 6px 0; display: inline-block; }
.ad-slot__pr { font-size: 12px; padding: 3px 9px; }
