/* ===========================
   News List ページ専用スタイル
=========================== */

/* ページタイトル
   （固定ヘッダー分の余白を確保）
=========================== */
.news-list-header {
  padding: 80px 0 0;
  text-align: center;
}

.news-list-title {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.67em;
  color: var(--color-black);
  text-align: center;
}

/* ニュース一覧セクション
=========================== */
.news-list-section {
  padding: 100px 17px 100px;
  text-align: center;
}

.news-list-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

/* 各記事アイテム */
.news-list-item {
  display: block;
}

.news-date {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.news-title {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-item .btn-small {
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.news-list-item:hover .btn-small {
  background: #585858;
  color: #fff;
}

.news-list-item:not(:last-child) {
  border-bottom: 1px solid #979797;
  padding-bottom: 24px;
}

.news-list-item:first-child {
  border-top: 1px solid #979797;
  padding-top: 24px;
}

/* 記事コンテンツ（日付・タイトル・ボタン） */
.news-list-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ページネーション
=========================== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 352px;
  margin: 0 auto;
}

.pagination-nums {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ページ番号リンク */
.pagination-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  color: var(--color-black);
  text-decoration: none;
}

/* 現在ページ：塗りつぶし円 */
.pagination-num.is-current {
  background: #474747;
  color: var(--color-white);
  font-weight: 700;
}

/* 矢印ボタン */
.pagination-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}

.pagination-arrow img {
  display: block;
}

.pagination-prev img {
  transform: scaleX(-1);
}

/* ===========================
   PC メディアクエリ（768px〜）
=========================== */
@media (min-width: 768px) {
  /* ページタイトル（Figma: header高144px + 余白 → y:160） */
  .news-list-header {
    padding: 160px 0 24px;
  }

  /* h1: Figma h1スタイル → font-size:32px */
  .news-list-title {
    font-size: 32px;
    line-height: 1.25em;
  }

  /* 一覧エリア（Figma: x:315, width:736 → max-width:736px 中央寄せ） */
  .news-list-section {
    padding: 130px 0 100px;
    max-width: 736px;
    margin: 0 auto;
  }

  .news-list-container {
    margin-bottom: 56px;
  }

  /* PC: 日付・タイトル・ボタンを横並び space-between */
  .news-list-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  /* 日付：左固定 */
  .news-list-item .news-date {
    flex-shrink: 0;
    min-width: 96px;
  }

  /* タイトル：幅518px（Figma固定値）、省略表示 */
  .news-list-item .news-title {
    width: 518px;
    flex-shrink: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 16px;
  }

  /* ボタン：右固定 */
  .news-list-item .btn-small {
    flex-shrink: 0;
    align-self: center;
  }

  /* ページネーション（Figma: gap:32px, 中央寄せ） */
  .news-pagination {
    max-width: 400px;
  }

  .pagination-nums {
    gap: 20px;
  }
}

/* end @media (min-width: 768px) */
