/*--------------------------------
新川公式サイトお知らせ一覧CSS
---------------------------------*/

.cat-btn {
  padding: 8px 16px;
  background: #edede2;
  border: 1px solid #edede2;
  cursor: pointer;
  border-radius: 4px;
  max-width: 210px;
}
.cat-btn.active {
  background: #d5d2a0;
  color: #fff;
  border-color: #d5d2a0;
}
.ajax-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ajax-post-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}
.ajax-post-date {
  font-size: 0.9em;
  color: #666;
  flex-shrink: 0;
  width: 90px;
}
.ajax-post-cat {
  font-size: 0.8em;
  background: #eee;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
  flex-shrink: 0;
  text-align: center;
  min-width: 80px;
}
.ajax-post-title {
  margin: 0;
  font-size: 1em;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ajax-post-title a {
  color: #333;
  text-decoration: none;
}
.ajax-post-title a:hover {
  text-decoration: underline;
}

/* 【追加】数字ボタン単体のスタイル */
.page-num-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9em;
  transition: all 0.2s ease;
}
.page-num-btn:hover {
  background: #f0f0f0;
}
/* 現在選択されているページの数字スタイル */
.page-num-btn.active {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
  cursor: default;
}

@media (max-width: 768px) {
  .ajax-post-item {
    flex-wrap: wrap;
    gap: 5px 15px;
  }
  .ajax-post-title {
    width: 100%;
    white-space: normal;
    margin-top: 5px;
  }
}
