/* common
------------------------ */
body {
    position: relative;
    display: block;
}

img {
    width: 100%;
}

#content_wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

#video_container {
    width: 100%;
    height: 70vh;
}

#video_container iframe {
    width: 100%;
    height: 100%;
}

#text_container {
    display: flex;
    overflow: scroll;
    width: auto;
    height: 30vh;
    min-height: 250px;
}

.text_box {
    position: relative;
    min-width: 400px;
    height: auto;
    padding: 20px;
    transition: .5s;
    color: #aeaeae;
    background-color: rgba(24, 24, 24, 1);
    box-shadow: inset 0 10px 5px rgba(0, 0, 0, .3);
}

.text_box.item_main {
    position: relative;
    background-color: rgb(87 87 87);
}

/* .text_box.item_main:before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 0;
    width: 0;
    height: 0;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    border-width: 28px 0 28px 30px;
    border-style: solid;
    border-color: transparent transparent transparent #070606;
} */

.text_box.item_main .movie_time span {
    background-color: rgb(87 87 87);
}

.text_box img {
    position: relative;
    z-index: 2;
    float: right;
    width: 200px;
    height: 100px;
    margin: 0 0 10px 10px;

    object-fit: cover;
}

.text_box:after {
    content: '';
    display: block;
    clear: both;
}

.content_title {
    height: 50px;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 100;
    line-height: 1.2;
}

.content_title + .movie_time {
    margin-top: 20px;
}

.movie_time {
    position: relative;
    display: flex;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 100;
    line-height: 1;
}

.movie_time::after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 55%;
    display: flex;
    width: 100%;
    height: 1px;
    background-color: #fff;
}

.movie_time span {
    position: relative;
    z-index: 2;
    padding-right: 10px;
    background-color: rgba(24, 24, 24, 1);
}

.movie_time + .content_text {
    margin-top: 20px;
}

.content_text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    height: 55px;
    text-align: justify;
    letter-spacing: 1px;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 100;
    line-height: 1.3;

    -webkit-line-clamp: 3;
}


.content_text + .btn_more {
    margin-top: 20px;
}

.btn_more {
    display: block;
    padding: 5px;
    transition: .5s;
    text-align: center;
    letter-spacing: 2px;
    border: 1px solid #a7a7a7;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
}

.clearfix {
    clear: both;
}

#products_list_wrap {
    position: absolute;
    z-index: 99;
    top: 0;
    left: 0;
    display: none;
    width: 70%;
    height: 100vh;
    background-color: #fff;
}

#products_list_wrap .batsu {
    position: absolute;
    top: 30px;
    left: 30px;
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#products_list_wrap .batsu::before,
.batsu::after {
    /* 共通設定 */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    /* 棒の幅（太さ） */
    height: 30px;
    /* 棒の高さ */
    background: #333;
}

#products_list_wrap .batsu::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#products_list_wrap .batsu::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#products_list_wrap .products_list_title {
    position: absolute;
    top: 20%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 30px;
    font-weight: 400;
}

#products_list_wrap ul {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin-top: -20px;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

#products_list_wrap ul::after {
    content: '';
    width: calc(100% / 3 - 50px);
    height: 200px;
    min-height: 200px;
}

#products_list_wrap ul li {
    position: relative;
    width: calc(100% / 3 - 70px);
    max-width: 300px;
    height: 150px;
    min-height: 100px;
    margin-left: 20px;
}

#products_list_wrap ul li:nth-child(3n+4),
#products_list_wrap ul li:first-child {
    margin-left: 0;
}

#products_list_wrap ul li:nth-child(n+4) {
    margin-top: 20px;
}

#products_list_wrap ul li.active a:after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .7;
    background-color: #767575;
}

#products_list_wrap ul li a {
    display: block;
    width: 100%;
    height: 100%;
}

#products_list_wrap ul li img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

#products_list_wrap ul li .des_text {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 80%;
    user-select: none;
    transition: .5s;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    text-align: center;
    letter-spacing: 1px;
    letter-spacing: 1px;
    opacity: 0;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
}

#products_list_wrap ul li.active .des_text {
    transition: .5s;
    opacity: 1;
}

/* 商品一覧のホバーアニメーション */
@media (hover: hover) {
    /* hover指定できるPCを想定したスタイル */
    #products_list_wrap ul li a:hover::after {
        content: '';
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: .7;
        background-color: #767575;
    }

    #products_list_wrap ul li a:hover .des_text {
        transition: .5s;
        opacity: 1;
    }

    #products_list_wrap ul li a:focus::after {
        content: '';
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: .7;
        background-color: #767575;
    }

    #products_list_wrap ul li a:focus .des_text {
        transition: .5s;
        opacity: 1;
    }

    .btn_more:hover {
        transition: .5s;
        color: #1b1b1b;
        background-color: #aeaeae;
    }
}

@media (hover: none) {
    /* hoverが使えないタッチ端末を想定した装飾 */
    #products_list_wrap ul li a:active::after {
        content: '';
        position: absolute;
        z-index: 2;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: .7;
        background-color: #767575;
    }

    #products_list_wrap ul li a:active .des_text {
        transition: .5s;
        opacity: 1;
    }

    .btn_more:active {
        transition: .5s;
        color: #1b1b1b;
        background-color: #aeaeae;
    }
}


@media screen and (max-width: 1170px) {
    #products_list_wrap ul li {
        width: calc(100% / 3 - 40px);
    }

    #products_list_wrap ul::after {
        width: calc(100% / 3 - 20px);
    }
}


@media screen and (max-width: 1080px) {
    #products_list_wrap ul {
        top: 60%;
    }

    #products_list_wrap ul li {
        width: calc(100% / 2 - 80px);
    }

    #products_list_wrap ul li:nth-child(n+4) {
        margin-top: 0;
    }

    #products_list_wrap ul li:nth-child(n+3) {
        margin-top: 20px;
    }

    #products_list_wrap ul li:nth-child(odd) {
        margin-left: 0;
    }

    #products_list_wrap ul li:nth-child(3n+4) {
        margin-left: 20px;
    }

    #products_list_wrap ul::after {
        width: calc(100% / 2 - 80px);
        margin-left: 20px;
    }
}

@media screen and (max-height: 740px) {
    #products_list_wrap ul {
        top: 0;
        margin-top: 320px;
        transform: translate(-50%, -30%);
    }

    #products_list_wrap .products_list_title {
        top: 0;
        margin-top: 100px;
    }
}

@media screen and (max-width: 1024px) {
    #video_container {
        position: absolute;
        width: 100%;
        height: 300px;
    }

    #text_container {
        position: fixed;
        display: block;
        width: 100%;
        min-width: auto;
        height: calc(100% - 300px);
        margin-top: 300px;
        background-color: #fff;
    }

    #text_container .text_box {
        min-width: auto;
        padding: 20px;
        box-shadow: none;
    }

    #text_container .text_box img {
        width: 150px;
        height: 150px;
    }

    #text_container .text_box.item_main:before {
        content: none;
    }

    #text_container .content_title,
    #text_container .movie_time {
        height: auto;
        font-size: 24px;
    }

    #text_container .content_text {
        display: block;
        overflow: inherit;
        -webkit-box-orient: inherit;
        height: auto;
        min-height: 60px;
        font-size: 16px;
        line-height: 1.22;
    }

    #text_container .btn_more {
        font-size: 18px;
    }

    #products_list_wrap .products_list_title {
        top: 10%;
    }

    #products_list_wrap {
        overflow: scroll;
        width: 100%;
    }

    #products_list_wrap ul {
        position: absolute;
        top: 20%;
        left: 0;
        width: auto;
        margin-top: 0;
        transform: none;
    }

    #products_list_wrap ul::after {
        width: calc(100% / 2 - 40px);
        max-width: 300px;
        margin-left: 20px;
    }

    #products_list_wrap ul li {
        width: calc(100% / 2 - 40px);
        margin-left: 20px;
    }

    #products_list_wrap ul li:nth-child(odd) {
        margin-left: 0;
    }

    #products_list_wrap ul li:nth-child(n+3) {
        margin-top: 0;
        margin-left: 20px;
        ;
    }

    #products_list_wrap ul li:nth-child(n+4) {
        margin-top: 20px;
    }

    #products_list_wrap ul li:nth-child(4n) {
        margin-left: 0;
    }

    #products_list_wrap .products_list_title {
        margin-top: 10px;
    }
}

@media screen and (max-width: 940px) {
    #products_list_wrap ul li {
        max-width: 320px;
    }

    #products_list_wrap ul li:nth-child(n+3) {
        margin-top: 20px;
        margin-left: 0;
    }

    #products_list_wrap ul li:nth-child(4n) {
        margin-left: 20px;
    }

    #products_list_wrap ul::after {
        max-width: 320px;
    }
}

@media screen and (max-width: 768px) {
    #products_list_wrap ul::after {
        width: calc(100% / 2 - 40px);
    }
}
