/* 既存のCSS（shindan.css）に加えて、アニメーション効果を追加 */
    .quiz-container {
      position: relative;
      width: 100%;
      /* height: 100vh; */
      overflow: hidden;
    }

    .screen {
      position: absolute;
      width: 100%;
      height: 100%;
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    }

    .screen.hidden {
      opacity: 0;
      transform: translateY(20px);
      pointer-events: none;
    }

    .screen.fade-out {
      opacity: 0;
      transform: translateY(-20px);
    }

    .screen.fade-in {
      opacity: 1;
      transform: translateY(0);
    }

    /* 質問内容のアニメーション */
    .question-content {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    }

    .question-content.changing {
      opacity: 0;
      transform: translateY(10px);
    }

    /* ボタンのアニメーション */
    .buttons {
      opacity: 1;
      transition: opacity 0.3s ease-in-out;
    }

    .buttons.fade-out {
      opacity: 0;
    }

    .btn-start, button {
      transition: all 0.3s ease;
    }

    .btn-start:hover, button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* 結果表示のアニメーション */
    .result {
      opacity: 0;
      transform: scale(0.95);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .result.show {
      opacity: 1;
      transform: scale(1);
    }

    .result-wrap > * {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.6s ease-out forwards;
    }

    .result-wrap > *:nth-child(1) { animation-delay: 0.1s; }
    .result-wrap > *:nth-child(2) { animation-delay: 0.2s; }
    .result-wrap > *:nth-child(3) { animation-delay: 0.3s; }
    .result-wrap > *:nth-child(4) { animation-delay: 0.4s; }
    .result-wrap > *:nth-child(5) { animation-delay: 0.5s; }
    .result-wrap > *:nth-child(6) { animation-delay: 0.6s; }
    .result-wrap > *:nth-child(7) { animation-delay: 0.7s; }
    .result-wrap > *:nth-child(8) { animation-delay: 0.8s; }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* 基本的なスタイル（元のshindan.cssの内容を想定） */
   body {
    font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
    max-width: 600px;
    margin: 0 auto;
    background: url(../images/bg.png) repeat center;
    background-size: contain;
    line-height: 1.6;
    color: #fff;

}

body img {
    width: 100%;
}

.quiz-container {
    background: url(../images/bg-top.png) no-repeat center top;
    background-size: contain;
}

.gender-selection, #quizContainer {
    background: url(../images/bg-bottom.png) no-repeat center bottom;
    background-size: contain;
    position: relative;
}

.co-left {
    width: 10%;
    position: absolute;
    left: -1%;
    top: 10%;
}
.co-left02 {
    width: 13%;
    top: 31%;
    animation-name: cocktailmove;
  animation-duration: 2400ms;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.co-left03 {
    width: 12%;
    top: 56%;
}
.co-left04 {
    width: 12%;
    top: 86%;
}

@keyframes cocktailmove{
    0%{transform: rotate(0deg);}
    23%{transform: rotate(3deg);}
    90%{transform: rotate(0deg);}
  }


.co-right {
    width: 11%;
    position: absolute;
    right: -1%;
    top: 18%;
}
.co-right02 {
    width: 10%;
    top: 38%;
}
.co-right03 {
    width: 13%;
    top: 60%;
}
.co-right04 {
    width: 13%;
    top: 80%;
    animation-name: cocktailmove02;
  animation-duration: 2400ms;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
@keyframes cocktailmove02{
    0%{transform: rotate(0deg);}
    43%{transform: rotate(-3deg);}
    80%{transform: rotate(0deg);}
  }



.quiz-container p {
    text-align: center;
}

.question {
    width: 80%;
    margin: 20px auto 0;
    text-align: center;
    font-size: 16px;
}

.questionnumber {
    text-align: center;
    font-size: 16px;
}

.buttons {
    width: 70%;
    margin: 30px auto 0;
}

.btn,
button {
    background: #a8519b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    position: relative;
    display: inline-block;
    padding: 1rem 4rem;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
    letter-spacing: 0.1em;
    color: #fff;
    border-radius: 0.5rem;
    border-bottom: 5px solid rgba(33, 33, 33, 0.6);
    width: 100%;
    margin: 10px auto 0;
}

.btn:after,
button:after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 1.5px solid #fff;
    border-right: 1.5px solid #fff;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}

.btn-blue, .buttons button:first-child {
    background: #519ad3;
}

button.btn-start {
    background: #a8519b !important;
}

/* button:hover {
    margin-top: 13px;
    border-bottom: 2px solid rgba(33, 33, 33, 0.6);
} */







/* TOP */
.ttl {
    width: 70%;
    margin: 0 auto 20px;
    padding-top: 50px;
}

.start-p span {
    color: #fffdae;
}
.cat {
    display: block;
    max-width: 160px;
    width: 50%;
    margin: 40px auto 0;
    padding-bottom: 20px;
    animation-name: catmove;
  animation-duration: 2400ms;
  animation-timing-function: steps(2, end);
  animation-iteration-count: infinite;

}
@keyframes catmove{
    0%{
      transform: rotate(3deg);
  }
  100%{
      transform: rotate(-8deg);
  }
  }

.cat02 {
    display: block;
    max-width: 300px;
    width: 90%;
    margin: 70px auto 0;
    animation-name: catmove;
  animation-duration: 2400ms;
  animation-timing-function: steps(2, end);
  animation-iteration-count: infinite;
}


/* quizContainer yes no の質問画面 */
#quizContainer, #genderSelection {
    padding-bottom: 80px;
}



/* 結果画面 */
.result {
    display: none;
    text-align: center;
    background-size: contain;
    color: #fff;
    padding-top: 40px;
}

.result-wrap {
    width: 90%;
    margin: 0 auto;
    background: url(../images/co-result.png) no-repeat center top 20px;
    background-size: contain;
    padding-bottom: 60px;
}

.result h2 {
    font-size: 18px;
    padding-top: 40px;
}
.result-image {
    width: 60%;
    margin: 10px auto 0;
}
.result h3 {
    font-size: 24px;
    margin: 20px auto 10px;
}

.result .description {
    text-align: justify;
    font-size: 16px;
}

.cocktail-ttl {
    font-size: 19px;
    margin: 30px auto 0;
    text-align: center;
    padding-top: 40px;
    border-top: solid 1px #fff;
}
.cocktail-name {
    text-align: left;
    font-size: 18px;
    margin: 30px auto 5px;
}

.restart-btn {
    background-color: #a8519b;
    width: 80%;
    margin: 60px auto 0;
}

/* .restart-btn:hover {
    margin: 63px auto 0;
} */


.hidden {
    display: none;
}

.gender-selection {
    text-align: center;
}

