#popranking {
    width: 840px;
    margin: 0 0 30px;
    height: auto;
}

#popranking a {
    text-decoration: none;
}

#popranking h1 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    border-left: 6px solid #c0342f;
    padding: 8px;
}

h2.ranking_tit {
    color: #fff;
    background: #333;
    font-weight: bold;
    padding: 10px;
}

._popranking ._sortorderselector {
    padding: 0;
    margin: 0 0 20px;
}

.category_link_area .CategoryStyleG_:first-child {
    display: none;
}
._popranking ._sortorderselector._sortorderselector_type2 ._sort {
    padding: 20px 0;
}

._popranking ._results ._results_items ._item ._wrap {
    border-top: none;
    border-left: none;
}

._popranking ._results ._results_items ._item {
    width: 20%;
    padding: 0;
    margin: 0 0 20px;
}

#poprankingItem1,
#poprankingItem2,
#poprankingItem3 {
    width: calc(840px / 3);
}

.CategoryStyleP_Line_ {
    margin-top: 10px;
}

#block_of_categorytree summary {
    padding: 10px;
    outline: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#block_of_categorytree summary:hover {
    background: #eee;
    transition: all linear 0.2s;
    list-style: none;
}

#block_of_categorytree summary::-webkit-details-marker {
    display: none;
}

#block_of_categorytree summary {
    margin-right: 5px;
}

#block_of_categorytree details {
    display: block;
    width:230px;
}

#block_of_categorytree details summary::before {
    content: none !important;
}

#block_of_categorytree details summary::after {
    content: "{";
    font-weight: bold;
    font-size: 1.5rem;
    float: right;
    width: 1rem;
    text-align: center;
}

#block_of_categorytree details[open] summary::after {
    content: "|";
    margin-top: -0.1rem;
}

#block_of_categorytree details[open] div {
    animation: accordion 0.4s linear;
    overflow: hidden;
    border-bottom: 2px solid #eee;
    font-size: 1rem;
    padding: 1rem;
}

#block_of_categorytree details img {
    width: 30px;
    margin-right: 10px;
}

@keyframes accordion {
    0% {
        opacity: 0;
        height: 0;
    }

    70% {
        opacity: 0;
        height: 200px;
    }

    100% {
        opacity: 1;
    }
}

@media screen and (max-width:767px) {
    .contents_ {
        display: grid;
        padding: 20px 2%;
    }

    .leftmenuframe_ {
        order: 2;
    }

    #popranking {
        width: 100%;
    }

    ._popranking ._sortorderselector._sortorderselector_type2 ._sort {
        padding: 5px 0;
        font-size: 14px;
    }

    ._popranking ._results ._results_items ._item {
        width: calc(100% / 3);
    }

    #poprankingItem1,
    #poprankingItem2,
    #poprankingItem3 {
        width: calc(100% / 3);
    }

    ._popranking ._results ._results_items ._item ._wrap {
        border-right: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }

    h2.ranking_tit {
        font-size: 14px;
    }

    ul.category_tree_ {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    li.category_tree1_,
    li.category_tree1_open_ {
        width: 50%;
        border: 1px solid #eee;
        box-sizing: border-box;
    }

    li.category_tree1_ span,
    li.category_tree1_open_ span {
        display: flex;
        align-items: center;
        width: 80vw;
    }

    li.category_tree1_ a {
        text-decoration: none;
        display: block;
        line-height: 2;
        padding-left: 10px;
    }

    ._popranking ._results ._results_items ._item ._wrap {
        width: 100%;
    }

    #block_of_categorytree summary {
        margin-right: 0px;
    }
    .nochild_ img {
        display: block;
    }
}