/* =========================
   EDITED HORSES
   ========================= */

/* 導入セクション */
.edited-intro {
  margin-bottom: 56px;
}

.edited-intro h2 {
  margin-bottom: 16px;
}

.edited-intro p {
  line-height: 1.8;
}

/* セクション共通 */
.edited-block {
  margin-bottom: 72px;
}

.edited-block h2 {
  margin-bottom: 32px;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}
/* ===== Edited Horse Group Attribute ===== */

/* 起点（A） */
.toggle-block.edited-origin .toggle-title {
  border-left: 4px solid #d4af37;
}

/* 基盤（B / D） */
.toggle-block.edited-foundation .toggle-title {
  border-left: 4px solid rgba(212, 175, 55, 0.55);
}

/* 未来（C） */
.toggle-block.edited-future .toggle-title {
  border-left: 4px solid #60a5fa;
}
/* ===== toggle-subtitle ===== */
.toggle-block.edited-origin .toggle-subtitle {
  color: rgba(212, 175, 55, 0.9);
}

.toggle-block.edited-future .toggle-subtitle {
  color: rgba(96, 165, 250, 0.9);
}

/* 馬名は識別用として一定幅を確保 */
.horse-name {
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* 馬カード */
.edited-horse {
  margin-top: 48px;
}

/* 馬名（階層共通） */
.edited-horse .horse-name {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0f172a;
}

/* 画像並び */
.horse-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.horse-images img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #f1f1f1;
}

/* 子世代ブロック */
.edited-children {
  margin-top: 32px;
}

/* 子馬 */
.edited-child {
  margin-left: 24px;
}

/* 直仔・直孫まとめ */
.edited-descendant-group {
  margin-left: 24px;
  margin-top: 32px;
}

/* 代表＋名前リスト分割 */
.horse-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
}

.horse-representative img {
  width: 100%;
  border-radius: 6px;
}

.rep-name {
  margin-top: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* 名前リスト */
.horse-name-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
}

.horse-name-list li {
  margin-bottom: 6px;
  color: #334155;
}

/* モバイル */
@media (max-width: 640px) {
  .edited-horse {
    margin-top: 40px;
  }

  .horse-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
/* =========================
   Mobile Image Fix (challenge)
========================= */
  .horse-images img {
    display: block;
    max-width: 100%;
    height: auto;
  }

}
