/* ************************************
運勢ランキング
************************************ */


.ranking_title_wrap {
    margin-top: -49px;
    position: relative;
}

.ranking_title_wrap::before {
    content: "";
    background-image: var(--img-ranking-ribbon);
    background-repeat: no-repeat;
    background-size: contain;
    width: 339px;
    height: 117px;
    position: absolute;
    top: -50px;
}

.ranking_card_container {
    margin-top: 60px;
    padding: 30px 15px;
}

.ranking_card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: 30px 100px 30px;
    margin-top: 30px;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 17px 5px;
}

.ranking_bear {
    grid-row: 1 / 3;
    justify-self: center;
    align-self: center;
}

.ranking_card_titleWrap {
    grid-column: 2 / 2;
    grid-row: 1 / 2;
    border: none;
    padding: 0;
    margin: 0;
}

.ranking_card_titleWrap h3 {
    margin: 0;
}

.ranking_card_titleWrap span {
    margin-left: 13px;
}

.ranking_card_text {
    grid-column-start: 2;
    grid-row-start: 2;
}

.lucky_point_wrap {
    grid-column-start: 1;
    grid-column-end: 3;
    justify-self: center;
}



.lucky_point_wrap p {
    font-size: 11px;
}

.ranking_card:not(.ranking_card:last-child)::after {
    content: "";
    display: inline-block;
    width: 136px;
    height: 2px;
    background-color: #77C0B3;
    position: absolute;
    bottom: -40px;
    left: calc(50% - 68px);
}

@media (min-width:600px) {
    .ranking_card:not(.ranking_card:nth-child(-n+10))::after {
        content: none;
    }

    .ranking_card_wrap {
        padding: 20px;
        gap: 40px;
    }
}

@media (min-width:1015px) {

    .result_title {
        font-size: 36px;
    }


    .ranking_card:nth-child(-n+3):after {
        display: none;
    }

    .ranking_wrap {
        grid-template-columns: 1fr;
        grid-template-rows: 100px;
    }

    .ranking_title_wrap::before {
        background-image: var(--img-ranking-ribbon-pc);
        width: 600px;
        height: 250px;
        top: -80px;
        left: -80px;
    }

    .ranking_title_wrap {
        justify-self: center;
        z-index: 2;
        margin-bottom: -50px;
        justify-items: center;
    }

    .ranking_card_container {
        margin-top: -10px;
    }

    .ranking_card_wrap {
        padding-top: 50px;
        gap: 50px;
    }

    .ranking_card:not(.ranking_card:nth-child(-n+9))::after {
        content: none;
    }
}
