/* 共通設定 */
html {
  display: flex;
  justify-content: center;
}

body {
  font-family: sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 500px;
}

img {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main {
  width: 100%;
  overflow-x: hidden;
}

/* lp29a風：ページ切り替え（上に表示させる感じ） */
.main-page {
  display: block;
}

.result-page {
  display: none;
}

.lp-image {
  display: block;
  width: 100%;
  height: auto;
}
.lp-background {
  width: 100%;
  display: block;
}

/* ファーストビュー：fvbtnをfv.webpの上に重ねる */
.cta-wrapper {
  position: relative;
  width: 100%;
}

.cta-wrapper .btn1,
.cta-wrapper .btn2,
.cta-wrapper .btn3 {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;
}

/* fvbtn / endbtn / ctabtn：topを個別に指定（style.cssで調節） */
.cta-wrapper--fv .btn1 { top: 91%; }
.q7-wrapper .btn2 { top: 95%; }
.result-page .cta-wrapper .btn3 { top: 91%; }

.cta-wrapper .btn1 img,
.cta-wrapper .btn2 img,
.cta-wrapper .btn3 img {
  display: block;
  width: 95%;
  max-width: 500px; /* 約2倍表示（調節可：80%=元サイズ、160%=約2倍） */
  margin: 0 auto;
}

/* q1〜q6：画像の上に3つの選択ボタン */
.quiz-wrapper {
  position: relative;
  width: 100%;
}

.quiz-wrapper input[type="radio"] {
  display: none;
}

.quiz-buttons {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 2.6vw, 13px);
  z-index: 1;
  width: 82%;
  max-width: 500px;
}

/* q1〜q6：ボタン位置のtopを個別に指定（style.cssで調節） */
.quiz-wrapper--q1 .quiz-buttons {
top: 74%;
}
.quiz-wrapper--q2 .quiz-buttons {
  top: 74%;
}
.quiz-wrapper--q3 .quiz-buttons {
  top: 73.5%;
}
.quiz-wrapper--q4 .quiz-buttons {
  top: 74%;
}
.quiz-wrapper--q5 .quiz-buttons {
  top: 76.5%;
}
.quiz-wrapper--q6 .quiz-buttons {
  top: 75%;
}

.quiz-btn {
  display: block;
  width: 100%;
  padding: 1.15em 1.55em;
  background-color: #fffcf0;
  border: 2px solid #dddddd;
  color: #354d50;
  font-size: clamp(9px, 2.8vw, 14px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.quiz-btn:hover {
  opacity: 0.9;
}

[id$="-opt1"]:checked + .quiz-btn--top {
  background-color: #dd4570;
  border-color: #dd4570;
  color: #ffffff;
}

[id$="-opt2"]:checked + .quiz-btn--mid {
  background-color: #6ebd6e;
  border-color: #6ebd6e;
  color: #ffffff;
}

[id$="-opt3"]:checked + .quiz-btn--bottom {
  background-color: #5298ce;
  border-color: #5298ce;
  color: #ffffff;
}

.q7-wrapper input[type="radio"] {
  display: none;
}
.q7-buttons {
  position: absolute;
  left: 50%;
  top: 86%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: clamp(6px, 2.8vw, 14px);
  z-index: 1;
  width: 80%;
  max-width: 500px;
}

.q7-btn {
  flex: 1;
  padding: 1em 1.15em;
  background-color: #fffcf0;
  border: 2px solid #dddddd;
  color: #354d50;
  font-size: clamp(9px, 3.2vw, 17px);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.q7-btn:hover {
  opacity: 0.9;
}

#q7-opt1:checked + .q7-btn--left {
  background-color: #dd4570;
  border-color: #dd4570;
  color: #ffffff;
}

#q7-opt2:checked + .q7-btn--right {
  background-color: #354d5d;
  border-color: #354d5d;
  color: #ffffff;
}

/* CTAボタン無効状態 */
.btn2.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn2.disabled img {
  filter: grayscale(50%);
}

/* フッター */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 45px;
}

.footer-links a {
  color: #354d5d;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1.2px solid currentColor;
}
