.lottery-numbers-container {
  width: 400px;
  margin: 20px auto;
}

.button {
  margin: 0 auto;
  padding: 5px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

.frame-container {
  width: 400px;
  /* PCサイズ用 */
  margin: 0 auto;
  /* 中央寄せ */
  margin-top: 30px;
  /* 中央寄せ */
  margin-bottom: 10px;
  /* 中央寄せ */
  position: relative;
}

#aiNumbers7,
#aiNumbers6,
#aiNumbersm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* 数字の表示 */
/* 数字の表示 */
.number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border: 4px solid #000;
  /* 黒色 */
  border-radius: 50%;
  font-size: 24px;
  color: #000;
  /* 黒色 */
  margin: 10px;
  animation: bounceIn 1s ease-out forwards;
  box-shadow: 10px 5px 5px gray;
  text-shadow: 3px 2px 30px #282828;
}

@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* モバイル画面での画像スタイル調整 */
img.responsive {
  display: block;
  width: 100%;
  height: auto;
}

.image-container {
  text-align: center;
  width: 100%;
}

.image-container.hidden {
  visibility: hidden;
  /* 要素は見えなくなる */
  opacity: 0;
  pointer-events: none;
  /* クリックなどのイベントも無効 */
  transition: opacity 0.3s ease;
}

/* オプション: 画像がコンテナに収まるように調整 */
.cover-img {
  width: 100%;
  /* コンテナの幅に合わせる */
}

.fade-effect {
  animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.numbers-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* パソコン画面（ビューポート幅が768px以上）の場合のスタイル */
@media (max-width: 768px) {

  .frame-container {
    width: auto;
    height: auto;
    /* 枠の幅、必要に応じて調整 */
  }

  .number {
    width: 50px;
    height: 50px;
    border: 3px solid;
    line-height: 75px;
    font-size: 20px;
    margin: 5px;
  }
}



/* ミラクルデザイン */
.number.miracle {
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: miracleNumberEffect 1s infinite alternate;
  border: none;
  /* 枠線をなくす */
}

@keyframes miracleNumberEffect {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

/* エクスクルーシブデザイン */
.number.exclusive {
  background: linear-gradient(45deg, #ff0000, #8b0000);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  animation: exclusiveNumberEffect 1s infinite alternate;
  border: none;
  /* 枠線をなくす */
}

@keyframes exclusiveNumberEffect {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(5deg);
  }
}

/* スペシャルデザイン */
.number.special {
  background: linear-gradient(45deg, #800080, #ff00ff);
  color: #fff;
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.8);
  animation: specialNumberEffect 1s infinite alternate;
  border: none;
  /* 枠線をなくす */
}

@keyframes specialNumberEffect {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-5px);
  }
}

/* アドバンスドデザイン */
.number.advanced {
  background: linear-gradient(45deg, #0000ff, #00bfff);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.8);
  animation: advancedNumberEffect 1s infinite alternate;
  border: none;
  /* 枠線をなくす */
}

@keyframes advancedNumberEffect {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(5px);
  }
}

/* ベーシックデザイン */
.number.basic {
  background: linear-gradient(45deg, #008000, #00ff00);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 128, 0, 0.8);
  animation: basicNumberEffect 1s infinite alternate;
  border: none;
  /* 枠線をなくす */
}

@keyframes basicNumberEffect {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(5px);
  }
}


/* Suspense effect */
.suspense-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.9));
  animation: pulseEffect 2s infinite alternate;
  z-index: 10;
  /* 上層に表示 */
}

@keyframes pulseEffect {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}




/* 確率情報テキストのスタイル */
.probability-text {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-shadow: 3px 2px 15px rgba(0, 0, 0, 0.7);
  padding: 10px 30px;
  border-radius: 20px;
  animation: pulseEffect 2s infinite alternate;
  position: relative;
  overflow: hidden;
  margin: 10px 0;
}

/* ミラクルデザイン */
.probability-text.miracle {
  background: linear-gradient(45deg, #ffd700, #ff8c00);
  color: #fff;
  box-shadow: 0 0 30px #ffd700cc;
  animation: miracleNumberEffect 2s infinite alternate;
}

/* エクスクルーシブデザイン */
.probability-text.exclusive {
  background: linear-gradient(45deg, #ff0000, #8b0000);
  color: #fff;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  animation: exclusiveNumberEffect 2s infinite alternate;
}

/* スペシャルデザイン */
.probability-text.special {
  background: linear-gradient(45deg, #800080, #ff00ff);
  color: #fff;
  box-shadow: 0 0 30px rgba(128, 0, 128, 0.8);
  animation: specialNumberEffect 2s infinite alternate;
}

/* アドバンスドデザイン */
.probability-text.advanced {
  background: linear-gradient(45deg, #0000ff, #00bfff);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 255, 0.8);
  animation: advancedNumberEffect 2s infinite alternate;
}

/* ベーシックデザイン */
.probability-text.basic {
  background: linear-gradient(45deg, #008000, #00ff00);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 128, 0, 0.8);
  animation: basicNumberEffect 2s infinite alternate;
}


/* 背景アニメーションのクラスを追加 */

.background-effect-miracle {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.8), transparent);
  animation: starShine 3s infinite;
}

.background-effect-exclusive {
  background: radial-gradient(circle, rgba(255, 0, 0, 0.8), transparent);
  animation: redGlow 3s infinite;
}

.background-effect-special {
  background: radial-gradient(circle, rgba(128, 0, 128, 0.8), transparent);
  animation: purpleWave 3s infinite;
}

.background-effect-advanced {
  background: radial-gradient(circle, rgba(0, 0, 255, 0.8), transparent);
  animation: bluePulse 3s infinite;
}

.background-effect-basic {
  background: radial-gradient(circle, rgba(0, 128, 0, 0.8), transparent);
  animation: greenFade 3s infinite;
}


/* ミラクル背景効果 */
.miracle {
  background: url('../img/output/miracle-bg.gif') no-repeat center center;
  background-size: cover;
}

/* エクスクルーシブ背景効果 */
.exclusive {
  background: url('../img/output/exclusive-bg.gif') no-repeat center center;
  background-size: cover;
}

/* スペシャル背景効果 */
.special {
  background: url('../img/output/special-bg.gif') no-repeat center center;
  background-size: cover;
}

/* アドバンスド背景効果 */
.advanced {
  background: url('../img/output/advanced-bg.gif') no-repeat center center;
  background-size: cover;
}

/* ベーシック背景効果 */
.basic {
  background: url('../img/output/basic-bg.gif') no-repeat center center;
  background-size: cover;
}