/* ===========================
   ブログページ専用スタイル
   =========================== */

.blog-hero {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.blog-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.blog-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.blog-list {
    padding: 80px 0;
    background: #F8F9FA;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-category {
    background: #2C3E50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-block;
    color: #2C3E50;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-read-more:hover {
    color: #34495E;
}

/* サイドバー */
.blog-sidebar {
    max-width: 350px;
    margin: 0 auto;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ECF0F1;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.category-list a:hover {
    background: #F8F9FA;
    color: #2C3E50;
}

.category-list li.active a {
    background: #2C3E50;
    color: white;
}

.category-list li.active a i,
.category-list li.active a span {
    color: white;
}

.category-list i {
    margin-right: 8px;
    color: #2C3E50;
}

.category-list span {
    color: #999;
    font-size: 14px;
}

.popular-posts {
    list-style: none;
    padding: 0;
}

.popular-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ECF0F1;
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-posts a {
    color: #2C3E50;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.popular-posts a:hover {
    color: #34495E;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 0 40px;
        margin-top: 60px;
    }
    
    .blog-hero-title {
        font-size: 32px;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}
