body {
    font-family: serif;
    font-family: "Oswald", serif;
    color: #999999;
    background-color: #191919;
}

/* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　背景　模様　方眼紙　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */

body .background_grid_pattern_dark_solid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    /* ここまでで背景の重なり位置を指定     */
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #262626 calc(100% - 1px)),
        linear-gradient(90deg, transparent calc(100% - 1px), #262626 calc(100% - 1px));
    background-position: 0 0, 50px 50px; /* 「0 0」と1マス（1色）の大きさ「30px 30px」をそれぞれ指定 */
    background-size: 100px 100px; /* 1マス分の倍の大きさを指定「60px 60px」 */
}

body .background_grid_pattern_light_solid {
    position: fixed;
    top: -50px;
    left: -50px;
    width: 100%;
    height: 150%;
    z-index: -11;
    /* ここまでで背景の重なり位置を指定 */
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #333333 calc(100% - 1px)),
        linear-gradient(90deg, transparent calc(100% - 1px), #333333 calc(100% - 1px));
    background-position: 0 0, 50px 50px; /* 「0 0」と1マス（1色）の大きさ「30px 30px」をそれぞれ指定 */
    background-size: 100px 100px; /* 1マス分の倍の大きさを指定「60px 60px」 */
}

/* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　ヘッダー（番号とバーコード）　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */

.header_inner {
    /* background-color: green; */
    position: fixed;
    top: 0;
    left: 0;
    /* transform: translate(0px, -40px); */
    width: 100%;
    z-index: -1;
    font-size: 13vw;
}

.header_inner .barcode {
    /* background-color: blue; */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    font-size: 13vw;
    font-family: "Libre Barcode 39", serif;
    color: rgba(216, 216, 216, 0.3);
}

/* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　メイン　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */

main{
    width: 100%;
    height: 100%;
}

main .main_wrap .work {
    /* background-color: blue; */
    /* border: 5px solid lightblue; */
    /* margin-right: 15%;  */
    /* 右ラベル分のスペース */
    display: flex;
    justify-content: center;
    margin-top: 5%;
    margin-bottom: 5%;
}

main .main_wrap img {
    /* background-color: lightcoral; */
    width: 60%;
    /* height: 60%; */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

main .main_wrap .caption {
    /* margin-right: 15%; */
    /* 右ラベル分のスペース */
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: rgba(216, 216, 216, 0.1);
    padding: 2rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
}

main .main_wrap .caption h2 {
    font-size: 2rem;
}

/* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　右ラベル　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */

body .right_label {
    width: 15%;
    height: 100%;
    background-color: #262626;
    border-left: 8px solid #333333;
    margin-left: auto;
    position: fixed;
    right: 0;
    top: 0;
}

body .right_label p {
    color: #555555;
    /* font-size: 20rem; */
    font-size: 15vw;
    /* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */
    /* 文字の向き */
    writing-mode: vertical-lr;
    text-orientation: sideways;
    transform: rotate(-180deg);

    /* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */
    /* positionで位置調整 */
    position: fixed;
    bottom: 30px;
    right: -30px;
    /* ＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊　＊＊＊＊＊＊＊＊＊＊ */
}





/* ガチャガチャ＊＊＊＊＊＊＊＊＊＊ */
 /* ガチャガチャ上部＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */
.gachaTopBox{
    /* border: 5px solid green; */
    background-color: rgba(255, 255, 255, 0.1);
    width: 80%;
    height: 500px;
    margin: 0 auto;
}
/* ガチャガチャ上部＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */

/* ガチャガチャ下部＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */
.gachaBottomBox{
    width: 80%;
    height: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #98c3c1;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
}

.resultBox{
    width: 300px;
    height: 250px;
    margin-top: 100px;
    border-radius: 50% 50% 0 0;
    background-color: #5f7f7d;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* ハンドル（ボタン）＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */
#gachaButton {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #faffff;
    color: #faffff;
    font-size: 24px;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.6s ease;
}

#gachaButton::after {
    /* 下記''の中には文字列等何も入れない。箱だけ用意した、といったイメージ。 */
    content: '';
    position: absolute;
    width: 10px;
    height: 70px;
    border-radius: 50%;
    background-color: #98c3c1;
    transform: rotate(-90deg);
}

#gachaButton:hover {
    background-color: #eff8f7;
}

/* 結果＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊＊ */
#result {
    font-size: 5rem;
    color: #faffff;
    font-weight: bold;
    position: relative;
    opacity: 0; /* 最初は見えないようにする */
    margin: 0 auto;
}

/* 落ちてくるアニメーション */
@keyframes drop {
    0% {
        transform: translateY(-200px); /* 画面外上部から始まる */
        opacity: 0;
    }
    20% {
        transform: translateY(0); /* 少し止まってバウンド */
        opacity: 1;
        transition-timing-function: linear;
        /* transform: rotate(45deg); */
    }
    25% {
        transform: translateY(-100px); /* 少し戻って */
        opacity: 1;
        transition-timing-function: ease-out;

    }
    30% {
        transform: translateY(0px); /* 少し戻って */
        opacity: 1;
    }

    35% {
        transform: translateY(-80px); /* 少し戻って */
        opacity: 1;
    }
    100% {
        transform: translateY(0); /* 最終的に元の位置に */
        opacity: 1;
    }
}
/* ガチャガチャ＊＊＊＊＊＊＊＊＊＊ */