:root {
  --dx-green: #237a3d;
  --dx-deep: #15542b;
  --dx-dark: #102d1b;
  --dx-pale: #f1f8f2;
  --dx-cream: #fbf8f0;
  --dx-line: #dce9de;
  --dx-orange: #ff7a1a;
  --dx-ink: #172019;
  --dx-muted: #657068;
  --dx-shadow: 0 18px 55px rgba(20, 77, 39, 0.13);
}
html {
  scroll-behavior: smooth;
}
.bw-diagnosis-main {
  color: var(--dx-ink);
  background: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
  line-height: 1.75;
}
.bw-diagnosis-main * {
  box-sizing: border-box;
}
.dx-wrap {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}
.dx-hero {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 92% 18%,
      rgba(81, 161, 93, 0.18),
      transparent 26%
    ),
    linear-gradient(135deg, #f8fcf8, #eef7ef 62%, #fbf7eb);
}
.dx-hero-grid {
  min-height: 570px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 80px;
  padding: 76px 0;
}
.dx-kicker,
.dx-section-heading > span,
.dx-result-head > span,
.dx-consult-panel > div > span {
  display: block;
  margin-bottom: 13px;
  color: var(--dx-green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}
.dx-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.3;
  font-weight: 950;
  letter-spacing: 0.02em;
}
.dx-hero h1 em {
  color: var(--dx-green);
  font-style: normal;
}
.dx-hero-copy > p {
  max-width: 700px;
  margin: 0 0 25px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}
.dx-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 27px;
}
.dx-hero-points span {
  padding: 7px 14px;
  border: 1px solid #bcd8c1;
  border-radius: 999px;
  color: var(--dx-deep);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}
.dx-primary-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--dx-green), var(--dx-deep));
  box-shadow: 0 12px 28px rgba(35, 122, 61, 0.25);
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}
.dx-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(35, 122, 61, 0.3);
}
.dx-hero-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0 16px;
  padding: 35px;
  color: #fff;
  background: linear-gradient(150deg, var(--dx-deep), #277e40);
  border-radius: 26px;
  box-shadow: var(--dx-shadow);
  font-size: 18px;
  font-weight: 900;
}
.dx-card-number {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 14px;
}
.dx-hero-card > div:nth-of-type(even) {
  display: flex;
  align-items: center;
}
.dx-hero-card > span {
  grid-column: 1;
  width: 1px;
  height: 28px;
  margin: 7px auto;
  background: rgba(255, 255, 255, 0.35);
}
.dx-section {
  padding: 94px 0;
}
.dx-park-section {
  padding-top: 38px;
}
.dx-section-heading {
  max-width: 790px;
  margin: 0 auto 38px;
  text-align: center;
}
.dx-section-heading h1,
.dx-section-heading h2,
.dx-result-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.35;
  font-weight: 950;
}
.dx-section-heading p,
.dx-result-head p {
  margin: 0;
  color: var(--dx-muted);
  font-weight: 700;
}
.dx-park-shell {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background: #0b1d2b;
  border-radius: 25px;
  box-shadow: var(--dx-shadow);
}
.dx-park-frame {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  min-height: 540px;
  border: 0;
  border-radius: 17px;
  background: #061523;
}
.dx-park-guide {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 11px 16px;
  color: #fff;
  background: rgba(5, 22, 33, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.dx-park-guide b {
  color: #9ce2ad;
}
.dx-house-fallback {
  margin-top: 30px;
}
.dx-house-fallback h3 {
  margin: 0 0 14px;
  font-size: 16px;
  text-align: center;
}
.dx-house-picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.dx-house-picks button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--dx-line);
  border-radius: 999px;
  color: var(--dx-deep);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.dx-house-picks button:hover,
.dx-house-picks button.is-selected {
  color: #fff;
  background: var(--dx-green);
  border-color: var(--dx-green);
}
.dx-selected {
  position: sticky;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px auto 0;
  padding: 18px 20px 18px 25px;
  background: #fff;
  border: 1px solid var(--dx-line);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(15, 55, 29, 0.2);
}
.dx-selected[hidden] {
  display: none;
}
.dx-selected span,
.dx-selected strong {
  display: block;
}
.dx-selected span {
  color: var(--dx-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.dx-selected strong {
  color: var(--dx-deep);
  font-size: 18px;
}
.dx-quiz-section {
  background: var(--dx-pale);
}
.dx-quiz-wrap {
  max-width: 950px;
}
.dx-progress-area {
  margin-bottom: 32px;
}
.dx-progress-area > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--dx-deep);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.dx-progress {
  height: 7px;
  overflow: hidden;
  background: #d8e7db;
  border-radius: 999px;
}
.dx-progress i {
  display: block;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, var(--dx-green), #60ac68);
  border-radius: 999px;
  transition: width 0.25s;
}
.dx-question {
  margin: 0;
  padding: 0;
  border: 0;
}
.dx-question[hidden] {
  display: none;
}
.dx-question legend {
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  text-align: center;
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 950;
  line-height: 1.45;
}
.dx-question legend small {
  display: block;
  margin-bottom: 9px;
  color: var(--dx-green);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.dx-question legend em {
  display: block;
  margin-top: 6px;
  color: var(--dx-muted);
  font-size: 12px;
  font-style: normal;
}
.dx-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}
.dx-answer-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.dx-answer-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.dx-answer-grid label {
  position: relative;
  cursor: pointer;
}
.dx-answer-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dx-answer-grid label > span {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(19, 67, 34, 0.07);
  transition: 0.18s;
}
.dx-answer-grid label:hover > span {
  border-color: #b5d5bb;
  transform: translateY(-2px);
}
.dx-answer-grid input:checked + span {
  color: var(--dx-deep);
  background: #e4f3e7;
  border-color: var(--dx-green);
  box-shadow: 0 10px 28px rgba(35, 122, 61, 0.15);
}
.dx-answer-grid input:focus-visible + span {
  outline: 3px solid var(--dx-orange);
  outline-offset: 3px;
}
.dx-answer-grid b {
  display: block;
  font-size: 16px;
}
.dx-answer-grid small {
  display: block;
  margin-top: 5px;
  color: var(--dx-muted);
  font-size: 12px;
}
.dx-form-error {
  margin: 18px 0 0;
  color: #bb2a2a;
  font-weight: 900;
  text-align: center;
}
.dx-form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}
.dx-back-button,
.dx-retry-button {
  min-height: 54px;
  padding: 12px 25px;
  border: 1px solid #bad0bf;
  border-radius: 999px;
  color: var(--dx-deep);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.dx-result-section {
  background: linear-gradient(180deg, #fff, #f3f8f4);
}
.dx-result-head {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
}
.dx-type-card {
  max-width: 800px;
  margin: 0 auto 38px;
  padding: 29px;
  text-align: center;
  color: #fff;
  background: linear-gradient(130deg, var(--dx-deep), var(--dx-green));
  border-radius: 22px;
  box-shadow: var(--dx-shadow);
}
.dx-type-card span,
.dx-type-card strong {
  display: block;
}
.dx-type-card span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.dx-type-card strong {
  margin: 5px 0;
  font-size: clamp(25px, 4vw, 38px);
}
.dx-type-card p {
  margin: 0;
  color: #dcefe0;
  font-weight: 700;
}
.dx-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  counter-reset: rank;
}
.dx-result-card {
  position: relative;
  padding: 31px 26px;
  background: #fff;
  border: 1px solid var(--dx-line);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 63, 31, 0.08);
  counter-increment: rank;
}
.dx-result-card:first-child {
  border: 2px solid #d3aa4c;
  transform: translateY(-8px);
}
.dx-result-card:before {
  content: counter(rank);
  position: absolute;
  top: 15px;
  right: 17px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--dx-green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}
.dx-result-card:first-child:before {
  background: #bd8b1f;
}
.dx-result-card .dx-match {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 10px;
  color: var(--dx-green);
  background: var(--dx-pale);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}
.dx-result-card h3 {
  margin: 0 45px 5px 0;
  color: var(--dx-deep);
  font-size: 20px;
  line-height: 1.45;
}
.dx-result-card .dx-model {
  min-height: 28px;
  margin: 0 0 18px;
  color: var(--dx-muted);
  font-size: 12px;
  font-weight: 800;
}
.dx-result-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}
.dx-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.dx-result-tags span {
  padding: 5px 8px;
  background: #f2f5f2;
  border-radius: 7px;
  color: #4d5c51;
  font-size: 10px;
  font-weight: 800;
}
.dx-result-note {
  margin: 25px 0 50px;
  color: var(--dx-muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}
.dx-consult-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 45px;
  padding: 42px;
  color: #fff;
  background: var(--dx-dark);
  border-radius: 25px;
}
.dx-consult-panel > div > span {
  color: #9bd9a7;
}
.dx-consult-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3.5vw, 39px);
  line-height: 1.4;
}
.dx-consult-panel p {
  margin: 0;
  color: #d3e3d7;
}
.dx-consult-actions {
  display: grid;
  gap: 10px;
}
.dx-consult-actions a {
  min-height: 55px;
  display: grid;
  place-items: center;
  padding: 12px 18px;
  color: var(--dx-deep) !important;
  background: #fff;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
}
.dx-consult-actions a:last-child {
  color: #fff !important;
  background: #06c755;
}
.dx-retry-button {
  display: block;
  margin: 28px auto 0;
}
.dx-about {
  background: var(--dx-cream);
}
.dx-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dx-about-grid > div {
  padding: 28px;
  background: #fff;
  border: 1px solid #e7e1d5;
  border-radius: 17px;
}
.dx-about-grid b {
  display: block;
  margin-bottom: 8px;
  color: var(--dx-deep);
  font-size: 18px;
}
.dx-about-grid p {
  margin: 0;
  color: var(--dx-muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .dx-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .dx-hero-card {
    display: none;
  }
  .dx-consult-panel {
    grid-template-columns: 1fr;
  }
  .dx-result-grid {
    grid-template-columns: 1fr;
  }
  .dx-result-card:first-child {
    transform: none;
  }
  .dx-answer-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .dx-wrap {
    width: min(100% - 28px, 1180px);
  }
  .dx-section {
    padding: 65px 0;
  }
  .dx-park-section {
    padding-top: 24px;
  }
  .dx-hero-grid {
    min-height: auto;
    padding: 55px 0;
  }
  .dx-hero h1 {
    font-size: 38px;
  }
  .dx-hero-copy > p {
    font-size: 14px;
  }
  .dx-park-shell {
    padding: 6px;
    border-radius: 17px;
  }
  .dx-park-frame {
    height: 62vh;
    min-height: 430px;
    border-radius: 12px;
  }
  .dx-park-guide {
    right: 14px;
    top: 14px;
    left: 14px;
    justify-content: center;
    padding: 9px;
    font-size: 10px;
  }
  .dx-selected {
    position: relative;
    bottom: auto;
    display: grid;
    text-align: center;
  }
  .dx-selected .dx-primary-button {
    width: 100%;
  }
  .dx-answer-grid,
  .dx-answer-grid-2,
  .dx-answer-grid-3 {
    grid-template-columns: 1fr;
  }
  .dx-answer-grid label > span {
    min-height: 92px;
    padding: 17px;
  }
  .dx-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dx-form-actions .dx-primary-button:only-child {
    grid-column: 1/-1;
  }
  .dx-consult-panel {
    padding: 28px;
  }
  .dx-about-grid {
    grid-template-columns: 1fr;
  }
  .dx-house-picks {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 7px;
  }
  .dx-house-picks button {
    flex: 0 0 auto;
  }
  .dx-result-grid {
    gap: 12px;
  }
}
