@charset "utf-8";
/* =========================================================
   NEWS：サムネ＋文言＋日付＋タグの4カラムカード
   使用箇所: common/inc/top/news-cards.html
   ========================================================= */

.news-c__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.news-c__more {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(44, 86, 247, .58);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 86, 247, .24);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}

.news-c__more:hover {
  color: #2c56f7;
  border-color: rgba(44, 86, 247, .5);
}

.news-c__more-icon {
  flex: 0 0 auto;
}

/* --- 4カラム --- */
.news-c__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 26px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.news-c__item {
  min-width: 0;
}

.news-c__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* サムネ */
.news-c__thumb {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: #eff3f9;
}

.news-c__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}

.news-c__link:hover .news-c__thumb img {
  transform: scale(1.06);
}

.news-c__body {
  display: block;
  margin-top: 16px;
}

/* 日付＋タグ */
.news-c__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-c__date {
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #7c869e;
}

.news-c__tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 1px solid rgba(44, 86, 247, .38);
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #2c56f7;
  white-space: nowrap;
}

/* 文言 */
.news-c__ttl {
  display: -webkit-box;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .02em;
  color: #30395e;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  transition: color .2s;
}

.news-c__link:hover .news-c__ttl {
  color: #2c56f7;
}

/* =========================================================
   〜1100px：2カラム
   ========================================================= */
@media print, screen and (max-width: 1100px) {
  .news-c__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }
}

/* =========================================================
   SP：2カラムのまま詰める
   ========================================================= */
@media print, screen and (max-width: 767px) {
  .news-c__list {
    gap: 24px 14px;
    margin-top: 24px;
  }
  .news-c__body {
    margin-top: 12px;
  }
  .news-c__meta {
    gap: 8px;
  }
  .news-c__date {
    font-size: 1.15rem;
  }
  .news-c__tag {
    height: 21px;
    padding: 0 9px;
    font-size: 1rem;
  }
  .news-c__ttl {
    margin-top: 8px;
    font-size: 1.35rem;
    line-height: 1.6;
  }
  .news-c__more {
    font-size: 1.3rem;
  }
}

/* 既存 .p-news__inner は「見出し116px｜記事1fr」の2カラムグリッド。
   カード版では見出しを上に置くのでブロックに戻す */
.news-c .p-news__inner {
  display: block;
}
