html {
  height: -webkit-fill-available;
}
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
}
img {
  width: 100%;
}
.flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.flex img {
  width: 50%;
}

.PR {
  position: relative;
}
.PR::before {
  content: "PR";
  color: #fff;
  font-weight: bold;
  background: rgb(255, 29, 29);
  padding: 2px 15px;
  position: absolute;
  top: -13px;
  left: 2%;
  z-index: 10;
}

            .couponbox{width: 80%;
                font-size: 23px;
                margin: 10px auto;
                background-color: #defdff;
                padding: 10px;
                text-align: center;
                color: #f00;
                font-weight: bold;}
                .small{        color: #000;
                    font-size: 14px;
                    font-weight: bold;}

#coupon-code {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    padding: 5px;
    display: inline-block;
  }
  #copy-button {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 14px;
    color: white;
    background-color: #ff20e1;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  #copy-button:hover {
    background-color: #218838;
  }
h3{font-size: 29px;
    padding: 0;
    margin: 0;}
h4{    font-size: 38px;
    color: #f00;
    margin: 0 10px;}
/**********************************
         スマホ 
***********************************/
@media screen and (max-width: 767px) {
  /**********************************
         ガチャスタートここから 
***********************************/
h3{font-size: 29px;
    padding: 0;
    margin: 0;
  text-align: center;}
h4{    font-size: 38px;
    color: #f00;
    text-align: center;
    margin: 0 10px;}
  #wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffde46;
    text-align: center; /* 文字中央寄せ */
    min-height: 100vh;
    position: relative;
  }
  .gacha {
    width: 100%;
  }
  .btn_gacha {
    position: absolute;
    top: 70%;
  }
  .btn_gacha img {
    width: 100%;
    animation: punipuni 1.2s infinite;
  }
  @keyframes punipuni {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(0.98, 1.15);
    }
  }

  /**********************************
         resultここから 
***********************************/
  #result_wrapper {
    width: 100%;
    margin: 0 auto;
    background: #fff;
  }
  .bg_box {
    text-align: center; /* 文字中央寄せ */
    width: 100%;
    position: relative;
  }



  .gacha_gif {
    position: absolute;
    top: 10%;
  }
  .gacha_gif img {
    width: 60%;
    margin: 0 auto;
    display: block;
  }
  .results {
    top: 5%;
  }
  .btn_results {
    text-align: center;
    justify-content: center;
  }
  .btn_results img {
    width: 100%;
  }
  .btn_results img {
    animation: punipuni 1.2s infinite;
  }
  @keyframes punipuni {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(0.98, 1.15);
    }
  }
}
/**********************************
         PC/タブレット 
***********************************/

@media screen and (min-width: 768px) {
  img {
    display: block;
    margin: 0 auto;
  }

  /* ガチャスタートここから */

  #wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffde46;
    text-align: center; /* 文字中央寄せ */
    min-height: 100vh;
    position: relative;
  }
  .gacha {
    width: 100%;
  }
  .gacha img {
    width: 100%;
  }
  .btn_gacha {
    width: 100%;
    position: absolute;
    top: 80%;
  }
  .btn_gacha img {
    width: 80%;
    animation: punipuni 1.2s infinite;
  }
  @keyframes punipuni {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(0.98, 1.15);
    }
  }

  /* resultsここから */

  #result_wrapper {
    max-width: 800px;
    background: #fff;
    text-align: center;
    margin: 0 auto;
    position: relative;
  }
  .results img,
  .btn_results img {
    width: 100%;
  }
  .bg_box {
    margin: 0 auto;
    display: flex;
    justify-content: center; /*左右中央揃え*/
    align-items: center; /*上下中央揃え*/
    position: relative;
  }

  .gacha_gif {
    position: absolute;
    top: 50px;
    width: 100%;
  }
  .gacha_gif img {
    width: 70%;
    margin: 0 auto;
    display: block;
  }
  .results {
    position: absolute;
    top: 5%;
    position: relative;
  }
  .btn_results {
    text-align: center;
    justify-content: center;
  }
  .btn_results img {
    animation: punipuni 1.2s infinite;
  }
  @keyframes punipuni {
    0% {
      transform: scale(1, 1);
    }
    50% {
      transform: scale(0.98, 1.15);
    }
  }
} /* 消さない */
