/* 記事一覧ページのスタイル */
.article-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
  font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* ページヘッダー */
.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-title {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 16px;
  border-bottom: 3px solid #1976d2;
  display: inline-block;
  padding-bottom: 8px;
}

.page-description {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* 記事グリッド */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

/* 記事カード */
.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 記事画像 */
.article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-image.no-image {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 3rem;
}

/* 記事コンテンツ */
.article-content {
  padding: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #666;
}

.article-meta i {
  margin-right: 4px;
}

.article-date,
.article-category {
  display: flex;
  align-items: center;
}

.article-category {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.article-title {
  margin: 0 0 16px 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.article-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-title a:hover {
  color: #1976d2;
}

.article-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* タグ */
.article-tags {
  margin-bottom: 20px;
}

.article-tag {
  display: inline-block;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* 記事フッター */
.article-footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.read-more:hover {
  color: #0d47a1;
  gap: 8px;
}

.read-more i {
  margin-left: 6px;
  transition: margin-left 0.2s ease;
}

.read-more:hover i {
  margin-left: 10px;
}

/* ページネーション */
.pagination-wrapper {
  text-align: center;
  margin-top: 60px;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  color: #6c757d;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: #1976d2;
  color: #fff;
}

.pagination-info {
  font-weight: 500;
  color: #495057;
  margin: 0 16px;
  font-size: 0.95rem;
}

/* 記事なしの状態 */
.no-articles {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
}

.no-articles i {
  font-size: 4rem;
  margin-bottom: 24px;
  color: #dee2e6;
}

.no-articles h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #495057;
}

.no-articles p {
  font-size: 1rem;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .article-list-container {
    padding: 20px 16px;
  }

  .page-title {
    font-size: 2rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-content {
    padding: 20px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pagination {
    padding: 12px 16px;
    gap: 8px;
  }

  .pagination-btn {
    width: 36px;
    height: 36px;
  }
}
