.ranking {
    margin-bottom:30px;
}

.fs-body-top .ranking {
    margin-bottom: 60px;
}

.ranking .nav-content {
    margin-top: 20px;
}

.ranking .nav-content .nav-list {
    scrollbar-width: none;
}

.ranking .nav-content .nav-list::-webkit-scrollbar {
    display: none;
}

.ranking .nav-content .nav-list li a {
    min-width: unset;
}

.ranking .ranking-product {
    margin: 20px 20px 0;
}

.ranking .ranking-product .ul {
    display: none;
    overflow: hidden;
}

.ranking .swiper-custom-button-next,
.ranking .swiper-custom-button-prev {
    display: none;
}

.ranking .ranking-product .ul .swiper-wrapper {
    width: 100%;
    counter-reset: ranking;
    overflow: unset;
    height: calc((((100vw - 80px) / 2.3) + 49.5px ) * 2 + 10px);
    flex-wrap: wrap;
    flex-direction: column;
    margin: 0;
}

.ranking .ranking-product .ul.active{
    display: block;
}

.ranking .ranking-product .ul .swiper-slide {
    width: calc(((100vw - 80px) / 2.3));
    height: calc(((100vw - 80px) / 2.3) + 49.5px) !important;
    margin-right: 20px;
}

.ranking .ranking-product .ul .swiper-slide:nth-child(even) {
    margin-top: 10px !important;
}

.ranking .ranking-product .ul .swiper-slide .product-img-wrapper {
    position: relative;
    overflow: hidden;
    vertical-align: baseline;
    padding-bottom: 100%;
    width: 100%;
    border-radius: 5px;
}

.ranking  .ranking-product .ul .swiper-slide .product-img-wrapper:before {
    top: 4.5px;
    left: 0px;
    position: absolute;
    z-index: 2;
    color: var(--color__white);
    font-weight: var(--font-weight-bold);
    counter-increment: ranking;
    content: counter(ranking);
    width: 25px;
    text-align: center;
}

.ranking .ranking-product .ul .swiper-slide .product-img-wrapper .ranking-index {
    top: 48px;
    left: 0;
    position: absolute;
    z-index: 1;
    height: 68px;
    width: 68px;
    display: block;
    transform-origin: top left;
    transform: rotate(-135deg);
    background: var(--color__gray-555);
    content: "";
}

.ranking .ranking-product .ul .swiper-slide:nth-of-type(1) .product-img-wrapper .ranking-index {
    background: var(--color__gold-B09);
}

.ranking .ranking-product .ul .swiper-slide:nth-of-type(2) .product-img-wrapper .ranking-index {
    background: var(--color__gray-AAA);
}

.ranking .ranking-product .ul .swiper-slide:nth-of-type(3) .product-img-wrapper .ranking-index {
    background: var(--color__gray-8C8);
}

.fs-body-top .ranking .ranking-product .ul .swiper-slide:nth-of-type(n+11) {
    display: none;
}

.ranking .ranking-product .ul .swiper-slide .product-img-wrapper img {
    vertical-align: top;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 4px;
}

.ranking .ranking-product .ul .swiper-slide .product-name {
    margin-top: 6px;
    color: var(--color__gray-AAA);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family__roboto);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking .ranking-product .ul .swiper-slide .product-price {
    font-size: var(--font-size__large);
    color: var(--color__gray-777);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family__roboto);
}

.ranking .ranking-product .ul .swiper-custom-button-prev,
.ranking .ranking-product .ul .swiper-custom-button-next {
    background: var(--color__white);
    border: 1px solid var(--color__gray-DDD);
    color: var(--color__gray-777);
    width: 40px;
    height: 40px;
    position: absolute;
    top: calc((((var(--pc-content-width) / 5) - 80px) / 2) + 10px);
    box-shadow: none;
    border-radius: 40px;
    padding: 9px 11px;
    z-index: 1;
    cursor: pointer;
}

.ranking .ranking-product .ul .swiper-custom-button-prev {
    left: -15px;
}

.ranking .ranking-product .ul .swiper-custom-button-prev:before {
    position: relative;
    left: -2px;
}

.ranking .ranking-product .ul .swiper-custom-button-next {
    right: -14px;
}

.ranking .ranking-product .ul .swiper-button-disabled {
    display: none !important;
}

.ranking .swiper-scrollbar.swiper-scrollbar-horizontal {
    bottom: 0px !important;
}

@media only screen and (min-width: 641px) {
    .ranking {
        max-width: var(--pc-content-width);
        margin: 0 20px;
    }

    .ranking .ranking-product {
        padding: 0;
        margin-bottom: 120px;
    }

    .ranking .ranking-product .ul .swiper-scrollbar {
        display: block;
    }

    .ranking .ranking-product .ul {
        overflow: hidden;
        position: absolute;
        display: block;
        left: -9999px;
    }

    .ranking .ranking-product .ul.active {
        position: relative;
        left: 0;
    }

    .ranking .ranking-product .ul .swiper-slide {
        width: calc((100vw - 120px) / 5) !important;
    }

    .ranking .ranking-product .ul .swiper-slide .product-link:hover {
        text-decoration: none;
    }

    .ranking .ranking-product .ul .swiper-wrapper {
        display: flex;
        overflow-x: unset;
        overflow: visible;
        position: relative;
        transition: transform .5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    }

    .ranking .ranking-product .ul .swiper-scrollbar {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 4px;
        background: var(--color__gray-EBE);
        left: 0;
    }

    .ranking .ranking-product .ul .swiper-scrollbar .swiper-scrollbar-drag{
        height: 100%;
        transition: transform .5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        background: var(--color__gray-555);
        cursor: pointer;
    }
}
@media only screen and (min-width: 1280px) {
    .ranking {
        margin: 0 auto 120px;
    }

    .fs-body-top .ranking {
        margin-bottom: 120px;
    }

    .ranking .ranking-product {
        margin: 20px 0px 0;
    }

    .ranking .ranking-product .ul {
        overflow: unset;
    }

    .ranking .ranking-product .ul .swiper-wrapper-parent {
        overflow: hidden;
    }

    .ranking .ranking-product .ul .swiper-wrapper {
        flex-wrap: unset;
        flex-direction: unset;
        height: unset;
    }

    .ranking .ranking-product .ul .swiper-slide:nth-child(even) {
        margin-top: 0px !important;
    }

    .ranking .ranking-product .ul.active:hover .swiper-custom-button-next,
    .ranking .ranking-product .ul.active:hover .swiper-custom-button-prev {
        display: block;
    }

    .ranking .ranking-product .ul .swiper-slide {
        height: unset !important;
    }

    .ranking .ranking-product .ul .swiper-slide {
        width: calc((var(--pc-content-width) - 80px) / 5) !important;
    }

    .ranking .ranking-product .ul .swiper-slide .product-name {
        font-size: var(--font-size__large);
        font-weight: var(--font-weight-regular);
        line-height: 24px;
        letter-spacing: 1.05px;
    }

    .ranking .ranking-product .ul .swiper-slide .product-price {
        font-size: 17px;
        font-weight: var(--font-weight-bold);
        line-height: 21.25px;
        letter-spacing: 0.85px;
    }

    .ranking .nav-content {
        margin-top: 30px;
    }
}