#wrapper {
  font-family: 'Helvetica Neue', sans-serif;
	background: repeating-linear-gradient(to right, #fef7f6, /* è–„ãƒ”ãƒ³ã‚¯ */ #fef7f6 15px, #ffffff 10px, #ffffff 25px);	
  color: #444;
  text-align: center;
  margin: 0;
  padding: 5%;
}

#question {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#question.fade-out {
  opacity: 0;
}

#wrapper h1 {
    background: #faefed;
    font-size: 5.5vw;
    color: #444;
    border-bottom: none;
	font-weight: 600;
    position: relative;
    left: -5%;
    width: 110%;
    padding: 3%;
    box-sizing: border-box;
}

#wrapper h2 {
    font-size: 5vw;
}


#quiz {
  min-height: 280px; /* 高さを固定せず、最小値だけ指定 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 5%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2vw 4vw rgba(0,0,0,0.1);
}

#quiz, #result {
  width: 100%;
  margin: 5% auto;
  background: #ffffff;
  padding: 8%;
  border-radius: 12px;
  box-shadow: 0 2vw 4vw rgba(0,0,0,0.1);
}

#resultText strong {
	font-size: 6vw;
	font-weight: 600;
}

#question {
  flex: 1;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5vw;
  text-align: center;
  margin: 0;
}

#question-container {
  min-height: 100px; /* 質問の表示領域を一定に保つ */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2% 0;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wrapper button {
	background: #fff;
    color: #444;
    border: solid 1px #999999;
    border-radius: 50px;
    padding: 4% 0;
    margin: 4% auto;
    font-size: 4.5vw;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 60%;
    max-width: 90%;
    display: block;
}



#checkBraBtn {
  background: #444;
  color: #fff;
}

#resultText {
  font-size: 4.5vw;
  line-height: 1.7;
  margin: 5% 0;
}

#resultImg {
  width: 100%;
  height: auto;
  border-radius: 4%;
  margin-top: 5%;
}

@media (min-width: 768px) {
#wrapper {
	padding: 0;
}	
	

#wrapper h1 {
	font-size: 3rem;
        padding: 1%;
        margin: 0 auto;
        position: relative;
        left: -5%;
        width: 110%;
}
#wrapper h2 {	
	font-size: 3.6rem;
}
	
#resultText strong {
	font-size: 4rem;
}
#quiz {
  height: 500px;
}

  #quiz, #result {
    width: 90%;                 /* 画面に対して9割 */
    max-width: 700px;           /* 最大700pxまで拡大可 */
    margin: 2% auto;
    padding: 5%;
    border-radius: 1.5%;
    background: #ffffff;        /* 背景色は中身だけ */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  #question {
    font-size: 3rem; /* ≒ 20px */
    margin-bottom: 6%;
  }

 #wrapper button {
    font-size: 1.8rem;      /* ≒ 16px */
    padding: 1.2rem 0;    /* 高さ ≒ 48px */
    width: 40%;
    max-width: 300px;
    margin: 2% auto;
    display: block;
    border-radius: 50px;
  }

  #checkBraBtn {
    background: #000;
    color: #fff;
  }

  #resultText {
    font-size: 2rem;  /* ≒ 18px */
    line-height: 1.8;
    margin-top: 4%;
  }

  #resultImg {
    width: 100%;
    height: auto;
    margin-top: 3%;
    border-radius: 2%;
  }
}
