*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
}

body {
    /*  display: grid; */
    justify-content: center;
    align-items: center;

}
ul{
    list-style: none;
}

.flex {
    display: flex;
}

.container {
    margin-top: 5px;
}

.stack {
    width: calc(100% - 170px);
    height: 200px;
    margin-left: -15px;
    position: relative;
    z-index: 5;
    background: url('./img/preloader.gif') no-repeat 50% 50%;
    margin-bottom: 30px;
}

.stack .card {
    width: 93%;
    height: 138px;
    padding: 5px;
    background: #FFF no-repeat bottom 2px right 2px;
    background-size: 110px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    border-radius: .3rem;
    font-family: sans-serif;
    font-size: 1rem;
    color: #00000080;
    box-shadow: 0 5px 10px 0 #00000040, 0 15px 20px 0#00000020;
    transition: transform 200ms;
    opacity: 0;
}

.stackcard {
    opacity: 1;
}

.stackcard:nth-last-child(n + 4) {
    --y: calc(-50% + -46px);
    transform: translate(-50%, var(--y)) scale(0.9);
    box-shadow: 0 0 1px 1px #00000003;
    z-index: 5;
}

.stackcard:nth-last-child(3) {
    --y: calc(-50% + -23px);
    transform: translate(-50%, var(--y)) scale(0.95);
    z-index: 5;
}

.stackcard:nth-last-child(2) {
    --y: calc(-50%);
    transform: translate(-50%, var(--y)) scale(1);
    z-index: 5;
}

.stackcard:nth-last-child(1):not(:first-child) {
    --y: calc(-50% + 23px);
    transform: translate(-50%, var(--y)) scale(1.05);
    z-index: 10;
}

.stackcard:nth-last-child(n + 6) {
    box-shadow: none;
}

.stackcard:nth-last-child(1):not(:first-child):hover {
    cursor: pointer;
    animation-name: pop-vertical;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 1;
}


.rankingStack {
    background: url('./img/ranking_title.png') no-repeat 50% 0;
    max-width:1000px;
    padding: 140px 0 0;
    border: 3px solid #dbc453;
}

.rankingStackLeft {
    width: 180px;
    height: 200px;
    padding-top: 150px;
    background: url('./img/rankingStack_bg.png') no-repeat 50% 0;
}

.rankingMsg {
    width: 95%;
    margin: 0 auto;
    font-size: .8em;
    text-align: center;
    background: #c3181f;
    color: #FFF;
    padding: 3px;
    border-radius: .3rem;
}

.itemImage {
    width: 128px;
}

.rakingInfo {
    padding: 0 5px 5px;
    font-size: .8em;
    width: calc(100% - 128px);
}

.rakingInfo div {
    margin-bottom: 3px;
}

.updateAt {
    font-size: .7em;
    text-align: right;
}

.ganre {
    font-size: .8em;
    line-height: 1.2em;
    max-height: 1.1em;
    overflow: hidden;
    width: calc(100% - 55px);
    white-space: nowrap;
    text-overflow: ellipsis;
    direction: rtl;
}

.itemName {
    font-weight: bold;
    width: calc(100% - 100px);
    line-height: 1.2em;
    max-height: 2.3em;
    overflow-y: hidden;
}

.shopName {
    margin-top: 5px;
    padding-left: 20px;
    background: url("https://r.r10s.jp/evt/event/ranking/mayall/7.24.0/pc/img/ranking/flat_icn_shop.gif") 0 50% no-repeat;
}

/*
###  slide  ###
*/
.slide {
    width: calc(100% - 170px);
    overflow-x: hidden;
    padding: 20px 0 10px;
    margin-top: -50px;

}

.slideContent {
    animation: loop-slide 30s infinite linear 1s both;
}

.slide:hover .slideContent {
    animation-play-state: paused;
}

.slide a {
    text-decoration: none;
    color: #000;
    transition: all 0.2s;
}

.slide li:hover {
    transform: translateY(-20px);
    opacity: 0.8;
    z-index: 10;
}

.slide .card {
    background: #fff no-repeat 50% 5px;
    background-size: 40px;
    padding: 45px 3px 3px;
    margin: 3px;
    border-radius: 5px;
    box-shadow: 0 5px 10px 0 #00000040, 0 15px 15px 0#00000020;
}

.slide .updateAt {
    font-size: .6em;
}

.slide .card .rakingInfo {
    width:156px;
    font-size: .7em;
}

.slide .card .itemImage {
    width: 100px;
    margin: 0 28px;
}

.slide .itemName {
    width: 100%;
}

.slide .ganre{
    width:100%;
}
.slide .shopName{
    margin:0;
}

.card.rank1 {
    background-image: url('./img/cardRank01.png');
}

.card.rank2 {
    background-image: url('./img/cardRank02.png');
}

.card.rank3 {
    background-image: url('./img/cardRank03.png');
}

.card.rank4 {
    background-image: url('./img/cardRank04.png');
}

.card.rank5 {
    background-image: url('./img/cardRank05.png');
}

.card.rank6 {
    background-image: url('./img/cardRank06.png');
}

.card.rank7 {
    background-image: url('./img/cardRank07.png');
}

.card.rank8 {
    background-image: url('./img/cardRank08.png');
}

.card.rank9 {
    background-image: url('./img/cardRank09.png');
}

.card.rank10 {
    background-image: url('./img/cardRank10.png');
}

@keyframes swap {
    50% {
        transform: translate(-50%, calc(var(--y) - 230px)) scale(0.85) rotate(-5deg);
        animation-timing-function: ease-in;
    }

    100% {
        transform: translate(-50%, calc(var(--y) - 15px)) scale(0.85);
        z-index: 1;
    }
}

@keyframes pop-vertical {
    16.65% {
        transform: translate(-50%, calc(var(--y) + 8px)) scale(1.05);
    }

    33.3% {
        transform: translate(-50%, calc(var(--y) - 6px)) scale(1.05);
    }

    49.95% {
        transform: translate(-50%, calc(var(--y) + 4px)) scale(1.05);
    }

    66.6% {
        transform: translate(-50%, calc(var(--y) - 2px)) scale(1.05);
    }

    83.25% {
        transform: translate(-50%, calc(var(--y) + 1px)) scale(1.05);
    }

    100% {
        transform: translate(-50%, var(--y)) scale(1.05);
    }
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(0.7);
        z-index: -1;
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
        z-index: -1;
    }

    50% {
        transform: translate(-50%, -200%) scale(0.85);
        z-index: 1;
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes loop-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}
