/* 戦略実績ページ [fxsf_showcase]
   サイトのテーマの文字に合わせ、色数を抑えた白・フラットのトーン。 */
.fxsc {
  --sc-ink:     #1d222b;
  --sc-sub:     #5e6673;
  --sc-faint:   #8b929d;
  --sc-line:    #e5e7eb;
  --sc-surface: #f6f7f9;
  --sc-accent:  #5a50c8;
  --sc-accent-soft: #ecebfa;
  --sc-ok:      #2f8f62;
  --sc-ng:      #c9cdd3;
  color: var(--sc-ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.fxsc *, .fxsc *::before, .fxsc *::after { box-sizing: border-box; }
.fxsc button, .fxsc select { font: inherit; color: inherit; }

/* 見出し */
.fxsc-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.fxsc-head-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fxsc-product { flex: none; display: block; width: 216px; }
.fxsc-product img, .fxsc-cta-img img { display: block; width: 100%; height: auto; }
a.fxsc-product { transition: transform .2s ease; }
a.fxsc-product:hover { transform: translateY(-3px); }
a.fxsc-product:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; border-radius: 12px; }
.fxsc-eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; color: var(--sc-accent); font-weight: 600; }
.fxsc-title { margin: 0; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.35; font-weight: 700; text-wrap: balance; color: var(--sc-ink); }
.fxsc-lead { margin: 0; max-width: 46em; color: var(--sc-sub); }

/* 実績の数字 */
.fxsc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--sc-ink); border-bottom: 1px solid var(--sc-line); }
.fxsc-kpi { display: flex; flex-direction: column; gap: 4px; padding: 22px 20px 20px; }
.fxsc-kpi + .fxsc-kpi { border-left: 1px solid var(--sc-line); }
.fxsc-kpi-v { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fxsc-kpi-l { font-size: 13px; color: var(--sc-sub); display: flex; flex-direction: column; }
.fxsc-kpi-l small { font-size: 11px; color: var(--sc-faint); }

/* 通貨ペア別・時間足別 */
.fxsc-breakdown { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.fxsc-panel { border: 1px solid var(--sc-line); border-radius: 8px; padding: 20px 22px; }
.fxsc-h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--sc-ink); }
.fxsc-h3 span { font-size: 12px; font-weight: 400; color: var(--sc-faint); margin-left: 6px; }
.fxsc-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fxsc-bars li { display: grid; grid-template-columns: 64px 1fr 56px 72px; align-items: center; gap: 10px; font-size: 13px; margin: 0; }
.fxsc-bar-k { font-weight: 600; }
.fxsc-bar-t { height: 8px; background: var(--sc-surface); border-radius: 4px; overflow: hidden; }
.fxsc-bar-f { display: block; height: 100%; background: var(--sc-accent); border-radius: 4px; opacity: .85; }
.fxsc-bar-n, .fxsc-bar-a { text-align: right; font-variant-numeric: tabular-nums; color: var(--sc-sub); white-space: nowrap; }
.fxsc-bar-a { color: var(--sc-faint); font-size: 12px; }
.fxsc-note { margin: 14px 0 0; font-size: 12px; color: var(--sc-faint); }

/* 一覧 */
.fxsc-list { display: flex; flex-direction: column; gap: 14px; }
.fxsc-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fxsc-list-head .fxsc-h3 { margin: 0; }
.fxsc-seg { display: inline-flex; border: 1px solid var(--sc-line); border-radius: 999px; padding: 3px; background: var(--sc-surface); }
.fxsc-seg button { border: 0; background: transparent; padding: 5px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; color: var(--sc-sub); }
.fxsc-seg button[aria-selected="true"] { background: #fff; color: var(--sc-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20, 24, 32, .08); }
.fxsc-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.fxsc-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sc-sub); margin: 0; }
.fxsc-filters select { min-width: 130px; padding: 7px 30px 7px 10px; border: 1px solid var(--sc-line); border-radius: 6px; background: #fff; font-size: 14px; }
.fxsc-count { margin-left: auto; font-size: 13px; color: var(--sc-faint); font-variant-numeric: tabular-nums; }

.fxsc-table-wrap { overflow-x: auto; border-top: 1px solid var(--sc-ink); }
.fxsc-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; border: 0; }
.fxsc-table th { font-size: 12px; font-weight: 600; color: var(--sc-faint); text-align: left; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--sc-line); background: none; white-space: nowrap; }
.fxsc-table td { padding: 13px 12px; border: 0; border-bottom: 1px solid var(--sc-line); vertical-align: middle; white-space: nowrap; background: none; }
.fxsc-table .r { text-align: right; }
.fxsc-table tbody tr { transition: background-color .15s; }
.fxsc-table tbody tr:hover { background: var(--sc-surface); }
.fxsc-table[aria-busy="true"] tbody { opacity: .45; }

.fxsc-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 9px; border-radius: 4px; }
.fxsc-tag-official { background: var(--sc-ink); color: #fff; }
.fxsc-tag-user { border: 1px solid var(--sc-line); color: var(--sc-sub); padding: 1px 8px; }
.fxsc-pair { font-weight: 700; }
.fxsc-tf { margin-left: 6px; font-size: 12px; color: var(--sc-faint); }
.fxsc-score { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.fxsc-score b { font-weight: 700; min-width: 2.6em; text-align: right; }
.fxsc-score i { width: 44px; height: 4px; background: var(--sc-surface); border-radius: 2px; overflow: hidden; display: inline-block; }
.fxsc-score i::before { content: ""; display: block; height: 100%; width: var(--w); background: var(--sc-accent); }
.fxsc-oos { display: block; font-size: 11px; color: var(--sc-faint); text-align: right; }

.fxsc-rb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sc-sub); }
.fxsc-dots { display: inline-flex; gap: 3px; }
.fxsc-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-ng); }
.fxsc-dots span.on { background: var(--sc-ok); }
.fxsc-allpass { font-size: 12px; color: var(--sc-ok); font-weight: 600; }
.fxsc-period { font-size: 12px; color: var(--sc-sub); line-height: 1.5; }
.fxsc-period small { display: block; color: var(--sc-faint); font-size: 11px; }
.fxsc-dim { color: var(--sc-faint); }
.fxsc-empty td { text-align: center; color: var(--sc-faint); padding: 40px 12px; }

.fxsc-pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.fxsc-pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--sc-line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; }
.fxsc-pager button[aria-current="page"] { background: var(--sc-ink); border-color: var(--sc-ink); color: #fff; font-weight: 600; }
.fxsc-pager button:disabled { opacity: .4; cursor: default; }
.fxsc-pager .gap { align-self: center; color: var(--sc-faint); padding: 0 2px; }

.fxsc button:focus-visible, .fxsc select:focus-visible, .fxsc a:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }

/* ツールへの誘導 */
.fxsc-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 28px 32px; background: var(--sc-accent-soft); border-radius: 10px; }
.fxsc-cta-img { flex: none; width: 96px; }
.fxsc-cta-x { flex: 1 1 280px; }
.fxsc-cta-t { margin: 0; text-wrap: balance; font-size: 19px; font-weight: 700; color: var(--sc-ink); }
.fxsc-cta-s { margin: 4px 0 0; font-size: 14px; color: var(--sc-sub); }
.fxsc-cta-b { display: flex; gap: 10px; flex-wrap: wrap; }
.fxsc-btn { display: inline-block; padding: 11px 22px; border-radius: 6px; background: var(--sc-accent); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; transition: opacity .15s; }
.fxsc-btn:hover { opacity: .88; }
.fxsc-btn-ghost { background: #fff; color: var(--sc-accent) !important; border: 1px solid var(--sc-accent); }

.fxsc-foot { border-top: 1px solid var(--sc-line); padding-top: 14px; font-size: 12px; color: var(--sc-faint); }
.fxsc-foot p { margin: 0 0 4px; }

/* 数字の見方 */
.fxsc-guide-link { font-size: 12px; font-weight: 400; color: var(--sc-accent); margin-left: 10px; text-decoration: none; border-bottom: 1px solid currentColor; }
.fxsc-guide-link:hover { border-bottom-color: transparent; }
.fxsc-guide { display: flex; flex-direction: column; gap: 34px; border-top: 1px solid var(--sc-ink); padding-top: 26px; scroll-margin-top: 80px; }
.fxsc-guide-head { display: flex; flex-direction: column; gap: 4px; }
.fxsc-guide-head .fxsc-h3 { margin: 0; font-size: 20px; }
.fxsc-guide-head p { margin: 0; color: var(--sc-sub); font-size: 14px; }
.fxsc-guide-block { display: flex; flex-direction: column; gap: 14px; }
.fxsc-h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--sc-ink); }
.fxsc-guide-p { margin: 0; max-width: 46em; color: var(--sc-sub); font-size: 14px; }
.fxsc-guide-p b, .fxsc-points b { color: var(--sc-ink); }

.fxsc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: fxsc-step; }
.fxsc-steps li { counter-increment: fxsc-step; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 16px 14px; background: var(--sc-surface); border-radius: 8px; position: relative; }
.fxsc-steps li::before { content: counter(fxsc-step); width: 22px; height: 22px; border-radius: 50%; background: var(--sc-accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.fxsc-steps b { font-size: 14px; line-height: 1.5; }
.fxsc-steps span { font-size: 12.5px; color: var(--sc-sub); line-height: 1.65; }

.fxsc-formula { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 20px 22px; border: 1px solid var(--sc-line); border-radius: 8px; background: var(--sc-accent-soft); font-size: 15px; }
.fxsc-formula-l { font-weight: 700; color: var(--sc-accent); }
.fxsc-formula-o { color: var(--sc-sub); }
.fxsc-formula-f { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.fxsc-formula-f span:first-child { padding: 0 6px 3px; border-bottom: 1.5px solid var(--sc-ink); }
.fxsc-formula-f span:last-child { padding: 3px 6px 0; }
.fxsc-formula-r { white-space: nowrap; }
.fxsc-formula-r span { border-top: 1.5px solid var(--sc-ink); padding: 0 4px; margin-left: 1px; }
.fxsc-points { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; color: var(--sc-sub); font-size: 14px; max-width: 46em; }
.fxsc-points li { margin: 0; }

.fxsc-terms { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--sc-line); }
.fxsc-terms > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--sc-line); }
.fxsc-terms > div:nth-child(odd) { padding-right: 24px; }
.fxsc-terms > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--sc-line); }
.fxsc-terms dt { font-weight: 700; font-size: 14px; }
.fxsc-terms dd { margin: 0; font-size: 13.5px; color: var(--sc-sub); }

.fxsc-tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fxsc-test { border: 1px solid var(--sc-line); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.fxsc-test h5 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fxsc-test h5::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-ok); }
.fxsc-test-q { margin: 0; font-size: 13px; font-weight: 600; color: var(--sc-accent); }
.fxsc-test p:last-child { margin: 0; font-size: 13.5px; color: var(--sc-sub); }

.fxsc-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fxsc-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px; background: var(--sc-surface); border-radius: 8px; }
.fxsc-kind p { margin: 0; font-size: 13.5px; color: var(--sc-sub); }

/* スマホ: 一覧はカード表示 */
@media (max-width: 760px) {
  .fxsc { gap: 32px; font-size: 14px; }
  .fxsc-kpis { grid-template-columns: repeat(2, 1fr); }
  .fxsc-kpi:nth-child(3) { border-left: 0; }
  .fxsc-kpi:nth-child(n+3) { border-top: 1px solid var(--sc-line); }
  .fxsc-kpi { padding: 16px 14px; }
  .fxsc-breakdown { grid-template-columns: 1fr; }
  .fxsc-panel { padding: 16px; }
  .fxsc-bars li { grid-template-columns: 56px 1fr 48px; }
  .fxsc-bar-a { display: none; }
  .fxsc-filters label { flex: 1 1 40%; }
  .fxsc-filters select { min-width: 0; width: 100%; }
  .fxsc-count { margin-left: 0; width: 100%; }
  .fxsc-table-wrap { border-top: 0; overflow: visible; }
  .fxsc-table thead { display: none; }
  .fxsc-table, .fxsc-table tbody { display: block; }
  .fxsc-table tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--sc-line); border-radius: 8px; }
  .fxsc-table td { display: flex; flex-direction: column; padding: 0; border: 0; white-space: normal; text-align: left !important; }
  .fxsc-table td::before { content: attr(data-l); font-size: 11px; color: var(--sc-faint); }
  .fxsc-table td.c-src, .fxsc-table td.c-pair { grid-column: span 3; flex-direction: row; align-items: center; gap: 8px; }
  .fxsc-table td.c-src::before, .fxsc-table td.c-pair::before { display: none; }
  .fxsc-table td.c-src { order: -2; }
  .fxsc-table td.c-pair { order: -1; font-size: 16px; }
  .fxsc-table td.c-rb, .fxsc-table td.c-period { grid-column: span 3; }
  .fxsc-score { justify-content: flex-start; }
  .fxsc-score b { text-align: left; min-width: 0; }
  .fxsc-oos { text-align: left; }
  .fxsc-empty td { grid-column: span 3; }
  .fxsc-cta { padding: 22px; }
  .fxsc-head { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .fxsc-product { width: 132px; }
  .fxsc-cta-img { display: none; }
  .fxsc-steps { grid-template-columns: 1fr; }
  .fxsc-steps li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .fxsc-steps li::before { flex: none; }
  .fxsc-steps span { flex-basis: 100%; }
  .fxsc-terms { grid-template-columns: 1fr; }
  .fxsc-terms > div, .fxsc-terms > div:nth-child(odd), .fxsc-terms > div:nth-child(even) { grid-template-columns: 100px 1fr; padding: 11px 2px; border-left: 0; }
  .fxsc-tests, .fxsc-kinds { grid-template-columns: 1fr; }
  .fxsc-formula { padding: 16px 14px; font-size: 13px; gap: 8px; flex-wrap: nowrap; }
  .fxsc-formula-f span:first-child, .fxsc-formula-f span:last-child { padding-left: 2px; padding-right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .fxsc-table tbody tr, .fxsc-btn, a.fxsc-product { transition: none; }
  a.fxsc-product:hover { transform: none; }
}
