@charset "UTF-8";
/* ==========================================================
   blog.css — ブログ一覧・記事ページ
   ========================================================== */

/* ---------- 一覧 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s;
}
.post-card:hover { transform: translateY(-4px); }
.post-thumb { margin: 0; aspect-ratio: 16 / 10; background: var(--grad-soft); overflow: hidden; }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-thumb.-noimg { display: flex; align-items: center; justify-content: center; }
.post-thumb.-noimg img { width: 72px; height: 72px; border-radius: 50%; object-fit: contain; }
.post-card-body { padding: 22px 24px 26px; }
.post-card h2 { font-size: 16px; font-weight: 900; line-height: 1.6; margin: 8px 0 10px; }
.post-card:hover h2 { color: var(--blue); }
.post-excerpt { font-size: 13px; color: #4a5a74; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.post-meta time { font-family: var(--font-en); font-weight: 600; color: #8a99b0; }
.post-cat {
  display: inline-block; background: var(--navy); color: #fff;
  border-radius: 20px; padding: 2px 12px; font-size: 11px; font-weight: 700;
}

/* ---------- 記事 ---------- */
.post-container { max-width: 820px; }
.post-hero { padding-bottom: 40px; }
.post-title {
  margin-top: 14px;
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; line-height: 1.55; letter-spacing: .03em;
}
.post-note {
  background: #fff7e6; border-left: 4px solid #f0b34a; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 36px; font-size: 13.5px; color: #6b5420;
}
.post-body { font-size: 16px; line-height: 2; }
.post-body > * + * { margin-top: 1.2em; }
.post-body h2 {
  margin-top: 2.4em; padding: 12px 18px;
  font-size: clamp(19px, 2.2vw, 23px); font-weight: 900; line-height: 1.6;
  background: #fff; border-left: 6px solid var(--blue); border-radius: 8px;
  box-shadow: var(--shadow);
}
.post-body h3 {
  margin-top: 2em; padding-bottom: 6px;
  font-size: 18px; font-weight: 900; line-height: 1.6;
  border-bottom: 2px solid #dbe4ef;
}
.post-body a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-body img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: 12px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.post-body th, .post-body td { border: 1px solid #dbe4ef; padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body th { background: #f3f6fa; }
.post-body .post-embed { position: relative; aspect-ratio: 16 / 9; }
.post-body .post-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

.post-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 60px; padding-top: 30px; border-top: 1px solid #dbe4ef;
}
.post-pager a {
  display: block; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 16px 20px; font-size: 14px; font-weight: 700; line-height: 1.6;
}
.post-pager a span { display: block; font-size: 11px; color: #8a99b0; margin-bottom: 4px; }
.post-pager .-next { text-align: right; }
.post-pager a:hover { color: var(--blue); }
.post-back { margin-top: 36px; text-align: center; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 15px; }
  .post-body table { display: block; overflow-x: auto; }
  .post-pager { grid-template-columns: 1fr; }
  .post-pager .-next { text-align: left; }
}
