/* ========== 全体 ========== */
body {
  font-family: "Noto Sans JP", "游ゴシック体", "Hiragino Kaku Gothic ProN", sans-serif;
  background: linear-gradient(#f0f4f8, #e8f0ff);
  margin: 0;
  padding: 0 16px;
  color: #222;
  line-height: 1.7;
}

/* ========== レース全体構造 ========== */
.race-detail {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* ========== ヘッダー構成 ========== */

.race-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(to right, #ffcc80, #c8e6c9) !important; /* 爽やかなブルー系グラデーション */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.race-mainvisual {
  width: 200px;
  border-radius: 10px;
  border: 2px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.race-meta {
  display: flex;
  flex-direction: column;
}

.race-title-main {
  font-size: 1.8rem;
  border: 2px solid #aaa;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(#ffffff, #f2f2f2);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.race-subgroup p {
  font-size: 1rem;
  line-height: 1.4;
}

.grade-label.g3 {
  background: #555;
  padding: 3px 8px;
  font-size: 0.95rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.race-sub {
  font-size: 1.1rem;
  color: #555;
}

.race-subgroup {
  margin-top: 10px;
  font-size: 1rem;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.race-date::before {
  content: "📅 ";
}

.race-location::before {
  content: "📍 ";
}

/* ========== グレードラベル ========== */
.grade-label {
  padding: 2px 6px;
  margin-left: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  font-style: italic;
  border-radius: 4px;
  color: #fff;
}

.grade-label.g1 { background: #c62828; }
.grade-label.g2 { background: #1565c0; }
.grade-label.g3 { background: #555; }

/* ========== 各セクション ========== */
.race-section {
  padding: 1.2em 1.5em;
  margin-bottom: 2em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.highlight {
  border-left: 6px solid #f6b26b;
  background: #fff9ec;
}

.preview {
  border-left: 6px solid #64b5f6;
  background: #f0f8ff;
}

.review {
  border-left: 6px solid #c27ba0;
  background: #fbeaf3;
}

.race-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8em;
  color: #0055aa;
}

.race-section p {
  font-size: 1rem;
  margin-bottom: 1em;
}

.race-section strong {
  color: #0055aa;
  font-weight: bold;
}

/* ========== NOTEリンクCTA ========== */
.note-cta {
  margin-top: 1.5em;
  padding: 0.9em 1em;
  background: #eef7ff;
  border: 1px solid #90caf9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.note-cta img {
  height: 26px;
}

.note-cta span {
  font-weight: bold;
  color: #1b4fa3;
  font-size: 1rem;
}

/* ========== フッター ========== */
footer {
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
  color: #666;
}

footer a {
  text-decoration: none;
  color: #00695c;
  font-weight: bold;
}

/* ========== レスポンシブ対応：スマホ向け ========== */
@media (max-width: 600px) {
  .race-detail {
    margin: 20px auto;
    padding: 16px;
  }

  .race-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .race-meta {
    width: 100%;
    margin-top: 12px;
  }

  .race-mainvisual {
    width: 100%;
    max-width: 300px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .race-title-main {
    font-size: 1.4rem;
  }

  .race-sub {
    font-size: 1rem;
  }

  .race-subgroup {
    font-size: 0.95rem;
    gap: 3px;
  }

  .race-section {
    padding: 1em;
    margin-bottom: 1.5em;
    overflow-wrap: break-word;
  }

  .race-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6em;
  }

  .note-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow-wrap: break-word;
  }

  .note-cta img {
    height: 20px;
  }

  .note-cta span {
    font-size: 0.9rem;
  }

  footer {
    margin-top: 30px;
  }
.note-preview {
  background-color: #f9f9fc;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-family: 'Yu Gothic', sans-serif;
  line-height: 1.7;
  animation: fadeInPreview 0.6s ease-in-out;
}

.note-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  background: linear-gradient(to right, #e0f4ff, #fef6f9);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(160,200,255,0.2);
  animation: slideInBanner 0.7s ease;
}

.note-banner img {
  width: 120px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.note-callout {
  font-size: 16px;
  font-weight: bold;
  color: #004080;
  background-color: #fff8dc;
  padding: 8px 12px;
  border-radius: 6px;
  animation: pulseCallout 1.5s infinite;
  box-shadow: inset 0 0 4px rgba(255,200,100,0.3);
}

@keyframes fadeInPreview {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInBanner {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseCallout {
  0% { background-color: #fff8dc; }
  50% { background-color: #fff0b0; }
  100% { background-color: #fff8dc; }
}

