@charset "UTF-8";

:root {
    --image-width: 126px;
    --image-height: 168px;
}

.scroll-box {
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.scroll-box::-webkit-scrollbar {
    height: 4px;
}

.scroll-box::-webkit-scrollbar-track {
    background: #eee;
}

.scroll-box::-webkit-scrollbar-thumb {
    background: #999;
    border: none;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
    /*background: #999;*/
    background: hotpink;
}

.scroll-box .f_area {
    display: flex;
    justify-content: flex-start;
}

.scroll-box .f_area .f_one {
    /*width: 30%;*/
    flex: 0 0 130px;
    display: inline-block;
    overflow: hidden;
    backface-visibility: hidden;
}

.scroll-box .f_area .f_one img {
    max-width: 100%;
    width: var(--image-width);
    height: var(--image-height);
    object-fit: cover;
    vertical-align: top;
    border-radius: 4px;
    transform: scale(1);
    transition: .5s;
}

.scroll-box .f_area .f_one img:hover {
    transform: scale(1.1);
}

.cast_type {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 999;
    font-size: 16px;
    font-family: serif;
    font-style: normal;
    font-weight: bold;
    color: hotpink;
    text-shadow: 1px 1px 2px #000000;
    white-space: pre-line;
}

.cast_name {
    position: absolute;
    bottom: 10px;
    left: 0;
    z-index: 999;
    font-size: 14px;
    /*font-family: serif;*/
    font-weight: bold;
    text-shadow: 1px 1px 2px #000000;
    white-space: pre-line;
}

/*-------------------------------------------------------------------------------------------------------------------
    PC wide
---------------------------------------------------------------------------------------------------------------------
*/

/*
@media screen and (max-width: 1280px) {
    .scroll-box {
        overflow-x: auto;
    }
    .scroll-box .f_area {
        justify-content: flex-start;
        overflow-x: scroll;
        padding: 0 0 15px;
    }
    .scroll-box .f_area .f_one {
        flex: 0 0 12.5%;
    }

    .scroll-box .f_area .f_one a img {
        width: calc(100vw / 8);
        height: calc(100vw / 8 / 3 * 4);
    }
}

@media screen and (max-width: 767px) {
    .scroll-box .f_area .f_one {
        flex: 0 0 16.667%;
    }

    .scroll-box .f_area .f_one a img {
        width: calc(100vw / 6);
        height: calc(100vw / 6 / 3 * 4);
    }

    .cast_type {
        top: 5px;
        left: 5px;
        font-size: 14px;
        font-style: normal;
    }

    .cast_name {
        font-size: 14px;
        bottom: 5px;
    }
}
*/

/*-------------------------------------------------------------------------------------------------------------------
    Smartphone portrait
---------------------------------------------------------------------------------------------------------------------
*/

@media screen and (max-width: 520px) {
    .scroll-box .f_area .f_one {
        flex: 0 0 33.5%;
    }

    .scroll-box .f_area .f_one img {
        width: calc((100vw / 3) - 3px);
        height: calc(100vw / 3 / 3 * 4);
    }

    .cast_type {
        top: 6px;
        left: 6px;
        font-size: 16px;
        font-style: normal;
    }

    .cast_name {
        font-size: 14px;
        bottom: 5px;
    }
}

/*-------------------------------------------------------------------------------------------------------------------
    Smartphone landscape
---------------------------------------------------------------------------------------------------------------------
*/

@media screen and (max-width: 896px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .scroll-box .f_area .f_one {
        flex: 0 0 33.3333%;
    }

    .scroll-box .f_area .f_one img {
        width: calc(100vw / 3 - 2px);
        height: calc(100vw / 3 / 3 * 4);
    }

    .cast_type {
        top: 5px;
        left: 5px;
        font-size: 14px;
        font-style: normal;
    }

    .cast_name {
        font-size: 14px;
        bottom: 5px;
    }
}
