/* 最小限のスタイル。必要に応じて少しずつ拡張します */
* { box-sizing: border-box; }

/* 競馬場ナビゲーションバーのスタイル */
.racecourse-nav {
  background: 
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(22, 163, 74, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #22c55e 0%, #16a34a 25%, #15803d 50%, #166534 75%, #14532d 100%);
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.racecourse-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.racecourse-nav-button {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  min-width: 70px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.racecourse-nav-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.racecourse-nav-button:active {
  transform: translateY(0);
}

/* ホームボタンのスタイル */
.home-button {
  background: rgba(255, 140, 0, 0.4) !important;
  border: 1px solid rgba(255, 140, 0, 0.7) !important;
  color: #ffffff !important;
}

.home-button:hover {
  background: rgba(255, 140, 0, 0.6) !important;
  border: 1px solid rgba(255, 140, 0, 0.9) !important;
}

/* スマホ表示用（6個、5個の2段） */
@media (max-width: 768px) {
  .racecourse-nav-buttons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 0 8px;
    max-width: 100%;
  }
  
  .racecourse-nav-button {
    padding: 8px 4px;
    font-size: 12px;
    min-width: auto;
    text-align: center;
  }
  
  /* 1段目：最初の6個のボタン */
  .racecourse-nav-button:nth-child(1),
  .racecourse-nav-button:nth-child(2),
  .racecourse-nav-button:nth-child(3),
  .racecourse-nav-button:nth-child(4),
  .racecourse-nav-button:nth-child(5),
  .racecourse-nav-button:nth-child(6) {
    grid-row: 1;
  }
  
  /* 2段目：残りの5個のボタン */
  .racecourse-nav-button:nth-child(7),
  .racecourse-nav-button:nth-child(8),
  .racecourse-nav-button:nth-child(9),
  .racecourse-nav-button:nth-child(10),
  .racecourse-nav-button:nth-child(11) {
    grid-row: 2;
  }
  
  /* 2段目の最後のボタン（ホーム）を中央に配置 */
  .racecourse-nav-button:nth-child(11) {
    grid-column: 3 / 5;
  }
}

/* タブレット表示用 */
@media (min-width: 769px) and (max-width: 1024px) {
  .racecourse-nav-buttons {
    gap: 6px;
  }
  
  .racecourse-nav-button {
    padding: 9px 14px;
    font-size: 15px;
  }
}

/* H2タイトルスタイル */
h2 {
  margin: 40px 0 24px 0;
  color: #000000;
  font-size: 32px;
  font-weight: 800;
  position: relative;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  text-align: center;
  letter-spacing: 0.05em;
}

/* 段落の基本スタイル */
p {
  color: #000000;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

/* strongタグのスタイル */
strong {
  font-weight: 700;
  color: #000000;
}


/* コースリンクボタンのスタイル */
.course-link {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.course-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.course-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.course-link:hover::before {
  left: 100%;
}

.course-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* 芝コース用の特別なスタイル */
.surface-section:nth-child(1) .course-link {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.surface-section:nth-child(1) .course-link:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* ダートコース用の特別なスタイル */
.surface-section:nth-child(2) .course-link {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.surface-section:nth-child(2) .course-link:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

.surface-section:nth-child(2) .course-link::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "游ゴシック", "Meiryo", "メイリオ", "MS Gothic", "MS PGothic", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%; /* iOS Safariでの文字サイズ自動調整を防ぐ */
}

.container {
  max-width: min(1400px, 95vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 48px);
}

.site-header {
  background: 
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(22, 163, 74, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(21, 128, 61, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #22c55e 0%, #16a34a 25%, #15803d 50%, #166534 75%, #14532d 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.site-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}


.site-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.6);
  position: relative;
}


/* 競馬場ジャンプボタンセクションのスタイル */
.racecourse-jump-section {
  margin: 40px 0;
  text-align: center;
  padding: 40px 20px;
  background: 
    radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(22, 163, 74, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.racecourse-jump-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(34, 197, 94, 0.03) 2px,
      rgba(34, 197, 94, 0.03) 4px
    );
  pointer-events: none;
}

.jump-section-title {
  margin: 40px 0 24px 0;
  color: #000000;
  font-size: 32px;
  font-weight: 800;
  position: relative;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  z-index: 1;
}


.section-description {
  margin: 0 0 32px 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(10px);
}

/* SEO関連リンクセクション */
.seo-links-section {
  margin: 60px 0 40px 0;
  padding: 40px 0;
  background: #f8fafc;
  border-radius: 12px;
  text-align: center;
}

.racecourse-subtitle {
  margin: 40px 0 24px 0;
  color: #000000;
  font-size: 32px;
  font-weight: 800;
  position: relative;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #22c55e;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  z-index: 1;
}

.seo-links-section h2 {
  margin: 0 0 24px 0;
  color: #000000;
  font-size: 20px;
  font-weight: 600;
}

.seo-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.seo-link {
  display: inline-block;
  padding: 12px 24px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-weight: 500;
  transition: all 0.2s ease;
}

.seo-link:hover {
  background: #22c55e;
  color: #ffffff;
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.racecourse-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.racecourse-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.racecourse-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.racecourse-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 24px rgba(34, 197, 94, 0.2),
    0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: #22c55e;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #15803d;
}

.racecourse-button:hover::before {
  left: 100%;
}

.racecourse-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.racecourse-button img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* 競馬場一覧のスタイル */
.racecourse-item {
  background: 
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(22, 163, 74, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(34, 197, 94, 0.15);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.racecourse-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(34, 197, 94, 0.02) 2px,
      rgba(34, 197, 94, 0.02) 4px
    );
  pointer-events: none;
}


.racecourse-name {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 26px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.racecourse-name::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 1px;
}

.racecourse-description {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(5px);
}

.racecourse-access {
  margin: 0;
  color: #000000;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.08);
}

/* ステータスメッセージのスタイル */
#status-message {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  color: #000000;
  font-size: 14px;
}

/* リストのスタイル */
#tables-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

/* 距離情報のスタイル */
.distance-container {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(34, 197, 94, 0.2);
  position: relative;
  z-index: 1;
}

.distance-title {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  position: relative;
}

.distance-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 1px;
}

.distance-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 芝とダートの間の改行 */
.distance-separator {
  width: 100%;
  height: 12px;
  flex-basis: 100%;
}

.distance-button {
  border: 2px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 70px;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 芝のボタン（薄い緑色） */
.turf-button {
  background: #d1fae5; /* 薄い緑色 */
  color: #065f46; /* 濃い緑色のテキスト */
  border-color: #a7f3d0;
}

.turf-button:hover {
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
  border-color: #22c55e;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  text-decoration: none;
}

.turf-button:active {
  transform: translateY(0) scale(1.02);
  background: #6ee7b7;
}

/* ダートのボタン（薄い茶色） */
.dirt-button {
  background: #fef3c7; /* 薄い茶色 */
  color: #92400e; /* 濃い茶色のテキスト */
  border-color: #fde68a;
}

.dirt-button:hover {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  border-color: #d97706;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  text-decoration: none;
}

.dirt-button:active {
  transform: translateY(0) scale(1.02);
  background: #f59e0b;
}

/* スマホ最適化 - タブレット以下 */
@media (max-width: 768px) {
  .container {
    padding: 0 clamp(12px, 2.5vw, 24px);
  }
  
  .header-content {
    gap: 12px;
    padding: 16px 0;
  }
  
  .site-logo {
    height: 40px;
  }
  
  .site-title {
    font-size: 28px;
  }
  
  h2 {
    font-size: 28px;
    margin: 32px 0 20px 0;
    padding: 14px 20px;
  }
  
  strong {
    font-weight: 700;
    color: #000000;
  }
  
  .racecourse-jump-section {
    padding: 30px 15px;
    margin: 30px 0;
  }
  
  .section-description {
    padding: 16px;
    font-size: 16px;
  }
  
  .racecourse-buttons {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
  }
  
  .racecourse-button {
    padding: 16px 20px;
    font-size: 18px;
  }
  
  .racecourse-button img {
    width: 28px;
    height: 28px;
  }
  
  .jump-section-title {
    font-size: 28px;
    margin: 32px 0 20px 0;
    padding: 14px 20px;
  }
  
  .racecourse-subtitle {
    font-size: 28px;
    margin: 32px 0 20px 0;
    padding: 14px 20px;
  }
  
  
  .racecourse-item {
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  
  .racecourse-description {
    padding: 10px 14px;
    font-size: 17px;
  }
  
  .racecourse-access {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .racecourse-name {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .racecourse-description {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .racecourse-access {
    font-size: 12px;
  }
  
  .distance-container {
    margin-top: 12px;
    padding-top: 12px;
  }
  
  .distance-title {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .distance-button {
    padding: 8px 12px;
    font-size: 15px;
    min-width: 65px;
  }
  
  .breadcrumb-container {
    top: 100px; /* タブレット以下ではナビゲーションバーが2段になるため高さを調整 */
  }
}

/* スマホ最適化 - スマホサイズ */
@media (max-width: 480px) {
  .container {
    padding: 0 clamp(8px, 2vw, 16px);
  }
  
  .header-content {
    gap: 10px;
    padding: 14px 0;
    flex-direction: column;
  }
  
  .site-logo {
    height: 36px;
  }
  
  .site-title {
    font-size: 24px;
  }
  
  h2 {
    font-size: 24px;
    margin: 28px 0 18px 0;
    padding: 12px 16px;
  }
  
  strong {
    font-weight: 700;
    color: #000000;
  }
  
  .racecourse-jump-section {
    padding: 24px 12px;
    margin: 24px 0;
  }
  
  .section-description {
    padding: 14px;
    font-size: 15px;
  }
  
  .racecourse-buttons {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .racecourse-button {
    padding: 14px 16px;
    font-size: 17px;
  }
  
  .racecourse-button img {
    width: 24px;
    height: 24px;
  }
  
  .jump-section-title {
    font-size: 26px;
    margin: 28px 0 18px 0;
    padding: 12px 16px;
  }
  
  .racecourse-subtitle {
    font-size: 24px;
    margin: 28px 0 18px 0;
    padding: 12px 16px;
  }
  
  
  .racecourse-item {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 10px;
  }
  
  .racecourse-description {
    padding: 8px 12px;
    font-size: 16px;
  }
  
  .racecourse-access {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .racecourse-name {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .racecourse-description {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  
  .racecourse-access {
    font-size: 11px;
    line-height: 1.3;
  }
  
  /* タッチ操作の最適化 */
  .racecourse-item {
    min-height: 44px; /* iOS推奨のタップ領域サイズ */
  }
  
  .distance-container {
    margin-top: 10px;
    padding-top: 10px;
  }
  
  .distance-title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .distance-buttons {
    gap: 6px;
  }
  
  .distance-button {
    padding: 7px 10px;
    font-size: 14px;
    min-width: 60px;
    min-height: 32px; /* タップしやすいサイズ */
  }
}

/* タッチデバイスでのホバー効果を無効化 */
@media (hover: none) {
  
  .distance-button:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: none;
  }
  
  .distance-button:active {
    background: #d1d5db;
    transform: translateY(0);
  }
}

/* パンくずリストのプレースホルダー（ヘッダー内） */
.breadcrumb-placeholder {
  height: 32px; /* パンくずリストの高さを確保 */
  margin-top: 8px;
}

/* パンくずリストコンテナ（ナビゲーションバーの下） */
.breadcrumb-container {
  background: 
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(22, 163, 74, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 25%, #d1fae5 50%, #a7f3d0 75%, #6ee7b7 100%);
  padding: 12px 0;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  position: sticky;
  top: 60px; /* ナビゲーションバーの高さを考慮 */
  z-index: 999;
  width: 100%;
}

/* パンくずリストのスタイル */
.breadcrumb {
  font-size: 14px;
  color: #000000;
  position: relative;
  z-index: 1;
  line-height: 1.8;
  padding: 4px 0;
}

.breadcrumb a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #333333;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.breadcrumb span {
  color: #000000;
}

.racecourse-overview {
  margin-top: 32px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.racecourse-overview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(34, 197, 94, 0.03) 2px,
      rgba(34, 197, 94, 0.03) 4px
    );
  pointer-events: none;
}

.overview-header {
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.overview-header h2 {
  margin: 0 0 24px 0;
  color: #000000;
  font-size: 32px;
  font-weight: 700;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.overview-description {
  margin: 0 auto 0 auto;
  color: #000000;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
  max-width: 700px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(10px);
}

.courses-section {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.surface-section {
  margin-bottom: 48px;
  padding: 32px 24px;
  background: 
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(22, 163, 74, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 2px solid rgba(34, 197, 94, 0.15);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.surface-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(34, 197, 94, 0.02) 2px,
      rgba(34, 197, 94, 0.02) 4px
    );
  pointer-events: none;
}

.surface-section h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 24px 0;
  color: #000000;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.surface-section h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 1px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.course-item {
  margin-bottom: 32px;
  padding: 24px;
  background: 
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px);
}


.course-item:last-child {
  margin-bottom: 0;
}

.course-title {
  margin: 0 0 24px 0;
  color: #000000;
  font-size: 36px;
  font-weight: 800;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  letter-spacing: 0.3px;
  overflow: hidden;
}

.course-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.8s ease;
}


.course-title:hover::before {
  left: 100%;
}

.course-info {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(5px);
}

.course-section {
  margin-bottom: 20px;
}

.course-section h4 {
  margin: 0 0 20px 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 16px 20px;
  background: 
    radial-gradient(circle at 30% 20%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(22, 163, 74, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 20px rgba(34, 197, 94, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.course-section h4::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.course-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.8));
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.course-section h4:hover::before {
  left: 100%;
}

/* 注釈スタイル */
.annotation {
  font-size: 0.7em;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 8px;
}

/* スマホ縦画面での注釈改行 */
@media (max-width: 480px) and (orientation: portrait) {
  .annotation {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }
}

  .course-section p {
    margin: 0;
    color: #000000;
    font-size: 18px;
    line-height: 1.6;
  }
  
  /* スマホでのセクション内テキストをコンパクトに */
  @media (max-width: 480px) {
    .course-section p {
      font-size: 15px;
      line-height: 1.4;
      margin-bottom: 8px;
    }
  }

/* コース説明コンテナのスタイル */
.course-description-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

/* 画像引用のスタイル */
.image-citation {
  margin: -10px auto 20px auto;
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
  text-align: center;
  opacity: 0.8;
}


  .course-description-text {
    flex: 1;
    margin: 0;
    color: #000000;
    font-size: 18px !important;
    line-height: 1.6;
    text-align: left;
    max-width: 100%;
  }
  
  /* スマホでの説明文をコンパクトに */
  @media (max-width: 480px) {
    .course-description-text {
      font-size: 15px !important;
      line-height: 1.4;
    }
  }

/* ハイライトスタイル */
.highlight {
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  display: inline-block;
}

.highlight.green {
  color: #15803d;
  text-decoration: underline;
  text-decoration-color: #22c55e;
  text-decoration-thickness: 2px;
  text-underline-offset: 1px;
}

.highlight.red {
  color: #dc2626;
  text-decoration: underline;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
  text-underline-offset: 1px;
}

.highlight.blue {
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-color: #3b82f6;
  text-decoration-thickness: 2px;
  text-underline-offset: 1px;
}

.highlight.yellow {
  color: #a16207;
  text-decoration: underline;
  text-decoration-color: #eab308;
  text-decoration-thickness: 2px;
  text-underline-offset: 1px;
}

.highlight.purple {
  color: #7c3aed;
  text-decoration: underline;
  text-decoration-color: #9333ea;
  text-decoration-thickness: 2px;
  text-underline-offset: 1px;
}

/* 画像モーダルのスタイル */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.image-modal.show .image-modal-content {
  transform: scale(1);
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #000000;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 10001;
  transition: color 0.2s ease;
}

.image-modal-close:hover {
  color: #000000;
}

.image-modal-image {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  vertical-align: top;
  text-indent: -9999px;
  overflow: hidden;
}

.image-modal-title {
  margin: 15px 0 0 0;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.image-modal-note {
  margin: 10px 0 0 0;
  color: #000000;
  font-size: 12px;
  text-align: center;
  font-style: italic;
}

/* 脚質統計表のスタイル */
.stats-table {
  margin-top: 16px;
}

.race-style-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.race-style-table th {
  background: #374151;
  color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #4b5563;
}

.race-style-table td {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-size: 18px;
}

.race-style-table tr:last-child td {
  border-bottom: 1px solid #e5e7eb;
}

.race-style-table tr:hover {
  background: #f9fafb;
}

.no-data {
  color: #000000;
  font-style: italic;
  text-align: center;
  padding: 20px;
  margin: 0;
}

.course-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.stat-label {
  display: block;
  color: #000000;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  display: block;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
}

.details-button {
  width: 100%;
  padding: 12px 16px;
  background: #1f2937;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.details-button:hover {
  background: #374151;
}

.back-button {
  margin-top: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn-back {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(31, 41, 55, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-back:hover {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(31, 41, 55, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

.btn-back:hover::before {
  left: 100%;
}

.no-courses {
  text-align: center;
  color: #000000;
  font-style: italic;
  padding: 20px;
}

/* スマホ最適化 - 東京競馬場ページ */
@media (max-width: 768px) {
  .racecourse-overview {
    padding: 30px 15px;
    margin-top: 24px;
  }
  
  .overview-header h2 {
    font-size: 26px;
  }
  
  .overview-description {
    font-size: 16px;
    padding: 16px;
  }
  
  .surface-section {
    padding: 24px 18px;
    margin-bottom: 32px;
  }
  
  .surface-section h3 {
    font-size: 20px;
  }
  
  .course-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .course-item {
    padding: 20px;
    margin-bottom: 24px;
  }
  
  .course-title {
    font-size: 30px;
    padding: 16px 20px;
  }
  
  .course-info {
    padding: 10px 14px;
    font-size: 17px;
  }
  
  .course-section h4 {
    font-size: 22px;
    padding: 14px 18px;
  }
  
  .course-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .course-description-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .course-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 auto 16px auto;
  }
  
  .image-modal-content {
    max-width: 95vw;
    max-height: 95vh;
    padding: 15px;
  }
  
  .image-modal-image {
    max-height: 60vh;
  }
  
  .image-modal-title {
    font-size: 16px;
  }
  
  .image-modal-note {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .racecourse-overview {
    padding: 24px 12px;
    margin-top: 20px;
  }
  
  .overview-header h2 {
    font-size: 22px;
  }
  
  .overview-description {
    font-size: 15px;
    padding: 14px;
  }
  
  .surface-section {
    padding: 20px 14px;
    margin-bottom: 28px;
  }
  
  .surface-section h3 {
    font-size: 18px;
  }
  
  .course-item {
    padding: 18px;
    margin-bottom: 20px;
  }
  
  /* スマホでのコース項目をよりコンパクトに */
  @media (max-width: 480px) {
    .course-item {
      padding: 14px;
      margin-bottom: 16px;
    }
  }
  
  .course-title {
    font-size: 26px;
    padding: 14px 18px;
  }
  
  .course-info {
    padding: 8px 12px;
    font-size: 16px;
  }
  
  .course-section h4 {
    font-size: 20px;
    padding: 12px 16px;
  }
  
  /* スマホでのセクション見出しをコンパクトに */
  @media (max-width: 480px) {
    .course-section h4 {
      font-size: 18px;
      padding: 10px 14px;
    }
  }
  
  .course-description-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .course-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto 12px auto;
  }
  
  .image-modal-content {
    max-width: 98vw;
    max-height: 98vh;
    padding: 10px;
  }
  
  .image-modal-image {
    max-height: 50vh;
  }
  
  .image-modal-title {
    font-size: 14px;
    margin-top: 10px;
  }
  
  .image-modal-close {
    font-size: 20px;
    top: 5px;
    right: 10px;
  }
  
  .image-modal-note {
    font-size: 10px;
    margin-top: 8px;
  }
  
  .breadcrumb-placeholder {
    height: 28px; /* スマホでは少し小さく */
    margin-top: 6px;
  }
  
  .breadcrumb-container {
    padding: 8px 0;
    top: 100px; /* スマホではナビゲーションバーが2段になるため高さを調整 */
  }
  
  .breadcrumb {
    font-size: 12px;
    line-height: 1.8;
    padding: 4px 0;
  }
}

/* 枠順統計表のスタイル */
.frame-stats-container {
  margin-top: 20px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* 騎手統計表のスタイル */
.jockey-stats-container {
  margin-top: 20px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.frame-stats-title {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.frame-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.frame-stats-table th {
  background: #374151;
  color: #ffffff;
  padding: 12px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid #4b5563;
}

.frame-stats-table td {
  padding: 10px 8px;
  text-align: center;
  font-size: 18px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* 枠順の色分け（1枠: 白、2枠: 薄い黒、3枠: 薄い赤、4枠: 薄い青、5枠: 薄い黄色、6枠: 薄い緑、7枠: 薄いオレンジ、8枠: 薄いピンク） */
.frame-1 { background-color: #ffffff; } /* 1枠: 白 */
.frame-2 { background-color: #f3f4f6; } /* 2枠: 薄い黒がかったグレー */
.frame-3 { background-color: rgba(239, 68, 68, 0.1); } /* 3枠: 薄い赤 */
.frame-4 { background-color: rgba(59, 130, 246, 0.1); } /* 4枠: 薄い青 */
.frame-5 { background-color: rgba(234, 179, 8, 0.1); } /* 5枠: 薄い黄色 */
.frame-6 { background-color: rgba(34, 197, 94, 0.1); } /* 6枠: 薄い緑 */
.frame-7 { background-color: rgba(245, 158, 11, 0.1); } /* 7枠: 薄いオレンジ */
.frame-8 { background-color: rgba(236, 72, 153, 0.1); } /* 8枠: 薄いピンク */

/* 脚質統計表の色分け（1行目: 白、2行目: 黒、3行目: 赤、4行目: 青） */
.race-style-1 { background-color: #ffffff; } /* 逃げ: 白 */
.race-style-2 { background-color: #f3f4f6; } /* 先行: 薄い黒がかったグレー */
.race-style-3 { background-color: rgba(239, 68, 68, 0.1); } /* 差し: 薄い赤 */
.race-style-4 { background-color: rgba(59, 130, 246, 0.1); } /* 追込み: 薄い青 */

/* 騎手統計表の色分け（1行目: 白、2行目: 黒、3行目: 赤、4行目: 青、5行目: 黄色） */
.jockey-1 { background-color: #ffffff; } /* 1位: 白 */
.jockey-2 { background-color: #f3f4f6; } /* 2位: 薄い黒がかったグレー */
.jockey-3 { background-color: rgba(239, 68, 68, 0.1); } /* 3位: 薄い赤 */
.jockey-4 { background-color: rgba(59, 130, 246, 0.1); } /* 4位: 薄い青 */
.jockey-5 { background-color: rgba(234, 179, 8, 0.1); } /* 5位: 薄い黄色 */

/* 枠順別勝率の色分け */
.frame-winning-rate-high { color: #1d4ed8; font-weight: 600; }
.frame-winning-rate-low { color: #dc2626; font-weight: 600; }
.frame-winning-rate-normal { color: #000000; font-weight: normal; }

/* 代表的なレースのスタイル */
.representative-races-container {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 2px solid rgba(34, 197, 94, 0.1);
  backdrop-filter: blur(5px);
}

.representative-races-description {
  margin: 0;
  color: #000000;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.race-item {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.race-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.race-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

.race-description {
  margin: 0 0 12px 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.race-link {
  margin: 12px 0 0 0;
  font-size: 14px;
  color: #6b7280;
}

.jra-link {
  color: #2563eb;
  text-decoration: underline;
  text-decoration-color: #2563eb;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 2px 4px;
}

.jra-link:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
  text-decoration-thickness: 2px;
}

.jra-link:active {
  color: #1e40af;
  text-decoration-color: #1e40af;
}

.jockey-stats-title {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.jockey-stats-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jockey-stats-table th {
  background: #374151;
  color: #ffffff;
  padding: 12px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  border: 1px solid #4b5563;
}

.jockey-stats-table td {
  padding: 10px 8px;
  text-align: center;
  font-size: 18px;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
}

.jockey-stats-table tr:hover {
  background: #f9fafb;
}

/* スマホ最適化 - 枠順統計表 */
@media (max-width: 768px) {
  .frame-stats-container {
    padding: 16px;
    margin-top: 16px;
  }
  
  .frame-stats-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .frame-stats-table th,
  .frame-stats-table td {
    padding: 8px 4px;
    font-size: 16px;
  }
  
  .jockey-stats-container {
    padding: 16px;
    margin-top: 16px;
  }
  
  .jockey-stats-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .jockey-stats-table th,
  .jockey-stats-table td {
    padding: 8px 4px;
    font-size: 16px;
  }
  
  .race-style-table th,
  .race-style-table td {
    padding: 8px 4px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .frame-stats-container {
    padding: 12px;
  }
  
  .frame-stats-title {
    font-size: 15px;
  }
  
  .frame-stats-table th,
  .frame-stats-table td {
    padding: 6px 3px;
    font-size: 14px;
  }
  
  .jockey-stats-container {
    padding: 12px;
  }
  
  .jockey-stats-title {
    font-size: 15px;
  }
  
  .jockey-stats-table th,
  .jockey-stats-table td {
    padding: 6px 3px;
    font-size: 14px;
  }
  
  .race-style-table th,
  .race-style-table td {
    padding: 6px 3px;
    font-size: 14px;
  }
}

/* スクロールトップボタンのスタイル */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1f2937;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top.show {
  display: flex;
}

/* スマホ最適化 - スクロールトップボタン */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* フッターのスタイル */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  margin-top: 60px;
  padding: 30px 0;
  text-align: center;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.footer-info-section {
  margin-bottom: 20px;
}

.footer-info-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 8px;
}

.footer-info-section p {
  margin: 8px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.footer-info-section p strong {
  color: #1f2937;
  font-weight: 600;
}

.site-footer p {
  margin: 0 0 8px 0;
  color: #000000;
  font-size: 14px;
}

.footer-note {
  font-size: 12px !important;
  color: #9ca3af !important;
  font-style: italic;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: #000000;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000000;
  text-decoration: underline;
}

/* ポリシーページのスタイル */
.policy-section {
  margin: 40px 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.policy-content h2 {
  margin: 0 0 20px 0;
  color: #000000;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 16px;
}

.last-updated {
  text-align: center;
  color: #000000;
  font-size: 14px;
  margin-bottom: 32px;
  font-style: italic;
}

.policy-content h3 {
  margin: 32px 0 16px 0;
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  border-left: 4px solid #22c55e;
  padding-left: 16px;
}

.policy-content p {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.7;
}

.policy-content ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.policy-content li {
  margin: 0 0 8px 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.6;
}

.policy-content a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 500;
}

.policy-content a:hover {
  color: #16a34a;
  text-decoration: underline;
}

/* スマホ最適化 - ポリシーページ */
@media (max-width: 768px) {
  .policy-content {
    padding: 24px;
    margin: 20px 0;
  }
  
  .policy-content h2 {
    font-size: 24px;
  }
  
  .policy-content h3 {
    font-size: 18px;
    margin: 24px 0 12px 0;
  }
  
  .policy-content p,
  .policy-content li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .policy-content {
    padding: 16px;
    margin: 16px 0;
  }
  
  .policy-content h2 {
    font-size: 20px;
  }
  
  .policy-content h3 {
    font-size: 16px;
    margin: 20px 0 10px 0;
  }
  
  .policy-content p,
  .policy-content li {
    font-size: 13px;
  }
}

/* サイトマップのスタイル */
.sitemap-section {
  margin: 40px 0;
}

.sitemap-content {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.sitemap-content h2 {
  margin: 0 0 20px 0;
  color: #000000;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 16px;
}

.sitemap-description {
  text-align: center;
  color: #000000;
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.sitemap-categories {
  display: grid;
  gap: 32px;
}

.sitemap-category {
  background: #f8fafc;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.sitemap-category h3 {
  margin: 0 0 20px 0;
  color: #000000;
  font-size: 20px;
  font-weight: 600;
  border-left: 4px solid #22c55e;
  padding-left: 16px;
}

.sitemap-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-links li {
  margin: 0 0 16px 0;
  padding: 16px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.sitemap-links li:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #22c55e;
}

.sitemap-links a {
  display: block;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.sitemap-links a:hover {
  color: #22c55e;
}

.link-description {
  display: block;
  color: #000000;
  font-size: 14px;
  line-height: 1.5;
}

.sitemap-note {
  margin-top: 40px;
  padding: 24px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.sitemap-note h3 {
  margin: 0 0 16px 0;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
}

.sitemap-note ul {
  margin: 0;
  padding-left: 20px;
}

.sitemap-note li {
  margin: 0 0 8px 0;
  color: #000000;
  font-size: 14px;
  line-height: 1.6;
}

/* スマホ最適化 - サイトマップ */
@media (max-width: 768px) {
  .sitemap-content {
    padding: 24px;
    margin: 20px 0;
  }
  
  .sitemap-content h2 {
    font-size: 24px;
  }
  
  .sitemap-description {
    font-size: 15px;
  }
  
  .sitemap-categories {
    gap: 24px;
  }
  
  .sitemap-category {
    padding: 20px;
  }
  
  .sitemap-category h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .sitemap-links li {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .sitemap-links a {
    font-size: 15px;
  }
  
  .link-description {
    font-size: 13px;
  }
  
  .sitemap-note {
    margin-top: 32px;
    padding: 20px;
  }
  
  .sitemap-note h3 {
    font-size: 16px;
  }
  
  .sitemap-note li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .sitemap-content {
    padding: 16px;
    margin: 16px 0;
  }
  
  .sitemap-content h2 {
    font-size: 20px;
  }
  
  .sitemap-description {
    font-size: 14px;
  }
  
  .sitemap-categories {
    gap: 20px;
  }
  
  .sitemap-category {
    padding: 16px;
  }
  
  .sitemap-category h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .sitemap-links li {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .sitemap-links a {
    font-size: 14px;
  }
  
  .link-description {
    font-size: 12px;
  }
  
  .sitemap-note {
    margin-top: 24px;
    padding: 16px;
  }
  
  .sitemap-note h3 {
    font-size: 15px;
  }
  
  .sitemap-note li {
    font-size: 12px;
  }
}

/* スマホ最適化 - フッター */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 40px;
    padding: 20px 0;
  }
  
  .footer-info {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }
  
  .footer-info-section h3 {
    font-size: 15px;
  }
  
  .footer-info-section p {
    font-size: 13px;
  }
  
  .site-footer p {
    font-size: 13px;
  }
  
  .footer-note {
    font-size: 11px !important;
  }

  /* 代表的なレース - スマホ対応 */
  .representative-races-container {
    padding: 16px;
    margin-top: 16px;
  }

  .representative-races-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .race-item {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .race-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .race-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .race-link {
    font-size: 13px;
  }

  .jra-link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    margin-top: 30px;
    padding: 16px 0;
  }
  
  .footer-info {
    gap: 20px;
    padding: 0 12px;
  }
  
  .footer-info-section h3 {
    font-size: 14px;
  }
  
  .footer-info-section p {
    font-size: 12px;
  }
  
  .site-footer p {
    font-size: 12px;
  }
  
  .footer-note {
    font-size: 10px !important;
  }

  /* 代表的なレース - 小さいスマホ対応 */
  .representative-races-container {
    padding: 12px;
    margin-top: 12px;
  }

  .representative-races-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .race-item {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .race-title {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .race-description {
    font-size: 13px;
    line-height: 1.5;
  }

  .race-link {
    font-size: 12px;
  }

  .jra-link {
    font-size: 12px;
  }
}

/* 内回り・外回り表示のスタイル */
.course-type {
  font-size: 0.85em;
  color: #059669;
  font-weight: 600;
  background: rgba(5, 150, 105, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

