@charset "utf-8";

/* ===== Filter Tabs ===== */
.news-filter {
    display: flex;
    justify-content: center;
    gap: .1rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}

.news-filter__btn {
    width: min(180px, 100%);
    display: inline-block;
    text-align: center;
    padding: 15px 20px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #1a5fb4;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    user-select: none;
}

.news-filter__btn:hover,
.news-filter__btn.is-active {
    background: #1a5fb4;
    color: #fff;
}

/* ===== News List Box ===== */
.news-list-box {
    background: #fff;
    border-radius: .3rem;
    padding: .4rem .8rem;
}

/* ===== News Item ===== */
.news-item {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .3rem .2rem;
    border-bottom: 1px solid #000;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.news-item p {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.news-item:hover {
    background: #f7f9fc;
}

.news-item__date {
    flex-shrink: 0;
}

/* ===== Category Badge ===== */
.news-item__cat {
    flex-shrink: 0;
    display: inline-block;
    min-width: 100px;
    padding: .05rem .1rem;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    background: #1a5fb4;
    color: #fff;
}

/* ===== Pagination ===== */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.news-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    color: #1a5fb4;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.news-pagination__btn:hover,
.news-pagination__btn.is-active {
    background: #1a5fb4;
    color: #fff;
}

.news-pagination__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.news-pagination__arrow {
    font-size: 24px;
    background: transparent;
    box-shadow: none;
    color: #1a5fb4;
}

/* ===== Empty ===== */
.news-empty {
    text-align: center;
    padding: 48px 0;
    color: #999;
}

/* JS無効時は全件表示 */
.news-item {
    display: flex;
}


/* ===== News Detail ===== */

.news-detail {
    background: #fff;
    border-radius: .3rem;
    padding: .4rem .8rem;
    display: grid;
    gap: .2rem;
}

.news-detail__head {
    display: grid;
    gap: .1rem;
    padding-bottom: .1rem;
    border-bottom: 1px solid #000;
}

.news-detail__head>p {
    display: flex;
    align-items: center;
    gap: .1rem;
}

.news-detail__conts {
    line-height: 2;
}

.news-detail__conts a {
    text-decoration: underline;
    color: #1a5fb4;
}

@media only screen and (max-width: 1024px) {
    .news-filter__btn {
        width: calc(50% - .1rem);
    }

    .news-item {
        flex-direction: column;
        align-items: unset;
    }
}