/* ============================================================
   sweets-quiz.css
   ============================================================ */

/* ---------- 診断専用ページ：cta-section を画面いっぱいの高さに ---------- */
/* common.css の .cta-section は他ページ（TOPページ等）でも使い回すため、
   高さの指定はこのファイル（診断ページのみ読み込み）側で上書きします */
.cta-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 33px 20px;
}

/* ---------- カードの見た目：角切り落とし＋実線枠＋内側の点線枠（白背景） ---------- */
.quiz-app.cta-card {
  width: 100%;
  max-width: 396px;
  /* height: calc(100vh - 66px);
  height: calc(100dvh - 66px); */
  /* min-height: 754px; */
  /* padding: 34px 26px; */
}

.quiz-app .cta_bd {
  max-width: 396px;
  height: calc(100% - 78px);
  min-height: 636px;
  display: flex;
  align-items: center;
}
/* 実際のコンテンツ（スタート／質問／結果画面）は一番上のレイヤーに */
.quiz-app.cta-card .cta-card_inner {
  width: 80%;
  max-width: 322px;
  position: relative;
  z-index: 3;
  padding: 40px 0;
}

/* ---------- 土台：画面切り替え時にカードの高さが飛ばないように ---------- */
.quiz-app__viewport {
  position: relative;
  width: 100%;
}

.quiz-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.quiz-screen.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}
.quiz-screen.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.quiz-heading {
  margin-bottom: 30px;
}

.quiz-lead {
  font-size: 16px;
  line-height: 1.875;
  text-align: center;
  margin: 25px 0;
}

/* ---------- 共通ボタン（はじめる／詳しくはこちら／もう一度） ---------- */
.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  padding: 8px 15px;
  margin: 4px auto 0;
  background: #922b2d;
  color: #fff;
  font-family: ten-mincho, "Shippori Mincho", serif;
  font-size: 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s;
  text-decoration: none;
}
.quiz-btn:hover {
  opacity: 0.85;
}

.quiz-btn--ghost {
  background: transparent;
  color: #8f2a2b;
  box-shadow: none;
  text-decoration: underline;
  font-size: 14px;
  margin-top: 0;
  padding: 6px 10px;
  max-width: none;
}

/* ---------- 質問画面 ---------- */
.quiz-question__eyebrow {
  text-align: center;
}
.quiz-question__eyebrow .accent {
  display: block;
  font-size: 32px;
  font-weight: 600;
  padding-top: 10px;
  margin-bottom: 5px;
  position: relative;
}
.quiz-question__eyebrow .accent img {
  width: 5em;
  max-width: initial;

  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* 進捗ドット：全5問中、現在地の目安を表示（Bで即確定するため必ず5個消化するとは限りません） */
.quiz-progress {
  display: flex;
  gap: 6px;
  margin: 10px 0 18px;
}
.quiz-progress i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(69, 43, 22, 0.2);
}
.quiz-progress i.is-done {
  background: #8f2a2b;
}

.quiz-question__text {
  font-size: 24px;
  line-height: 1.57;
  text-align: center;
  min-height: 4.71em;
  margin: 0 0 52px;
  white-space: pre-line;
}

.quiz-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 15px;
}

.quiz-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 12px 5px 20px;
  background: #8f2a2b;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.quiz-option:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}
.quiz-option:active {
  transform: translateY(0);
}

.quiz-option__badge {
  width: 1.52em;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #fff;
  color: #8f2a2b;
  font-family: "Cormorant Garamond", serif;
  font-style: normal;
  font-weight: 600;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.quiz-option__text {
  font-family: ten-mincho, "Shippori Mincho", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.22;
  color: #fff;
  text-align: center;
  margin: 0;
}
.quiz-option__small {
  display: block;
  font-family: ten-mincho, "Shippori Mincho", serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  margin: 2px 0 0;
}

/* ---------- 結果画面 ---------- */
.quiz-result__copy {
  font-size: 21px;
  line-height: 1.56;
  text-align: center;
  margin: 0 0 5px;
  white-space: pre-line;
}
.quiz-result__desc {
  font-size: 12px;
  line-height: 1.58;
  text-align: center;
  margin: 0 0 25px;
  white-space: pre-line;
}
.quiz-result__photo {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 14px;
}
.quiz-result__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-result__name {
  font-family: source-han-sans-cjk-ja, "Noto Sans JP", sans-serif;
  font-style: normal;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.923;
  letter-spacing: 0.06em;
  font-feature-settings: "palt";
  width: 100%;
  max-width: 250px;
  /* min-height: 5.76em; */
  margin: 0 0 15px;
}
.quiz-result__price {
  font-size: 19px;
  line-height: 1.1;
  color: #922b2d;
  width: 100%;
  max-width: 250px;
  margin: 0 0 10px;
}

.quiz-result__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 10px; */
  width: 100%;
}
.quiz-result__more {
  display: inline-block;
  margin: 18px 0 10px;
  font-family: source-han-sans-cjk-ja, "Noto Sans JP", sans-serif;
  font-style: normal;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  color: #333;
  text-align: center;
  text-decoration: none;
}
.quiz-result__more:hover {
  text-decoration: underline;
}
