/* 共通 */
.photoGallery {
    display: flex;
    overflow: hidden;
}

.galleryWrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

/*バックグラウンド見切れないように変更 */
.galleryWrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/cardSample.png) no-repeat center top/ 100% 100%;
    z-index: 0;
}


.galleryInner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}


/* 1つめのスライド */
.photoContents1 {
    display: flex;
    animation-name: slide1;
    animation-duration: 25s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.photoContents1 img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 4px;
}


@keyframes slide1 {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0%);
    }
}

.photoContents1 li {
    width: 40vw;
    padding: 2px;
    background-color: #fff;
    margin-left: 12px;
    border-radius: 8px;
}

.photoContents1 img {
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.16);
}

.photoContents1 li p {
    text-align: center;
    padding-top: 4px;
}

.photoGallery:hover .photoContents1 {
    animation-play-state: paused;
}

/* 2つめのスライド */
.photoContents2 {
    display: flex;
    animation-name: slide2;
    animation-duration: 25s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.photoContents2 img {
    width: 100%;
    /* aspect-ratio: 9/16; */
    object-fit: cover;
    border-radius: 4px;
}


@keyframes slide2 {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-100%);
    }
}

.photoContents2 li {
    width: 16vw;
    min-width: 144px;
    /* padding: 1%; */
    padding: 2px;
    background-color: #fff;
    margin-left: 8px;
    border-radius: 8px;
}

.photoContents2 img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.16);
}

.photoContents2 li p {
    text-align: center;
    padding-top: 4px;
}

.photoGallery:hover .photoContents2 {
    animation-play-state: paused;
}