/* ブログ一覧セクション */
.blog-hero {
  background: #FFF7FF;
}
.blog-list-section {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* 記事カード（プランカードのデザインを継承） */
.blog-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: inherit;
}

/* メタ情報（日付・カテゴリ） */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.blog-date {
  color: #888;
  font-family: 'Inter', sans-serif;
}

.blog-category {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  background: #333; /* サービスページのアクセントカラーに合わせて調整可 */
  padding: 2px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* タイトルと抜粋 */
.blog-card-title {
  font-size: 1.8rem;
  line-height: 1.4;
  margin-bottom: 15px;
  font-weight: 700;
}

.blog-card-excerpt {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  font-size: 1.3rem;
  font-weight: 700;
  color: #007aff; /* サイトのメインカラーに合わせる */
}

/* ==========================================================================
   ページネーション - お洒落で利便性の高いデザイン
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  font-family: 'Inter', sans-serif;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 44px; /* タップターゲットを確保 */
  height: 44px;
  padding: 0 10px;
  text-decoration: none;
  color: var(--text-color);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px; /* 少し角を丸めてモダンに */
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* 数字のページ番号 */
.pagination a:not(.prev):not(.next) {
  letter-spacing: 0.05em;
}

/* 現在のページ */
.pagination a.current {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.25);
  cursor: default;
}

/* ホバー時の挙動（現在地以外） */
.pagination a:hover:not(.current) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 前へ・次へ ボタン */
.pagination a.prev,
.pagination a.next {
  padding: 0 20px;
  background-color: #f8f9fa;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pagination a.prev::before {
  content: "←";
  margin-right: 8px;
}

.pagination a.next::after {
  content: "→";
  margin-left: 8px;
}

/* レスポンシブ対応：スマホで少し小さく */
@media (max-width: 480px) {
  .pagination {
    gap: 5px;
  }
  .pagination a {
    min-width: 38px;
    height: 38px;
    font-size: 1.2rem;
    padding: 0 5px;
  }
  .pagination a.prev,
  .pagination a.next {
    padding: 0 12px;
  }
}