@charset "UTF-8";

/*MOVIEページ*/
.page-movie {
    margin-top: 35px;
    margin-bottom: 80px;
    font-size: 14px;
}

.page-movie_title {
    background-image: url(https://clarity.itembox.design/item/canow/images/brand-story-bg2.jpg);
    padding: 3em 0 2.5em;
    position: relative;
    z-index: 0;
    margin-bottom: 6em;
}
.page-movie_title::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(239, 239, 239, 0.35);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.page-movie_title_inner {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}
.page-movie_title_logo {
    width: 40%;
    max-width: 150px;
    margin: 0 auto;
    margin-bottom: 2em;
}
.page-movie_title_logo .img {
}
.page-movie_title_txt {
    text-align: center;
}
.page-movie_inner {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}
.page-movie_cont {
}
/*.page-movie_cont_desc {
    text-align: center;
    margin: 4em 0;
}*/
.page-movie_cont_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6em 7%;
}
.page-movie_cont_list_item {
    width: 28%;
}
.page-movie_cont_list_item .picbox {
    margin-bottom: 2em;
    cursor: pointer;
}
.page-movie_cont_list_item .picbox_img {
    position: relative;
    overflow: hidden;
}
.page-movie_cont_list_item .picbox_img_thumb {
    width: 100%; 
    height: auto;
    aspect-ratio: 6 / 5;
    object-fit: cover;
    transition: .3s;
}
.page-movie_cont_list_item .picbox:hover .picbox_img_thumb {
    transform: scale(1.05);
}
.page-movie_cont_list_item .picbox_img_icon {
    width: 18%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)
}
.page-movie_cont_list_item .textbox {
    line-height: 1.8;
}
.page-movie_cont_list_item .textbox_brand {
    font-size: 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
    margin-bottom: 1.5em;
}
.page-movie_cont_list_item .textbox_brand_brand {
    color: #fff;
    background-color: #646464;
    padding: .2em .8em;
    margin-bottom: 0;
}
.page-movie_cont_list_item .textbox_brand_date {
    font-size: 13px;
    margin-bottom: 0;
}
.page-movie_cont_list_item .textbox_title {
    font-size: 15px;
    margin-bottom: .5em;
    display: -webkit-box;      
    -webkit-box-orient: vertical;  
    -webkit-line-clamp: 2;        
    overflow: hidden;
    text-overflow: ellipsis;  
}
.page-movie_cont_list_item .textbox_txt {
    font-size: 13px;
    color: #6B6B6B;
    display: -webkit-box;      
    -webkit-box-orient: vertical;  
    -webkit-line-clamp: 2;        
    overflow: hidden;
    text-overflow: ellipsis;  
}

/* モーダル*/
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeOut 0.3s forwards;
    z-index: 9999;
    overflow-y: auto;
}

.modal.show {
  display: block;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

.modal-content {
    position: relative;
    /*background: #000;*/
    /*border-radius: 8px;*/
    /*overflow: hidden;*/
    width: 90%;
    max-width: 800px;
    margin: 10em auto;
}

.modal-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.modal-text {
    color: #fff;
    text-align: left;
    font-size: 12px;
    line-height: 1.7;
}
.modal-title {
    font-size: 1.15em;
    text-align: left;
    margin: 2em 0 1em;
    font-weight: bold;
}
.modal-desc-note {
    font-size: .85em;
}

@media screen and (max-width:768px) {
    .page-movie_cont_list_item {
        width: 46%;
    }
}

@media screen and (max-width:560px) {
    .page-movie_cont_list_item {
        width: 100%;
    }
    .modal-content {
        margin-top: 13em;
    }
}
