/* Home news and related banners extracted from style.css */

/* ===== News 一覧レイアウト ===== */
.home-news-row {
  padding-top: var(--wp--preset--spacing--30);
  padding-bottom: var(--wp--preset--spacing--30);
  column-gap: 2rem;
}

.home-news-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.home-news-meta .wp-block-post-date {
  white-space: nowrap;
  width: 8em;
  flex: 0 0 8em;
}

.home-news-category {
  min-width: 120px;
  text-align: center;
}

.home-news-category .wp-block-post-terms__separator {
  display: none;
}

.home-news-category a {
  display: inline-block;
  min-width: 6em;
  text-align: center;
  padding: 0 0.5em;
  line-height: 1.6;
}

.home-news-title-wrap {
  align-items: center;
  gap: 28px !important;
}

.home-news-title {
  margin: 0;
  line-height: 1.7;
}

.home-news-title a {
  line-height: inherit;
}

/* ===== Related Banners ===== */
.home-related-banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}

.home-related-banners-grid__item {
  margin: 0;
  width: 100%;
}

.home-related-banners-grid__item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (width <= 768px) {
  .home-news-meta {
    gap: 12px;
    flex-wrap: wrap;
  }

  .home-news-category,
  .home-news-category a {
    min-width: 100px;
    padding: 0 0.4em;
    line-height: 1.6;
  }

  .home-news-title-wrap {
    gap: 14px !important;
  }

  .home-related-banners-grid {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--30);
  }
}
