/* ==========================================================================
   ブログページ専用スタイル（検索・カテゴリーフィルター）
   archive.css を前提とする
   ========================================================================== */

/* --------------------------------------------------------------------------
   キーワード検索ボックス
   -------------------------------------------------------------------------- */

.blog-search {
  margin-top: 1.5rem;
  max-width: 480px;
}

.blog-search__inner {
  position: relative;
  display: flex;
  align-items: center;
}

.blog-search__icon {
  position: absolute;
  left: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  pointer-events: none;
}

.blog-search__input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.blog-search__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.blog-search__input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   カテゴリーフィルターボタン
   -------------------------------------------------------------------------- */

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.blog-filter__btn {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1.6;
}

.blog-filter__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.blog-filter__btn.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   グリッドフェードアニメーション
   -------------------------------------------------------------------------- */

#blog-grid-container {
  transition: opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   ブログページ用ページネーション（archive-paginationを上書き）
   -------------------------------------------------------------------------- */

.blog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 3rem;
  align-items: center;
}

.blog-pagination .page-link,
.blog-pagination .page-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--color-text);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.blog-pagination .page-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.blog-pagination .page-link.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  cursor: default;
}

.blog-pagination .page-dots {
  border: none;
  background: none;
  color: #aaa;
  cursor: default;
}
