/* page__layout */

html {
    .layout_header {
        margin-bottom: 20px;
    }

    .layout_footer {
        padding: 20px;
    }

    .layout_container {
        max-width: 1200px;
        margin: 0 auto 20px;
        padding: 0 5px;

        .layout_main {
            grid-area: mainbar;
            overflow: hidden;
        }

        .layout_side {
            grid-area: sidebar;
        }
        @media (min-width: 1200px) {
            .layout_grid {
                display: grid; 
                gap: 0 20px;
                grid-template-columns: 7fr 3fr;
                grid-template-areas: "mainbar sidebar"; 
            }
            .layout_side{
                max-width: 350px; 
            }
            
            .layout_grid:not(:has(.layout_side)) {
                grid-template-columns: 1fr;
                grid-template-areas: "mainbar";
            }
        }
    }

    .layout_copyright {
        font-size: 12px;
        text-align: center;
    }
}


html {
    h1 {
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 1em;
        padding: 5px 0 2px 5px;
        margin-bottom: 10px;
        font-weight: bold;
        text-align: center;
        background: #7EBA03;
        color: #F3F9E8;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    h2 a {
        color: #fff;
    }

    
    .layout_header {
        margin-bottom: 20px;
        text-align: center;

        .header_logo {
            background-color: #485664;
            width: 100%;
            text-align: center;
            display: inline-block;
            padding: 10px 0;
            text-decoration: none;

            a {
                color: #fff;
                font-size: 18px;
                font-weight: bold;
                text-decoration: none;
            }

            em {
                font-size: 14px;
                font-weight: bold;
                background-color: #D36361;
                border-radius: 2px 2px 2px 2px;
                padding: 3px 12px;
                font-style: normal;
                display: inline-block;
                margin: 0 10px;
            }

            i {
                font-weight: bold;
                color: #fff;
                font-size: 14px;
                font-style: normal;
                text-decoration: none;
            }
        }

        .header_navi {
            background: #2E3740;
            overflow: hidden;
            position: relative;

            ul {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
            }

            li {
                a {
                    display: block;
                    padding: 13px 10px;
                    text-decoration: none;
                    font-size: 13px;
                    color: #fff;
                }
            }

            .header_word_search {
                margin: 10px 0;

                form {
                    padding: 0 0 0 20px;
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                }

                input[type="search"] {
                    width: 230px;
                    padding: 2px 5px;
                    margin-right: 3px;
                }

                input[type="image"] {
                    width: 34px;
                    height: 32px;
                    padding: 4px 5px;
                    border: 1px solid #3D85C6;
                    background-color: #4D90FE;
                    border-radius: 3px;
                }
            }
        }

        
        .header_pr {
            font-size: 11px;
            text-align: right;
            color: #555;
            background: #f8f8f8;
        }

        
        .header_pankuzu {
            display: flex;
            overflow: hidden;
            background: #F6F6F6;
            border: 1px solid #ccc;

            li {
                background: url("/css/img/arror_icon_s.png") no-repeat 12px center;
                padding: 7px 0 7px 30px;
                font-size: 0.9em;
                word-wrap: break-word;
                white-space: nowrap;

                &:first-child {
                    background: none repeat scroll 0 0 transparent;
                    padding-left: 10px;
                }

                a {
                    display: inline-block;
                }
            }
        }
    }

    
    .layout_footer {
        background: #111;
        color: #fff;

        .footer_menu {
            margin: 0 0 20px 0;
            text-align: center;

            li {
                display: inline-block;

                a {
                    font-size: 14px;
                    color: #fff;
                    display: inline-block;
                    padding: 5px;
                }
            }
        }
    }

    
    .layout_side {
        h3 {
            background: #14C3C9;
            color: #fff;
            font-size: 1em;
            padding: 10px 0 5px 10px;
        }

        .side_word_search {
            margin-bottom: 20px;

            form {
                display: flex;
                justify-content: center;
                margin: 10px 10px 20px 10px;
            }

            input[type="text"] {
                flex-grow: 1;
                max-width: 300px;
            }

            input[type="submit"] {
                margin-left: 5px;
                color: #fff;
                border: 1px solid #3D85C6;
                background-color: #4D90FE;
                border-radius: 3px;
            }
        }
    }
}


/* page_error */
.page_error {
    .error_msg {
        em {
            display: block;
            text-align: center;
            font-style: normal;
            font-size: 8em;
        }

        b {
            display: block;
            text-align: center;
            font-size: 1.2em;
            margin-bottom: 20px;
        }

        a {
            display: block;
            text-align: center;
            font-size: 1.2em;
        }
    }

    .menu {
        margin: 40px 0 40px 40px;
    }
}

/* page_kizi */


/* page_search */
.page_saerch {
    
    .word_search {
        padding: 10px;
        display: flex;
        justify-content: flex-start;
        align-items: center;

        form {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        input[type="text"] {
            flex-grow: 1;
            max-width: 300px;
        }

        input[type="submit"] {
            margin-left: 5px;
            color: #fff;
            border: 1px solid #3D85C6;
            background-color: #4D90FE;
            border-radius: 3px;
        }
    }

    .no_data_msg {
        background: #fdf3f3;
        border: 1px solid #999;
        border-radius: 3px;
        text-align: center;
        margin: 5px 5px 40px;
        padding: 30px 10px;
        font-size: 1.2em;
    }
}

/* page_mypage */

.page_mypage_index {
    
    .fav_watch_btn {
        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 30px;
            gap: 5px;
        }

        li {
            display: flex;
            flex-direction: column;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 140px;
            position: relative;

            a {
                display: block;
                text-decoration: none;
                font-size: 0.8em;
                color: #777;
                text-align: center;
                padding-top: 70px;
                padding-bottom: 10px;
                z-index: 9999;
            }

            i.mi {
                position: absolute;
                top: 20px;
                left: 50%;
                transform: translateX(-50%);
                font-size: 38px;
                color: #777;
            }

            b {
                font-weight: normal;
                padding-right: 2px;
            }
        }
    }

    
    .no_my_okini_msg {
        border: 1px solid #999;
        border-radius: 3px;
        text-align: center;
        margin: 5px 5px 40px;
        padding: 10px;
        font-size: 1.2em;
    }

    
    .okini_upd_btn {
        position: absolute;
        bottom: 0;
        left: 0;

        .mi {
            display: inline-block;
            font-size: 40px;
            color: forestgreen;
        }
    }
}


.page_mypage_no_img_fav {
    border: 1px solid #999;
    border-radius: 3px;
    text-align: center;
    margin: 5px 5px 40px;
    padding: 10px;
    font-size: 1.2em;
}


.page_mypage_edit {
    .imgs_ul {
        margin-bottom: 30px;

        li {
            position: relative;
            display: inline-block;
            margin: 2px;
            width: 120px;
            height: 90px;
            overflow: hidden;
            cursor: pointer;

            img {
                width: 100%;
            }

            &.__select {
                background: #111;

                img {
                    opacity: 0.7;
                }
            }
            &:after {
                position: absolute;
                top: 3px;
                right: 3px;
                font-size: 14px;
                box-sizing: border-box;
                border-radius: 12px;
                min-width: 24px;
                height: 24px;
                line-height: 24px;
                text-align: center;
                padding: 0 3px;
                content: '';
                border: 3px solid #fff;
            }
            &.__select:after {
                content: attr(data-renban);
                background: mediumseagreen;
                border: 2px solid #fff;
                color: #fff;
            }
        }
    }

    .edit_form {
        th {
            width: 120px;
            vertical-align: top;
        }

        input[type="text"], textarea {
            width: 95%;
            padding: 5px;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .__submit {
            margin: 20px 0 100px;
            padding: 10px 20px;
            font-size: 18px;
            background: orangered;
            border-radius: 5px;
            color: #fff;
            border: 1px solid #d23900;
            cursor: pointer;
        }
    }

    .err_marker {
        border: 1px solid red;
    }

    .err_msg_box {
        display: block;
        border: 1px solid red;
        background: mistyrose;
        padding: 40px;
        margin-bottom: 10px;
    }
}



.page_mypage_okini_edit_link {
    font-size: 16px;
    font-weight: bold;
    background: forestgreen;
    color: #fff;
    border-radius: 20px;
    padding: 5px 10px 5px 5px;
    text-decoration: none;
}

/* page_list */
.page_list {
    
    .package_movie {
        position: relative;

        h3 {
            background: #000;
            color: #fff;
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            padding: 8px;
        }

        div {
            position: relative;
            display: block;
            background: url("/css/img/free_movie_play.png") no-repeat scroll center center #000;
            padding: 10px 0 20px 0;
            margin: 0 0 20px 0;
            overflow: hidden;

            img {
                display: block;
                margin: auto;
                max-height: 300px;
                width: auto;
                opacity: 0.5;
                cursor: pointer;
            }
        }

        a {
            color: orange;
        }
    }

    
    .package_header_wrap {
        .arasuzi {
            border: 1px solid #ccc;
            margin: 0 0 4px 0;
            padding: 6px;
            font-size: 12px;
            max-height: 64px;
            overflow: hidden;
        }
    }

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

        .link a {
            display: block;
            width: 310px;
            background: url("/css/img/dmm_btn_icon.png") no-repeat scroll 40px center #F1C40F;
            border-radius: 6px;
            padding: 12px 0 12px 20px;
            margin: 10px auto;
            text-align: center;
            color: #444;
            font-size: 14px;
            font-weight: bold;
        }

        .detail {
            h3 {
                border: 1px solid #ccc;
                border-bottom: none;
                padding: 5px 10px;
                background: #eee;
                max-height: 69px;
                overflow: hidden;
                font-weight: normal;
                font-size: 0.9em;
            }

            dl {
                display: flex;
                flex-wrap: wrap;
                width: 100%;
                border: 1px solid #ccc;
                border-bottom: none;
                margin-bottom: 3px;
            }

            dt {
                width: 70px;
                font-size: 0.8em;
                text-align: center;
                background: #eee;
                padding: 8px;
                border-right: 1px solid #ccc;
                border-bottom: 1px solid #ccc;
            }

            dd {
                background: #fff;
                width: calc(100% - 70px);
                border-bottom: 1px solid #ccc;
                padding: 5px 0 5px 5px;

                a,
                b {
                    display: inline-block;
                    padding-right: 8px;
                    font-size: 0.9em;
                }

                b {
                    font-size: 0.8em;
                    font-style: normal;
                    font-weight: normal;
                    color: #777;
                }
            }

            time {
                display: block;
                font-size: 12px;
                color: #999;
                text-align: right;
                margin-bottom: 40px;
                padding-right: 5px;
            }
        }
    }

    
    .sort_navi {
        display: block;
        text-align: center;
        margin: 10px 0;

        li {
            margin: 3px;
            display: inline-block;

            em,
            a {
                display: inline-block;
                border: 1px solid #aaa;
                border-radius: 3px;
                padding: 5px 10px;
                background: #eee;
                font-size: 14px;
                font-weight: normal;
                font-style: normal;
            }

            a {
                text-decoration: none;
                background: #fff;
            }
        }
    }

    
    .tag_cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;

        a,
        s {
            border: 1px solid #ccc;
            border-radius: 4px;
            display: inline-block;
            padding: 5px 10px;
            font-size: 0.9em;
            background: #fff;
        }

        s {
            background: #ccc;
            color: #777;
        }

        a.selected {
            background: #f9e1e5;
            position: relative;
            padding-left: 28px;

            &:before {
                font-family: 'Material Icons', serif;
                content: "\e5c9";
                font-size: 20px;
                position: absolute;
                top: 0;
                left: 2px;
                font-variation-settings: 'FILL' 0;
            }
        }
    }

    
    .collect_info_bottom {
        h3 {
            border: 1px solid #ccc;
            border-bottom: none;
            padding: 10px;
            background: #eee;
            max-height: 69px;
            overflow: hidden;
        }

        dl {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            border: 1px solid #ccc;
            border-bottom: none;
            margin-bottom: 20px;
        }

        dt {
            width: 70px;
            font-size: 0.8em;
            text-align: center;
            background: #eee;
            padding: 10px 5px;
            border-right: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }

        dd {
            background: #fff;
            width: calc(100% - 70px);
            border-bottom: 1px solid #ccc;
            padding: 10px 0 10px 10px;
        }
    }

    
    .page_fav_wrap {
        height: 32px;
        text-align: right;
        margin-bottom: 10px;
    }

    
    .okini_info_box {
        padding: 10px;
        margin-bottom: 30px;

        dl {
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
            width: 100%;
            border: 1px solid #ccc;
            border-bottom: none;

            dt {
                font-size: 0.8em;
                background: #f5f5f5;
                padding: 5px;
                width: 120px;
                text-align: center;
                border-right: 1px solid #ccc;
                border-bottom: 1px solid #ccc;
            }

            dd {
                font-size: 0.8em;
                padding: 5px;
                width: calc(100% - 120px);
                border-bottom: 1px solid #ccc;
            }
        }
    }
}


/* page_mst */
.page_mst {
    .zyoyu_tab_link_ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;

        li {
            display: inline-block;
            border: 1px solid #999999;

            a {
                display: inline-block;
                padding: 10px;

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

    .collects_ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;

        li {
            display: inline-block;
            width: 142px;
            overflow: hidden;
            text-overflow: ellipsis;

            a {
                font-size: 0.9em;
                white-space: nowrap;
            }
        }
    }

    .sirizu_collects_ul {
        margin-bottom: 40px;

        li {
            display: inline-block;
            max-width: 300px;
            margin: 0 10px;
            overflow: hidden;
            text-overflow: ellipsis;

            a {
                font-size: 0.8em;
                white-space: nowrap;
            }
        }
    }

    .biko {
        font-size: 0.8em;
        text-align: right;
        margin: 0 5px 10px 0;
    }

    
    .search_in_page {
       padding: 10px;
       margin-bottom: 20px;
       max-width: 500px;
       display: flex;
       justify-content: center;
       align-items: center;

       input[type="submit"] {
           margin-left: 5px;
           color: #fff;
           border: 1px solid #3D85C6;
           background-color: #4D90FE;
           border-radius: 3px;
       }
    }
}


/* page_top */
.page_top {
    .category {
        ul {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 5px;
            margin-bottom: 20px;
        }

        li {
            a {
                display: table-cell;
                text-align: center;
                vertical-align: middle;
                width: 160px;
                height: 80px;
                border: 1px solid #ccc;
                position: relative;

                &:after {
                    font-family: 'Material Icons', serif;
                    content: "\e5e1";
                    position: absolute;
                    right: 10px;
                    top: 50%;
                    transform: translateY(-50%);
                    font-size: 16px;
                }
            }
        }
    }
}


