/* ===== WordPressテーマとの競合を防ぐためすべて #jst-root でスコープ ===== */
#jst-root *, #jst-root *::before, #jst-root *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
#jst-root {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #333;
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  overflow: hidden;
}

/* ヘッダー */
#jst-root .jst-header {
  background: linear-gradient(135deg, #1a6fc4 0%, #0d4f91 100%);
  color: #fff;
  padding: 20px 24px 16px;
}
#jst-root .jst-header h2 {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.4;
}
#jst-root .jst-header p {
  font-size: 13px;
  opacity: .85;
}

/* プログレス */
#jst-root .jst-progress {
  padding: 16px 24px 0;
}
#jst-root .jst-progress-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
#jst-root .jst-bar-bg {
  height: 6px;
  background: #e8ecf0;
  border-radius: 99px;
  overflow: hidden;
}
#jst-root .jst-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1a6fc4, #42a0f5);
  border-radius: 99px;
  transition: width .4s ease;
}

/* 質問 */
#jst-root .jst-q-area {
  padding: 22px 24px 6px;
}
#jst-root .jst-q-num {
  font-size: 12px;
  color: #1a6fc4;
  font-weight: bold;
  margin-bottom: 6px;
  letter-spacing: .05em;
}
#jst-root .jst-q-text {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.5;
}
#jst-root .jst-q-note {
  font-size: 12px;
  color: #e05a00;
  margin-top: 4px;
  font-weight: bold;
}

/* 選択肢（シングル） */
#jst-root .jst-choices {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 24px 24px;
}
#jst-root .jst-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 2px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: all .18s;
  line-height: 1.4;
  width: 100%;
}
#jst-root .jst-choice:hover {
  border-color: #1a6fc4;
  background: #f0f6ff;
}
#jst-root .jst-choice.selected {
  border-color: #1a6fc4;
  background: #e8f1fc;
  color: #0d4f91;
  font-weight: bold;
}
#jst-root .jst-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8ecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .18s;
}
#jst-root .jst-choice.selected .jst-icon { background: #1a6fc4; }

/* 選択肢（マルチ）*/
#jst-root .jst-multi-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px 24px 8px;
}
#jst-root .jst-multi-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #dde3ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: all .18s;
  line-height: 1.3;
}
#jst-root .jst-multi-choice:hover {
  border-color: #1a6fc4;
  background: #f0f6ff;
}
#jst-root .jst-multi-choice.checked {
  border-color: #1a6fc4;
  background: #e8f1fc;
  color: #0d4f91;
  font-weight: bold;
}
#jst-root .jst-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  transition: all .18s;
}
#jst-root .jst-multi-choice.checked .jst-check-icon {
  background: #1a6fc4;
  border-color: #1a6fc4;
  color: #fff;
}

/* 次へボタン */
#jst-root .jst-next-wrap {
  padding: 12px 24px 24px;
}
#jst-root .jst-next-btn {
  width: 100%;
  padding: 13px;
  background: #1a6fc4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background .18s;
}
#jst-root .jst-next-btn:hover { background: #155aa0; }
#jst-root .jst-next-btn:disabled {
  background: #b0c4d8;
  cursor: not-allowed;
}

/* 結果 */
#jst-root .jst-result {
  padding: 24px;
  display: none;
}
#jst-root .jst-result-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a6fc4;
  margin-bottom: 4px;
}
#jst-root .jst-result-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.6;
}
#jst-root .jst-card {
  border: 1px solid #dde3ea;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
#jst-root .jst-card:first-of-type {
  border-color: #f0a500;
  background: #fffbf0;
}
#jst-root .jst-badge {
  position: absolute;
  top: -1px;
  left: 16px;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 0 0 6px 6px;
  color: #fff;
}
#jst-root .jst-card:first-of-type .jst-badge { background: #f0a500; }
#jst-root .jst-card:not(:first-of-type) .jst-badge { background: #8d9baa; }
#jst-root .jst-firm-name {
  font-size: 15px;
  font-weight: bold;
  margin: 16px 0 8px;
}
#jst-root .jst-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
#jst-root .jst-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: #e8f1fc;
  color: #1a6fc4;
  font-weight: bold;
}
#jst-root .jst-firm-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 12px;
}
#jst-root .jst-cta {
  display: block;
  text-align: center;
  background: #1a6fc4;
  color: #fff;
  text-decoration: none;
  padding: 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: background .18s;
}
#jst-root .jst-cta:hover { background: #155aa0; }
#jst-root .jst-retry {
  display: block;
  text-align: center;
  background: none;
  border: 1px solid #ccc;
  color: #666;
  padding: 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  transition: all .18s;
}
#jst-root .jst-retry:hover { background: #f4f6f9; }
