/* ───────────── 全要素に適用 ──────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru&display=swap');

/* グローバルフォント指定 */
body {
  font-family: 'Kiwi Maru', serif;
}

/* ───────────── 質問全体のラッパー ──────────── */
#question_wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* ───────────── 選択肢ブロック ──────────── */
ul#choices {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul#choices li {
  text-align: center;
}
ul#choices li button {
  display: block;
  width: 70%;
  margin: 0 auto 0.3rem;
  padding: 0.7em;
  font-size: 1.25rem;
  font-family: inherit;
  border-radius: 10px;
  background: #fff5e3;
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
ul#choices li button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* モバイル文字サイズ調整 */
@media screen and (max-width: 768px) {
  ul#choices li button {
    font-size: 0.8rem;
  }
}

/* ───────────── 質問ブロック ──────────── */
.yesno_q {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  margin: 0 auto 1.5rem;
  padding: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  font-family: inherit;
  border: 1px solid #333;
  border-radius: 10px;
  text-align: center;
}

/* モバイル文字サイズ調整 */
@media screen and (max-width: 768px) {
  .yesno_q {
    font-size: 0.8rem;
    width: 95%;
    padding: 0.8rem;
  }
}

/* 見出し（Q1など）のバッジ */
.yesno_q dt span {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 1rem;
  font-size: 2rem;
  font-weight: bold;
  background: #fff5e3;
  color: #000;
  border-radius: 10px;
  text-align: center;
}
/* モバイルバッジサイズ */
@media screen and (max-width: 768px) {
  .yesno_q dt span {
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* 質問文（dt／dd）の余白リセット＆中央揃え */
.yesno_q dt,
.yesno_q dd {
  width: auto;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* 改行ごとの段落が <p> だった場合は inline-block に */
.yesno_q dd p {
  display: inline-block;
  margin: 0.5em 0;
  text-align: center;
}
