/* =========================================
   Archive Page (新着一覧・アーカイブ)
========================================= */

/* --- Archive Header --- */
.archive_header {
    background: #fff;
    padding: 4cqw 10cqw;
    margin-bottom: 4cqw;
    border-bottom: 1px solid #ddd;
}

.archive_title_wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.archive_title_prefix {
    font-size: var(--font-s);
    font-weight: bold;
    color: var(--theme_color, #000); /* フォールバック色を追加 */
    border: 1px solid var(--theme_color, #000);
    padding: 0.2em 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
}

.archive_title {
    font-size: var(--font-3xl);
    font-weight: bold;
    margin: 0;
}

.archive_description {
    margin-top: 1.5rem;
    font-size: var(--font-s);
    line-height: 1.6;
    color: #333;
    max-width: 800px;
}

/* --- Post Grid --- */
.archive_post_grid {
    display: grid;
    padding: 0 0cqw 0 10cqw;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5cqw;
}

.post_card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.post_card_thumb {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.post_card_thumb img {
    width: 100%;
    max-width: 100%;
    max-height: auto;
    height: auto;
}

.post_card_info {
    padding: 1.5cqw;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post_card_date {
    font-size: var(--font-xs);
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
}

.post_card_title {
    font-size: var(--font-m);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.post_card_tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.top_page_container .post_tag {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-xs);
    color: #000;
    border: 1px solid #000;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    line-height: 1;
    background: transparent;
}

/* --- Pagination --- */
.pagination_wrap {
    margin-top: 5cqw;
    display: flex;
    justify-content: center;
}

.pagination ul.page-numbers {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    transition: 0.3s;
}

.pagination .page-numbers.current {
    background: var(--theme_color, #333);
    color: #fff;
}

/* --- SP Overrides --- */
@media (max-width: 767px) {
    .archive_header {
        padding: 8cqw 5cqw;
    }

    .archive_title {
        font-size: 8vw;
    }

    .archive_main_row {
        flex-direction: column;
        padding: 0 5vw;
    }

    .archive_post_grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 5vw;
    }

    .post_card_info {
        padding: 5vw;
    }
}
