/* =========================================
   kaiho.css
   - 会報一覧ページ
   ========================================= */

/* =========================================
   ページタイトル（会報一覧）
   ========================================= */

.page-header {
  text-align: center;       /* ★ 中央寄せ */
  margin-bottom: 32px;      /* 適度な余白 */
  padding-top: 32px;
}

.page-header h1 {
  font-size: 28px;          /* ★ 大きめ見出し */
  font-weight: 700;         /* ★ 太字 */
  margin-bottom: 8px;
  border-left: none;        /* common.css のsectionの左線を打ち消し */
  padding-left: 0;
}

.page-lead {
  font-size: 14px;
  color: #555;
  max-width: 700px;         /* 読みやすい幅 */
  margin: 0 auto;           /* ★ 中央寄せ */
  line-height: 1.7;
}

/* ページのリード文 */
.page-lead {
  font-size: 14px;
  color: #555;
}

/* 会報一覧全体 */
.bulletin-archive {
  padding: 16px 16px 32px;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

/* リスト */
.bulletin-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

/* 各号ブロック */
.bulletin-archive-item {
  display: flex;
  gap: 12px;
  padding: 16px 4px;
  border-bottom: 1px solid #e0e0e0;
}

.bulletin-archive-item:last-child {
  border-bottom: none;
}

/* 左側の PDF アイコン */
.bulletin-archive-icon {
  flex: 0 0 auto;
  width: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* PDF アイコン（Material Symbols） */
.pdf-icon-archive {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 32;
  font-size: 32px;
  color: #b60000;
}

/* 右側テキスト部 */
.bulletin-archive-content {
  flex: 1 1 auto;
}

/* タイトル */
.bulletin-archive-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bulletin-archive-title a {
  color: #222;
  text-decoration: none;
}

.bulletin-archive-title a:hover {
  text-decoration: underline;
}

/* 発行日などメタ情報 */
.bulletin-archive-meta {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

/* 概要 */
.bulletin-archive-summary {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* -----------------------------------------
   ページネーション
   ----------------------------------------- */

.pagination {
  margin-top: 16px;
  text-align: center;
}

.pagination-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 32px;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 16px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

/* 現在のページ */
.pagination-link.is-current {
  background: #333;
  border-color: #333;
  color: #fff;
  cursor: default;
}

/* 無効（前へ/次へ） */
.pagination-link.is-disabled {
  background: #f5f5f5;
  border-color: #ddd;
  color: #aaa;
  cursor: default;
}

/* 前へ・次へ */
.pagination-prev,
.pagination-next {
  margin: 0 4px;
}

.pagination-link:not(.is-current):not(.is-disabled):hover {
  background: #f0f0f0;
  border-color: #111;
}

/* 矢印アイコン */
.pagination-icon {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 20;
  font-size: 18px;
}

/* -----------------------------------------
   スマホ対応
   ----------------------------------------- */

@media (max-width: 768px) {
  .bulletin-archive-item {
    padding: 12px 0;
  }

  .bulletin-archive-title {
    font-size: 16px;
  }

  .bulletin-archive-summary {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .page-lead {
    text-align: left;
  }

  .bulletin-archive {
    padding-inline: 0;
  }

  .bulletin-archive-item {
    flex-direction: row;
    gap: 8px;
  }

  .bulletin-archive-icon {
    width: 32px;
  }

  .pdf-icon-archive {
    font-size: 28px;
    font-variation-settings:
      'FILL' 1,
      'wght' 400,
      'GRAD' 0,
      'opsz' 28;
  }
}
