/* ====== Tags index — タグ一覧グリッド ====== */
/* archive-hero / archive-layout のスタイルは posts.css を流用。 ここでは tags-grid 系のみ。 */
.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px;
  padding: 16px 0 32px;
}
.tags-grid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(80, 38, 16, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: #2a2a35;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tags-grid-item:hover {
  border-color: rgba(212, 78, 29, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(80, 38, 16, 0.06);
}
.tags-grid-name {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0a0a0f;
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tags-grid-count {
  flex-shrink: 0;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #d44e1d;
  line-height: 1;
}
@media (max-width: 768px) {
  .tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .tags-grid-item {
    padding: 12px 14px;
  }
}
