* {
    box-sizing: border-box;
    font-family: "M PLUS Rounded 1c", sans-serif;
    margin: 0;
    padding: 0;
}
body {
    overflow: hidden;
}
img {
    height: auto;
    max-width: 100%;
}
.logo {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 114px;
    z-index: 99;
}
.gacha {
    background: url(../images/bg.png) no-repeat;
    background-size: 875px;
    background-position: center top;
}

.body {
    margin: -40px auto 20px;
    width: 100%;
    max-width: 400px;
}

.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 90%;
}
.btn button {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: none;
    border: 0;
    outline: none;
    width: 24%;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 25px;
    width: 90%;
}
.bottom .text {
    width: 302px;
}
.bottom .numbers {
    background: rgb(255 196 19 / 20%);
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 86px;
    width: 300px;
}
.numbers-in {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.numbers-in .symbol {
    color: #2F1901;
    font-size: 24px;
    font-weight: 900;
    margin: 0 3px;
    position: relative;
    bottom: 3px;
}
.bottom .numbers #count {
    color: #2F1901;
    font-size: 24px;
    font-weight: 900;
}
.bottom .numbers p .red {
    color: #C7000B;
    font-size: 20px;
    font-weight: 900;
}
.bottom .numbers p .red.big {
    color: #C7000B;
    font-size: 40px;
    font-weight: 900;
}
.bottom .numbers #total {
    color: #2F1901;
    font-size: 24px;
    font-weight: 900;
    position: relative;
    bottom: 3px;
}

.cover {
    background: rgb(255 196 19 / 20%);
    border-radius: 0 0 50px 50px;
    height: 348px;
    padding: 30px 30px 0;
}
.cover-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.cover-item dt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 15px;
    width: 159px;
}
.cover-item dd {
    width: calc(100% - 174px);
}

.cover-item dt p {
    color: #111111;
    font-size: 42px;
    font-weight: 900;
    width: calc(100% - 90px);
}
.cover-item dt p span {
    color: #111111;
    font-size: 24px;
    font-weight: 900;
}
.cover-item dt p span.mid {
    color: #111111;
    font-size: 32px;
    font-weight: 900;
}
.cover-item__image {
    width: 80px;
}

.cover-item__flex {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}
.cover-item__flex.end {
    justify-content: space-between;
    align-items: flex-end;
}

.cover-item dd .large {
    font-size: 34px;
    font-weight: 900;
}
.cover-item dd .mid {
    font-size: 28px;
    font-weight: 900;
}
.cover-item dd .small {
    font-size: 20px;
    font-weight: 900;
}
.cover-item dd .notice {
    font-size: 16px;
    font-weight: 700;
}
.cover-item dd .notice.s {
    font-size: 13px;
    font-weight: 700;
}

#result {
    background-repeat: no-repeat;
    background-size: 1020px;
    background-position: center top;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    width: 100%;
}
#result.class1 {
    background-image: url(../images/bg-result1.png);
    background-position: center;
}
#result.class2 {
    background-image: url(../images/bg-result3.png);
    background-position: center;
}
#result.class3 {
    background-image: url(../images/bg-result3.png);
    background-position: center;
}
#result.miss {
    background-image: url(../images/out.png);
    background-position: center;
}

.gacha-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    width: 420px;
}

#remaining-tries {
    color: #2F1901;
    font-size: 18px;
    font-weight: 900;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 999;
}

.gacha-result {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 700px;
}
.result-after__in {
    text-align: center;
}
.result-after__in p {
    color: #2F1901;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.8em;
}

.result-after__in button {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: #2F1901;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    margin: 25px auto 0;
    padding: 15px 0;
    width: 100%;
    max-width: 200px;
}

.result-after__get {
    margin: 25px 0 0;
}
.result-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}
.winning-image {
    width: 35%;
}

.result-notice,
.result-after__in .result-notice {
    color: #111111;
    font-size: 16px;
    font-weight: 700;
    margin: 35px 0 0;
    text-align: center;
}
.miss .result-notice {
    display: none;
}


.setting {
    height: 25px;
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 25px;
}
.setting button {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: none;
}

.settings {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
}
.settings button {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: #2F1901;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    margin: 25px auto 0;
    padding: 15px 0;
    width: 200px;
}
.settings a {
    color: #2F1901;
    display: block;
    font-size: 20px;
    font-weight: 900;
    margin: 25px 0 0;
    text-align: center;
}

/* アニメーションを定義 */
@keyframes kachakacha {
    0% {
        transform: translateY(0) rotate(0deg); /* 元の位置 */
    }
    25% {
        transform: translateY(-5px) rotate(-5deg); /* 上に移動して左に傾く */
    }
    50% {
        transform: translateY(5px) rotate(5deg); /* 下に移動して右に傾く */
    }
    75% {
        transform: translateY(-5px) rotate(-5deg); /* 上に戻る */
    }
    100% {
        transform: translateY(0) rotate(0deg); /* 元の位置に戻る */
    }
}

/* 対象要素のスタイル */
.gacha-image.image1 {
    animation: kachakacha 0.8s; /* アニメーションを適用 (1秒間隔で無限に繰り返し) */
}

div#result2 {
    margin: 25px 0;
    text-align: center;
    font-size: 20px;
}


button#skipButton {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: #2F1901;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    font-size: 20px;
    font-weight: 900;
    margin: 25px auto 0;
    padding: 15px 0;
    position: fixed;
    right: 2%;
    bottom: 2%;
    width: 200px;
    z-index: 999;
}

.image-count {
    color: #2F1901;
    font-size: 30px;
    font-weight: 900;
}