/* facility一覧カードレイアウト（facility-archive専用） */

@charset "UTF-8";

.facility-archive {
    width: 92%;
    max-width: 75rem;
    margin: 5rem auto 7.5rem;
    font-family: "Noto Sans JP", sans-serif;
    color: #222;
}

.facility-hero {
    width: 100%;
    height: 32.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.facility-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.news-hero-title {
    position: absolute;
    bottom: 12%;
    left: 10%;
    color: #fff;
    text-shadow: 0 0 10px 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;
}

.facility-filter {
    width: 100%;
    margin-bottom: 3.125rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.filter-label {
    font-size: 0.875rem;
    font-weight: 700;
}

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

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

.filter-buttons.area-district {
    margin-top: 0.25rem;
    padding-left: 0.75rem;
    gap: 0.375rem;
}

.district-btn {
    border: 1px solid #aaa;
    background: #f7f7f7;
    padding: 0.25rem 0.875rem;
    font-size: 0.75rem;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: 0.15s;
    color: #333;
}

.district-btn:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

.district-btn.active {
    background: #EB5F51;
    border-color: #EB5F51;
    color: #fff;
}

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

.filter-btn.active,
.area-btn.active {
    background: #EB5F51;
    border-color: #EB5F51;
    color: #fff;
}

.facility-archive .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3.125rem 1.5rem;
}

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

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

.facility-archive .gallery-item img {
    width: 100%;
    aspect-ratio: 360 / 206;
    object-fit: cover;
    border-radius: 0.25rem;
    display: block;
    margin-bottom: 0.75rem;
}

.facility-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
}
.facility-address {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

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

.facility-archive .arrow {
    font-size: 1.125rem;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    width: 1.125rem;
    transition: width 0.4s ease;
}

.facility-archive .gallery-item:hover .arrow {
    width: 7.5rem;
}

.facility-archive .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;
    background-clip: text;
    color: transparent;
}

.facility-archive .line {
    width: 100%;
    height: 0.125rem;
    background: #000;
    margin-top: 0.625rem;
}

.pagination {
    text-align: center;
    margin: 3.75rem 0 100px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 0.375rem;
    color: #000;
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
    border: 0.0625rem solid #000;
}

.pagination .current {
    background: #000;
    color: #fff;
}


@media (max-width: 1024px) {
    .facility-archive {
        width: 94%;
    }

    .facility-archive .gallery {
        gap: 2.5rem 1.25rem;
    }

    .facility-archive .gallery-item {
        width: calc(50% - 1.25rem);
    }

    .facility-archive .arrow {
        width: 1.125rem;
    }

    .facility-archive .gallery-item:hover .arrow {
        width: 3.75rem;
    }
}
@media (max-width: 767px) {
    .facility-archive .gallery-item {
        width: 100%;
    }
}
.district-btn.is-hidden { display: none; }
