@charset "UTF-8";

/* ==========================================================================
   News List Page Styles
   ========================================================================== */

.l-main {
    margin-top: 100px;
    padding-top: 20px;
    padding-bottom: 80px;
}

/* Page Title */
.c-page-title {
    font-family: var(--font-shippori);
    font-size: 28px;
    font-weight: 100;
    text-align: center;
    margin-bottom: 100px;
    margin-top: 40px;
}

/* --- Post Nav (Strict Layout) ----------------------------------------- */
.p-postNav-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Flex Utilities (as implied by class names) */
.c-flex {
    display: flex;
}

.c-flex--middle {
    align-items: center;
}

.c-flex--wrap {
    flex-wrap: wrap;
}

.p-postNav {
    justify-content: flex-end;
    /* Right align as per prompt */
    gap: 3px;
}

/* Select/Link items */
.p-postNav__select a,
.is-postNavSelect {
    display: inline-block;
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    /* Slight radius */
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    font-family: var(--font-gothic);
    height: 40px;
    /* Uniform height */
    line-height: 1.5;
    box-sizing: border-box;
}

.is-postNavSelect {
    appearance: none;
    /* Custom style if needed, or simple browser default */
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    cursor: pointer;
}

/* Search Form */
.p-postNav__searchInner {
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 20px;
    /* Rounded pill shape for search */
    overflow: hidden;
    height: 40px;
    padding-left: 15px;
}

.p-postNav__searchForm {
    border: none;
    outline: none;
    font-size: 14px;
    width: 200px;
    border: none !important;
    /* Fixed width for search input */
}

.p-postNav__searchBtn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-postNav__searchBtn img {
    width: 16px;
    height: 16px;
}

.p-news-nolist {
    text-align: center;

}

@media (max-width: 767px) {
    .l-main {
        margin-top: 20px;
    }

    .p-postNav {
        justify-content: center;
        /* Center on SP */
    }

    .p-postNav__searchForm {
        width: 150px;
    }

    .c-page-title {
        margin-bottom: 30px;
        font-size: 20px;

    }

    .c-flex {
        display: block;
    }

    .p-postNav div a,
    .p-postNav__select a,
    .is-postNavSelect {
        width: 100%;
        margin-bottom: 10px;
        border: none;
        font-size: 13px;
        line-height: 15px;
    }
}


/* --- News Grid -------------------------------------------------------- */
.p-news-grid {
    padding: 0 20px;
    margin-bottom: 80px;
}

.p-news-grid__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* SP: 2 Columns */
    gap: 30px 20px;
}

@media (min-width: 1024px) {
    .p-news-grid__inner {
        grid-template-columns: repeat(4, 1fr);
        /* PC: 4 Columns */
        gap: 40px 30px;
    }
}

/* News Card */
.c-news-card {
    display: flex;
    flex-direction: column;
}

.c-news-card__link {
    text-decoration: none;
    color: var(--color-text);
    display: block;
    transition: opacity 0.3s;
}

.c-news-card__link:hover {
    opacity: 0.7;
}

.c-news-card__thumb {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #f0f0f0;
}

.c-news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.c-news-card__link:hover .c-news-card__thumb img {
    transform: scale(1.05);
}

.c-news-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.c-news-card__cat {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    background-color: #141212;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.c-news-card__date {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-family: var(--font-gothic);
}

.c-news-card__title {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

/* --- Pagination ------------------------------------------------------- */
.p-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.p-pagination__current,
.p-pagination__link,
.p-pagination__next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 14px;
    font-family: var(--font-gothic);
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.3s;
}

.p-pagination__current {
    background-color: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
    font-weight: 700;
}

.p-pagination__link:hover,
.p-pagination__next:hover {
    background-color: #f0f0f0;
    opacity: 0.8;
}