
button {
    font: inherit;
    appearance: none;
    border: none;
    background-color: transparent;
}

.archSec {
    background: #fff;
}

.archSec__cnt {
    padding: 120px 0 180px;
    margin: 0 auto;
}

.archSec__ttl {
    text-align: center;
}

.archSec__body {
    margin-top: 80px;
    .listBlock {
        width: 100%;
        height: calc(100vw / 3);
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 50%);
        gap: 0;
        margin: 0;
        padding: 0;
    }

    .linkBox {
        display: block;
        position: relative;
        cursor: pointer;
        overflow: hidden;
        background: #F5F5F5;
        box-sizing: border-box;
        margin: 0; 
        padding: 0;

        &:hover .linkBox__overlay {
            opacity: .7;
        }
    }

    .linkBox__img > img {
        display: block;
        width: 100%;
        height: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .linkBox__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        background-color: #000;
        transition: opacity 0.5s;
        opacity: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .linkBox__txt {
        color: #fff;
        font-weight: bold;
        font-size: 12px;
    }

    .linkBox__modalBody {
        display: none;
    }

    .newsSec__moreBtn,
    .archSec__closeBtn {
        display: none;
        pointer-events: none;
    }



    /* ページャー */
    .swiper-buttons {
        display: flex;
        justify-content: center;
        margin-top: 40px;
        gap: 40px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: block;
        width: 48px !important;
        height: 48px !important;
        border-radius: 50px;
        color: #fff !important;
        position: static !important;
        margin-top: 0 !important;
    }

    .swiper-button-next {
        background: url(../images/icon-arch-next.svg) center center / 10px no-repeat #707070;
        &:after {
            display: none;
        }
    }

    .swiper-button-prev {
        background: url(../images/icon-arch-prev.svg) center center / 10px no-repeat #707070;
        &:after {
            display: none;
        }
    }
}

.archSec__closeBtn a {
    cursor: pointer;
    margin: 14px auto 0;
    background: #707070;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    line-height: 1;
    padding: 0 20px 0 30px;
    width: 240px;
    height: 60px;
    font-size: 14px;
}

.js-modal {
    position: relative;
    z-index: 10000;
}

.js-modal-wrap {
    .swiper-button-prev,
    .swiper-button-next {
        display: block;
        width: 12px !important;
        height: 30px !important;
        color: #707070 !important;
    }

    .swiper-pagination-bullet-active {
        background: #707070 !important;
    }

    .swiper-button-next {
        background: url(../images/icon-arch-modal-next.svg) center center / 10px no-repeat;
        &:after {
            display: none;
        }
        &.swiper-button-disabled {
            opacity: 0 !important; 
            pointer-events: none !important;
        }
    }

    .swiper-button-prev {
        background: url(../images/icon-arch-modal-prev.svg) center center / 10px no-repeat;
        &:after {
            display: none;
        }
        &.swiper-button-disabled {
            opacity: 0 !important; 
            pointer-events: none !important;
        }
    }
}

.js-modal__bg {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    top: 0;
    left: 0;
    z-index: 9001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s; 
    &.is-active {
        opacity: .5;
        visibility: visible;
    }
}

.js-modal__target {
    display: block;
    position: fixed;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100svh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9002;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s; 
    &.is-active {
        opacity: 1;
        visibility: visible;
    }
}

.arch__modal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    background: #F5F5F5;
    margin-left: auto;
    margin-right: auto;
    width: 1000px;

    .swiper-slide {
        display: flex;
        align-items: center;
        overflow: hidden;
    }
}

.arch__modal-image {
    display: flex;
    align-self: center;
    width: 595px;
    height: 595px;
}

.arch__modal-cont {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 595px;
    background-color: #fff;
    padding: 1.5%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: #331e1e;
    box-sizing: border-box;
}

.arch__modal-close {
    position: absolute;
    z-index: 2;
    top: 0px;
    right: 0px;
    width: 55px;
    height: 55px;
    transition: opacity 0.3s;
    cursor: pointer;

    &:hover {
        opacity: 0.7;
    }

    img {
        width: 27px;
    }
}

.arch__modal-head {
    padding-bottom: 10px;
    padding-right: 35px;
    border-bottom: 1px solid #808080;
    margin-bottom: 12px;
}

.arch__modal-name {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
}

.arch__modal-texts {
    font-size: 14px;
    line-height: 1.5;
}

.arch__modal-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

.arch__modal-link {
    color: #004EA2;
}


@media (max-width: 800px) {
    .archSec .secCatch {
        right: 7vw;
        left: auto;
    }

    .archSec__ttl {
        text-align: left;
        margin-bottom: 60px;
    }

    .archSec__cnt {
        width: 84%;
        margin: 0 auto;
        padding: 16% 0 87px;
    }

    .archSec__body {
        margin-top: 60px;

        .listBlock {
            transition: opacity 0.5s ease, visibility 0.5s; 
            opacity: 0;
            visibility: hidden;
            max-height: 0; 
            overflow: hidden;
            display: flex;
            flex-wrap: wrap;

            &.is-show {
                opacity: 1;
                visibility: visible;
                max-height: 252vw;
                height: auto;
            }
        }

        .linkBox {
            width: 42vw;
            height: 42vw;
        }

        .linkBox__img {
            width: 100%;
            height: 100%;
        }

        .newsSec__moreBtn,
        .archSec__closeBtn {
            display: block;
            margin-top: 0;
            a {
                transition: opacity 0.5s ease, visibility 0.5s;
                opacity: 0;
                visibility: hidden;
                height: 0;
                width: auto;
                padding: 0px 6.66667vw 0px 8vw;
                font-size: 3.73333vw;

                &.is-show {
                    display: flex;
                    pointer-events: all;
                    margin-top: 5.33333vw;
                    opacity: 1;
                    visibility: visible;
                    height: 16vw;
                }
            }
        }

        /* スマホ表示の場合、swiperのstyleを無効にする */
        .swiper-android .swiper-slide,
        .swiper-wrapper {
            transform: none;
        }

        .swiper-wrapper {
            display: block;
            transition-property: none;
            box-sizing: border-box;
        }

        .swiper-buttons {
            display: none;
        }
    }

    .js-modal__target {
        top: 10px;
        transform: translate(-50%, 0);
    }

    .arch__modal {
        flex-direction: column;
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        max-height: calc(100svh - 20px);
        height: calc(100svh - 20px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .arch__modal-image {
        width: calc(100vw - 20px);
        height: calc(100vw - 20px);

        img {
            width: 100%;
        }
    }

    .arch__modal-cont {
        height: auto;
        min-height: 200px;
        padding: 20px 10px;
    }

    .arch__modal-close {
        width: 57px;
        height: 67px;
    }

    .arch__modal-close img {
        width: 27px;
    }

    .arch__modal-texts {
        font-size: 1rem;
        line-height: 1.7;
    }
}
