.section-ranking
{
    padding: 50px 0;
    max-width: 100%;
    background: #181818;
}

.posts-ranking-index-header h2
{
    padding: 0 0 15px;
    height: auto;
    line-height: 1;
    text-align: center;
    color: #7694b3;
    font-size: 26px;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    font-weight: bold;
    background: none;
}

.posts-ranking-index-header p
{
    text-align: center;
    color: #7694b3;
}

body#index .posts-ranking-index-header a {
    color: #7e93b2;
}

.posts-ranking-index-header img
{
    max-height: 34px;
}

.posts-ranking-index ul
{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    counter-reset: rank;
}

.posts-ranking-index li
{
    position: relative;
    counter-increment: rank;
    width: calc(20% - 20px);
    margin-top: 25px;
}

.posts-ranking-index ul li::before
{
    content: counter(rank);
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #fff;
    font-family: 'Amiri', serif;
    font-size: 18px;
    background: #7694b3;
}

.posts-ranking-index .image
{
    height: 142px;
    overflow: hidden;
    background-color: #f1f0f0;
}

.posts-ranking-index .image img {
    width: 100%;
}

.posts-ranking-index .content
{
    padding: 8px 0 0;
}

.posts-ranking-index .content .article-title a
{
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    max-height: 80px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.section.section-ranking .more
{
    margin: 30px auto 12px;
    font-size: inherit;
    width: auto;
}

.section.section-ranking .more > span
{
    box-sizing: border-box;
    display: inline-block;
    padding: 0 20px;
    line-height: 1;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    letter-spacing: .075em;
    -webkit-transition: all .3s ease;
            transition: all .3s ease;
}

.section.section-ranking .more > span.active,
.section.section-ranking .more > span:hover
{
    color: #7694b3;
}

.section.section-ranking .more > span:last-child
{
    border-left: 1px solid #494949;
}


@media screen and (max-width:400px)
{

    .section-ranking
    {
        padding: 30px 0;
    }

    .posts-ranking-index-header h2
    {
        font-size: 24px;
    }

    .posts-ranking-index li
    {
        width: 31.3333%;
        margin-top: 25px;
    }

    .posts-ranking-index ul li::before
    {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 15px;
    }

    .posts-ranking-index li:nth-child(10)
    {
        display: none;
    }

    .posts-ranking-index-header p
    {
        font-size: 13px;
    }

    .posts-ranking-index .content .article-title a
    {
        font-size: 11px;
        line-height: 16px;
    }

    .posts-ranking-index .content .article-title .post-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4; /* 制限したい行数が4の場合 */
        overflow: hidden;
    }

    .posts-ranking-index .image
    {
        height: 64px;
    }

    .section.section-ranking .more
    {
        margin: 40px auto 10px;
    }

    .section.section-ranking .posts-ranking-index .more
    {
        margin: 30px auto 10px;
    }

    .section.section-ranking .posts-ranking-index .more span
    {
        font-size: 14px;
    }

}
