body {
font-family: "Arial", sans-serif;
text-align: center;
background: linear-gradient(to bottom right, #FFF0D4, #FFB380); /* 淡いオレンジからオレンジへのグラデーション */
/*background-color: #f0f8ff;*/
font-size: 20px;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 40px;
padding-bottom: 80px;
color: #444444;
}


#page-footer {
/* ...他のスタイルはそのまま... */
text-align: center;
margin-top: 20px;
font-size: small;
color: #666;
background-color: #f9f9f9;
padding: 8px 0;
border-top: 1px solid #ddd;
position: fixed;
bottom: 0;
width: 100%;
}

#page-footer {
  /* ...他のスタイルはそのまま... */
  text-align: center;
  margin-top: 20px;
  font-size: small;
  color: #666;
  background-color: #f9f9f9;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  width: 100%;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}

#question {
  font-size: 2rem;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 問題表示の細かいレイアウト */
.q-label {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.q-problem {
  font-size: 2.5rem;
}

/* 入力ボックス */
input#answer {
  font-size: 2rem;
  width: 120px;
  height: 60px;
  text-align: center;
  margin-bottom: 20px;
  box-sizing: border-box;
}

/* 汎用ボタンスタイル */
.btn {
  font-size: 1.5rem;
  padding: 10px 20px;
  width: 230px;       /* 固定幅にする */
  max-width: 250px;  /* PCでは最大250px */
  border-radius: 8px;
  background-color: #4CAF50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  color: white;
  border: none;
  transition: background-color 0.3s, transform 0.1s, box-shadow 0.1s;
  display: block;        /* 縦並びにする */
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  margin: 20px auto;     /* 上下15px、左右中央 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn:hover {
  background-color: #45a049;
}

.btn:active {
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(2px);
}

/* スコアとタイマー */
#score,
#timer {
  font-size: 1.3rem;
  margin-top: 10px;
}

#page-footer {
  text-align: center;
  margin-top: 20px;
  font-size: small;
  color: #666;
  /* 背景やパディングもお好みで */
  background-color: #f9f9f9;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  width: 100%;
}
