/* element_photo */
.element_photo_ul {
    display: block;

    li {
        position: relative;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}


/* element_collect_box */
.element_collect_box_ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.element_collect_box_ul li {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    margin: 0 2px 10px;
    width: 100px;
    position: relative;
}

.element_collect_box_ul li a {
    display: block;
    text-decoration: none;
}

.element_collect_box_ul li a:hover {
    background: #FFF4F4;
}

.element_collect_box_ul li span {
    display: block;
    width: 100%;
    height: 133px;
    overflow: hidden;
    margin-bottom: 5px;
    background: #000;
}

.element_collect_box_ul li img {
    width: 100%;
}

.element_collect_box_ul li em {
    display: block;
    font-size: 14px;
    font-style: normal;
    text-decoration: underline;
    max-width: 100%;
    max-height: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
    padding-left: 5px;
}

.element_collect_box_ul li i {
    font-size: 12px;
    font-style: normal;
    color: #555;
    display: block;
    text-align: right;
    padding-right: 5px;
    margin-top: auto;
}

.element_collect_box_ul li b {
    background: none repeat scroll 0 0 #ccc;
    display: block;
    font-size: 11px;
    font-weight: normal;
    width: 70px;
    padding: 2px 0;
    text-align: center;
    color: #111;
}

.element_collect_box_ul li b.zyoyu {
    background: #F0ACC0
}

.element_collect_box_ul li b.tag {
    background: #E5EC87
}

.element_collect_box_ul li b.fetish {
    background: #E5EC87
}

.element_collect_box_ul li b.maker {
    background: #d9c1e2
}

.element_collect_box_ul li b.sirizu {
    background: #80CEDD
}

.element_collect_box_ul li b.kantoku {
    background: #d6c7c7
}

.element_collect_box_ul li b.ymd {
    background: #F9E281
}

.element_collect_box_ul li b.okini {
    background: #fbd92d
}

/* element_goiken_form */

.element_goiken_send {
    margin: 0 10px 20px;

    h4 {
        background: #b1f2e6;
        color: #006a57;
        font-size: 0.95em;
        text-align: center;
        padding: 10px 10px;
        border-radius: 5px 5px 0 0;
    }

    .send_box {
        background: #eee;
        padding: 5px 10px;
        font-size: 12px;
        text-align: center;
    }

    .send_text {
        width: 100%;
        height: 50px;
        font-size: 12px;
    }

    .send_msg {
        display: none;
        color: red;
    }

    .send_btn {
        background: #006699;
        background: linear-gradient(#0099CC, #006699);
        border: 1px solid #DDD;
        color: #FFF;
        width: 80px;
        padding: 5px 0;
        display: block;
        text-align: center;
        margin: 5px auto 0;
        border-radius: 3px;
        text-decoration: none;
    }

    .send_loading {
        text-align: center;
        display: none;
    }
}

/* element_pagenavi */
.element_pagenavi {
    margin-bottom: 10px;
}

.element_pagenavi ul {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin-bottom: 10px;
}

.element_pagenavi ul > * + * { 
    margin-left: 12px;
}

.element_pagenavi ul a,
.element_pagenavi ul span {
    display: inline-block;
    padding: 10px 15px;
    background: #fff;
    border: solid 1px #ccc;
    font-size: 0.9em;
}

.element_pagenavi ul span {
    background: #eee;
    pointer-events: none;
}

.element_pagenavi ul a:hover {
    background: #eee;
}

.element_pagenavi .total_cnt {
    display: block;
    text-align: center;
    font-size: 0.8em;
}

/* element_janru_box */
.element_janru_box_ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 2px 30px;
}

.element_janru_box_ul li {
    width: 150px;
}

.element_janru_box_ul li a {
    display: block;
    padding: 20px 0;
    margin: 0 4px 8px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-shadow: #FFFFFF 1px 1px 0;
    position: relative;
}

.element_janru_box_ul li a::after {
    content: "▶";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #aaa;
}

.element_janru_box_ul li a:hover {
    background-color: #F3F9E8;
}

/* element_ad */
.element_ad_box {
    width: 100%;
    display: block;
    overflow: hidden;
    text-align: center;
    margin-bottom: 20px;

    div {
        margin: auto;
    }
}

.element_ad_overlay {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0%);

    div {
        margin: auto;
    }
}

.element_ad_sale_h1 {
    max-width: 500px;
    margin: 0 auto 20px;

    a {
        text-decoration: none;
    }

    b {
        display: block;
        padding: 10px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        background: #111;
        color: red;
        margin-bottom: 5px;
    }

    img {
        height: auto;
    }
}

.element_ad_sale_bottom {
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ccc;

    em {
        display: block;

        a {
            display: block;
            color: red;
            background: #111;
            padding: 10px 10px;
            text-align: center;
            font-size: 1.1em;
            font-weight: bold;
            text-decoration: none;
            font-style: normal;
        }
    }

    img {
        display: block;
        max-width: 100%;
    }

    i {
        display: block;
        margin: 10px 0 0;
        text-align: center;
        font-style: normal;
        font-size: 1.2em;
    }

    b {
        display: block;
        margin: 20px auto 80px;
        text-align: center;

        a {
            display: inline-block;
            max-width: 100%;
            border: 1px solid #008400;
            background: #02c802;
            color: #fff;
            font-size: 1.1em;
            font-weight: bold;
            padding: 20px 30px;
        }
    }
}

/* element_comment */
.element_comment {
    width: 90%;
    margin: 0 auto 30px;
    background: #eee;
    padding: 10px 20px;
    
    max-height: 500px; 
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
}


.element_comment li {
    border-top: 1px solid #999;
    padding: 10px;
    margin-bottom: 10px;
}

.element_comment .c1 {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.element_comment .c2 {
    display: inline-block;
    font-size: 10px;
    color: #999;
    margin-left: 10px;
}

.element_comment .c3 {
    display: inline-block;
    font-size: 13px;
    word-break: break-word;
}


.element_comment textarea {
    width: 100%;
    display: inline-block;
    margin-bottom: 5px;
    font-size: 13px;
}

.element_comment .add_btn {
    border: 1px solid #015a79;
    border-radius: 5px;
    padding: 5px;
    background: #96e4ff;
    box-shadow: 2px 2px 4px gray;
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
}

/* element_rireki */
.element_rireki {
    margin-bottom: 20px;
}


/* element_side_link */
.element_side_link {
    text-align: right;
    margin-bottom: 20px;

    ul {
        margin-bottom: 5px;
    }

    li {
        border: 1px solid #ccc;
        border-top: none;

        a {
            display: block;
            padding: 10px 0 10px 15px;
            font-size: 0.9em;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;

            &:hover {
                background: #eee;
            }
        }
    }

    
    .mst_top_link {
        display: inline-block;
        padding: 5px 16px;
        background-color: #c8f8f9;
        border: 1px solid #b6e7e8;
        color: #333;
        font-size: 0.9em;
        text-decoration: none;
        border-radius: 5px;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    }
}

/* element_movie */
.element_movie_ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;

    li {
        border: 1px solid #ccc;
        border-radius: 5px;
        margin: 0 2px 10px;
        width: 180px;
        position: relative;
        cursor: pointer;

        em {
            display: block;
            font-size: 14px;
            font-style: normal;
            text-decoration: underline;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 10px;
            padding-left: 5px;
            height: 42px;
        }

        b {
            background: none repeat scroll 0 0 #ccc;
            display: block;
            font-size: 11px;
            font-weight: normal;
            width: 70px;
            padding: 2px 0;
            text-align: center;
            color: #111;
        }
    }

    .img_box {
        background: url("/css/img/free_movie_play.png") no-repeat scroll center center #000;
        background-size: 30% auto;
        width: 100%;
        height: 120px;
        overflow: hidden;
        margin-bottom: 5px;

        img {
            width: 100%;
            opacity: 0.7;
        }
    }
}

.element_movie_dialog {
    position: relative;
    width: 100%;
    margin-bottom: 20px;

    &::before {
        content: "";
        position: absolute;
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 4px solid #E5EDFF;
        border-left-color: green;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        z-index: -1;
        animation: element_spinner931 1.2s linear infinite;
    }

    a {
        display: block;
        color: #fff;
        padding: 0 10px;
        background: #000;
    }

    .movie_details {
        display: block;
        color: #fff;
        padding: 10px;
        background: #000;
    }
}

@keyframes element_spinner931 {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* element_button */

@keyframes element_button_js_btn_lorder_cycle_animation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.element_button {

    button {
        position: absolute;
        display: inline-block;
        cursor: pointer;
        z-index: 9999;
        font-size: 11px;
        background: #eee;
        border: 1px solid #555;
        border-radius: 3px;

        &::before {
            display: inline-block;
            font-size: 11px;
            color: #111;
            padding: 6px 12px;
            white-space: pre;
        }

        &.img_fav_btn {
            top: 5px;
            right: 5px;

            &.js_btn_on {
                background: lightpink;
            }

            &::before {
                content: '後で見る';
            }

            &.js_btn_on::before {
                content: '保存済み';
            }
        }

        &.img_dmm_link_btn {
            top: 45px;
            right: 5px;

            &::before {
                content: '詳細';
            }
        }

        &.img_similar_search_btn {
            top: 85px;
            right: 5px;
            padding-left: 12px;

            &:disabled {
                background-color: #D7D3FF;
                cursor: not-allowed;
            }

            &::before {
                content: '類似\A検索';
            }

            &.js_btn_on::before {
                content: '検索\A済み';
            }

            &::after,
            &.js_btn_on::after {
                font-family: 'Material Icons', serif;
                content: "\e8b6";
                position: absolute;
                left: 4px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 16px;
            }

            &::after {
                content: "\e8b6";
            }

            &.js_btn_on::after {
                content: "\e5db";
            }

            &.js_btn_on {
                background: #D7D3FF;
            }
        }

        &.page_fav_btn {
            display: inline-block;
            position: relative;

            &.js_btn_on {
                background: lightpink;
            }

            &::before {
                content: 'ページを保存する';
            }

            &.js_btn_on::before {
                content: '保存済み';
            }
        }

        &.movie_fav_btn {
            top: 5px;
            right: 5px;

            &.js_btn_on {
                background: lightpink;
            }

            &::before {
                content: '後で見る';
            }

            &.js_btn_on::before {
                content: '保存済み';
            }
        }

        &.movie_dmm_link_btn {
            top: 45px;
            right: 5px;

            &::before {
                content: '詳細';
            }
        }

        &.js_btn_lorder_cycle {
            color: transparent;
            cursor: default;

            &::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 20px;
                height: 20px;
                border: 4px solid #f3f3f3;
                border-top: 4px solid #3498db;
                border-radius: 50%;
                animation: element_button_js_btn_lorder_cycle_animation 1s infinite linear;
            }
        }
    }
}

.element_button_fav_msg {
    position: fixed;
    bottom: 100px;
    background: black;
    color: #fff;
    border: 1px solid #fff;
    text-align: center;
    max-width: 850px;
    width: 96%;
    margin: 0 0 0 2%;
    padding: 10px 10px;
    display: none;

    a {
        color: #76ecef;
    }
}


