/* =========================================
   activity.css
   - 活動状況一覧ページ
   ========================================= */

/* ページタイトル（会報と同様） */
.page-header {
  text-align: center;
  margin-bottom: 32px;
  padding-top: 32px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  border-left: none;
  padding-left: 0;
}

.page-lead {
  font-size: 14px;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* -----------------------------------------
   活動状況リスト
   ----------------------------------------- */

.activity-archive {
  padding: 16px 16px 32px;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.activity-item {
  display: flex;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid #e0e0e0;
}

.activity-item:last-child {
  border-bottom: none;
}

/* 日付部分 */
.activity-date {
  flex: 0 0 130px; /* 日付分の幅を確保 */
  font-size: 13px;
  color: #666;
}

/* タイトル部分 */
.activity-title {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.7;
}

/* タイトル内のリンク：必ず下線を表示 */
.activity-title a {
  color: #0055aa;
  text-decoration: underline;
}

.activity-title a:hover {
  text-decoration: underline;
  color: #003f7d;
}

/* -----------------------------------------
   ページネーション（会報と同形式）
   ----------------------------------------- */

.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;
  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;
}

/* 前へ / 次へ li */
.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) {
  .page-lead {
    text-align: left;
  }

  .activity-archive {
    padding-inline: 0;
  }

  .activity-item {
    flex-direction: column;
    gap: 4px;
  }

  .activity-date {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .activity-title {
    font-size: 14px;
  }
}
