.img-position{
    align-items: center;
    display: flex;
    height: 80vh;
}

/*モーダル画面*/
h5{
    margin-bottom: 1rem;
}

.movie-modal {
    padding: 1rem;
    background-color: #F8F5ED;
    position: absolute;
    border: solid 2px #aaaaaa;
    border-radius: 10px;
}

.movie-modal.mainland{
    left: 40%;
    top: 30%;
}

.movie-modal.iheya{
    left: 22%;
    top: 20%;
}

.movie-modal.amami{
    left: 70%;
    top: 20%;
}

.movie-modal.yaeyama{
    left: 2%;
    top: 53%;
}

.movie-modal.miyako{
    left: 70%;
    top: 53%;
}

.modal-position{
    z-index: 9999;
}

.content-name{
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* youtube動画イメージ変更 */

.youtube_outer {
    height: 80%;
    padding: 10px;
    width: 12vw;
}

.youtube_outer img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: solid 1px #666666;
}

/* layer関連 */
.layer {
    background: rgba(0, 0, 0, .2);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
}

.layer.is-open {
    z-index: 999;
    opacity: 1;
    visibility: visible;
}

/* 現代に残る藁算　動画閲覧 */

.under-line{
    background-color: #000;
    height: 2px;
}

.youtube-iframe {
    width: 720px;
    height: auto;
    aspect-ratio: 16 / 9;
}

@media screen and (max-width: 1400px) {
    .background-size{
        height:30rem;
    }
    
    .movie-content-size{
        height:19rem;
    }

}

@media screen and (max-width: 1200px) {
    .movie-content-size{
        height:16rem;
    }
}

@media screen and (max-width: 992px) {
    .background-size{
        height:23rem;
    }
    
    .movie-content-size{
        height:12rem;
    }
    .youtube-iframe {
        width: 480px;
    }
}

@media screen and (max-width: 768px) {
    .youtube-iframe {
        width: 320px;
    }
}

.youtube_outer_viewing iframe{
    border-radius: unset;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube_outer_viewing{
    position: relative;
    width:80%;
    height:0;
    padding-top: 56.25%;
}

.youtube_outer iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 85% !important;
    height: 60% !important;
    transform: translateX(-50%);
}

.open{
    display:flex;
}

.close{
    display:none;
}