/* ========================================
   アーカイブページ（タグ・カテゴリ等）
======================================== */

.archive-main {
    padding: 40px 0 80px;
}

.archive-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.archive-main .post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
    align-items: start;
}

.archive-content {
    min-width: 0;
}

/* ========================================
   アーカイブヘッダー
======================================== */

.archive-header {
    text-align: center;
    margin-bottom: 56px;
    padding: 48px 32px;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.archive-title {
    font-size: 36px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 16px;
    line-height: 1.3;
}

.archive-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #0A3D62;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    padding: 6px 16px;
    background: rgba(10, 61, 98, 0.08);
    border-radius: 4px;
}

.archive-description {
    font-size: 15px;
    color: #6C757D;
    line-height: 1.8;
    max-width: 700px;
    margin: 16px auto 0;
}

/* ========================================
   記事一覧
======================================== */

.posts-list {
    width: 100%;
}

.post-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    margin-bottom: 24px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-item-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: #F8F9FA;
}

.post-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-item-thumbnail img {
    transform: scale(1.05);
}

.post-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* メタ情報 */
.post-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.post-item-date,
.post-item-categories {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6C757D;
}

.post-item-date i,
.post-item-categories i {
    font-size: 12px;
}

.post-item-categories a {
    color: #0A3D62;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item-categories a:hover {
    color: #0D47A1;
}

/* タイトル */
.post-item-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.post-item-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item-title a:hover {
    color: #0A3D62;
    text-decoration: underline;
}

/* 抜粋 */
.post-item-excerpt {
    color: #495057;
    font-size: 15px;
    line-height: 1.7;
}

/* タグ */
.post-item-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-item-tags i {
    font-size: 12px;
    color: #6C757D;
}

.post-item-tags a {
    display: inline-block;
    padding: 4px 12px;
    background-color: #F8F9FA;
    color: #495057;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-item-tags a:hover {
    background-color: #0A3D62;
    color: #FFFFFF;
}

/* 続きを読むリンク */
.post-item-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0A3D62;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-item-more:hover {
    color: #0D47A1;
    gap: 10px;
}

.post-item-more i {
    font-size: 12px;
}

/* ページネーション */
.pagination,
.posts-pagination {
    margin-top: 48px;
    text-align: center;
}

.posts-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #FFFFFF;
    color: #0A3D62;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.posts-pagination .page-numbers:hover {
    background: #0A3D62;
    color: #FFFFFF;
    border-color: #0A3D62;
}

.posts-pagination .page-numbers.current {
    background: #0A3D62;
    color: #FFFFFF;
    border-color: #0A3D62;
}

.posts-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    color: #6C757D;
}

.posts-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #6C757D;
}

/* 投稿が見つからない場合 */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    color: #6C757D;
    font-size: 16px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background-color: #F8F9FA;
    color: #495057;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #0A3D62;
    color: #FFFFFF;
}

.pagination .page-numbers.dots {
    background-color: transparent;
}

/* 記事が見つからない場合 */
.no-posts {
    text-align: center;
    padding: 64px 0;
    color: #6C757D;
}

/* ========================================
   レスポンシブ対応
======================================== */

@media (max-width: 1024px) {
    .archive-main .post-layout {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
    
    .post-item {
        padding: 24px;
    }
    
    .post-item-thumbnail {
        width: 160px;
        height: 120px;
    }
}

@media (max-width: 992px) {
    .archive-main .post-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .archive-main {
        padding: 24px 0 48px;
    }
    
    .archive-main .container {
        padding: 0 16px;
    }
    
    .archive-header {
        padding: 32px 20px;
        margin-bottom: 32px;
    }
    
    .archive-title {
        font-size: 26px;
    }
    
    .archive-label {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    .posts-list {
        max-width: 100%;
    }
    
    .post-item {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    
    .post-item-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .post-item-title {
        font-size: 19px;
    }
    
    .post-item-excerpt {
        font-size: 14px;
    }
}

