/* ==========================================================================
   トップのみ：新着コラム・お知らせ（blog.css / news.css とは別読み込み）
   ========================================================================== */

/* 新着コラム */
.home-blog {
  padding-block: 72px;
}

@media (min-width: 768px) {
  .home-blog {
    padding-block: 96px;
  }
}

.home-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.home-blog__grid > li {
  display: flex;
  min-width: 0;
}

@media (min-width: 600px) {
  .home-blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-blog__action {
  text-align: center;
}

.blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform 0.15s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.blog-card__link:hover {
  color: inherit;
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-gray);
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__thumb--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-bg-gray) 0%, var(--color-sub) 100%);
}

.blog-card__thumb-logo {
  width: auto;
  height: auto;
  max-width: 42%;
  max-height: 58%;
  object-fit: contain;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
  gap: 8px;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cta);
  background: rgba(242, 140, 40, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.blog-card__date {
  font-size: 12px;
  color: var(--color-text-muted);
}

.blog-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-main);
}

.blog-card__excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cta);
}

/* お知らせ */
.home-news {
  border-top: 1px solid var(--color-border);
}

.home-news .section__header {
  margin-bottom: 32px;
}

.home-news__inner {
  max-width: 720px;
  margin-inline: auto;
}

.home-news__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.home-news__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.75;
}

.home-news__item:last-child {
  border-bottom: none;
}

.home-news__date {
  flex-shrink: 0;
  font-size: 14px;
  font-family: var(--font-latin);
  font-weight: 500;
  color: var(--color-text-muted);
}

.home-news__text {
  font-weight: 500;
  color: var(--color-main);
}

.home-news__more {
  text-align: center;
  margin: 0;
}

.home-news__more a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-cta);
}

@media (min-width: 768px) {
  .home-news__item {
    font-size: 16px;
    padding: 16px 0;
  }

  .home-news__date {
    font-size: 15px;
  }

  .home-news__more a {
    font-size: 16px;
  }
}
