@charset"utf-8";

.building-wedding {
    margin-top: 150px;
    text-align: center;
}

.building-top p {
    font-size: 40px;
    font-family: yu gothic;
    margin-bottom: 20px;
    color: dimgray;

}

.building-text {
    font-size: 15px;
    font-family: yu gothic;
    text-align: center;
}

.roof {
    margin-top: 100px;

}

.floor-fhoto {
    text-align: center;
}

.roof-img {
    text-align: center;
    width: 50%;
    margin: 0 auto;
    padding: 50px;
}

.roof p {
    font-size: 35px;
    color: dimgrey;
}

/*スライド写真*/
.slide {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    text-align: center;

}

.slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    opacity: 0;
}

@keyframes thumb1 {
    0% {
        filter: grayscale(0%);
    }

    6% {
        filter: grayscale(100%);
    }

    10% {
        filter: grayscale(100%);
    }

    28% {
        filter: grayscale(100%);
    }

    37% {
        filter: grayscale(0%);
    }

    100% {
        filter: grayscale(0%);
    }
}

@keyframes thumb2 {
    0% {
        filter: grayscale(0%);
    }

    6% {
        filter: grayscale(100%);
    }

    10% {
        filter: grayscale(100%);
    }

    28% {
        filter: grayscale(100%);
    }

    37% {
        filter: grayscale(0%);
    }

    100% {
        filter: grayscale(0%);
    }
}

@keyframes thumb3 {
    0% {
        filter: grayscale(0%);
    }

    6% {
        filter: grayscale(100%);
    }

    10% {
        filter: grayscale(100%);
    }

    28% {
        filter: grayscale(100%);
    }

    37% {
        filter: grayscale(0%);
    }

    100% {
        filter: grayscale(0%);
    }
}

@keyframes thumb4 {
    0% {
        filter: grayscale(0%);
    }

    6% {
        filter: grayscale(100%);
    }

    10% {
        filter: grayscale(100%);
    }

    28% {
        filter: grayscale(100%);
    }

    37% {
        filter: grayscale(0%);
    }

    100% {
        filter: grayscale(0%);
    }
}

@keyframes thumb5 {
    0% {
        filter: grayscale(0%);
    }

    6% {
        filter: grayscale(100%);
    }

    10% {
        filter: grayscale(100%);
    }

    28% {
        filter: grayscale(100%);
    }

    37% {
        filter: grayscale(0%);
    }

    100% {
        filter: grayscale(0%);
    }
}

@keyframes slideshow1 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideshow2 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideshow3 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }

}

@keyframes slideshow4 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideshow5 {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }

}

.thumbnail {
    list-style: none;
    display: flex;
    padding: 0;
    margin-top: 0px;
    justify-content: center;
}

input[type="radio"] {
    display: none;
}

.thumbnail img {
    display: block;
    width: 100px;
    height: 50px;
    object-fit: cover;
    margin: 10px;
    cursor: pointer;
}

/*ページを開いたとき＆一つ目のサムネイルをクリックしたとき*/
#img1:checked ~ .thumbnail label[for="img1"] img {
    animation: thumb1 40s linear infinite both;
    animation-delay: 0s;
    cursor: auto;
}

#img1:checked ~ .thumbnail label[for="img2"] img {
    animation: thumb1 40s linear infinite both;
    animation-delay: 8s;
}

#img1:checked ~ .thumbnail label[for="img3"] img {
    animation: thumb1 40s linear infinite both;
    animation-delay: 16s;
}

#img1:checked ~ .thumbnail label[for="img4"] img {
    animation: thumb1 24s linear infinite both;
    animation-delay: 24s;
}

#img1:checked ~ .thumbnail label[for="img5"] img {
    animation: thumb1 40s linear infinite both;
    animation-delay: 32s;
}

#img1:checked ~ .slide img {
    animation: slideshow1 40s linear infinite;
}

#img1:checked ~ .slide img:nth-child(1) {
    animation-delay: 0s;
}

#img1:checked ~ .slide img:nth-child(2) {
    animation-delay: 8s;
}

#img1:checked ~ .slide img:nth-child(3) {
    animation-delay: 16s;
}

#img1:checked ~ .slide img:nth-child(4) {
    animation-delay: 24s;
}

#img1:checked ~ .slide img:nth-child(5) {
    animation-delay: 32s;
}

/*二つ目のサムネイルをクリックしたとき*/
#img2:checked ~ .thumbnail label[for="img1"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 32s;
}

#img2:checked ~ .thumbnail label[for="img2"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 0s;
    cursor: auto;
}

#img2:checked ~ .thumbnail label[for="img3"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 8s;
}

#img2:checked ~ .thumbnail label[for="img4"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 16s;
    cursor: auto;
}

#img2:checked ~ .thumbnail label[for="img5"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 24s;
}

#img2:checked ~ .slide img {
    animation: slideshow2 40s linear infinite;
}


#img2:checked ~ .slide img:nth-child(1) {
    animation-delay: 32s;
}

#img2:checked ~ .slide img:nth-child(2) {
    animation-delay: 0s;
}

#img2:checked ~ .slide img:nth-child(3) {
    animation-delay: 8s;
}

#img2:checked ~ .slide img:nth-child(4) {
    animation-delay: 16s;
}

#img2:checked ~ .slide img:nth-child(5) {
    animation-delay: 24s;
}

/*二つ目のサムネイルをクリックしたとき*/
#img3:checked ~ .thumbnail label[for="img1"] img {
    animation: thumb3 40s linear infinite both;
    animation-delay: 24s;
}

#img3:checked ~ .thumbnail label[for="img2"] img {
    animation: thumb3 40s linear infinite both;
    animation-delay: 32s;
}

#img3:checked ~ .thumbnail label[for="img3"] img {
    animation: thumb3 40s linear infinite both;
    animation-delay: 0s;
    cursor: auto;
}

#img3:checked ~ .thumbnail label[for="img4"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 8s;
    cursor: auto;
}

#img3:checked ~ .thumbnail label[for="img5"] img {
    animation: thumb2 40s linear infinite both;
    animation-delay: 16s;
}

#img3:checked ~ .slide img {
    animation: slideshow3 40s linear infinite;
    animation-delay: 8s;
}



#img3:checked ~ .slide img:nth-child(1) {
    animation-delay: 24s;
}

#img3:checked ~ .slide img:nth-child(2) {
    animation-delay: 32s;
}

#img3:checked ~ .slide img:nth-child(3) {
    animation-delay: 0s;
}

#img3:checked ~ .slide img:nth-child(4) {
    animation-delay: 8s;
}

#img3:checked ~ .slide img:nth-child(5) {
    animation-delay: 16s;
}



/*二つ目のサムネイルをクリックしたとき*/
#img4:checked ~ .thumbnail label[for="img1"] img {
    animation: thumb4 40s linear infinite both;
    animation-delay: 16s;
}

#img4:checked ~ .thumbnail label[for="img2"] img {
    animation: thumb4 40s linear infinite both;
    animation-delay: 24s;
    cursor: auto;
}

#img4:checked ~ .thumbnail label[for="img3"] img {
    animation: thumb4 40s linear infinite both;
    animation-delay: 32s;
}

#img4:checked ~ .thumbnail label[for="img4"] img {
    animation: thumb4 40s linear infinite both;
    animation-delay: 0s;
    cursor: auto;
}

#img4:checked ~ .thumbnail label[for="img5"] img {
    animation: thumb4 40s linear infinite both;
    animation-delay: 8s;
}

#img4:checked ~ .slide img {
    animation: slideshow4 40s linear infinite;
}



#img4:checked ~ .slide img:nth-child(1) {
    animation-delay: 16s;
}

#img4:checked ~ .slide img:nth-child(2) {
    animation-delay: 24s;
}

#img4:checked ~ .slide img:nth-child(3) {
    animation-delay: 32s;
}

#img4:checked ~ .slide img:nth-child(4) {
    animation-delay: 0s;
}

#img4:checked ~ .slide img:nth-child(5) {
    animation-delay: 8s;
}

/*二つ目のサムネイルをクリックしたとき*/
#img5:checked ~ .thumbnail label[for="img1"] img {
    animation: thumb5 40s linear infinite both;
    animation-delay: 8s;
}

#img5:checked ~ .thumbnail label[for="img2"] img {
    animation: thumb5 40s linear infinite both;
    animation-delay: 16s;
}

#img5:checked ~ .thumbnail label[for="img3"] img {
    animation: thumb5 40s linear infinite both;
    animation-delay: 24s;
    cursor: auto;
}

#img5:checked ~ .thumbnail label[for="img4"] img {
    animation: thumb5 40s linear infinite both;
    animation-delay: 32s;
}

#img5:checked ~ .thumbnail label[for="img5"] img {
    animation: thumb5 40s linear infinite both;
    animation-delay: 0s;
    cursor: auto;
}

#img5:checked ~ .slide img {
    animation: slideshow5 40s linear infinite;
    animation-delay: 8s;
}




#img5:checked ~ .slide img:nth-child(1) {
    animation-delay: 8s;
}

#img5:checked ~ .slide img:nth-child(2) {
    animation-delay: 16s;
}

#img5:checked ~ .slide img:nth-child(3) {
    animation-delay: 24s;
}

#img5:checked ~ .slide img:nth-child(4) {
    animation-delay: 32s;
}

#img5:checked ~ .slide img:nth-child(5) {
    animation-delay: 0s;
}

@media (max-width: 1024px) {

    /*タブレット用*/
    .roof-img {
        width: 70%;
        margin: 0 auto;
        padding: 20px;
    }

    .slide img {
        width: 70%;
    }
}

@media (max-width: 670px) {
    .building-wedding {
        margin-top: 100px;
    }

    .building-top p {
        font-size: 20px;
        margin-bottom: 20px;

    }

    .building-text {
        font-size: 10px;
        margin: 50px 0;
    }

    .slide {
        height: 300px;
    }

    .slide img {
        width: 100%;
        max-width: 100%;
        height: auto;
        top: 40%;
    }
    .thumbnail img {
        width: 50px;
        height: 25px;
    }
    .roof-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .roof p {
        font-size: 25px;
    }

}

/*iPhone6以下*/
@media (max-width: 380px) {
    
}
