/* ===========================
   News List (page only)
   =========================== */

/* スコープ：このブロック内だけで色などを完結させる */
.lb-news.is-page {
  /* ローカルCSS変数（他に波及しません） */
  --news-ink: #222;
  --news-text: #5b6670;
  --news-muted: #e8eef2;
  --news-accent: #1e5fae;
  /* タイトルリンクの色 */
  --news-badge-bg: #9dcfff68;
  /* バッジ背景の淡い緑 */
  --news-badge-ink: #0250a0;
  /* バッジ文字色 */
  --news-circle: rgba(24, 181, 140, .16);
  --news-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  --news-radius: 14px;
}

.lb-news.is-page {
  position: relative;
  background: #fff;
  /* 背景は親の色に合わせるなら transparent */
  padding: clamp(32px, 5vw, 64px) 0;
  color: var(--news-ink);
}

.lb-news__inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 見出し */
.lb-news__head {
  margin-bottom: 18px;
}

.lb-news__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--news-badge-ink);
}

.lb-news__eyebrow::before {
  content: "";
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: var(--news-badge-ink);
}

.lb-news__title {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.6;
  font-weight: 800;
}

/* ===== 一覧 ===== */
.lb-news__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--news-muted);
}

.lb-news__item {
  display: grid;
  grid-template-columns: 110px 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  /* ← 上下の余白を統一 */
  border-bottom: 1px solid var(--news-muted);
}

/* バッジ（カテゴリ等） */
.lb-news__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--news-badge-ink);
  background: var(--news-badge-bg);
  border-radius: 999px;
  white-space: nowrap;
}

/* 日付 */
.lb-news__date {
  font-size: 14px;
  color: #7a8894;
}

/* タイトルリンク */
.lb-news__link {
  display: inline-block;
  text-decoration: none;
  color: var(--news-ink);
  line-height: 1.8;
  transition: color .2s ease, text-decoration-color .2s ease;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
}

.lb-news__link:hover {
  color: var(--news-accent);
  text-decoration-color: currentColor;
}

/* 空メッセージ */
.lb-news__empty {
  margin-top: 24px;
  color: var(--news-text);
}

/* ===== ページネーション ===== */
.lb-news__pagination {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}

.lb-news__pagination ul {
  list-style: none;
  display: inline-flex;
  /* 変更：inline-flex にして中央配置を安定 */
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  /* 念のためリセット */
}

.lb-news__pagination li a,
.lb-news__pagination li span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--news-muted);
  color: var(--news-ink);
  text-decoration: none;
  font-size: 14px;
  background: #fff;
}

.lb-news__pagination li span.current {
  border-color: var(--news-badge-ink);
  color: var(--news-badge-ink);
  font-weight: 800;
  background: #f6fffb;
}

/* あると便利なホバー/フォーカス（任意） */
.lb-news__pagination li a:hover {
  border-color: var(--news-accent);
}

.lb-news__pagination li a:focus-visible {
  outline: 2px solid var(--news-accent);
  outline-offset: 2px;
}

.lb-news__pagination li a,
.lb-news__pagination li span {
  cursor: pointer;
}

/* ===== レスポンシブ ===== */
@media (max-width: 820px) {
  .lb-news__item {
    grid-template-columns: 96px 110px 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .lb-news__badge {
    height: 26px;
    font-size: 12px;
  }

  .lb-news__date {
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .lb-news__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .lb-news__badge {
    order: 1;
    width: max-content;
  }

  .lb-news__date {
    order: 2;
  }

  .lb-news__link {
    order: 3;
  }
}