@import url('https://fonts.googleapis.com/css2?family=Montagu+Slab:opsz,wght@16..144,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montagu+Slab:opsz,wght@16..144,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Stint+Ultra+Condensed&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Stint+Ultra+Condensed&family=Tapestry&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sansita:ital,wght@0,400;0,700;0,800;0,900;1,400;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Racing+Sans+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Racing+Sans+One&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: monospace;
}
.logo{
    width: 100px;
    height: 100px;
    background-color:#f3e3ad;    
    border-radius: 50px;
}
.logo img{
    width: 80%;
    height: 80%;
    margin: .5em .5em;
}
nav{
    width: 100%;
    height: 200px;
    background-color: #42354C;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.nav-links{
    text-align: center;
 }
.nav-links li{
    display: inline-block;
    list-style: none;
    font-size: 50px;
    margin: .5em .5em;
    text-align: center;
 }
.nav-links button{
    width: 150PX;
    height: 50px;
    font-size: 30px;
    background-color: #60846B;
    color: #D1C8F9;
    text-decoration: none;
 }
.nav-links button:hover{
    background-color: #D1C8F9;
    color: #60846B;
 }

 /* <!-- SEARCH BUTTON --> */
 #search{
    width: 120px;
    height: 60px;
    border-radius: 50px;
    background-color: #F8C924;
    color: #2159E8;
    font-size: 30px;
    margin-right: 30px;
 }
 #search:hover{
    background-color: #2159E8;
    color: #F8C924;
 }
.overlay{
    width: 100%;
    height: 1000px;
    background-image: url('../images/film-1.jpg');
    position: fixed;
    text-align: center;
    background-size: cover;
    top: 0;
    left: 0;    
    display: none;
    z-index: 999;
}
.modal-wrapper{
    width: 100%;
    height: 1000px;      
    background-color: #a2a4a3;
    background: radial-gradient(#e7ecea87, #4c5e51);
    text-align: center;
    margin: 50px auto;
    animation-name: modal;
    animation-duration: 4s;
    position: relative;
    overflow: auto;
}
@keyframes modal{
    from{
        top: -300px;
        opacity: 0;
    }
    to{
        top: 0;
        opacity: 1;
    }
}
.modal-header{
    height: 150px;
    padding: 1.4em;
    position: relative;   
}
.modal-header h2{
    width: 60%;
    height: 80px;
    font-family: "Racing Sans One", sans-serif;
    border-radius: 40px;
    background-color: #42354C;
    opacity: 90%;
    color: white;
    font-size: 40px;
    text-align: center;
    position: absolute;
    margin: 20px;
    padding: 10px;
}
.modal-gap {
    margin-bottom: 50px;
}
.modal-body{
    height: 50px;
    display: flex;
    position: relative;
}
.modal-body p{
    width: 250px;
    font-family: "Prompt", sans-serif;
    font-size: 30px;
    color: white;
    display: inline;
    margin: 0 auto 30px auto;
    position: absolute;
    left: 250px;
    text-align: left;
}
.modal-body input{
    width: 550px;
    height: 50px;
    font-size: 15px;
    color: #b7b9b8;
    margin: 0;
    position: absolute;
    left: 550px;
}
.overlay .submit{
    width: 130PX;
    height: 40px;
    border-radius: 50px;
    background-color: #c3a539;
    color: #09266e;
    font-size: 25px;
    position: fixed;
    bottom: 30px;
    right: 60px;
}
.overlay .submit:hover{
    background-color: #183c98;
    color: #c3a539;
 }
#close{
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 2em;
    color: rgb(108, 4, 4);
    text-decoration: none;
}
#close:hover{
    color: green;
}

/* <!-- TABBING --> */
.head-img{
    width: 100%;
    height: 1000px;
    background-color: #42354C;
    display: block;
    text-align: center;
    position: relative;
}
#head-Img{
    width: 80%;
    height: 90%;
    margin-top: 70px;  
}
.message-1{
    width: 40%;
    height: 40%;
    opacity: 60%;
    background-color: #000502;
    position: absolute;
    top: 130px;
    left: 300px;    
}
.message-1 h1{
    font-family: "Montagu Slab", serif;
    font-size: 60px;
    color: #00ff08;
    text-decoration: underline;
    margin-top: 20px;
    margin-left: 50px;
    text-align: left;
}
.message-1 p{
    font-family: "Great Vibes", cursive;
    font-size: 40px;
    color: #ff7112;
    margin-top: 30px;
    margin-left: 200px;
    text-align: left;
}
/* <!-- Tabbing LATEST --> */
/* <!-- Tabbing Past --> */
.head-latest{
    width: 100%;
    height: 1200px;
    background-color: #619070;
    background: radial-gradient(#7CB28D, #354C3C);
    position: relative;
    display: flex;
}
.head-past{
    width: 100%;
    height: 1200px;
    background-color: #81462a;
    background: radial-gradient(#FFAC85, #AF613E);
    position: relative;
    display: flex;
}
.head-latest h1,
.head-past h1{
    width: 30%;
    height: 55px;
    background-color: #4D9362;
    color: white;
    font-size: 40px;
    font-family: "Sansita", sans-serif;
    text-align: center;
    border-radius: 30px;
    position: absolute;
    top: 30px;
    left: 80px;
}
.head-latest .etc,
.head-past .etc{
    width: 100px;
    height: 35px;
    font-size: 20px;
    background-color: #792d19;
    color: #a9b388;
    font-family: "Sansita", sans-serif;
    text-align: center;
    position: absolute;
    top: 630px;
    left: 85px;
    padding-top: 5px;
}
.movie-L{
    width: 700px;
    height: 450px;
    justify-content: left;
    position: absolute;
    top: 150px;
    left: 100px;
    display: flex;
}
.movie-L img{
    width: 100%;
    height: 100%;
}
.movie-L h2{
    width: 600px;    
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    margin-top: 100px;
    margin-left: 50px;
}
.movie-L p{
    width: 600px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    margin-top: 50px;
    margin-left: 50px;
    line-height: 2em;
}
.movie-S{
    width: 100%;
    height: 500px;
    display: flex;
    position: absolute;
    top: 600px;
    bottom: 10px;
    margin: 50px auto;
}
.movie-S .S-1,
.movie-S .S-2,
.movie-S .S-3{
    width: 400px;
    height: 300px;
    margin: 50px auto;
    justify-content: space-between;
}
.movie-S .S-1 img, 
.movie-S .S-2 img, 
.movie-S .S-3 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    background-repeat: no-repeat;
}
.movie-S .S-1 h2, 
.movie-S .S-2 h2,
.movie-S .S-3 h2{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 20px;
    line-height: 2em;
}
.movie-S .S-1 p, 
.movie-S .S-2 p,
.movie-S .S-3 p{
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 10px;
    line-height: 2em;
}
/* <!-- Tabbing MORE --> */
.head-more{
    width: 100%;
    height: 1800px;
    position: relative;
}
.head-more img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    background-repeat: no-repeat;
    opacity: 40%;
}
.head-more h1{
    width: 100%;
    height: 100px;
    position: absolute;
    top: 80px;
    left: 50px;
    color: black;
    font-family: "Playfair Display", serif;
    font-size: 40px;
    text-decoration-line: underline;
}
.genre{
    width: 100%;
    height: 1800px;
    position: absolute;
    overflow: hidden;
    top: 250px;
}
.genre h2{
    font-family: sans-serif;
    font-size: 30px;
    padding-left: 80px;
}
.movie-titles{
    margin: 1em;
    padding-left: 7em;
}
.movie-titles li{
    list-style: disc outside none;
    display: list-item;
    color: black;
    font-size: 1.5em;
}
.genre ul li{
    font-family: sans-serif;
    padding-left: 10px;
    list-style: disc;
    
}

/* <!-- ABOUT --> */
.about{
    width: 100%;
    height: 220px;
    background-color: #42354C;
}
.about h1{
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 42px;
    color: #FFFBFB;
    text-align: center;
    padding-top: 20px;
}
.about p{
    font-family: "Stint Ultra Condensed", serif;
    font-style: normal;
    font-size: 42px;
    color: #FFFBFB;
    margin: 20px auto;
    text-align: center;
}

/* <!-- SLIDER --> */
#slider {
    width: 100%;
    height: 100vh; 
    position: relative;
    overflow: hidden;
    margin: 20px auto;
    background-color: white;
}

#slider ul {
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 300%; /* 3つのスライドを並べる */
    height: 100%; /* スライダーの高さを100%にする */
    position: relative;
    left: 0;
}

#slider ul li {
    position: relative;
    width: 100%;
    height: 100%; 
    box-sizing: border-box;
    float: left;
}

#slider ul li video {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

/* controls */
a.control-prev,a.control-next{
    position: absolute;
    z-index: 999;
    display: block;
    padding: auto;
    width: auto;
    margin: 350px 10px auto 10px;
    background-color: white;
    text-decoration: none;
    text-align: center;
    color: black;
    font-weight: 600;
    font-size: 20px;
    opacity: 0.8;
    cursor: pointer;
}
a.control-prev:hover,a.control-next:hover{
    opacity: 1;
    -webkit-transition: all 0.2s ease;
}
a.control-next{
    right: 0;
}
/* <!-- auto slide controls --> */
.slider-option{
    position: relative;
    margin: 10px auto 50px auto;
    width: 160px;
    font-size: 18px;
}
.box-popular{
    width: 100%;
    height: 900px;
    position: relative;
}
.box-popular::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/photoglaphing-3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 40%; 
    z-index: 1;
}
.popular {
    display: flex;
    position: relative;
    z-index: 2; /
}
.movie-1{
    width: 400px;
    height: 600px;
    background-color: #6A1D2F;
    color: #a9b388;
    display: inline;
    margin: 50px 20px 60px auto;
    justify-content: space-between;
}
.movie-2{
    width: 400px;
    height: 600px;
    background-color: #354C3C;
    color: #EBAAAA;
    display: inline;
    margin: 50px auto 60px auto;
    justify-content: space-between;
}
.movie-3{
    width: 400px;
    height: 600px;
    background-color: #DD9731;
    color: #2D15BF;
    display: inline;
    margin: 50px auto 60px 20px;
    justify-content: space-between;
}
.movie-1 img, 
.movie-2 img, 
.movie-3 img{
    width: 350px;
    height: 350px;
    text-align: center;
    display: block;
    margin: 25px 25px auto 25px;
    border-radius: 30px;
}
.movie-1 h2,
.movie-2 h2, 
.movie-3 h2{
    margin-top: 40px;
    margin-left: 20px;
    font-weight: 400;
}
.movie-1 p,
.movie-2 p, 
.movie-3 p{
    margin-top: 30px;
    font-size: 18px;
    font-family:  "Tapestry", serif;
}
.title{
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 60px;
    font-weight: 500;
    color: white;
    margin-top: 50px;
    position: relative;
    z-index: 2; 
}
.footer{
    width: 100%;
    height: 100px;
    background-color: #42345C;
}
.footer p{
    font-size: 40px;
    font-family: sans-serif;
    color: #ECE1FF;
    text-align: center;
    padding-top: 15px;
}

@media screen and (max-width:768px){
    nav{
        width: 100%;
    }
    .logo{
        margin-left: 15px;
    }
    .overlay{
        z-index: 999;
    }
    .modal-wrapper{
        position: relative;
    }
    .modal-header{
        height: 100px;
    }
    .modal-header h2{
        width: 500px;
        height: auto;
        font-size: 20px;
        padding: 10px;
        position: absolute;
    }
    .modal-gap {
        margin-bottom: 30px;
    }
    .modal-body{
        padding: 0;
        position: relative;
    }
    .modal-body p{
        width: 150px;
        position: absolute;
        top: 0;
        font-size: 18px;
        margin:5px auto;
        left: 80px;
    }
    .modal-body input{
        width: 350px;
        height: 40px;
        position: absolute;
        top: 0;
        font-size: 10px;
        margin: 3px auto;
        left: 250px;
    }
    #search{
        font-size: 25px;
     }
    .overlay .submit{
        width: 80px;
        height: 30px;
        font-size: 15px;
        position: fixed;
        bottom: 50px;
        right: 50px;
    }
    #close{
        font-size: 20px;
        top: 30px;
        right: 50px;
    }
    .message-1{
        width: 75%;
        height: 40%;
        background-color: #000000;
        top: 130px;
        left: 100px;    
    }
    .message-1 h1{
        margin-left: 30px;
    }
    .message-1 p{
        color: #ff7112;
        margin-left: 100px;
    }
    .head-latest h1,
    .head-past h1{
        width: 60%;
        margin: 30px auto 0 auto;
    }
    .movie-L{
        width: 600px;
        height: 400px;
        text-align: center;
        display: flex;
        flex-direction: column;
    }
    .head-latest .etc,
    .head-past .etc{
        top: 730px;
        left: 45%;
    }
    .movie-L img{
        width: 100%;
        height: 100%;
    }
    .movie-L h2{
        width: 100%;
        font-size: 30px;
        margin: 30px auto 0 auto;
    }
    .movie-L p{
        width: 100%;
        font-size: 20px;
        margin: 30px auto 0 auto;
    }
    .movie-S{
        height: 700px;
        top: 700px;
        display: flex;
    }
    .movie-S .S-1,
    .movie-S .S-2,
    .movie-S .S-3{
        width: 30%;
        justify-content:space-between;
    }
    .movie-S .S-1 h2, 
    .movie-S .S-2 h2,
    .movie-S .S-3 h2{
        margin-top: 10px;
        font-size: 15px;
    }
    .movie-S .S-1 p, 
    .movie-S .S-2 p,
    .movie-S .S-3 p{
        margin-top: 10px;
        font-size: 10px;
    }
    .head-more{
        height: 1500px;
    }
    .head-more h1{
        font-size: 30px;
    }
    .genre h2{
        font-size: 20px;
    }
    .genre ul li{
        font-size: 15px;
    }

    /* <!-- ABOUT --> */
    .about h1{
        font-size: 30px;
    }
    .about p{
        font-size: 20px;
    }

    /* <!-- SLIDER --> */
    #slider {
        height: 70vh;
    }
    
    #slider ul li video {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    
    .box-popular{
        height: 2100px;
        position: relative;
    }
    .box-popular::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/photoglaphing-3.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 40%; 
        z-index: 1;
    }
    .popular {
        flex-direction: column;
    }
    .movie-1{
        margin: 40px auto 20px auto;
        
    }
    .movie-2{
        margin: 20px auto 20px auto;
    }
    .movie-3{
        margin: 20px auto 20px auto;
    }
    .title{
        font-size: 30px;
        margin-top: 1em;
    }
    .footer{
        width: 100%;
        height: 100px;
        background-color: #42345C;
    }
    .footer p{
        font-size: 40px;
        font-family: sans-serif;
        color: #ECE1FF;
        text-align: center;
        padding-top: 15px;
    }
}


@media screen and (max-width:480px){
    body{
        width: 100%;
    }
    nav{
        width: 100%;
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nav-links{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        padding: 0;
        margin: 0;
        justify-items: center;
    }

    
    .message-1{
        left: 10%;    
    }
    .message-1 h1{
        margin-left: 30px;
    }
    .message-1 p{
        color: #ff7112;
        margin-left: 100px;
        margin-top: 150px;
        background-color: #000;
    }

    /* <!-- Tabbing LATEST --> */
    /* <!-- Tabbing Past --> */
    header{
        height: auto;
        overflow: visible;
    }
    .head-latest{
        width: 100%;
        height: 1300px;
        position: relative;
        display: flex;
    }
    #past{
        display: block;
    }
    .head-past{
        width: 100%;
        height: 1400px;
        position: relative;
        display: flex;
    }
    .head-latest h1,
    .head-past h1{
        font-size: 30px;
        padding-top: 0.1em;
    }
    .head-latest .etc,
    .head-past .etc{
        top: 700px; 
        left: 40%;
    }
    .movie-L,
    .movie-s{
        width: 80%;
        height: auto;
        top: 150px;
        left: 10%;
    }
    .movie-L h2,
    .movie-s h2{
        width: 80%;    
        font-size: 30px;
        margin-top: 10%;
    }
    .movie-L p,
    .movie-s p{
        width: 60%;
        font-size: 20px;
        margin-top: 10%;
        margin-left: 20%;
        line-height: 1em;
    }
    .head-more{
        width: 100%;
        height: 2000px;
    }
    .head-more h1{
        font-size: 20px;
    }
    .genre li{
        left: 10%;
    }

    /* <!-- SLIDER --> */
    #slider{
        height: 50vh;        
    }
    #slider ul li video{
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 10vh;
    }
    .box-popular{
        width: 100%;
        height: 100%;
        position: relative;
        min-height: 100%;
    }
    .popular{
        display: flex;
        gap: 1em;
    }
    .box-popular .movie-1,
    .box-popular .movie-2,
    .box-popular .movie-3{
        height: 700px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        position: relative;
    }
     .box-popular h2{
        position: absolute;
        top: 55%;
     }
    .title{
        font-size: 25px;
        margin-top: 0;
    }
    .footer{
        width: 100%;
        height: 100px;
        background-color: #42345C;
    }
    .footer p{
        font-size: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 2em;
    }

    /* 480px以下の画面で正しいスタイルを優先させるために、メディアクエリ内の最後に追加 */
    /* SEARCH　は480以下の時だけ縦並び */
    .modal-body {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .modal-body p,
    .modal-body input {
        position: static;
        width: 100% ;
        margin: 0 auto;
    }
    .modal-gap {
        display: none !important;
    }
    .modal-wrapper{
        width: 100% ;
        height: 800px;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        align-items: center;
        gap: 0;
        padding: 0;
        margin-top: 50px;
    }
    .modal-header{
        width: 80%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        top: 50px;
    }
    .modal-header a{
        margin-right: 0;
    }
    .modal-header h2{
        width: 100%;
        font-size: 15px;
    }
    
    .modal-body{
        width: 80% ;
        height: 100px ;
        display: flex ;
        flex-direction: column ;
        /* justify-content: center; */
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        top: 150px;
    }
    .modal-body p{
        position: static;
        width: 100% ;
        font-size: 18px;
        margin: 0 ;
        padding: 0 ;
    }
    .modal-body input{
        position: static ;
        width: 100% ;
        margin: 0 ;
        padding: 0 ;
        margin-bottom: 10px ;
    }
    .modal-body + .modal-body{
        margin-top: 0 ;  /* 各modal-body間の間隔をゼロに */
    }
    #search{
        font-size: 25px;
        position: relative;
        left: 5%;
     }
    .overlay {
        width: 100%;
        height:100%;
        font-size: 1px;
        overflow-y: auto;
        padding-bottom: 80px;
    }
    #close{
        font-size: 20px;
        top: -30px;
        right: 5px;
    }
    .submit{
        margin-top: auto;
        width: 100%;
        padding: 10px;
        text-align: center;
    }
}
