/* 標準投稿の一覧（page-posts.php）用 */

:root {
    --accent-color: #2899B2;
    --accent-color-rgb: 40, 153, 178;
}

/* ページヘッダー - clubs ページと統一 */
.page_header {
    width: 100%;
    max-width: 1024px;
    margin: 100px auto 0;
    padding: 0 1rem;
}

.page_header h2 {
    margin-bottom: 1.25rem;
    font-size: 2.25rem;
    font-weight: bold;
}

/* コンテナ - clubs ページと統一 */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-list-container {
    margin-bottom: 4rem;
}

.post-list {
    margin: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.post-list-item {
    border-bottom: 1px solid #e5e7eb;
}

.post-list-item > a {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.post-list-item > a:hover {
    background-color: rgba(var(--accent-color-rgb), 0.06);
}

.post-list-thumbnail {
    flex: 0 0 240px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
}

.post-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-list-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* カテゴリ - 記事詳細のカテゴリ表示と同じ見た目 */
.post-list-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-list-category {
    padding: 0.125rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(var(--accent-color-rgb), 0.12);
    color: var(--accent-color);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.6;
}

.post-list-title {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.5;
}

.post-list-item > a:hover .post-list-title {
    color: var(--accent-color);
}

.post-list-excerpt {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #6b7280;
}

.post-list-empty {
    margin: 3rem 0;
    color: #6b7280;
}

/* ページネーション - clubs ページと統一 */
.pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0;
    margin: 1.5rem 0;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination a:active {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
}

.pagination a.current {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: #fff;
}

/* モバイル対応 */
@media (max-width: 767px) {
    .page_header {
        margin-top: 80px;
    }

    .page_header h2 {
        font-size: 1.75rem;
    }

    .post-list-item > a {
        flex-direction: column;
        gap: 1rem;
    }

    .post-list-thumbnail {
        flex: none;
        width: 100%;
    }

    .post-list-title {
        font-size: 1.125rem;
    }
}
