@charset "UTF-8";

/* ======================
PC
====================== */
.news__container {
    max-width: 840px;
}

/* カテゴリー見出し */
.news__current-ttl {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--orange);
    padding: 0 32px;
    margin-bottom: var(--space-12);
    line-height: 1.4;
}

/* カテゴリー */
.news__categories ul {
    display: flex;
    gap: var(--space-16);
    justify-content: center;
    margin-bottom: var(--space-16);
}

.news__categories-item a {
    font-weight: 700;
    transition: color 0.3s ease;
}

.news__categories-item a:hover,
.news__categories-item a:focus-visible,
.news__categories-item.current-cat a,
.news__categories-item a.is-active {
    color: var(--orange);
}

/* 記事一覧 */
.news__list {
    width: 100%;
    /* max-width: 840px;
    margin: 0 auto; */
}

.news__item {
    border-bottom: solid 1px var(--orange);
}

.news__item:last-child {
    border-bottom: none;
}

.news__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-8);
}

.news__meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-shrink: 0;
}

.news__date {
    font-size: var(--font-size-xs);
    line-height: 1;
    display: inline-block;
    width: 100px;
}

.news__category {
    font-size: var(--font-size-sm);
    line-height: 1;
    color: var(--white);
    background-color: var(--orange);
    padding: var(--space-1) var(--space-4);
    white-space: nowrap;
}

.news__head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.news__ttl {
    font-weight: 700;
    min-height: calc(1em * 1.6 * 2);
    display: flex;
    align-items: center;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.arrow {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.arrow::before,
.arrow::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    width: 10px;
    height: 2px;
    border-radius: 9999px;
    background-color: var(--orange);
    transform-origin: calc(100% - 1px) 50%;
}

.arrow::before {
    transform: rotate(45deg);
}

.arrow::after {
    transform: rotate(-45deg);
}

/* ホバー・フォーカス時 */
.news__content:hover .news__ttl,
.news__content:hover .arrow,
.news__content:focus-visible .news__ttl,
.news__content:focus-visible .arrow {
    transform: translateX(4px);
}

/* ページネーション */
.pagination .nav-links {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    margin-top: var(--space-16);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--orange);
    border: 1px solid var(--orange);
    flex-shrink: 0;
    transition: background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;

}

.pagination .page-numbers.current {
    color: var(--white);
    background-color: var(--orange);
}

.pagination .page-numbers.dots {
    color: var(--orange);
    border: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    border: none;
}

/* ホバー・フォーカス時 */
.pagination a.page-numbers:not(.prev):not(.next):hover,
.pagination a.page-numbers:not(.prev):not(.next):focus-visible {
    background-color: var(--orange-hover);
    color: var(--white);
    border-color: var(--orange-hover);
}

.pagination a.page-numbers.prev:hover,
.pagination a.page-numbers.next:hover,
.pagination a.page-numbers.prev:focus-visible,
.pagination a.page-numbers.next:focus-visible {
    color: var(--orange-hover);
}

/* ======================
SP
====================== */
@media (max-width: 767px) {
    .news__content {
        flex-direction: column;
        gap: var(--space-1);
        align-items: flex-start;
        padding: var(--space-4);
    }
}