@keyframes drop-logo {
  0% {
    transform: translate(-50%, -150%);
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

.logo-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;  /* この行を追加 */
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: drop-logo 1s ease-out forwards;
  padding: 20px;
  background-color: #fff;
}

.logo {
  width: 100%;
  height: auto;
  display:block;
}

.logo2 {
  width: 200px;
  height: auto;
  margin-top: 20px; 
  display:block;
}

.logo-text {
  text-align: center;
  color: white;
  font-size: 15px;
}

#password-prompt {
  opacity: 0;
  transition: all 1s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

#password-prompt.visible {
  opacity: 1;
}

.age-button,
.gender-button,
.answer-button,
#next {
  padding: 10px 20px;
  margin: 5px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 1.2rem;
}

.answer-button {
  display: inline-block;
  width: 19%;
  margin: 0 0.5%;
  text-align: center;
  padding: 12px 0;
}

.answer-button:hover {
  background-color: #e0e0e0;
  color: #333;
}

.answer-button.selected {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#disclaimer {
  border: 2px solid #ccc;
  /* ボーダー線を設定 */
  padding: 20px;
  /* パディングを設定 */
  margin: 20px 0;
  /* マージンを設定 */
}

#disclaimer p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}


#next {
  display: block;
  width: 100%;
  margin: 60px 0 0 -1px;
  /* 上側のマージンを20px、左側のマージンを-1pxに設定 */
  background-color: yellow;
  color: black;
  padding: 12px 0;
  font-size: 1.2rem;
}


.age-button.selected,
.gender-button.selected,
.answer-button.selected {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

#quiz h3,
.question-number {
  text-align: center;
  font-weight: bold;
}

#quiz h3 {
  font-size: 3rem;
  margin-bottom: 5rem;
}

.question-number {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#password,
#submit-password {
  font-size: 1.2rem;
}

#password {
  padding: 6px 12px;
  border: 2px solid #ccc;
  border-radius: 4px;
}

#submit-password {
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  margin-left: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submit-password:hover {
  background-color: #45a049;
}

#initial-form,
#quiz {
  display: none;
}

#start-quiz {
  font-size: 1.2rem;
}

#result-type p {
  display: block;
}

#result-type .left-text {
  text-align: left;
}

#result-type .center-text {
  text-align: center;
  font-size: 10rem;
  /* 文字の大きさを変更 */
  margin-top: 10px;
  margin-bottom: 10px;
  flex-grow: 1;
  /* センターテキストが他の要素と均等にスペースを埋める */
}

#result-type .right-text {
  text-align: right;
}

.result-type-木 {
  color: white;
  background-color: green;
  padding: 5px 10px;
}

.result-type-火 {
  color: white;
  background-color: red;
  padding: 5px 10px;
}

.result-type-土 {
  color: white;
  background-color: brown;
  padding: 5px 10px;
}

.result-type-金 {
  color: white;
  background-color: gold;
  padding: 5px 10px;
}

.result-type-水 {
  color: white;
  background-color: blue;
  padding: 5px 10px;
}

.additional-result-yin {
  background-color: #aaaaaa;
  /* 陰の背景色を設定 */
  color: white;
  /* 文字色を設定 */
  padding: 5px 10px;
}

.additional-result-yang {
  background-color: #ffaaaa;
  /* 陽の背景色を設定 */
  color: white;
  /* 文字色を設定 */
  padding: 5px 10px;
}


#additional-result-type p {
  display: block;
}

#additional-result-type .left-text {
  text-align: left;
}

#additional-result-type .center-text {
  text-align: center;
  font-size: 5rem;
  /* 文字の大きさを変更 */
  margin-top: 10px;
  margin-bottom: 10px;
  flex-grow: 1;
  /* センターテキストが他の要素と均等にスペースを埋める */
}

#additional-result-type .right-text {
  text-align: right;
}

#supplement-link-container {
  text-align: center;
  /* 中央揃えにする */
  margin-top: 4rem;
  /* 上側のマージンを追加 */
}

#supplement-link-container a {
  display: inline-block;
  /* ボックスモデルを適用するためにインラインブロックに設定 */
  width: 100%;
  /* 画面幅いっぱいに広げる */
  max-width: -webkit-fill-available;
  padding: 10px 20px;
  /* パディングを追加 */
  background-color: #007bff;
  /* 背景色を設定 */
  color: #fff;
  /* 文字色を設定 */
  text-decoration: none;
  /* テキストの下線を削除 */
  font-size: 1.2rem;
  /* 文字サイズを設定 */
  border-radius: 5px;
  /* 角を丸くする */
  cursor: pointer;
  /* カーソルをポインターに設定 */
  transition: background-color 0.3s;
  /* 背景色の変更をアニメーションさせる */
}

#supplement-link-container a:hover {
  background-color: #0056b3;
  /* マウスオーバー時の背景色を変更 */
}


/* PC向けのスタイル */
@media (min-width: 769px) {
  #result {
    max-width: 600px;
    /* 適切な幅を設定 */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    /* 必要に応じてパディングを追加 */
  }
}

/* スマートフォン用のスタイル */
@media (max-width: 768px) {
  .logo {
   width: 100vw;
   height: auto;
   display:block;
  }

  .answer-button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 12px 0;
  }

  #password,
  #submit-password {
    display: block;
  }

  #submit-password {
    margin-top: 10px;
  }

  #quiz h3,
  .question-number {
    text-align: center;
    font-weight: bold;
  }

  #quiz h3 {
    font-size: 2rem;
    margin-bottom: 5rem;
  }

  .question-number {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

}