@charset "utf-8";

/* body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
} */

.ad_img {
  border-radius: 5px;
  max-width: 100%; /* 幅を100%に設定して、親要素に合わせる */
  height: auto; /* 高さを自動調整 */
}

#next_btn_ad {
  position: fixed;
  top: 90%; /* 垂直中央に調整 */
  left: 50%; /* 水平中央に調整 */
  transform: translate(-50%, -50%); /* 中央配置のための変形 */
  width: 50%; /* 幅を80%に設定 */
  max-width: 200px; /* 最大幅を600pxに設定 */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s 1s;
  z-index: 1000;
}

#next_btn_ad-content {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  width: 100%; /* コンテンツの幅を100%に設定 */
}

#next_btn_ad-close-button {
  opacity: 50%;
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 20px;
  cursor: pointer;
}

#next_btn_ad.show {
  opacity: 1;
  visibility: visible;
  /* transition: opacity 1s ease; */
}

/* スマホ用メディアクエリ */
@media (max-width: 600px) {
  #next_btn_ad {
    width: 90%; /* スマホでは幅を90%に */
    padding: 10px; /* スマホ向けのパディング調整 */
  }

  #next_btn_ad-close-button {
    font-size: 18px; /* スマホ向けにフォントサイズを調整 */
  }
}
