/*  NEWS一覧カードレイアウト（news-archive専用） */
.news-archive .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 3.75rem 1.5rem;
}

.news-archive .gallery-item {
    width: calc(33.333% - 24px);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease;
}

.news-archive .gallery-item:hover {
    transform: translateY(-4px);
}

.news-archive .gallery-item img {
    width: 100%;
    height: 12.875rem;
    object-fit: cover;
    border-radius: 0.25rem;
}
.news-archive .news-tags {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #555;
}
.news-archive .arrow {
    display: inline-block;
    font-size: 1rem;
    transition: transform .3s ease;
}

.news-archive .line {
    width: 100%;
    height: 0.125rem;
    background: #000;
    margin-top: 0.75rem;
}
@media (max-width: 768px) {
    .news-archive .gallery-item {
        width: 100%;
    }
}
.news-hero {
    width: 100%;
	aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.news-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.news-hero-title {
    position: absolute;
    bottom: 12%;
    left: 10%;
    color: #fff;
    text-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.4);
}

.news-hero-title .ja {
    font-size: 2.625rem;
    font-weight: 700;
    margin: 0;
}

.news-hero-title .en {
    font-size: 4.375rem;
    font-weight: 700;
    margin: 0;
}
.company-page.news-archive .gallery {
    width: 92%;
    max-width: 75rem;
    margin: 60px auto;
}
.company-page.news-archive .gallery-item img {
    width: 100%;
    aspect-ratio: 360 / 206;
    object-fit: cover;
}

.news-filter {
    width: 100%;
    max-width: 75rem;
    margin: 2.5rem auto 3.75rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.25rem;
}
.filter-left {
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
}

.filter-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-buttons,
.filter-year-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn,
.year-btn {
    border: 1px solid #222;
    background: #fff;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: .15s;
}

.filter-btn:hover,
.year-btn:hover {
    background: #222;
    color: #fff;
}

.filter-btn.active,
.year-btn.active {
    background: #EB5F51;
    border-color: #EB5F51;
    color: #fff;
}
.filter-right {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    min-width: 15rem;
}

.search-form {
    display: flex;
    gap: 0.375rem;
}

.search-form input[type="text"] {
    width: 11.25rem;
    padding: 0.625rem;
    border: 1px solid #bbb;
    border-radius: 0.25rem;
}

.search-btn:hover {
    background: #EB5F51;
}

.search-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border: none;
    border-radius: 4px;
}

.search-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    transform: scale(0.5);
}

.news-archive .pagination {
    width: 92%;
    max-width: 75rem;
    margin: 1.8rem auto 2.1rem;
    display: flex;
    justify-content: center;
}

.news-archive .pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-archive .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.875rem;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 1.25rem;
    text-decoration: none;
    transition: .15s;
    cursor: pointer;
}

.news-archive .pagination a.page-numbers:hover {
    background: #222;
    color: #fff;
}

.news-archive .pagination .page-numbers.current {
    background: #EB5F51;
    border-color: #EB5F51;
    color: #fff;
}

.news-archive .pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 0.25rem;
    height: auto;
}

.news-archive .pagination .page-numbers.prev,
.news-archive .pagination .page-numbers.next {
    font-weight: 700;
}

@media (max-width: 768px) {
    .news-archive .pagination {
        margin: 0.8rem auto 1.5rem;
    }

    .news-archive .pagination .page-numbers {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.75rem;
        padding: 0 0.75rem;
    }
}
@media (max-width: 768px) {
    .news-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .filter-left {
        flex-direction: column;
        gap: 1.5rem;
    }

    .filter-right {
        text-align: left;
        width: 100%;
    }

    .search-form input[type="text"] {
        width: 100%;
    }
}
.news-archive .gallery-item {
    width: calc(33.333% - 1.5rem);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.news-archive .gallery-item img {
    width: 100%;
    aspect-ratio: 360 / 206;
    object-fit: cover;
    border-radius: 0.25rem;
    display: block;
}
.news-archive .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.625rem 0 0.375rem;
}
.news-archive .news-cat {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    border: 1px solid #bbb;
    background: #fff;
    color: #444;
}

.news-archive .news-date {
    font-size: 0.75rem;
    color: #666;
}

.news-archive .news-title {
    margin: 0.375rem 0 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
}
.news-archive .news-tags {
    display: none !important;
}

.news-archive .item-title {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.news-archive .line {
    width: 100%;
    height: 0.125rem;
    background: #000;
    margin-top: 0.625rem;
}
.company-page .gallery-item .item-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.company-page .gallery-item .arrow {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    width: 1.125rem;
    transition: width 0.4s ease;
}
.company-page .gallery-item:hover .arrow {
    width: 120px;
}

.company-page .gallery-item:hover .arrow::before {
    content: "＞＞";
    background: linear-gradient(to right,
        #EB5F51 0%,
        #e67360 30%,
        #cc7e66 50%,
        #808080 80%,
        #000000 100%);
    -webkit-background-clip: text;
    color: transparent;
}
@media (max-width: 768px) {
    .news-archive .gallery {
        width: 100%;
        margin: 2.5rem auto;
        gap: 2rem;
    }

    .news-archive .gallery-item {
        width: 100%;
    }
    .news-archive .gallery-item img {
        aspect-ratio: 16 / 9;
    }
    .news-archive .news-title {
        font-size: 0.9375rem;
        line-height: 1.5;
    }
    .news-filter {
        margin: 1.5rem auto 2.5rem;
        gap: 32px;
    }

    .filter-left {
        width: 100%;
    }
    .filter-block {
        width: 100%;
    }
    .filter-buttons,
    .filter-year-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.375rem;
        -webkit-overflow-scrolling: touch;
    }
    .filter-buttons::-webkit-scrollbar,
    .filter-year-buttons::-webkit-scrollbar {
        height: 0.25rem;
    }

    .filter-buttons::-webkit-scrollbar-thumb,
    .filter-year-buttons::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 0.125rem;
    }

    .filter-btn,
    .year-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
        white-space: nowrap;
    }
    .filter-right {
        width: 100%;
        text-align: left;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"] {
        width: 100%;
        flex: 1;
    }

    .company-page .gallery-item:hover .arrow {
        width: 1.125rem;
    }

}

@media screen and (min-width: 481px) and (max-width: 959px) {
    .news-archive .gallery-item {
        width: calc(50% - 1rem) !important;
    }
}