@charset "UTF-8";
/*==================================================================================================
	家づくり診断（page-shindan.php）

	配色は header.php で定義しているカスタムプロパティ（--u-ink / --u-cta ほか）を参照し、
	万一読み込まれなかった場合に備えてフォールバック値を持たせている。
	コンパイル : shared/scss/_page-shindan.scss → shared/css/shindan.css
==================================================================================================*/
.shindan {
  color: var(--u-ink, #2f2a25);
}
.shindan__lead {
  margin-bottom: clamp(2em, 5vw, 3em);
}
.shindan__lead p {
  line-height: 1.9;
}
.shindan__lead strong {
  font-weight: 700;
  color: var(--u-wood-d, #7a5c3a);
}
.shindan {
  /* --- 進捗 --------------------------------------------------- */
}
.shindan__progress {
  position: sticky;
  top: 70px;
  z-index: 10;
  background: #fff;
  padding: 0.8em 0 1em;
  margin-bottom: 1.5em;
}
@media screen and (max-width: 860px) {
  .shindan__progress {
    top: 60px;
  }
}
.shindan__progressText {
  font-size: 90%;
  line-height: 1.4;
  margin-bottom: 0.5em;
  color: var(--u-sub, #6e6459);
}
.shindan__progressText span {
  font-family: "Afacad", "Noto Sans JP", sans-serif;
  font-size: 150%;
  font-weight: 700;
  color: var(--u-cta, #c2621c);
  margin-right: 0.1em;
}
.shindan__progressBar {
  width: 100%;
  height: 4px;
  background: #ebebeb;
  overflow: hidden;
}
.shindan__progressBar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--u-cta, #c2621c);
  transition: width 0.4s ease;
}
.shindan {
  /* --- 設問 --------------------------------------------------- */
}
.shindan__qList {
  display: flex;
  flex-direction: column;
  gap: clamp(1em, 3vw, 1.5em);
}
.shindan__q {
  border: 1px solid var(--u-line, rgba(47, 42, 37, 0.2));
  background: #fff;
  padding: clamp(1.2em, 4vw, 2em);
}
.shindan__q::after {
  content: "";
  display: block;
  clear: both;
}
.shindan__qTtl {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin: 0 0 1em;
  padding: 0;
  line-height: 1.5;
  float: left;
  width: 100%;
}
.shindan__qNum {
  flex: none;
  background: var(--u-wood-d, #7a5c3a);
  color: #fff;
  font-family: "Afacad", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 90%;
  line-height: 1;
  padding: 0.45em 0.7em 0.35em;
  letter-spacing: 0.02em;
}
.shindan__qLabel {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 600;
}
.shindan__optList {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
}
@media screen and (max-width: 560px) {
  .shindan__optList {
    flex-direction: column;
    gap: 0.6em;
  }
}
.shindan__opt {
  position: relative;
  display: block;
  cursor: pointer;
}
.shindan__opt input[type=radio] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.shindan__optText {
  display: flex;
  align-items: center;
  gap: 0.6em;
  border: 1px solid var(--u-line, rgba(47, 42, 37, 0.2));
  border-radius: 999px;
  padding: 0.7em 1.4em 0.7em 1.1em;
  line-height: 1.5;
  font-size: 95%;
  transition: 0.3s;
  background: #fff;
}
.shindan__optText::before {
  content: "";
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1px solid var(--u-line-s, rgba(47, 42, 37, 0.35));
  background: #fff;
  transition: 0.3s;
}
@media screen and (max-width: 560px) {
  .shindan__optText {
    padding: 0.7em 1em;
  }
}
.shindan__opt:hover .shindan__optText {
  border-color: var(--u-wood, #a8825a);
  background: rgba(168, 130, 90, 0.06);
}
.shindan__opt input[type=radio]:focus-visible + .shindan__optText {
  outline: 2px solid var(--u-cta, #c2621c);
  outline-offset: 2px;
}
.shindan__opt input[type=radio]:checked + .shindan__optText {
  border-color: var(--u-cta, #c2621c);
  background: rgba(194, 98, 28, 0.08);
  font-weight: 600;
}
.shindan__opt input[type=radio]:checked + .shindan__optText::before {
  border-color: var(--u-cta, #c2621c);
  background: var(--u-cta, #c2621c);
  box-shadow: inset 0 0 0 3px #fff;
}
.shindan {
  /* --- 送信 --------------------------------------------------- */
}
.shindan__alert {
  color: #d04437;
  font-size: 90%;
  margin-top: 1.5em;
  text-align: center;
}
.shindan__submitArea {
  text-align: center;
  margin-top: clamp(2em, 5vw, 3em);
}
.shindan__submit {
  appearance: none;
  border: none;
  background: var(--u-cta, #c2621c);
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.6rem, 2vw, 1.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 1.2em 3em;
  max-width: 100%;
  min-width: 18em;
  cursor: pointer;
  transition: 0.3s;
}
.shindan__submit:hover {
  background: var(--u-cta-h, #a95315);
}
.shindan__submit:disabled {
  background: #cfc9c2;
  color: #fff;
  cursor: not-allowed;
}
@media screen and (max-width: 560px) {
  .shindan__submit {
    min-width: 100%;
    padding: 1.2em 1em;
  }
}
.shindan {
  /* --- 結果 --------------------------------------------------- */
}
.shindan__result {
  margin-top: clamp(3em, 8vw, 5em);
  outline: none;
}
.shindan__resultLead {
  text-align: center;
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
  color: var(--u-sub, #6e6459);
  letter-spacing: 0.08em;
  margin-bottom: 1em;
  position: relative;
}
.shindan__resultLead::after {
  content: "";
  display: block;
  width: 1px;
  height: 2em;
  background: var(--u-line-s, rgba(47, 42, 37, 0.35));
  margin: 0.8em auto 0;
}
.shindan__resultCard {
  border: 1px solid var(--u-wood, #a8825a);
  background: #fff;
  padding: clamp(2em, 6vw, 3.5em) clamp(1.2em, 5vw, 3em);
  text-align: center;
  position: relative;
}
.shindan__resultMark {
  font-family: "Afacad", "Noto Sans JP", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--u-wood, #a8825a);
  margin-bottom: 0.3em;
}
.shindan__resultCatch {
  font-size: clamp(1.4rem, 1.8vw, 1.6rem);
  color: var(--u-wood-d, #7a5c3a);
  letter-spacing: 0.06em;
  margin-bottom: 0.6em;
}
.shindan__resultName {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2em;
}
.shindan__resultPrice {
  font-family: "Afacad", "Noto Sans JP", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--u-cta, #c2621c);
  letter-spacing: 0.02em;
}
.shindan__resultThumb {
  margin: 1.5em auto 0;
  max-width: 640px;
}
.shindan__resultThumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
}
.shindan__resultDesc {
  margin-top: 1.5em;
  text-align: left;
  line-height: 2;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.shindan__answerBox {
  margin-top: clamp(2em, 5vw, 3em);
  background: #f6f5f5;
  padding: clamp(1.2em, 4vw, 2em);
}
.shindan__answerTtl {
  font-size: clamp(1.6rem, 2vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--u-line, rgba(47, 42, 37, 0.2));
}
.shindan__answerList {
  display: grid;
  grid-template-columns: 14em 1fr;
  gap: 0.4em 1em;
  font-size: 93%;
  line-height: 1.7;
}
.shindan__answerList dt {
  color: var(--u-sub, #6e6459);
}
.shindan__answerList dd {
  font-weight: 600;
}
@media screen and (max-width: 560px) {
  .shindan__answerList {
    grid-template-columns: 1fr;
    gap: 0 0;
  }
  .shindan__answerList dt {
    margin-top: 0.8em;
    font-size: 90%;
  }
}
.shindan__note {
  font-size: 82%;
  line-height: 1.8;
  color: var(--u-sub, #6e6459);
  margin-top: 1.5em;
}
.shindan__cta {
  margin-top: clamp(2.5em, 6vw, 4em);
  background: #f6f5f5;
  padding: clamp(1.5em, 5vw, 3em);
  text-align: center;
}
.shindan__ctaTtl {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.5em;
}
.shindan__ctaText {
  font-size: 93%;
  line-height: 1.9;
  color: var(--u-sub, #6e6459);
}
.shindan__retryArea {
  margin-top: 1.5em;
}
.shindan__retry {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 90%;
  color: var(--u-sub, #6e6459);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.5em;
}
.shindan__retry:hover {
  text-decoration: none;
  color: var(--u-ink, #2f2a25);
}
.shindan {
  /* --- プラン一覧 ---------------------------------------------- */
}
.shindan__planList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1em, 3vw, 1.5em);
  margin-top: clamp(2em, 5vw, 3em);
}
@media screen and (max-width: 767px) {
  .shindan__planList {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 560px) {
  .shindan__planList {
    grid-template-columns: 1fr;
  }
}
.shindan__planItem {
  background: #fff;
  border: 1px solid var(--u-line, rgba(47, 42, 37, 0.2));
  padding: clamp(1.2em, 3vw, 1.8em) 1em;
  text-align: center;
  transition: 0.3s;
}
.shindan__planItem.-current {
  border-color: var(--u-cta, #c2621c);
  box-shadow: 0 8px 20px rgba(194, 98, 28, 0.15);
  position: relative;
}
.shindan__planItem.-current::before {
  content: "あなたにおすすめ";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: var(--u-cta, #c2621c);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 0.5em 1em;
  white-space: nowrap;
}
.shindan__planThumb {
  margin-bottom: 1em;
}
.shindan__planThumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
}
.shindan__planMark {
  font-family: "Afacad", "Noto Sans JP", sans-serif;
  font-size: 130%;
  line-height: 1;
  color: var(--u-wood, #a8825a);
  margin-bottom: 0.3em;
}
.shindan__planName {
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.5;
}
.shindan__planPrice {
  font-family: "Afacad", "Noto Sans JP", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--u-cta, #c2621c);
  margin-bottom: 0.3em;
}
.shindan__planCatch {
  font-size: 85%;
  line-height: 1.7;
  color: var(--u-sub, #6e6459);
}

/* 診断ページのボタンリストは2列で並べる */
.shindan__cta .btnList {
  margin-top: 2em;
}
.shindan__cta .btnList .btnArea .basicBtn {
  max-width: 100%;
  text-align: center;
}
.shindan__cta .btnList {
  /* 2つ目（モデルハウス見学）は主導線と色を分ける */
}
.shindan__cta .btnList .btnArea:nth-child(2) .basicBtn,
.shindan__cta .btnList .btnArea:nth-child(2) .basicBtn.-black {
  background-color: var(--u-wood-d, #7a5c3a);
}
.shindan__cta .btnList .btnArea:nth-child(2) .basicBtn:hover,
.shindan__cta .btnList .btnArea:nth-child(2) .basicBtn.-black:hover {
  background-color: var(--u-ink, #2f2a25);
}

@media print {
  .shindan__form,
  .shindan__retryArea {
    display: none;
  }
}
