/* 配色（白背景 × 黒文字） */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111111;
  --muted: #555a66;
  --line: #e5e7eb;      /* 薄い枠線 */
  --accent: #1f6feb;    /* ボタンの強調色（GitHubブルー系） */
  --tag-bg: #f5f7fb;    /* タグの背景（薄いグレー） */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.6;
}

.site-header, .site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
}

.site-title {
  margin: 0 0 4px;
  font-size: clamp(20px, 3vw, 28px);
}
.site-desc { color: var(--muted); margin: 0; }

.archive {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

/* 記事カード */
.posts {
  display: grid;
  gap: 14px;
}

.post-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  transition: transform .12s ease, border-color .12s ease, background-color .2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.post-card:hover {
  transform: translateY(-1px);
  border-color: #d9dde5;
  background: #fafbfe;
}

.post-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.thumb {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid var(--line);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文 */
.body {
  min-width: 0;
}

.title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: #0b0f19; /* 見出しは少し濃いめ */
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tag-bg);
  border: 1px solid var(--line);
  color: #2c3a55;
}

.excerpt {
  color: #1d2433;
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ページネーション */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease, color .15s ease;
}

.page-btn:hover {
  background: #f5f7fb;
  border-color: #d9dde5;
}

.page-btn[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* レスポンシブ：広い画面ではサムネイル大きめ */
@media (min-width: 720px) {
  .post-card {
    grid-template-columns: 240px 1fr;
    padding: 14px;
  }
  .title { font-size: 18px; }
}
