/* ============================================================
   base.css — リセット / タイポgrafi / 基本要素
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 400;
  font-size: var(--fz-body); line-height: var(--lh-body);
  color: var(--c-ink); background: var(--c-page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
input { font-family: inherit; }

/* フォーカスリング（要件） */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- 画像プレースホルダ（FANZAサンプル枠） ---------- */
.ph {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--c-surface-3) 0 11px, var(--c-surface-2) 11px 22px);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font: 500 10.5px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: .08em; color: var(--c-ink-3);
  background: var(--c-ph-cap); padding: 4px 9px; border-radius: 4px; text-align: center;
}
.ph.cover { aspect-ratio: auto; height: 100%; }
/* 実画像（アイキャッチ等） */
.media { position: relative; overflow: hidden; background: var(--c-surface-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- バッジ ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fz-micro); font-weight: 500; letter-spacing: .04em;
  color: var(--badge-ink); background: var(--badge);
  padding: 3px 9px; border-radius: 5px; line-height: 1;
}
.badge.soft { background: var(--accent-soft); color: var(--accent); }
.badge.outline { background: transparent; color: var(--c-ink-2); border: 1px solid var(--c-line-2); }
.badge.new { background: var(--cta); color: var(--cta-ink); }

/* ---------- ★評価 ---------- */
.stars { display: inline-flex; align-items: center; gap: 6px; }
.stars-glyph { position: relative; display: inline-block; font-size: 13px; line-height: 1; letter-spacing: 2px; color: var(--c-line-2); }
.stars-glyph::before { content: "★★★★★"; }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.stars-fill::before { content: "★★★★★"; }
.stars .score { font-size: var(--fz-xs); font-weight: 500; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.stars .count { font-size: var(--fz-micro); color: var(--c-ink-3); }
.stars.on-dark .score { color: #fff; }
.stars.on-dark .count { color: rgba(255,255,255,.7); }

/* ---------- ボタン ---------- */
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--cta); color: var(--cta-ink); font-size: var(--fz-lead); font-weight: 500;
  padding: 15px; border-radius: 12px; box-shadow: var(--shadow-cta);
  transition: background .15s ease, transform .12s ease;
}
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }

/* ---------- セクション見出し ---------- */
.section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.section-head .mark { width: 4px; height: 18px; border-radius: 3px; background: var(--accent); }
.section-head h2 { font-size: var(--fz-h2); font-weight: 500; letter-spacing: .02em; }
.section-head .more { margin-left: auto; font-size: var(--fz-xs); color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }

/* ユーティリティ */
.icon { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -.18em; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
