/* ========================================
   ブログ一覧ページ - モダンデザイン
   ======================================== */

/* ページヘッダー */
.page-header {
    background: var(--gradient);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-weight: 800;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    position: relative;
}

/* ブログページレイアウト */
.blog-page {
    padding: 0;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* 記事グリッド */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 記事カード */
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-image {
    height: 180px;
    overflow: hidden;
    background: var(--light);
}

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

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

.article-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.article-card-placeholder span {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.article-card-category {
    background: var(--gradient);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-card-meta time {
    font-size: 0.8rem;
    color: var(--gray);
}

.article-card-content h2 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more::after {
    content: '→';
}

.article-card:hover .read-more {
    gap: 0.75rem;
}

/* サイドバー */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
}

/* カテゴリーリスト */
.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid var(--light);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.category-list span {
    color: var(--gray);
    font-size: 0.8rem;
}

/* タグクラウド */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-cloud .tag {
    background: var(--light);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    background: var(--gradient);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* サイドバーCTA */
.sidebar-cta {
    background: var(--gradient);
    text-align: center;
}

.sidebar-cta h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.sidebar-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.sidebar-cta .btn {
    background: var(--white);
    color: var(--primary);
}

.sidebar-cta .btn:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .blog-container {
        padding: 2rem 1.5rem 4rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
}
