.sp-02 {
    display: none;
}

.facilities {
    padding: 0 16px;
}

.fd-main-des a {
    color: #BA071A;
    text-decoration: none;
    transition: opacity 0.3s, text-decoration 0.3s;
}

.fd-main-des a:hover {
    opacity: 0.6;
    text-decoration: none;
}

.other-bg {
    background-image: url("../assets/img/common/other-bg.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* PC（1025px〜） */
@media (min-width: 1025px) {
    .bp-fv-area {
        width: 100%;
        height: auto;
        margin-top: 100px;
    }

    .facilities-map-img {
        width: 100%;
        height: auto;
    }

    .map-img {
        margin-bottom: 24px;
    }

    .map-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 16px;
        max-width: 825px;
        height: 120px;
        margin-inline: auto;
        text-decoration: none;
    }

    .map-buttons a {
        font-size: clamp(0.9rem, 1vw, 18px);
    }

    .map-btn {
        background-color: #BA071A;
        color: #fff;
        padding: 10px 14px;
        text-align: center;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .map-btn:hover {
        background-color: #FF6000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-decoration: none !important;
    }

    .arrow-img {
        width: 12px;
        height: 12px;
        display: inline-block;
    }

    .other-btn {
        background-color: #9C9C9C;
    }

    .other-btn:hover {
        text-decoration: none !important;
        background-color: #333;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .facilities-detail {
        margin: 80px 0 0;
    }

    .facility-content {
        margin-bottom: 80px;
    }

    .facilities-detail-box {}

    .fd-ttl {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fd-ttl p {
        display: flex;
        align-items: center;
        font-weight: bold;
        color: #000;
        font-size: clamp(1rem, 2.3vw, 28px);
        line-height: 1;
    }

    .fd-ttl p::before,
    .fd-ttl p::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 1em;
        background-color: #BA071A;
        vertical-align: middle;
    }

    .fd-ttl p::before {
        margin-right: 12px;
    }

    .fd-ttl p::after {
        margin-left: 12px;
    }

    .fd-main-img {
        width: 100%;
        max-width: 720px;
        height: auto;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .fd-main-img img {
        border-radius: 15px;
        display: block;
    }

    .fd-sub-img-box {
        width: 100%;
        max-width: 720px;
        gap: 24px;
    }

    .fd-sub-img-box img {
        border-radius: 10px 10px 0 0;
    }

    .fd-sub-item {
        display: block;
        width: 100%;
    }

    .fd-sub-txt {
        background-color: #fff;
        border-radius: 0 0 10px 10px;
        padding: 12px 12px 16px;
        height: auto;
        min-height: 160px;
        box-sizing: border-box;
    }

    .fd-sub-ttl {
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        font-size: clamp(1.2rem, 18px, 20px);
        color: #000;
        display: inline-flex;
        align-items: center;
        margin-bottom: 2px;
    }

    .fd-sub-ttl::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background-color: #BA071A;
        border-radius: 1px;
    }

    .fd-main-des {
        width: 100%;
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        font-size: 1.1rem;
        color: #000;
        align-items: center;
        margin-bottom: 2px;
        text-align: left;
        margin-top: 10px;
    }

    .fd-main-des::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background-color: #BA071A;
        border-radius: 1px;
    }

    .fd-main-img.content-left {
        align-items: center;
        text-align: left;
        display: block;
    }

    .fd-sub-des {
        font-weight: 500;
    }

    .img-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.8);
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-modal.show {
        display: flex;
        opacity: 1;
    }

    .img-modal img {
        max-width: 60%;
        max-height: 60%;
        border-radius: 8px;
        cursor: zoom-out;
    }

    .modal-plus-img {
        width: 100%;
        max-width: 32px;
        position: absolute;
        bottom: 1%;
        right: 1%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .modal-plus-img img {
        width: 100%;
        max-width: 32px;
        transition: transform 0.3s ease;
        pointer-events: none;
        /* クリックを邪魔しないように */
    }

    .fd-sub-img.relative:hover .modal-plus-img img {
        transform: scale(1.05);
        /* 1.2倍に拡大 */
    }


    .swiper-container {
        width: 100%;
        aspect-ratio: 16 / 4;
        position: relative;
    }

    .swiper {
        width: 100%;
        max-width: 680px;
        position: relative;
    }

    .swiper-wrapper,
    .swiper-slide {
        height: 100%;
    }

    .swiper-slide img {
        width: 100%;
        height: 100%;
        max-height: 80%;
        object-fit: cover;
        display: block;
        border-radius: 10px 10px 0 0;
    }


    .swiper-pagination-bullet-active {
        opacity: var(--swiper-pagination-bullet-opacity, 1);
        background: #9f0515;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: 18px;
        font-weight: 600;
        text-transform: none !important;
        letter-spacing: 0;
        font-variant: initial;
        line-height: 1;
    }

    .swiper-button-next:after {
        transform: translate(1px, 0);
    }

    .swiper-button-prev:after {
        transform: translate(-2px, 0);
    }

    .swiper-button-next,
    .swiper-button-prev {
        position: absolute;
        top: 40%;
        width: 44px;
        height: 44px;
        margin-top: -18px;
        z-index: 10;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        transition: background-color 0.3s ease;
        z-index: 10;
    }

    .swiper-button-prev {
        position: absolute;
        left: -40px;
        z-index: 10;
    }

    .swiper-button-next {
        position: absolute;
        right: -40px;
        z-index: 10;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: -10%;
    }

    .swiper-bar {
        width: 94%;
        margin: 0 auto;
        display: none;
    }

    #facility1,
    #facility2,
    #facility3,
    #facility4,
    #facility5,
    #facility6 {
        scroll-margin-top: 150px;
    }
}

/* タブレット（768〜1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
    .bp-fv-area {
        width: 100%;
        height: auto;
        margin-top: 100px;
    }

    .facilities-map-img {
        width: 100%;
        height: auto;
    }

    .map-img {
        width: 75%;
        margin-bottom: 24px;
    }


    .map-buttons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 16px;
        max-width: 780px;
        margin-inline: auto;
        text-decoration: none;
    }

    .map-buttons a {
        font-size: clamp(0.9rem, 1vw, 18px);
    }

    .map-btn {
        background-color: #BA071A;
        color: #fff;
        padding: 10px 14px;
        text-align: center;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .map-btn:hover {
        background-color: #FF6000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-decoration: none !important;
    }

    .arrow-img {
        width: 12px;
        height: 12px;
        display: inline-block;
    }

    .other-btn {
        background-color: #9C9C9C;
    }

    .other-btn:hover {
        text-decoration: none !important;
        background-color: #333;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .facilities-detail {
        margin: 80px 0 0;
    }

    .facility-content {
        margin-bottom: 80px;
    }

    .facilities-detail-box {}

    .fd-ttl {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fd-ttl p {
        display: flex;
        align-items: center;
        font-weight: bold;
        color: #000;
        font-size: clamp(1rem, 2.5vw, 28px);
        line-height: 1;
    }

    .fd-ttl p::before,
    .fd-ttl p::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 1em;
        background-color: #BA071A;
        vertical-align: middle;
    }

    .fd-ttl p::before {
        margin-right: 12px;
    }

    .fd-ttl p::after {
        margin-left: 12px;
    }

    .fd-main-img {
        width: 100%;
        max-width: 560px;
        height: auto;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }

    .fd-main-img img {
        border-radius: 15px;
    }

    .fd-sub-img-box {
        width: 100%;
        max-width: 720px;
        gap: 24px;
    }

    .fd-sub-img-box img {
        border-radius: 10px 10px 0 0;
    }

    .fd-sub-item {
        display: block;
        width: 100%;
    }

    .fd-sub-txt {
        background-color: #fff;
        border-radius: 0 0 10px 10px;
        padding: 12px 12px 16px;
        height: auto;
        min-height: 170px;
        box-sizing: border-box;
    }

    .fd-sub-ttl {
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        font-size: clamp(0.9rem, 1.7vw, 18px);
        color: #000;
        display: inline-flex;
        align-items: center;
        margin-bottom: 2px;
    }

    .fd-sub-ttl::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background-color: #BA071A;
        border-radius: 1px;
    }

    .fd-main-des {
        width: 100%;
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        font-size: clamp(0.9rem, 1.3vw, 16px);
        color: #000;
        align-items: center;
        margin-bottom: 2px;
        text-align: left;
        margin-top: 10px;
    }

    .fd-main-des::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background-color: #BA071A;
        border-radius: 1px;
    }

    .fd-main-img.content-left {
        align-items: flex-start;
        text-align: left;
    }

    .fd-sub-des {
        font-weight: 500;
        font-size: clamp(0.85rem, 1.5vw, 15px);
    }

    .img-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.8);
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-modal.show {
        display: flex;
        opacity: 1;
    }

    .img-modal img {
        max-width: 60%;
        max-height: 60%;
        border-radius: 8px;
        cursor: zoom-out;
    }

    .modal-plus-img {
        width: 100%;
        max-width: 32px;
        position: absolute;
        bottom: 1%;
        right: 1%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .modal-plus-img img {
        width: 100%;
        max-width: 32px;
        transition: transform 0.3s ease;
        pointer-events: none;
        /* クリックを邪魔しないように */
    }

    .fd-sub-img.relative:hover .modal-plus-img img {
        transform: scale(1.05);
        /* 1.2倍に拡大 */
    }


    .swiper-container {
        width: 100%;
        aspect-ratio: 16 / 4;
        position: relative;
    }

    .swiper {
        width: 100%;
        max-width: 560px;
        position: relative;
    }

    .swiper-wrapper,
    .swiper-slide {
        height: 100%;
    }

    .swiper-slide img {
        width: 100%;
        height: 100%;
        max-height: 80%;
        object-fit: cover;
        display: block;
        border-radius: 10px 10px 0 0;
    }


    .swiper-pagination-bullet-active {
        opacity: var(--swiper-pagination-bullet-opacity, 1);
        background: #9f0515;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: 18px;
        font-weight: 600;
        text-transform: none !important;
        letter-spacing: 0;
        font-variant: initial;
        line-height: 1;
    }

    .swiper-button-next:after {
        transform: translate(1px, 0);
    }

    .swiper-button-prev:after {
        transform: translate(-2px, 0);
    }

    .swiper-button-next,
    .swiper-button-prev {
        position: absolute;
        top: 50%;
        width: 32px;
        height: 32px;
        margin-top: -18px;
        z-index: 10;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        transition: background-color 0.3s ease;
        z-index: 10;
    }

    .swiper-button-prev {
        position: absolute;
        left: -40px;
        z-index: 10;
    }

    .swiper-button-next {
        position: absolute;
        right: -40px;
        z-index: 10;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: -10%;
    }

    .swiper-bar {
        width: 94%;
        margin: 0 auto;
        display: none;
    }

    #facility1,
    #facility2,
    #facility3,
    #facility4,
    #facility5,
    #facility6 {
        scroll-margin-top: 150px;
    }
}

/* スマホ（〜767px） */
@media (max-width: 767px) {
    .facilities-detail {
        margin: 40px 8px;
        width: 100%;
    }

    .bp-fv-area {
        width: 100%;
        height: auto;
        margin-top: 70px;
    }

    .facilities-map-img {
        width: 100%;
        height: auto;
    }

    .map-img {
        width: 75%;
        margin-bottom: 24px;
    }


    .map-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 16px;
        max-width: 780px;
        margin-inline: auto;
        text-decoration: none;
    }

    .map-buttons a {
        font-size: clamp(0.6rem, 3.2vw, 14px);
    }

    .map-btn {
        background-color: #BA071A;
        color: #fff;
        padding: 10px 16px;
        text-align: center;
        border-radius: 4px;
        text-decoration: none;
        font-weight: bold;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    .map-btn:hover {
        background-color: #FF6000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-decoration: none !important;
    }

    .arrow-img {
        width: 12px;
        height: 12px;
        display: inline-block;
    }

    .other-btn {
        background-color: #9C9C9C;
    }

    .other-btn:hover {
        text-decoration: none !important;
        background-color: #333;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }


    .facility-content {
        margin-bottom: 48px;
    }


    .fd-ttl {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fd-ttl p {
        display: flex;
        align-items: center;
        font-weight: bold;
        color: #000;
        font-size: clamp(0.9rem, 4.2vw, 20px);
        line-height: 1;
    }

    .fd-ttl p::before,
    .fd-ttl p::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 1em;
        background-color: #BA071A;
        vertical-align: middle;
    }

    .fd-ttl p::before {
        margin-right: 12px;
    }

    .fd-ttl p::after {
        margin-left: 12px;
    }

    .fd-main-img {
        width: 100%;
        max-width: 560px;
        height: auto;
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        margin: 16px 0;
    }

    .fd-main-img img {
        border-radius: 10px;
        width: 570px;
    }

    .fd-sub-img-box {
        width: 100%;
        max-width: 720px;
        gap: 24px;
    }

    .fd-sub-img-box img {
        border-radius: 10px 10px 0 0;
    }

    .fd-sub-item {
        display: block;
        width: 100%;
    }

    .fd-sub-txt {
        background-color: #fff;
        padding: 8px 12px 8px;
        height: auto;
        min-height: 204px;
        box-sizing: border-box;
        border-radius: 0 0 10px 10px;
    }

    .fd-sub-ttl {
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        font-size: clamp(0.75rem, 3.8vw, 18px);
        color: #000;
        display: inline-flex;
        align-items: center;
        margin-bottom: 2px;
    }

    .fd-sub-ttl::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 60%;
        background-color: #BA071A;
        border-radius: 1px;
    }

    .fd-sub-img {
        width: auto;
    }

    .fd-main-des {
        width: 100%;
        position: relative;
        padding-left: 12px;
        font-weight: bold;
        font-size: clamp(0.8rem, 3.8vw, 18px);
        color: #000;
        align-items: center;
        margin-bottom: 2px;
        text-align: left;
        margin-top: 10px;
    }

    .fd-main-des::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 80%;
        background-color: #BA071A;
        border-radius: 1px;
    }

    .fd-main-img.content-left {
        align-items: flex-start;
        text-align: left;
    }

    .fd-sub-des {
        font-weight: 500;
        font-size: clamp(0.80rem, 3.2vw, 15px);
    }

    .img-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.8);
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .img-modal.show {
        display: flex;
        opacity: 1;
    }

    .img-modal img {
        max-width: 95%;
        max-height: auto;
        border-radius: 8px;
        cursor: zoom-out;
    }

    .modal-plus-img {
        width: 100%;
        max-width: 32px;
        position: absolute;
        bottom: 1%;
        right: 1%;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .modal-plus-img img {
        width: 100%;
        max-width: 32px;
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    .fd-sub-img.relative:hover .modal-plus-img img {
        transform: scale(1.05);
    }

    .swiper-container {
        width: 100%;
        aspect-ratio: 16 / 4;
        position: relative;
    }

    .swiper {
        width: 100%;
        max-width: 560px;
        position: relative;
    }

    .swiper-wrapper {
        overflow: visible !important;
    }

    .swiper-wrapper,
    .swiper-slide {
        height: 100%;
    }

    .swiper-slide img {
        width: 100%;
        height: 100%;
        max-height: 80%;
        object-fit: cover;
        display: block;
        border-radius: 5px 5px 0 0;
    }


    .swiper-pagination-bullet-active {
        opacity: var(--swiper-pagination-bullet-opacity, 1);
        background: #9f0515;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: 18px;
        font-weight: 600;
        text-transform: none !important;
        letter-spacing: 0;
        font-variant: initial;
        line-height: 1;
    }

    .swiper-button-next:after {
        transform: translate(1px, 0);
    }

    .swiper-button-prev:after {
        transform: translate(-2px, 0);
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-button-prev {
        position: absolute;
        left: -40px;
        z-index: 10;
    }

    .swiper-button-next {
        position: absolute;
        right: -40px;
        z-index: 10;
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background-color: rgba(0, 0, 0, 0.6);
    }

    .swiper-bar {
        width: 100%;
        margin: 0 auto;
        display: none;
        height: 4px;
        background: rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
        border-radius: 0 0 50px 50px;
    }

    .swiper-bar span {
        display: block;
        height: 100%;
        width: 100%;
        background: #9f0515;
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 0.3s ease;
    }

    .swiper-horizontal>.swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal,
    .swiper-pagination-custom,
    .swiper-pagination-fraction {
        bottom: -10%;
    }

    #facility1,
    #facility2,
    #facility3,
    #facility4,
    #facility5,
    #facility6 {
        scroll-margin-top: 130px;
    }
}