@charset "utf-8";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    sans-serif;
  background: #f7f7f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
.wrap {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  height: 100%;
  margin-top: 40px;
}
@media (max-width: 1064px) {
  .wrap.wrap_sp {
    margin-left: 40px;
    margin-right: 40px;
  }
}
.screen {
  display: none;
  animation: fadeIn 0.3s ease;
  padding: 24px 20px 40px;
}
.screen.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e1f5ee;
  color: #0f6e56;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin-bottom: 6px;
}
.subtitle {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.3s;
}
.step-dot.active {
  background: #1bbfbf;
}
.step-dot.done {
  background: #9fe1cb;
}
.q-label {
  font-size: 11px;
  font-weight: 600;
  color: #1bbfbf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.q-text {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
  margin-bottom: 16px;
}
.option-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: inherit;
}
.option-btn:hover {
  border-color: #1bbfbf;
  background: #e1f5ee;
}
.option-btn.selected {
  border-color: #1bbfbf;
  background: #e1f5ee;
}
.option-btn.selected .opt-radio {
  border-color: #1bbfbf;
}
.option-btn.selected .opt-radio::after {
  transform: translate(-50%, -50%) scale(1);
}
.opt-radio {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  position: relative;
  margin-top: 3px;
  transition: all 0.2s;
  background: #fff;
}
.opt-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #1bbfbf;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s;
}
.opt-tag {
  font-weight: 600;
  color: #0f6e56;
  margin-bottom: 5px;
}
.opt-body {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
}
.opt-sub {
  font-size: 14px;
  color: #999;
  margin-top: 4px;
  line-height: 1.6;
}
.next-btn {
  width: 100%;
  padding: 15px;
  background: #1bbfbf;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  opacity: 0.35;
  pointer-events: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.next-btn.enabled {
  opacity: 1;
  pointer-events: auto;
}
.next-btn.enabled:hover {
  background: #0f6e56;
}
.next-btn.enabled:active {
  transform: scale(0.98);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  margin-bottom: 16px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.back-link:hover {
  color: #555;
}
.progress-bar {
  height: 3px;
  background: #eee;
  border-radius: 2px;
  margin-bottom: 20px;
}
.progress-fill {
  height: 100%;
  background: #1bbfbf;
  border-radius: 2px;
  transition: width 0.4s;
}
.result-header {
  background: #1bbfbf;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  color: white;
}
.challenge_category {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.challenge_name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.challenge_name i.ti::before {
  font-size: 24px;
}
.diagnosis_result {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 4px;
}
.result_color {
  color: #f5fc7f;
}
.diagnosis_result_lead {
  font-size: 13px;
  opacity: 1;
  line-height: 1.6;
}
.result-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  margin-bottom: 12px;
}
.result-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-card-body {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  padding-left: 20px;
}
.service-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e1f5ee;
  color: #0f6e56;
  border: 1px solid #9fe1cb;
  margin: 3px 10px 3px 0;
  text-decoration: none;
}
.service-tag:hover {
  opacity: 0.8;
}
.line-btn {
  width: 100%;
  padding: 15px;
  background: #ff6b81;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.4;
  text-align: center;
}
.line-btn:hover {
  background: #e0556a;
}
.line-btn:active {
  transform: scale(0.98);
}
.restart-link {
  width: 100%;
  padding: 12px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}
.restart-link:hover {
  background: #f5f5f5;
}
.screen-label {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 14px;
}

.recommended_service {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 6px;
  font-weight: 600;
}

.one_phrase { display: inline-block;}

@media (max-width: 540px) {
        .opt-body {
          flex: 1;
          font-size: 16px;
        }
        .opt-sub {
          font-size: 11px;
        }
        .result-card-title {
          font-size: 16px;
        }
        .result-card-body {
          font-size: 16px;
        }
        .diagnosis_result {
          font-size: 16px;
        }
        .wrap.wrap_sp {
          margin: 0;
        }
        .screen {
          padding: 34px 30px 70px;
        }

}
@media (max-width: 390px) {
        .result-card-title {
          margin-bottom: 8px;
        }
}