.sdm-diagnosis {
  --sdm-theme-color: #009FE8;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(0,159,232,.10) 0%, rgba(224,242,254,.9) 100%);
  border-radius: 20px;
  padding: 36px 28px;
  margin: 32px auto;
  color: #334155;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}
.sdm-diagnosis *, .sdm-diagnosis *::before, .sdm-diagnosis *::after { box-sizing: border-box; }
.sdm-container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 42px 48px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 159, 232, 0.06);
}
.sdm-title {
  background: transparent !important;
  box-shadow: none !important;
  font-size: 24px !important;
  line-height: 1.45 !important;
  text-align: center;
  color: #0f172a !important;
  margin: 0 0 12px !important;
  font-weight: 700 !important;
  border: 0 !important;
  padding: 0 !important;
}
.sdm-subtitle {
  font-size: 14px;
  color: #64748b;
  text-align: center;
  margin: 0 auto 34px;
  max-width: 560px;
  line-height: 1.7;
}
.sdm-progress-bar {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 10px;
  margin-bottom: 38px;
  overflow: hidden;
  display: none;
}
.sdm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sdm-theme-color) 0%, #0077b6 100%);
  width: 0%;
  transition: width .35s ease;
}
.sdm-step { display: none; }
.sdm-step.active { display: block; }
.sdm-start-step { text-align: center; padding: 28px 0 10px; }
.sdm-start-button {
  display: inline-block;
  min-width: 220px;
  background: linear-gradient(135deg, var(--sdm-theme-color) 0%, #0077b6 100%);
  color: #fff !important;
  padding: 16px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,159,232,.30);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
}
.sdm-start-button:hover { transform: translateY(-1px); box-shadow: 0 7px 24px rgba(0,159,232,.38); }
.sdm-start-desc { text-align: center; font-size: 13px; color: #94a3b8; margin-top: 14px; }
.sdm-notice {
  text-align: left;
  margin: 30px auto 0;
  padding: 16px 18px;
  border: 1px solid #c7e2ff;
  background: #f8fbff;
  border-radius: 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.75;
  max-width: 620px;
  white-space: pre-line;
}
.sdm-notice-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.sdm-notice-body {
  white-space: pre-line;
}
.sdm-notice-policy {
  margin-top: 6px;
}
.sdm-notice-policy a {
  color: var(--sdm-theme-color);
  font-weight: 700;
  text-decoration: underline;
}
.sdm-result-notice {
  background: #fffaf0;
  border-color: #fde68a;
}

.sdm-question-text {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 26px;
  color: #0f172a;
  border-left: 4px solid var(--sdm-theme-color);
  padding-left: 12px;
  line-height: 1.6;
}
.sdm-options-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 34px;
}
.sdm-option-label {
  display: flex;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  color: #475569;
  line-height: 1.6;
}
.sdm-option-label:hover { background-color: #f8fafc; border-color: #cbd5e1; transform: translateY(-1px); }
.sdm-option-label.selected {
  border-color: var(--sdm-theme-color);
  background-color: #f0f9ff;
  color: #0369a1;
  box-shadow: 0 4px 14px rgba(0,159,232,.08);
}
.sdm-option-label input[type="radio"] {
  margin-right: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--sdm-theme-color);
  flex: 0 0 auto;
}
.sdm-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}
.sdm-btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  text-decoration: none !important;
  text-align: center;
}
.sdm-btn-primary {
  background-color: #0f172a;
  color: #fff !important;
  flex: 1;
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.sdm-btn-primary:hover { background-color: #1e293b; transform: translateY(-1px); }
.sdm-btn-primary:disabled { background-color: #cbd5e1; color: #94a3b8 !important; cursor: not-allowed; box-shadow: none; transform: none; }
.sdm-btn-secondary {
  background-color: #fff;
  color: #64748b !important;
  border: 1px solid #e2e8f0;
  padding: 13px 28px;
}
.sdm-btn-secondary:hover { background-color: #f8fafc; border-color: #cbd5e1; color: #475569 !important; }
.sdm-rank-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--sdm-theme-color);
  margin-top: 24px;
  margin-bottom: 8px;
  display: inline-block;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.sdm-rank-2 { color: #b45309; background: #fef3c7; }
.sdm-rank-3 { color: #475569; background: #f1f5f9; }
.sdm-service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 22px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.sdm-service-table th, .sdm-service-table td { padding: 16px 18px; text-align: left; vertical-align: top; border: 0; }
.sdm-service-table th { background-color: #f8fafc; color: #475569; width: 28%; font-weight: 700; border-right: 1px solid #e2e8f0; }
.sdm-service-table td { color: #334155; background-color: #fff; }
.sdm-service-table td strong { font-size: 16px; color: #0f172a; }
.sdm-cta-wrap { text-align: center; padding: 18px 0 6px; }
.sdm-cta-button {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--sdm-theme-color);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,159,232,.22);
}
.sdm-cta-button:hover { filter: brightness(.94); }
.sdm-result-root .sdm-notice { margin-top: 30px; }
.sdm-error { padding: 16px; border: 1px solid #fecaca; background: #fef2f2; border-radius: 8px; color: #991b1b; }
.sdm-log-area,.log-area,.sdm-diagnosis .sdm-log-area,.sdm-diagnosis .log-area{display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;}
@media (max-width: 767px) {
  .sdm-diagnosis { padding: 20px 12px; margin: 24px auto; border-radius: 16px; }
  .sdm-container { padding: 30px 18px; border-radius: 16px; }
  .sdm-title {
  background: transparent !important;
  box-shadow: none !important; font-size: 20px !important; }
  .sdm-subtitle { font-size: 13px; }
  .sdm-question-text { font-size: 17px; }
  .sdm-option-label { padding: 15px 14px; font-size: 14px; }
  .sdm-nav-buttons { gap: 10px; }
  .sdm-btn { padding: 12px 18px; }
  .sdm-service-table th, .sdm-service-table td { display: block; width: 100%; border-right: 0; }
  .sdm-service-table th { border-bottom: 1px solid #e2e8f0; }
}

/* v2.2.2 result layout: high resolution source image, fixed display area */
.sdm-result-card {
  margin: 26px 0 34px;
  padding: 0;
}
.sdm-result-head {
  display: block;
  margin-bottom: 10px;
}
.sdm-result-head .sdm-rank-badge {
  margin: 0 0 8px;
}
.sdm-result-main { min-width: 0; }
.sdm-result-card .sdm-service-table { margin-bottom: 0; }
.sdm-result-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 158px;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  margin: 0 0 14px;
}
.sdm-result-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #fff;
  image-rendering: auto;
  transform: translateZ(0);
}
.sdm-cta-wrap-multiple {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 18px 0 8px;
}
.sdm-cta-wrap-multiple .sdm-cta-button { min-width: 170px; }
.sdm-cta-button-secondary {
  background: #0f172a !important;
  box-shadow: 0 4px 12px rgba(15,23,42,.16) !important;
}
@media (max-width: 767px) {
  .sdm-result-card { margin: 22px 0 30px; }
  .sdm-result-head { display: block; }
  .sdm-result-image-link { width: 100%; max-width: 100%; height: 158px; min-height: 0; aspect-ratio: auto; }
  .sdm-cta-wrap-multiple { flex-direction: column; }
  .sdm-cta-wrap-multiple .sdm-cta-button { width: 100%; }
}
