/* 4 タイプ関係性図（相関図） */

.rd-wrap {
  margin: 18px 0 22px;
  text-align: center;
}
.rd-svg {
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 10px;
  padding: 8px;
}
.rd-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 12.5px;
}
.rd-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #fafbfc;
  border: 1px solid #e7eaee;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.15s, background 0.15s;
}
.rd-legend-item:hover {
  border-color: #c8cfd5;
  background: #fff;
  text-decoration: none;
}
.rd-legend-item .rd-swatch {
  width: 14px; height: 4px;
  border-radius: 2px;
}
.rd-legend-item .rd-name {
  font-family: "Noto Sans JP", sans-serif;
}

/* スコープ越えの色反転を抑制 */
#scope-clubs .rd-legend-item,
#scope-stress .rd-legend-item,
#scope-motivs .rd-legend-item,
#scope-communication .rd-legend-item { color: #333; }
