/* ブログ一覧ページ用CSS - Version 2.0 */

/* 一覧ページのみに適用 */
.blog-archive .blog__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 40px !important;
}

.blog-archive .blog__item {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 450px !important;
}

.blog-archive .blog__thumbnail {
    width: 100% !important;
    height: 200px !important;
    flex-shrink: 0 !important;
}

.blog-archive .blog__content {
    flex: 1 !important;
    padding: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

/* メインコンテナ */
.blog-archive {
    min-height: 100vh;
    padding: 120px 0 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* タイトル */
.blog__title {
    font-size: 3.5em;
    font-weight: 800;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* グリッドレイアウト */
.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ブログカード */
.blog__item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 450px;
    max-width: none;
    margin: 0;
}

.blog__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* サムネイル - main.cssで管理 */

/* 画像なし用のデフォルト表示 */
.blog__thumbnail--default .blog__no-image {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

.blog__thumbnail:hover img {
    transform: scale(1.05);
}

/* コンテンツ */
.blog__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* メタ情報 */
.blog__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.blog__date {
    color: #333333;
    font-weight: 600;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.blog__category a {
    background: #ddf1a6;
    color: #333;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.blog__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.blog__tag {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.blog__tag a {
    color: #666;
    text-decoration: none;
}

.blog__tag a:hover {
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.blog__category a:hover {
    background: #c8e690;
    transform: translateY(-2px);
}

/* タイトル */
.blog__item-title {
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 0 0 auto;
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog__item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog__item-title a:hover {
    color: #667eea;
}

/* 抜粋 */
.blog__excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 66px;
}

/* 続きを読むリンク */
.blog__read-more {
    color: #1b4332;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border: 2px solid #d4af37;
    border-radius: 20px;
    transition: all 0.3s ease;
    align-self: flex-start;
    background: #fce4ec;
    flex: 0 0 auto;
}

.blog__read-more:hover {
    background: #d4af37;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background: #ffffff;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.pagination .page-numbers.current {
    background: #667eea;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 12px 24px;
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

/* 記事がない場合 */
.blog__empty {
    text-align: center;
    padding: 80px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog__empty h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 20px;
}

.blog__empty p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .blog-archive {
        padding: 80px 0 40px;
    }
    
    .blog__container {
        padding: 0 20px;
    }
    
    .blog__title {
        font-size: 2.5em;
        margin-bottom: 40px;
    }
    
    .blog__grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .blog__thumbnail {
        height: 200px;
    }
    
    .blog__content {
        padding: 25px;
    }
    
    .blog__item-title {
        font-size: 1.3em;
    }
    
    .pagination .page-numbers {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .blog__title {
        font-size: 2em;
    }
    
    .blog__content {
        padding: 20px;
    }
    
    .blog__item-title {
        font-size: 1.2em;
    }
    
    .blog__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination .page-numbers {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .blog__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}