body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #2361bc;
  font-family: 'M PLUS 1p', sans-serif;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: none;
}

.container {
  background-image: url('img/bg.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: local;
  background-color: white;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  border: 10px solid black;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.floating-img {
  position: absolute;
  z-index: 1;
  display: none;
}
.loading-logo {
  width: 80%;
  max-width: 300px;
  margin-bottom: 20px;
  image-rendering: pixelated;
}
.caret {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  margin-top: 10px;
  animation: blink-caret 1s steps(2, start) infinite;
  color: white;
}

@keyframes blink-caret {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
@media (min-width: 430px) {
  .container {
    height: 85vh;
  }
}

.content {
  padding-top: 0;
  flex: 1;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.teacher-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 160px 0 50px;
}

@media (min-width: 430px) {
  .teacher-box {
    margin: 160px 0 50px;
  }
}

.teacher-img {
  width: 150px;
  height: auto;
  image-rendering: pixelated;
  border: 2px solid white;
  background-color: black;
  padding: 4px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
}

.custom-box {
  width: 93%;
  max-width: 430px;
  height: 380px;
  background-color: black;
  color: white;
  border: 4px solid white;
  outline: 6px solid black;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding: 20px 10px;
  white-space: pre-wrap;
  box-sizing: border-box;
}

/* チャレンジボタン */
#challenge-button {
  margin-top: 20px;
  color: white;
  font-family: 'Press Start 2P', cursive;
  text-decoration: none;
  animation: color-blink 1s steps(2, start) infinite;
  font-size: 12px;
  cursor: pointer;
}

/* 選択肢スタイル */
.static-choice {
  display: block;
  margin: 4px 0;
  padding: 6px 12px;
  color: white;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.static-choice:hover {
  animation: color-blink 1s steps(2, start) infinite;
}


/* 3つの秘宝 */
.slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gift-img {
  max-width:300px;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background-color: black;
}

.arrow {
  font-size: 20px;
  color: white;
  cursor: pointer;
  font-family: 'Press Start 2P', cursive;
  user-select: none;
}


/* 白黒の点滅アニメーション（クリック可能） */
@keyframes color-blink {
  0%   { color: #ffffff; }
  50%  { color: #000000; }
  100% { color: #ffffff; }
}

.notch {
  display: none;
}

@media (min-width: 430px) {
  .notch {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background-color: black;
    border-radius: 0 0 5px 5px;
    z-index: 10;
  }
}

@media (min-width: 600px) {
  body {
    background-image: url('img/bg2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #2361bc;
  }
  .floating-img {
    display: block;
    width: 275px;
  }

  .body01 {
    top: 50%;
    left: calc((70vw - 430px) / 2 - 150px);
    transform: translateY(-50%);
  }

  .body02 {
    top: 50%;
    right: calc((70vw - 430px) / 2 - 150px);
    transform: translateY(-50%);
  }
}

@media (max-width: 429px) {
  .container {
    border: none;
    border-radius: 0;
  }
}
@media (max-width: 999px) {
  .floating-img {
    display: none !important;
  }
}
