/* ============================================================
   Gibble Engineering — ブログ用スタイル
   site.css のデザイン（白ベース・青ブランド）に合わせています
   ============================================================ */

/* ページ上部の見出し（ヒーロー） */
.blog-hero {
  padding: clamp(48px, 8vw, 84px) 0 clamp(28px, 4vw, 44px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.blog-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.blog-hero .breadcrumb a { color: var(--accent); }
.blog-hero h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: .01em;
}
.blog-hero p.lead { margin-top: 12px; }

/* カテゴリーの絞り込みリンク */
.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.cat-filter a {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  background: #fff;
  transition: all .15s ease;
}
.cat-filter a:hover,
.cat-filter a.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* 記事一覧 */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: clamp(36px, 6vw, 64px) 0;
}
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-list { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card__cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand-soft);
}
.post-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.post-card__date {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: auto;
}

/* 単一記事 */
.post-single { padding: clamp(40px, 6vw, 72px) 0; }
.post-single__head { margin-bottom: 28px; }
.post-single__cat {
  display: inline-flex;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand-soft);
  margin-bottom: 16px;
}
.post-single h1 {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.5;
}
.post-single__meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.post-single__thumb {
  margin: 8px 0 32px;
  border-radius: 14px;
  overflow: hidden;
}
.post-single__thumb img { width: 100%; display: block; }

/* 本文（WordPressエディタ出力） */
.post-content { font-size: 15.5px; line-height: 1.95; color: var(--ink); }
.post-content > * + * { margin-top: 1.2em; }
.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 1.8em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--line);
}
.post-content h3 { font-size: 18px; font-weight: 700; margin-top: 1.6em; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content ul,
.post-content ol { padding-left: 1.4em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: .4em; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.post-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 4px 0 4px 18px;
  color: var(--ink-mute);
}
.post-content code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .9em;
}
.post-content pre {
  background: #0e1b2e;
  color: #e6edf7;
  padding: 18px;
  border-radius: 10px;
  overflow-x: auto;
}
.post-content pre code { background: transparent; padding: 0; color: inherit; }

/* ページ送り */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}
.pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
}
.pager .page-numbers.current,
.pager .page-numbers:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* 記事下ナビ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.post-nav a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* 記事なし */
.no-posts { padding: clamp(48px, 8vw, 90px) 0; text-align: center; color: var(--ink-mute); }
