@charset "UTF-8";
/*==============
    movie
===============*/
h3{
    font-family: var(--ja);
    color: var(--black);
}
#movie ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#movie ul li{
    width: calc(50% - 2.22vw);
    margin-bottom: 5%;
}
#movie ul li:last-child,
#movie ul li:nth-last-of-type(2){
    margin-bottom: 0;
}
#movie ul li a .ttl{
    font-size: 1.4rem;
    line-height: 1.5;
    margin-top: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    transition: 0.4s all;
}
#movie ul li:hover a .ttl{
    color: var(--color1);
}
#movie .container ul li a .thumbnail{
    overflow: hidden;
    position: relative;
}
#movie .container ul li a .thumbnail img{
    transition: 0.8s all;
    object-position: 50%;
    width: 100%;
    height: 100%;
    max-height: 30vh;
    max-width: 510px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
#movie .container ul li:hover a .thumbnail img{
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}
@media screen and (max-width: 768px){
    #movie video {
        width: 100%;
        height: auto;
    }
}
@media screen and (max-width: 500px){
    #movie ul content {
        display: block;
    }
    #movie ul li {
        width: 100%;
        margin-bottom: 24px !important;
    }
    #movie ul li:last-child {
        margin-bottom: 0 !important;
    }
    #movie .container ul li a .thumbnail img {
        max-height: 50vw;
      }
}
/* movie_detail */
#movie .movie{
    padding-bottom: 40px;
    margin: 32px 0;
    border-bottom: 1px solid var(--color1);
}
#videoWrapper {
    position: relative;
}
.youtube-wrap {
    position:relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.youtube-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1/1;
    border: none;
    width: 100%;
}
.youtube-wrap::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url("http://img.youtube.com/vi/AnsYRypWlq0/sddefault.jpg");
    background-size: cover;
    background-position: center;
}
.youtube-wrap.pv::after {
    display: none;
}
#play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    margin: auto;
    content: '';
    background: url("../img/play.png") no-repeat;
    background-size: contain;
    display: inline-block;
    width: 119px;
    height: 119px;
    cursor: pointer;
}
@media screen and (max-width: 768px){
  #play {
    width: 50px;
    height: 50px;
}
}
.youtube {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .youtube iframe {
    width: 100%;
    height: 100%;
  }