/* ブログ専用スタイル */

/* ブログ記事グリッド */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-post {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.blog-post.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.blog-post.featured h3 {
    color: white;
    font-size: 1.5rem;
}

.blog-post.featured .post-meta .category {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.date {
    color: #666;
}

.category {
    background-color: #667eea;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.blog-post h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.blog-post p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #5a67d8;
}

.blog-post.featured .read-more {
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
}

.blog-post.featured .read-more:hover {
    background-color: white;
    color: #667eea;
}

/* カテゴリータブ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tab:hover {
    background-color: #e9ecef;
}

.tab.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* 人気記事リスト */
.popular-list {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.rank {
    background-color: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-content h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.popular-meta {
    color: #666;
    font-size: 0.9rem;
}

/* キャンペーン情報 */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.campaign-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6b6b;
    position: relative;
}

.campaign-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.campaign-title {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.campaign-period {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.campaign-card::before {
    content: "🎁";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

/* ブログについて */
.about-blog {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.about-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.about-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.about-list li {
    padding: 0.5rem 0;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-post.featured {
        grid-column: 1;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .tab {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .campaign-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-item {
        flex-direction: column;
        text-align: center;
    }
    
    .rank {
        align-self: center;
    }
}