/* ==== Blog page only (VirtualMoment) ==== */

/* Hero / Breadcrumb */
.page-hero{
  background: linear-gradient(180deg, var(--hero-from), transparent 60%), #fff;
  border-top: 1px solid var(--line);
}
.crumbs{ color: var(--muted); font-size: 12px; }

/* Grid */
.blog-grid{
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 900px){
  .blog-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card */
.post-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Media */
.post-media{
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e9f1ff, #eef6ff); /* サムネ無し時のプレースホルダ */
  border-bottom: 1px solid var(--line);
}
.post-media img{ width: 100%; height: auto; display: block; }

/* Body */
.post-body{ padding: 14px 16px; }
.post-title{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  margin: 6px 0 4px;
}
.post-title a{ text-decoration: none; }
.post-desc{ font-size: 13px; color: var(--muted); }
.meta-small{ font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Tag + Date */
.tag-mini{ display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.tag-mini .tag{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  border: 1px solid #dbe7ff;
  font-weight: 700;
}
.tag-mini .date{ color: var(--muted); }

/* CTA row */
.post-cta{
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

/* Pager */
.pager{
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}
.pager ul{ display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pager a, .pager span{
  min-width: 36px; height: 36px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff; font-weight: 700;
  transition: all .15s; text-decoration: none;
}
.pager .current{ background: var(--brand); color: #fff; border-color: var(--brand); }
.pager a:hover{ border-color: var(--brand); }

/* Category list */
.cat-wrap{
  background: #fafafa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-grid{
  display: grid; gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 900px){
  .cat-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cat-item{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.cat-item .name{ font-weight: 700; }
.cat-item .chev{ opacity: .5; }
