/* News (お知らせ一覧) CSS
 * HPP HP — Figma file hTk2UtIZPusbWScukKNgMV
 * Node: 102:93 / 102:94 (sec_pick-up のカード) を一覧ページ向けにグリッド化したもの。
 * カードの見た目はトップの Pick Up (pickup.css) と同一仕様に揃えている。
 *
 * PC のみのスタイル。SP の上書きは responsive.css 側の対応ブロックに書く。
 */

/* =====================
 * 一覧コンテナ
 * ===================== */

.news-archive {
  width: 100%;
}

/* 3 カラムグリッド。
 * .page-content__inner (max 1080px) の中で使う前提。
 * 1080 - gap40×2 = 1000 → カード幅 333px（Pick Up の 350px とほぼ同寸） */
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =====================
 * カード (pickup.css の .pickup__card と同デザイン)
 * ===================== */

.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-base);
}

.news-card:hover {
  opacity: 0.85;
}

/* サムネイル: bg #d0d1d5, rounded-8px, 350:197 */
.news-card__image {
  background-color: #d0d1d5;
  width: 100%;
  aspect-ratio: 350 / 197;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 白地のサムネイルが白背景に溶けないよう内側に薄い輪郭を引く */
  box-shadow: inset 0 0 0 1px rgba(26, 35, 50, 0.16);
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__image-placeholder {
  font-family: var(--font-jp-sans);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-base);
  letter-spacing: 0.6px;
  color: #1e3a8a;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
}

.news-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.news-card__date {
  font-family: 'Inter', var(--font-jp-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.75;
  letter-spacing: 0.6px;
  color: #929296;
  width: 100%;
  margin: 0;
}

.news-card__title {
  font-family: var(--font-jp-sans);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.48px;
  color: #1e4d8b;
  width: 100%;
  height: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.news-card__excerpt {
  font-family: var(--font-jp-sans);
  font-weight: var(--font-weight-regular);
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: 0.65px;
  color: #717983;
  width: 100%;
  height: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.news-archive__empty {
  font-family: var(--font-jp-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-navy-primary);
  margin: 0;
}

/* =====================
 * ページネーション
 * Pick Up の CTA ボタン (.pickup__cta) と同じ配色・角丸のトーンに揃える
 * ===================== */

.news-pagination {
  margin-top: 72px;
}

.news-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* 見出し "投稿ナビゲーション" は視覚的に隠す */
.news-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #1e4d8b;
  border-radius: 40px;
  box-sizing: border-box;
  font-family: var(--font-jp-sans);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.5px;
  color: #1e4d8b;
  background-color: transparent;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.news-pagination a.page-numbers:hover {
  background-color: #1e4d8b;
  color: var(--color-white);
}

.news-pagination .page-numbers.current {
  background-color: #1e4d8b;
  color: var(--color-white);
}

/* 省略記号はボタンにしない */
.news-pagination .page-numbers.dots {
  border-color: transparent;
  min-width: 0;
  padding: 0 4px;
}
