/* ============================================================
   relyon-news.css – お知らせ一覧ページ専用スタイル
   ============================================================ */

:root {
  --c-accent: #009DE6;
  --c-text: #333333;
  --c-text-mid: #555555;
  --c-text-light: #999999;
  --c-border: #E5E5E5;
}

body.page-news {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: var(--c-text);
}

.rn-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   HERO
   構造（サイズ・背景・余白）は共通コンポーネント assets/css/components/rl-hero.css 側。
   ここではNEWSページ固有のタイポグラフィのみ指定する。
   ============================================================ */
body.page-news .rl-hero__title {
  font-family: 'Baskerville', 'Baskerville Old Face', 'Libre Baskerville', serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 10px;
}

body.page-news .rl-hero__sub {
  font-family: 'Zen Old Mincho', 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   お知らせ一覧
   ============================================================ */
.rn-section {
  padding: 160px 0;
}

.rn-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rn-list__item {
  border-bottom: 1px solid var(--c-border);
}

.rn-list__item:first-child {
  border-top: 1px solid var(--c-border);
}

.rn-list__link {
  display: flex;
  align-items: center;
  gap: 32px;
  /* パディングをリンク側に持たせ、余白部分もクリックできるようにする */
  padding: 24px 0;
  text-decoration: none;
  color: inherit;
}

.rn-list__date {
  flex-shrink: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--c-accent);
}

.rn-list__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to right, #00489D, #009DE6) border-box;
}

.rn-list__badge-text {
  font-family: 'Baskerville', 'Baskerville Old Face', 'Libre Baskerville', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  background: linear-gradient(to right, #00489D, #009DE6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rn-list__title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #222222;
  line-height: 1.6;
}

.rn-empty {
  text-align: center;
  color: var(--c-text-mid);
}

/* ページネーション（paginate_links(type=list) の <ul class="page-numbers"> を装飾） */
.rn-pagination {
  margin-top: 80px;
}

.rn-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rn-pagination .page-numbers li {
  display: inline-flex;
}

.rn-pagination .page-numbers a,
.rn-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: var(--c-accent);
  text-decoration: none;
}

.rn-pagination .page-numbers a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rn-pagination .page-numbers a:hover {
  opacity: 0.7;
}

/* 現在ページ・省略記号（...）は非リンクで黒・下線なし */
.rn-pagination .page-numbers.current,
.rn-pagination .page-numbers.dots {
  color: var(--c-text);
}

/* prev / next の矢印 */
.rn-pagination .page-numbers.prev,
.rn-pagination .page-numbers.next {
  color: var(--c-text);
  text-decoration: none;
}

.rn-pagination .page-numbers .rn-pagination__arrow {
  font-size: 20px;
  line-height: 1;
  color: #000;
}

/* スクリーンリーダー用の視覚非表示テキスト（paginate_linksのprev/next補助） */
.rn-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1180px) {
  .rn-container {
    width: 90%;
    max-width: 90%;
    padding: 0;
  }
}

@media (max-width: 840px) {
  body.page-news .rl-hero__title {
    font-size: 56px;
  }
}

@media (max-width: 740px) {
  /* カテゴリが長いと記事タイトルの幅がなくなるため、540pxより手前のタブレット幅で縦並びにする */
  .rn-list__link {
    flex-wrap: wrap;
    gap: 10px;
  }

  .rn-list__title {
    flex-basis: 100%;
  }
}

@media (max-width: 540px) {
  body.page-news .rl-hero__title {
    font-size: 48px;
  }

  body.page-news .rl-hero__sub {
    font-size: 14px;
  }

  .rn-section {
    padding: 80px 0;
  }

  .rn-list__date,
  .rn-list__title {
    font-size: 14px;
  }

  .rn-pagination {
    margin-top: 40px;
  }

  .rn-pagination .page-numbers {
    gap: 16px;
  }
}
