.diagnosis-start-page {
  background: #fff;
}

.diagnosis-start-main {
  overflow: hidden;
}

.diagnosis-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: #fff;
}

.diagnosis-visual-background {
  position: absolute;
  inset: 0;
  background: url("assets/diagnosis-start-bg.svg") center top / cover no-repeat;
  pointer-events: none;
}

.diagnosis-character-stage {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 900px);
  height: 450px;
  margin: 0 auto;
}

.diagnosis-character {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  filter: none;
}

.diagnosis-character-left {
  width: 31%;
  left: 2%;
  bottom: 5px;
}

.diagnosis-character-center {
  width: 42%;
  left: 29%;
  bottom: 0;
  z-index: 2;
}

.diagnosis-character-right {
  width: 31%;
  right: 2%;
  bottom: 5px;
}

.diagnosis-content {
  width: min(calc(100% - 32px), 960px);
  margin: 0 auto;
  padding: 36px 0 88px;
}

.answer-tip {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 26px;
  align-items: center;
  padding: 34px 42px;
  background: #f1f8ed;
  border: 1px solid #d6e7ca;
  border-radius: 24px;
}

.answer-tip-icon {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 3px solid #399324;
  border-radius: 50%;
  color: #399324;
  background: rgba(255,255,255,.74);
}

.answer-tip-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.answer-tip-copy h1 {
  margin: 0 0 12px;
  color: #168b35;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: .03em;
}

.answer-tip-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 500;
}

.occupation-section {
  padding: 58px 0 0;
}

.diagnosis-section-title {
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .08em;
  text-align: center;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.45;
  font-weight: 850;
  letter-spacing: -.02em;
}

.diagnosis-section-title::before,
.diagnosis-section-title::after {
  content: "";
  width: 34px;
  height: 3px;
  margin-inline: 14px;
  background: #169747;
  border-radius: 999px;
}

.diagnosis-section-title::before {
  transform: rotate(52deg);
}

.diagnosis-section-title::after {
  transform: rotate(-52deg);
}

.diagnosis-section-title strong {
  color: #169747;
  font: inherit;
}

.occupation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.occupation-card {
  position: relative;
  min-height: 94px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid #dde5e0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.occupation-card:hover {
  border-color: #a8d5b7;
  transform: translateY(-1px);
}

.occupation-card:focus-visible {
  outline: 3px solid rgba(5,150,83,.24);
  outline-offset: 3px;
}

.occupation-card.is-selected {
  border: 2px solid #15933a;
  background: #f2faee;
}

.occupation-icon {
  width: 50px;
  height: 50px;
  color: #14943c;
}

.occupation-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.occupation-name {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.occupation-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 29px;
  height: 29px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #15933a;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
}

.occupation-card.is-selected .occupation-check {
  display: grid;
}

.occupation-note {
  margin: 25px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3a4540;
  font-size: 16px;
  text-align: center;
}

.occupation-note span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid #178e3c;
  border-radius: 50%;
  color: #178e3c;
  font-weight: 900;
}

.diagnosis-start-action {
  position: relative;
  padding: 58px 0 0;
  text-align: center;
}

.diagnosis-start-action::after,
.diagnosis-start-action::before {
  content: "";
  position: absolute;
  bottom: -85px;
  width: 190px;
  height: 155px;
  background: url("assets/decor-leaves.svg") center / contain no-repeat;
  opacity: .8;
  pointer-events: none;
}

.diagnosis-start-action::before {
  left: -75px;
  transform: rotate(-8deg);
}

.diagnosis-start-action::after {
  right: -75px;
  transform: scaleX(-1) rotate(-8deg);
}

.diagnosis-start-action h2 {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: clamp(22px, 2.7vw, 31px);
  line-height: 1.5;
  font-weight: 850;
}

.diagnosis-start-action h2 span {
  width: 27px;
  height: 3px;
  background: #15933a;
  border-radius: 999px;
}

.diagnosis-start-action h2 span:first-child {
  transform: rotate(52deg);
}

.diagnosis-start-action h2 span:last-child {
  transform: rotate(-52deg);
}

.diagnosis-start-button {
  width: min(100%, 360px);
  min-height: 58px;
  border: 0;
  cursor: pointer;
  font-size: 19px;
}

.start-flag {
  width: 29px;
  height: 29px;
}

.start-flag svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  .diagnosis-visual {
    min-height: 430px;
  }

  .diagnosis-character-stage {
    height: 390px;
  }

  .occupation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .diagnosis-visual {
    min-height: 330px;
  }

  .diagnosis-character-stage {
    width: calc(100% - 12px);
    height: 305px;
  }

  .diagnosis-character-left {
    width: 34%;
    left: 0;
  }

  .diagnosis-character-center {
    width: 45%;
    left: 27.5%;
  }

  .diagnosis-character-right {
    width: 34%;
    right: 0;
  }

  .diagnosis-content {
    width: min(calc(100% - 32px), 960px);
    padding: 26px 0 70px;
  }

  .answer-tip {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .answer-tip-icon {
    width: 68px;
    height: 68px;
    border-width: 2px;
  }

  .answer-tip-icon svg {
    width: 42px;
    height: 42px;
  }

  .answer-tip-copy h1 {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .answer-tip-copy p {
    font-size: 16px;
    line-height: 1.8;
  }

  .answer-tip-copy p br {
    display: none;
  }

  .occupation-section {
    padding-top: 46px;
  }

  .diagnosis-section-title {
    margin-bottom: 26px;
    gap: .04em;
    font-size: 24px;
  }

  .diagnosis-section-title::before,
  .diagnosis-section-title::after {
    width: 21px;
    margin-inline: 5px;
  }

  .occupation-grid {
    gap: 12px;
  }

  .occupation-card {
    min-height: 82px;
    padding: 12px 10px;
    grid-template-columns: 42px 1fr;
    gap: 8px;
    border-radius: 16px;
  }

  .occupation-icon {
    width: 40px;
    height: 40px;
  }

  .occupation-name {
    font-size: 15px;
  }

  .occupation-check {
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .occupation-note {
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.65;
  }

  .diagnosis-start-action {
    padding: 48px 0 100px;
  }

  .diagnosis-start-action::before,
  .diagnosis-start-action::after {
    bottom: 0;
    width: 150px;
    height: 100px;
  }

  .diagnosis-start-action::before {
    left: -72px;
  }

  .diagnosis-start-action::after {
    right: -72px;
  }

  .diagnosis-start-action h2 {
    gap: 9px;
    font-size: 20px;
  }

  .diagnosis-start-action h2 span {
    width: 18px;
  }

  .diagnosis-start-button {
    width: 100%;
    font-size: 18px;
  }
}

@media (max-width: 390px) {
  .answer-tip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .answer-tip-icon {
    margin: 0 auto;
  }

  .occupation-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 105px;
  }

  .occupation-name {
    font-size: 14px;
  }
}
