/* AIバックテスト本文の配置。共通UI・既存ページは変更しない。 */
.backtest-hero h1 { font-size: clamp(32px, 4.1vw, 52px); line-height: 1.5; }
.backtest-hero h1 span { display: inline-block; }
.backtest-hero-note { margin: 24px 0 0; padding-left: 18px; border-left: 3px solid var(--pink); font-size: 14px; font-weight: 600; line-height: 1.9; }
.section { padding-block: 64px; }
.section-title { font-size: clamp(26px, 3.3vw, 36px); }
.eyebrow { color: #27764c; }
.ea-dark .eyebrow { color: #6ed79f; }
.ea-dark .ea-source-link:hover { color: #6ed79f; }
.backtest-intro { margin-inline: auto; }
.backtest-workflow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 32px 0 0; }
.backtest-workflow li { position: relative; display: flex; flex-direction: column; padding: 23px 18px; border-top: 3px solid var(--green); background: #fff; min-width: 0; }
.backtest-workflow li + li::before { content: "→"; position: absolute; left: -15px; top: 20px; color: #27764c; font-size: 16px; }
.backtest-workflow h3 { margin: 14px 0 10px; font-size: 17px; line-height: 1.7; }
.backtest-workflow p { margin: 0 0 18px; font-size: 14px; line-height: 1.9; }
.backtest-workflow .backtest-review { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.backtest-review strong { display: block; margin-bottom: 4px; color: #27764c; }
.backtest-environments { width: 100%; margin-top: 28px; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 2; text-align: left; }
.backtest-environments caption { text-align: left; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.backtest-environments th, .backtest-environments td { padding: 20px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.backtest-environments thead { background: var(--ink); color: #fff; }
.backtest-environments th:first-child { width: 23%; }
.backtest-environments tbody { background: #fff; }
.backtest-updates { list-style: none; padding: 0; margin: 30px 0 0; }
.backtest-updates li { padding: 22px 0 22px 22px; border-left: 3px solid var(--green); border-bottom: 1px solid #666; }
.backtest-updates li > span { color: #6ed79f; font-size: 13px; }
.backtest-updates h3 { margin: 10px 0 8px; font-size: 17px; line-height: 1.8; }
.backtest-updates p { color: #e2e4e1; font-size: 14px; line-height: 2; margin: 0; }
.backtest-quality { list-style: none; padding: 0; margin: 30px 0 0; }
.backtest-quality li { padding: 20px 0; border-top: 1px solid var(--line); }
.backtest-quality h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.8; }
.backtest-quality p { margin: 0; font-size: 14px; line-height: 2; }
.backtest-sources { list-style: none; padding: 0; margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.backtest-sources li { border-top: 1px solid var(--line); }
.backtest-sources a { display: block; padding: 20px 0; }
.backtest-sources span { display: block; color: #555; font-size: 13px; margin-bottom: 8px; }
.backtest-sources strong { font-size: 14px; line-height: 1.9; text-decoration: underline; text-underline-offset: 4px; }
.backtest-sources a:hover { color: #27764c; }
.backtest-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
a:focus-visible { outline: 3px solid #27764c; outline-offset: 4px; }
@media (max-width: 850px) {
  .backtest-workflow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .backtest-workflow li { padding: 22px; }
  .backtest-workflow li + li::before { content: "↓"; top: -25px; left: 22px; }
  .backtest-workflow .backtest-review { margin-top: 0; }
}
@media (max-width: 620px) {
  .section { padding-block: 44px; }
  .backtest-hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .backtest-environments th, .backtest-environments td { padding: 14px 10px; font-size: 13px; }
  .backtest-environments th:first-child { width: 27%; }
  .backtest-related { grid-template-columns: minmax(0, 1fr); }
}
