@charset "utf-8";
:root {
    --black: #333;
    --white: #fff;
    --green: #30574E;
}
/* ------------------------------
ヘッダータイトル
------------------------------ */
.title {
    margin-top: 100px;
}
/* ------------------------------
ニュース一覧
------------------------------ */
.news-container {
    padding: 50px 8% 100px;
}
.news-container ul {
    max-width: 1440px;
    padding: 0 8%;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.news-container ul li {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.6s ease;
}
.news-item {
    scroll-margin-top: 120px;
}
.news-toggle {
    all: unset;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    cursor: pointer;
    border-bottom: 1px solid var(--white);
    position: relative;
}
.news-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1em;
    transform: translateY(-50%) rotate(0deg);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--white);
    transition: transform 0.6s ease-in-out;
}
.news-item.open .news-toggle::after {
    transform: translateY(-50%) rotate(-180deg);
}
.news-toggle time {
    padding: 0 16px 8px;
    width: 30%;
    max-width: 140px;
}
.news-toggle .news-title {
    text-align: left;
    padding: 0 40px 8px 16px;
}
.news-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 8%;
    transition: max-height 0.6s ease, opacity 0.4s ease, padding 0.4s ease;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}
.news-content img {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 40px;
}
.news-item.open .news-content {
    opacity: 1;
    padding: 64px 8%;
}
@media (max-width: 767px) {
    .news-container {
        padding: 50px 0 100px;
    }
    .news-toggle {
        flex-direction: column;
    }
}
/* ------------------------------
ページネーション
------------------------------ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
    font-size: 1.4rem;
}
.pagination .page-number {
    display: inline-block;
    padding: 10px 16px 8px;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease-in-out;
    border: none;
}
.pagination .page-number.current {
    pointer-events: none;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.3);
}
.pagination .page-number:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.pagination .prev,
.pagination .next {
    position: relative;
    padding: 0 16px;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.4s ease;
    display: inline-flex;
    align-items: center;
}
.pagination .prev::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 6px solid var(--white);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.pagination .next::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--white);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.pagination .prev:hover::before {
    transform: translateY(-50%) translateX(4px);
    opacity: 1;
}
.pagination .next:hover::after {
    transform: translateY(-50%) translateX(-4px);
    opacity: 1;
}
.pagination .dots {
    color: var(--white);
    padding: 8px;
}
@media (max-width: 767px) {
    .pagination a.page-number,
    .pagination span.dots {
        display: none;
    }
    .pagination .page-number.current {
        display: block;
    }
    .pagination .prev,
    .pagination .next {
        display: inline-flex;
        padding: 8px 16px;
    }
}