/* =========================
   BREEDING CHALLENGE LOG
   ========================= */
/* ===== 配合ログ ===== */
.breeding-log {
  background: rgba(15, 20, 40, 0.9); /* 現状よりやや明るく */
  border-radius: 12px;
  padding: 28px 30px;
}

/* ===== ヘッダー ===== */
.breeding-log-header {
  margin-bottom: 24px;
}

.breeding-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-left: 12px;
  border-left: 3px solid rgba(212,175,55,0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mare-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.1em;
}

.stallion-name {
  font-size: 0.85rem;
  color: #9ca3af;
  letter-spacing: 0.08em;
}


.breeding-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: #c9c9c9;
}
.breeding-meta li {
  background: rgba(255,255,255,0.06);
  padding: 6px 10px;
  border-radius: 6px;
}

.breeding-comment {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ===== 配合評価 ===== */
/* 配合評価 共通 */
.breeding-grade {
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* S：最上位（既存） */
.grade-s {
  color: #d4af37; /* ゴールド */
}

/* A：良好 */
.grade-a {
  color: #86efac; /* 淡いグリーン */
}

/* B：普通 */
.grade-b {
  color: #93c5fd; /* 淡いブルー */
}

/* C：低評価 */
.grade-c {
  color: #e5e7eb; /* ほぼ白（温度なし） */
}

/* ===== 爆発力 ===== */
.clover-icon {
  width: 18px;
  vertical-align: middle;
  margin: 0 4px 0 6px;
}

.explosion-value {
  font-size: 0.95rem;
}

/* ===== 画像ブロック ===== */
.breeding-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.breeding-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #111827;
}

.breeding-image figcaption {
  margin-top: 6px;
  font-size: 0.8rem;
  text-align: center;
  color: #9ca3af;
}
.breeding-reason {
  margin-top: 0.8rem;
}

.reason-toggle {
  background: none;
  border: 1px solid #aaa;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;

  color: #e0e0e0;          /* ← 文字色を明るく */
}

.reason-toggle:hover {
  border-color: #fff;
  color: #ffffff;         /* ← ホバー時さらに明るく */
}

.reason-body {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #ddd;
}

/* ===== 年次メモ ===== */
.breeding-note {
  font-size: 12px;
  color: #000;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

/* =========================
   OPERATION RESULT
   ========================= */

.operation-result {
  margin: 96px 0 48px;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.operation-result-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* テキスト */
.operation-result-text {
  text-align: center;
}

.operation-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 6px;
}

.operation-status {
  font-size: 2rem;
  letter-spacing: 0.15em;
  margin: 0;
}

/* 馬アイコン */
.operation-horse {
  width: 72px;
  height: auto;
}

/* =========================
   状態別スタイル
   ========================= */

/* --- 作戦成功 --- */
.operation-result.success .operation-status {
  color: #d4af37;
}

/* --- 作戦失敗 --- */
.operation-result.fail .operation-status {
  color: #bfc4cc;
}

/* --- 作戦遂行中 --- */
.operation-result.ongoing .operation-status {
  color: #60a5fa;
}

/* 遂行中は左右対称を解除 */
.operation-result.ongoing .operation-result-inner {
  gap: 20px;
}

.operation-result.ongoing .operation-horse.left {
  display: none;
}

.operation-result.ongoing .operation-horse.right {
  content: url("../icon/horse-ongoing.svg");
}

/* 今期種付け頭数・リーディング順位用ハイライト */
/* 金色の枠線で強調するラベル */
.highlight-label {
  display: inline-block;
  padding: 2px 6px;       /* ラベル内の余白 */
  border: 2px solid;      /* 枠線 */
  border-image: linear-gradient(to right, #FFD700, #FFC107) 1; /* 金色グラデーション枠線 */
  border-radius: 4px;     /* 角を丸く */
  color: inherit;         /* 元の文字色を維持 */
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 640px) {
  .operation-result-inner {
    flex-direction: column;
    gap: 16px;
  }

  .operation-horse {
    width: 60px;
  }

  .operation-status {
    font-size: 1.6rem;
  }
  .breeding-log {
    padding: 22px 20px;
  }

  .breeding-meta {
    gap: 14px;
  }
  .breeding-images img {
    display: block;
    max-width: 100%;
    height: auto;
  }
}

