/* テーマのCSSリセット対策 */
.fx-tool-wrap, .fx-tool-wrap * {
  box-sizing: border-box !important;
  line-height: normal;
}
.fx-tool-wrap p, .fx-tool-wrap div, .fx-tool-wrap span {
  margin: 0;
  padding: 0;
}
.fx-heading {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #1a1a2e !important;
  margin: 0 0 8px !important;
  line-height: 1.4 !important;
  border: none !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  padding: 0 !important;
  display: block !important;
  border-left: none !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  box-shadow: none !important;
  text-align: center !important;
  letter-spacing: 0.02em !important;
}
/* 海外FX診断ツール スタイルシート */
.fx-tool-wrap { max-width: 680px !important; margin: 0 auto !important; padding: 8px 0 40px !important; font-family: 'Noto Sans JP', sans-serif !important; box-sizing: border-box !important; }
.fx-tool-header { background: #fff; border-radius: 12px; padding: 24px 28px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border-top: 4px solid #e8380d; text-align: center; }
.fx-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #e8380d; background: #fff0ed; padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; letter-spacing: 0.05em; }
.fx-heading { font-size: 22px; font-weight: 900; color: #1a1a2e; margin: 0 0 8px; line-height: 1.4; }
.fx-subtitle { font-size: 13px; color: #555; margin: 0; }
.fx-progress-meta { display: flex; justify-content: space-between; font-size: 12px; margin-top: 16px; margin-bottom: 6px; color: #888; }
.fx-step-label { font-weight: 700; color: #e8380d; }
.fx-progress-bar { height: 6px; background: #eee; border-radius: 100px; overflow: hidden; }
.fx-progress-fill { height: 100%; background: linear-gradient(90deg, #e8380d, #ff7a5c); border-radius: 100px; transition: width 0.4s ease; }
.fx-q-card { background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); animation: fxFadeUp 0.35s ease both; }
.fx-q-step { font-size: 11px; font-weight: 700; color: #e8380d; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.fx-q-text { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 20px; line-height: 1.5; }
.fx-required { display: inline-block; font-size: 11px; background: #e8380d; color: #fff; padding: 1px 7px; border-radius: 4px; margin-left: 8px; vertical-align: middle; font-weight: 700; }
.fx-options { display: flex; flex-direction: column; gap: 10px; }
.fx-opt-btn { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: #f7f8fc; border: 2px solid #e0e4ec; border-radius: 10px; cursor: pointer; text-align: left; font-family: inherit; color: #1a1a2e; transition: all 0.18s; width: 100%; }
.fx-opt-btn:hover { border-color: #e8380d; background: #fff0ed; }
.fx-opt-btn.selected { border-color: #e8380d; background: #fff0ed; box-shadow: 0 0 0 1px #e8380d; }
.fx-opt-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e0e4ec; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.18s; }
.fx-opt-btn.selected .fx-opt-check { background: #e8380d; border-color: #e8380d; color: #fff; font-size: 12px; }
.fx-opt-body { flex: 1; }
.fx-opt-label { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; }
.fx-opt-desc { font-size: 12px; color: #888; }
.fx-opt-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; background: #fff0ed; color: #e8380d; flex-shrink: 0; }
.fx-nav-row { display: flex; gap: 10px; justify-content: flex-end; }
.fx-btn { padding: 13px 28px; border-radius: 8px; border: none; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.fx-btn-back { background: #fff; color: #888; border: 2px solid #e0e4ec; }
.fx-btn-back:hover { border-color: #aaa; color: #1a1a2e; }
.fx-btn-next { background: #e8380d; color: #fff; box-shadow: 0 4px 14px rgba(232,56,13,0.3); }
.fx-btn-next:hover:not(:disabled) { background: #c42c06; transform: translateY(-1px); }
.fx-btn-next:disabled { background: #ddd; color: #aaa; box-shadow: none; cursor: not-allowed; }
.fx-result-section { animation: fxFadeUp 0.4s ease both; }
.fx-result-intro { background: #fff; border-radius: 12px; padding: 22px 28px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border-top: 4px solid #e8380d; text-align: center; }
.fx-result-label { display: inline-block; font-size: 11px; font-weight: 700; color: #e8380d; background: #fff0ed; padding: 4px 12px; border-radius: 100px; margin-bottom: 10px; letter-spacing: 0.1em; }
.fx-result-intro h3 { font-size: 19px; font-weight: 900; margin: 0 0 6px; color: #1a1a2e; }
.fx-result-intro p { font-size: 13px; color: #555; margin: 0; }
.fx-result-comment { background: #fffbf0; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; font-size: 13px; color: #7c4a00; line-height: 1.7; }
.fx-result-comment strong { color: #d97706; }
.fx-broker-card { background: #fff; border-radius: 12px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border: 2px solid #e0e4ec; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.fx-broker-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.fx-broker-card.r1 { border-color: #f5c800; }
.fx-broker-card.r2 { border-color: #c0c0c0; }
.fx-broker-card.r3 { border-color: #c87941; }
.fx-broker-card.r-lower { border-color: #d1d5db; opacity: 0.93; }
.fx-bc-head { padding: 18px 22px 14px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid #e0e4ec; }
.fx-bc-rank { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: #f7f8fc; }
.r1 .fx-bc-rank { background: #fff8d6; }
.r2 .fx-bc-rank { background: #f3f4f5; }
.r3 .fx-bc-rank { background: #fdf0e6; }
.r-lower .fx-bc-rank { font-size: 13px; font-weight: 700; color: #6b7280; }
.fx-bc-info { flex: 1; }
.fx-bc-name { font-size: 17px; font-weight: 900; color: #1a1a2e; margin-bottom: 3px; }
.fx-bc-tagline { font-size: 12px; color: #888; margin-bottom: 8px; }
.fx-bc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fx-bc-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 4px; }
.fx-bc-tag.red { background: #fff0ed; color: #e8380d; }
.fx-bc-tag.blue { background: #eef3ff; color: #1a56c4; }
.fx-bc-tag.green { background: #e6f5ee; color: #0a8a55; }
.fx-bc-tag.gray { background: #f0f1f3; color: #555; }
.fx-bc-match { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; margin-left: auto; }
.fx-bc-match-pct { font-size: 22px; font-weight: 900; color: #e8380d; line-height: 1; }
.fx-bc-match-lbl { font-size: 10px; color: #888; }
.fx-bc-match-bar { width: 58px; height: 4px; background: #eee; border-radius: 100px; overflow: hidden; }
.fx-bc-match-fill { height: 100%; background: linear-gradient(90deg, #e8380d, #ff7a5c); border-radius: 100px; }
.fx-bc-specs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #e0e4ec; }
.fx-bc-spec { padding: 12px 8px; text-align: center; border-right: 1px solid #e0e4ec; }
.fx-bc-spec:last-child { border-right: none; }
.fx-bc-spec-lbl { font-size: 10px; color: #888; margin-bottom: 4px; font-weight: 600; }
.fx-bc-spec-val { font-size: 13px; font-weight: 900; color: #1a1a2e; }
.fx-bc-spec-val.red { color: #e8380d; font-size: 11px; }
.fx-bc-spec-val.blue { color: #1a56c4; }
.fx-bc-spec-val.green { color: #0a8a55; font-size: 11px; }
.fx-bc-foot { padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-bc-foot-left { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 6px; }
.fx-bc-reason { font-size: 12px; color: #555; }
.fx-bc-reason strong { color: #e8380d; font-weight: 700; }
.fx-article-link { display: inline-block; font-size: 12px; font-weight: 600; color: #1a56c4; text-decoration: none; padding: 4px 10px; background: #eef3ff; border-radius: 6px; width: fit-content; transition: all 0.2s; }
.fx-article-link:hover { background: #dae5ff; }
.fx-bc-cta { display: inline-block; background: #e8380d; color: #fff !important; font-family: inherit; font-size: 13px; font-weight: 700; padding: 11px 20px; border-radius: 8px; border: none; cursor: pointer; white-space: nowrap; transition: all 0.2s; box-shadow: 0 3px 10px rgba(232,56,13,0.25); text-decoration: none !important; }
.fx-bc-cta:hover { background: #c42c06; transform: translateY(-1px); }
.fx-show-more-wrap { text-align: center; margin-bottom: 14px; }
.fx-btn-show-more { background: #fff; border: 2px solid #e0e4ec; border-radius: 8px; padding: 12px 24px; font-family: inherit; font-size: 13px; font-weight: 600; color: #888; cursor: pointer; transition: all 0.2s; }
.fx-btn-show-more:hover { border-color: #e8380d; color: #e8380d; }
.fx-disclaimer { background: #f9f9f9; border: 1px solid #e0e4ec; border-radius: 8px; padding: 12px 16px; font-size: 11px; color: #888; margin-top: 6px; line-height: 1.6; }
.fx-restart-btn { display: block; width: 100%; margin-top: 16px; padding: 13px; background: #fff; border: 2px solid #e0e4ec; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; color: #888; cursor: pointer; text-align: center; transition: all 0.2s; }
.fx-restart-btn:hover { border-color: #aaa; color: #1a1a2e; }
@keyframes fxFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .fx-tool-header, .fx-q-card { padding: 18px 16px; }
  .fx-bc-specs { grid-template-columns: repeat(2, 1fr); }
  .fx-bc-spec:nth-child(2) { border-right: none; }
  .fx-bc-head { flex-wrap: wrap; }
  .fx-bc-foot { flex-direction: column; align-items: stretch; }
  .fx-bc-cta { text-align: center; }
}

/* SWELL テーマ H2スタイル強制リセット */
.fx-tool-wrap .fx-heading,
#fx-diagnosis-root .fx-heading,
.fx-tool-header .fx-heading {
  display: block !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #1a1a2e !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  counter-increment: none !important;
}
.fx-tool-wrap .fx-heading::before,
.fx-tool-wrap .fx-heading::after {
  display: none !important;
  content: none !important;
}

/* タイトルをCSSで描画（SWELLの目次テキストスキャン回避） */
.fx-heading-text::before {
  content: "海外FX業者おすすめ診断";
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #1a1a2e !important;
  display: block !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* ===== タイトルボックス（SWELLのH2と完全に切り離した独自要素）===== */
.fx-tool-title-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.fx-tool-title-inner {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #1a1a2e !important;
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  display: inline !important;
  letter-spacing: 0.02em !important;
}
