/* Blog Card — 全ページ共通コンポーネント
   HOME / archive / single関連記事 で統一使用
   mamehico テーマ CSS変数対応版
   ============================================================ */

/* Grid — .mh * リセット対策で margin/padding に !important 必須 */
.mh-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px !important;
  width: 100%;
}

/* Card */
.mh-bc {
  display: block;
  width: 100%;
  min-width: 0;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
}

/* Title link */
.mh-bc-body {
  padding: 10px 16px 0 !important;
}
.mh-bc-ttl {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mh-color-dark-navy, #2B3D4F);
  text-decoration: none;
}
.mh-bc-ttl:hover {
  color: var(--mh-color-purple, #795499);
}

/* Thumbnail */
.mh-bc-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--mh-color-light-gray, #eee);
  border-radius: 3px 3px 0 0;
}
.mh-bc-img img {
  width: 100%;
  height: 200px !important;
  object-fit: cover;
  display: block;
}

/* Category badge */
.mh-bc-cat {
  position: absolute;
  top: 8px !important;
  right: 8px !important;
  background: var(--mh-color-pink, #D7649C);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px !important;
  border-radius: 4px;
  z-index: 2;
}

/* Hover overlay */
.mh-bc-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(34,39,78,0.75), rgba(34,39,78,0.3));
  transform: translateY(-100%);
  transition: transform .4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px !important;
  z-index: 1;
}
.mh-bc:hover .mh-bc-hover { transform: translateY(0); }
.mh-bc-hover-t {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Meta row */
.mh-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 0 !important;
  font-size: 12px;
  flex-wrap: wrap;
  min-height: 40px;
}

/* Avatar */
.mh-av,
.mh img.mh-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mh-av-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mh-color-light-gray, #ccc);
  flex-shrink: 0;
}

/* Author & date */
.mh-au {
  font-size: var(--mh-fs-normal, 14px);
  font-weight: 600;
  color: var(--mh-color-dark-navy, #2B3D4F);
}
.mh-dt {
  color: var(--mh-color-gray, #7E8B8C);
  font-size: 13px;
  font-weight: 500;
  margin-left: auto !important;
}

/* Tags */
.mh-tg {
  font-size: 11px;
  color: var(--mh-color-gray, #7E8B8C);
  padding: 4px 16px 14px !important;
}
.mh-tg-link {
  text-decoration: none;
  color: var(--mh-color-gray, #7E8B8C);
  cursor: pointer;
}
.mh-tg-link:hover {
  color: var(--mh-color-purple, #795499);
}

/* Responsive */
@media (max-width: 960px) {
  .mh-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .mh-blog-grid { grid-template-columns: 1fr; gap: 10px; }
  .mh-au {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .mh-dt { font-size: 12px; flex-shrink: 0; }
}
