.rsm-box {
  --rsm-accent: #d9472b;
  --rsm-line: rgba(127, 127, 127, 0.25);
  --rsm-soft: rgba(217, 71, 43, 0.07);
  margin: 1.6em 0;
  font-size: 15px;
  line-height: 1.6;
}
.rsm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25em 1em;
  margin-bottom: 0.6em;
}
.rsm-title { font-size: 1.05em; }
.rsm-pr, .rsm-meta { font-size: 0.8em; opacity: 0.75; margin: 0.4em 0; }
.rsm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rsm-table { width: 100%; border-collapse: collapse; min-width: 560px; margin: 0; }
.rsm-table th, .rsm-table td {
  padding: 0.6em 0.7em;
  border: 0;
  border-bottom: 1px solid var(--rsm-line);
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
.rsm-table thead th { font-size: 0.85em; font-weight: 600; opacity: 0.8; }
.rsm-table th:first-child, .rsm-table td:first-child { text-align: left; }
.rsm-table tbody th { font-weight: 600; }
.rsm-num { font-variant-numeric: tabular-nums; }
.rsm-best > * { background: var(--rsm-soft); }
.rsm-sw { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 2px; margin-right: 0.5em; vertical-align: 0.05em; }
.rsm-btn {
  display: inline-block;
  padding: 0.45em 0.95em;
  border-radius: 6px;
  background: var(--rsm-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.88em;
  line-height: 1.4;
}
.rsm-btn:hover { filter: brightness(1.08); }
.rsm-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #999; margin-right: 0.4em; vertical-align: 0.1em;
}
.rsm-live .rsm-dot { background: #1fa463; box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.2); }
.rsm-flash { animation: rsm-flash 1.2s ease-out; }
@keyframes rsm-flash { from { background: rgba(31, 164, 99, 0.25); } to { background: transparent; } }
.rsm-heat { min-width: 420px; }
.rsm-heat td { text-align: center; padding: 0.35em 0.4em; font-size: 0.85em; }
.rsm-heat th { padding: 0.35em 0.5em; font-size: 0.85em; }
.rsm-chart-wrap { position: relative; width: 100%; }
.rsm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6em;
  margin-bottom: 1em;
}
.rsm-stat { border: 1px solid var(--rsm-line); border-radius: 8px; padding: 0.6em 0.8em; }
.rsm-stat span { display: block; font-size: 0.78em; opacity: 0.7; }
.rsm-stat b { display: block; font-size: 1.25em; }
.rsm-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6em;
  margin-top: 1em; padding: 0.9em 1em; border-radius: 8px; background: var(--rsm-soft);
}
/* 単体の口座開設ボタン */
.rsm-cta-wrap { text-align: center; }
.rsm-cta-wrap .rsm-pr { text-align: left; }
.rsm-cta-btn { margin: 0.4em 0; }
.rsm-cta-btn .rsm-btn { padding: 0.85em 2.2em; font-size: 1em; border-radius: 999px; box-shadow: 0 2px 6px rgba(217, 71, 43, 0.25); }
.rsm-center { text-align: center; }
/* スマホ：口座開設ボタンを口座名の下に出し、横スクロールしなくても押せるようにする */
.rsm-sp-btn { display: none; }
@media (max-width: 600px) {
  .rsm-spread .rsm-table { min-width: 0; font-size: 0.9em; }
  .rsm-spread .rsm-table th, .rsm-spread .rsm-table td { padding: 0.55em 0.45em; }
  .rsm-spread .rsm-table tbody th { white-space: normal; }
  .rsm-btn-cell { display: none; }
  .rsm-sp-btn { display: block; margin-top: 0.35em; }
  .rsm-sp-btn .rsm-btn { padding: 0.3em 0.7em; font-size: 0.8em; }
}
@media (prefers-reduced-motion: reduce) { .rsm-flash { animation: none; } }
