/* =========================================================
   Chillarin Blog — list.css
   一覧ページ専用スタイル (posts / legal の section 一覧、
   categories・tags の term、/categories/ /tags/ の taxonomy)
   - baseof.html の $useListCss 判定でのみロード
   - トップページ v3 (assets/css/home.css) のデザイン言語を一覧に展開:
     ミント下線見出し (.home-sec-head 系) + リッチカード (.home-post-card 系)
   - article.css (hero-lite / a-layout / sidebar) の後に読み込まれる前提
   - reveal 基盤 ([data-rv]) は style.css + assets/js/reveal.js (共通)
   ========================================================= */

/* ---------- セクション見出し (kicker + serif title + ミント下線) ---------- */

.lp-sec-head {
  margin: 40px 0 28px;
}

.lp-sec-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.lp-sec-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  letter-spacing: -0.01em;
  padding-bottom: 14px;
  position: relative;
}

.lp-sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.lp-sec-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* ---------- トピックハブ兄弟リンク (data/hubs.yaml 由来のピル行) ---------- */

.lp-hub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.lp-hub-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lp-hub a {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.lp-hub a:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------- 記事リッチカード (home-post-card の一覧展開) ---------- */

.lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.lp-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease;
}
.lp-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 14px var(--accent-soft);
}

.lp-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-card));
  overflow: hidden;
}
.lp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.lp-card:hover .lp-thumb img { transform: scale(1.05); }

.lp-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-on);
  background: var(--accent);
  border-radius: 999px;
}

.lp-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}

.lp-title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
.lp-card:hover .lp-title { color: var(--accent); }

.lp-meta {
  margin-top: auto;
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* reveal とカード hover の transform 競合回避 (home.css と同じ手当て) */
.has-motion .lp-card.is-in,
.has-motion .term-card.is-in {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease;
}

/* ---------- terms カード (/categories/ /tags/) を v3 hover に引き上げ ----------
   ベース定義は article.css の .term-card。ここでは角丸と hover だけ
   home-hub-card と同じ挙動に上書きする */

.term-card {
  border-radius: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease;
}
.term-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 14px var(--accent-soft);
}
