/* src/styles/article-list.css から移植 */
/* 記事一覧系ページ (カテゴリ・タグ) 共通。色は theme.css のトークンのみ。 */
.al-section { margin-top: 28px; }
.al-section > .section-title { margin-bottom: 12px; }
.al-subtitle { margin: 20px 0 4px; font-size: 14px; font-weight: 700; color: var(--muted); }

.al-chips { margin: 12px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 2px; }
@media (min-width: 768px) { .al-chips { margin: 12px 0 0; padding: 0; } }
.al-chips .chip { min-height: 44px; border-radius: 22px; padding: 0 16px; }
.al-chips .chip--tag, .al-tags .chip { background: var(--surface); }
.al-chips .chip--tag[aria-current='page'] { background: var(--accent); }

.al-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 900;
}

/* 注目記事 */
.al-featured { display: flex; flex-wrap: wrap; overflow: hidden; color: var(--text); text-decoration: none; }
.al-featured:hover { color: var(--text); }
.al-featured__media { flex: 1 1 100%; height: 200px; background: #2E3540; }
.al-featured__body { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.al-featured__title { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.5; }
.al-featured__desc { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.al-meta { margin: 0; font-size: 12px; color: var(--muted); }
.al-featured:hover .al-featured__title { color: var(--accent); }
@media (min-width: 768px) {
  .al-featured__media { flex: 1 1 320px; height: auto; min-height: 260px; }
  .al-featured__body { flex: 1 1 320px; justify-content: center; padding: 24px; }
  .al-featured__title { font-size: 22px; }
  .al-featured__desc { font-size: 14px; }
}

/* 記事リスト: モバイルは行、PC はカードのグリッド */
.al-list { list-style: none; margin: 0; padding: 0; }
.al-item { border-bottom: 1px solid var(--line); }
.al-item__link { display: flex; gap: 12px; min-height: 96px; padding: 12px 0; color: var(--text); text-decoration: none; }
.al-item__link:hover { color: var(--text); }
.al-item__link:hover .al-item__title { color: var(--accent); }
.al-item__thumb { flex: none; width: 104px; height: 72px; border-radius: 8px; background: #2E3540; }
.al-item:nth-child(even) .al-item__thumb { background: #3A2E35; }
.al-item__body { min-width: 0; }
.al-item__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.al-item__desc { display: none; margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 768px) {
  .al-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 16px; }
  .al-item { border: 0; }
  .al-item__link { flex-direction: column; gap: 10px; min-height: 0; padding: 0; }
  .al-item__thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .al-item__title { font-size: 16px; }
  .al-item__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* カテゴリ・タグの説明行 */
.al-rows { display: grid; gap: 8px; }
@media (min-width: 768px) { .al-rows { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; } }
.al-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
}
.al-row:hover { color: var(--text); }
.al-row:hover .al-row__name { color: var(--accent); }
.al-row__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.al-row__name { margin: 0; font-size: 16px; font-weight: 900; }
.al-row__count { flex: none; font-size: 12px; color: var(--muted); }
.al-row__desc { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.al-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.al-tags .chip { min-height: 44px; border-radius: 22px; padding: 0 16px; }

/* 補足情報 (dl) */
.al-facts { margin: 0; padding: 4px 16px; }
.al-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.al-facts > div:first-child { border-top: 0; }
.al-facts dt { flex: none; color: var(--muted); font-weight: 700; }
.al-facts dd { margin: 0; text-align: right; color: var(--text-2); }

.al-back { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
