/*
 * Styles for Blog Index Page (home.php)
 */

/* --- ページ全体のレイアウト --- */
.column-page {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.column-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.archive-title {
    font-size: 42px;
    font-weight: 900;
    color: #333;
    margin: 0;
}

/* --- 記事一覧グリッド (共通) --- */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* --- カードのスタイル (共通) --- */
.blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.blog-card a:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  /* サイト全体に a:hover { opacity: 0.8; } などがある場合、それを打ち消すために念のため記述 */
  opacity: 0.8;
}

/* --- アイキャッチ画像 (共通) --- */
.blog-card__thumbnail {
  position: relative;
  overflow: hidden; 
}
/* ★変更: 白いオーバーレイをここで定義 */
.blog-card__thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    z-index: 1;
}

/* ★追加: ホバー時にオーバーレイを表示 */
.blog-card a:hover .blog-card__thumbnail::after {
    opacity: 1;
}

.blog-card__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.2s ease; /* ★変更: アニメーション時間を調整 */
}
.blog-card a:hover .blog-card__thumbnail img {
  transform: scale(1.05);
}

/* --- カード下部のコンテンツ (共通) --- */
.blog-card__content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin: 0 0 15px 0;
}

/* --- メタ情報（カテゴリと日付） --- */
.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card__category {
  background-color: #5d9ab2;
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.blog-card__date {
    font-size: 14px;
    color: #888;
}

/* --- 抜粋文 --- */
.blog-card__excerpt {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-top: 15px;
    flex-grow: 1;
}
.blog-card__excerpt p {
    margin: 0;
}

/* --- ページネーション --- */
.navigation.pagination {
    margin-top: 60px;
    text-align: center;
}
.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    background-color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.pagination .page-numbers:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}
.pagination .page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    border: none;
    background: none;
    font-size: 14px;
}