/* アーカイブページ用CSS */

/* カテゴリーフィルター */
.category-filter {
  margin: 40px 0;
  text-align: center;
}

.category-filter-list {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.category-filter-item {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.category-filter-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: #fff !important;
  position: relative;
  z-index: 2;
}

.category-filter-item:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--category-color);
  border-radius: 25px;
  z-index: -1;
}

.category-filter-item.active {
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.category-filter-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--category-color);
  border-radius: 25px;
  z-index: -1;
}

/* 「すべて」ボタンのグラデーション */
.category-filter-all:hover {
  background: linear-gradient(135deg, #4CAF50, #5CC9E2) !important;
  color: #fff !important;
}

.category-filter-all.active {
  background: linear-gradient(135deg, #4CAF50, #5CC9E2) !important;
  color: #fff !important;
}

/* 記事一覧グリッド */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
}

/* 記事カード */
.news-card {
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 15px;
}

.news-card:hover {
  opacity: 0.8;
}

/* 記事メタ情報 */
.news-card .news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

/* 記事画像 */
.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 15px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

/* 画像なしの場合のno-image.png表示 */
.no-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.no-image:hover img {
  opacity: 1;
}

/* 記事コンテンツ */
.archive .news-content {
  padding: 0;
}

/* 記事カテゴリー */
.news-category {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* 記事日付 */
.news-date {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* 記事タイトル */
.news-card .news-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

.news-title a {
  color: #333 !important;
  text-decoration: none;
  transition: color 0.3s ease;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
}

.news-title a:hover {
  color: #5CC9E2 !important;
}

/* ページネーション */
.pagination,
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 150px 0;
  gap: 10px;
  text-align: center;
}

.pagination .nav-links,
.navigation .nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.pagination .page-numbers,
.navigation .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination .page-numbers:hover,
.navigation .page-numbers:hover {
  background: #5CC9E2;
  color: #fff;
  border-color: #5CC9E2;
}

.pagination .page-numbers.current,
.navigation .page-numbers.current {
  background: #5CC9E2;
  color: #fff;
  border-color: #5CC9E2;
}

.pagination .page-numbers.dots,
.navigation .page-numbers.dots {
  background: transparent;
  border: none;
  color: #666;
  cursor: default;
}

.pagination .page-numbers.dots:hover,
.navigation .page-numbers.dots:hover {
  background: transparent;
  color: #666;
  border: none;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .category-filter {
    margin: 30px 0;
  }

  .category-filter-list {
    gap: 10px;
  }

  .category-filter-item {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
  }

  .news-image {
    height: 180px;
  }

  .news-card {
    padding: 12px;
  }

  .news-category {
    padding: 3px 10px;
    font-size: 0.75rem;
  }

  .news-title {
    font-size: 1rem;
  }

  /* スマホでパンくずリストを非表示 */
  .breadcrumb {
    display: none;
  }

  /* スマホ用ページネーション */
  .pagination,
  .navigation {
    margin: 40px 0 100px 0;
  }

  .pagination .nav-links,
  .navigation .nav-links {
    gap: 3px;
  }

  .pagination .page-numbers,
  .navigation .page-numbers {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}