/*
Theme Name: ウマメディア (Uma Media)
Theme URI: https://github.com/mizum/umamedia
Author: Antigravity
Author URI: 
Description: AIキャラクターと一緒に競馬予想や分析を楽しむための、競馬メディア専用WordPressテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, featured-images, custom-logo, translation-ready, dynamic-design
Text Domain: umamedia
*/

/* ==========================================
   Google Fonts Import
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@500&family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@700;900&display=swap');

/* ==========================================
   Design System Tokens (CSS Variables)
   ========================================== */
:root {
  /* Brand Colors */
  --primary-color: #008236;       /* テーマグリーン (フォアグリーン) */
  --primary-light: #f0fdf4;       /* 背景用薄緑 */
  --secondary-color: #ffb900;     /* ゴールド / イエロー */
  --secondary-dark: #7b3306;      /* ゴールド用濃茶テキスト */
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-dark: #101828;          /* ほぼ黒 */
  --color-slate-900: #0f172a;     /* slate-900 */
  --color-slate-600: #4a5565;     /* slate-600 (サブテキスト) */
  --color-slate-500: #64748b;     /* slate-500 */
  --color-bg-gray: #f1f5f9;       /* 薄いグレー背景 */
  --border-color: rgba(15, 23, 42, 0.09); /* 繊細なボーダー */
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Fonts */
  --font-japanese: 'Noto Sans JP', sans-serif;
  --font-english: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* 競馬の枠番別カラー (1〜8枠) */
  --color-waku-1: #ffffff;
  --color-waku-1-txt: #101828;
  --color-waku-2: #1a1a1a;
  --color-waku-2-txt: #ffffff;
  --color-waku-3: #dc2626;
  --color-waku-3-txt: #ffffff;
  --color-waku-4: #2563eb;
  --color-waku-4-txt: #ffffff;
  --color-waku-5: #d97706; /* 競馬の黄色は少しオレンジがかった見やすい色に調整 */
  --color-waku-5-txt: #ffffff;
  --color-waku-6: #16a34a;
  --color-waku-6-txt: #ffffff;
  --color-waku-7: #ea580c;
  --color-waku-7-txt: #ffffff;
  --color-waku-8: #ec4899;
  --color-waku-8-txt: #ffffff;
}

/* ==========================================
   Base Styles & Reset
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-japanese);
  background-color: var(--color-white);
  color: var(--color-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================
   Layout Containers
   ========================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.section-padding {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* ==========================================
   Header Component
   ========================================== */
.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-emoji {
  font-size: 24px;
  line-height: 32px;
}

.logo-text {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 20px;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate-600);
  border-radius: 12px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.nav-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Hero Section Component
   ========================================== */
.hero-section {
  position: relative;
  height: 480px;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-dark);
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(162.155deg, rgba(21, 128, 61, 0.9) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 10;
}

.hero-tag {
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-tag-icon {
  width: 12px;
  height: 12px;
}

.hero-title {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 60px;
  line-height: 75px;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 20px;
  line-height: 32.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 512px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 24px;
  border-radius: 16px;
  transition: var(--transition-normal);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--secondary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #fca800; /* やや濃いイエロー */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================
   Stats Section Component
   ========================================== */
.stats-section {
  background-color: var(--primary-color);
  padding: 16px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.stats-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.stats-value {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-white);
}

.stats-sub {
  font-size: 12px;
  color: #b9f8cf;
  margin-top: 4px;
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 32px;
}

.section-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-category {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00a63e;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
}

.section-category-icon {
  width: 14px;
  height: 14px;
}

.section-title {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-slate-900);
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
}

.view-all-link:hover {
  color: #006028;
}

.view-all-icon {
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}

.view-all-link:hover .view-all-icon {
  transform: translateX(2px);
}

/* ==========================================
   Card Grid Layouts
   ========================================== */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

/* ==========================================
   Race Prediction Card Component
   ========================================== */
.race-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.race-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.race-card-header {
  position: relative;
  height: 144px;
  background-color: #f1f5f9;
}

.race-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.race-card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 60%);
}

.race-grade-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 9999px;
  padding: 2px 10px;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  box-shadow: var(--shadow-sm);
}

.grade-g1 {
  background-color: var(--secondary-color);
  color: var(--secondary-dark);
}

.grade-g2 {
  background-color: #e2e8f0;
  color: #334155;
}

.grade-g3 {
  background-color: #ffd6a8;
  color: #9f2d00;
}

.race-date {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.race-date-icon {
  width: 10px;
  height: 10px;
}

.race-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.race-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

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

.race-name {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 18px;
  line-height: 22.5px;
  color: var(--color-dark);
}

.race-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-slate-500);
  margin-top: 2px;
}

.predictor-badge {
  background-color: var(--primary-light);
  color: #166534;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prediction-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.prediction-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.prediction-mark {
  font-weight: 700;
  font-size: 12px;
  color: var(--color-slate-500);
  width: 16px;
  text-align: center;
}

.prediction-num {
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.prediction-name {
  font-size: 14px;
  font-weight: 500;
  color: #1e2939;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prediction-odds {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: #bb4d00;
}

/* 枠番カラー設定 (1〜8枠) */
.waku-1 { background-color: var(--color-waku-1); color: var(--color-waku-1-txt); }
.waku-2 { background-color: var(--color-waku-2); color: var(--color-waku-2-txt); }
.waku-3 { background-color: var(--color-waku-3); color: var(--color-waku-3-txt); }
.waku-4 { background-color: var(--color-waku-4); color: var(--color-waku-4-txt); }
.waku-5 { background-color: var(--color-waku-5); color: var(--color-waku-5-txt); }
.waku-6 { background-color: var(--color-waku-6); color: var(--color-waku-6-txt); }
.waku-7 { background-color: var(--color-waku-7); color: var(--color-waku-7-txt); }
.waku-8 { background-color: var(--color-waku-8); color: var(--color-waku-8-txt); }

.confidence-area {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.confidence-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-slate-500);
}

.confidence-badge {
  border-radius: 9999px;
  padding: 2px 8px;
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 12px;
  color: var(--color-white);
}

.confidence-high { background-color: #16a34a; }
.confidence-medium { background-color: #d97706; }
.confidence-low { background-color: #dc2626; }

.confidence-bar-bg {
  background-color: var(--color-bg-gray);
  height: 6px;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  border-radius: 9999px;
}

.fill-high { background-color: #16a34a; }
.fill-medium { background-color: #d97706; }
.fill-low { background-color: #dc2626; }

/* ==========================================
   Characters Section Component
   ========================================== */
.characters-section {
  background-color: var(--primary-light);
}

.character-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.character-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.character-top-bar {
  height: 8px;
  width: 100%;
}

.character-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.character-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.character-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21.6px;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1);
}

.avatar-sakura { background: linear-gradient(135deg, #f9a8d4 0%, #f43f5e 100%); }
.avatar-aoi { background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 100%); }
.avatar-haru { background: linear-gradient(135deg, #86efac 0%, #16a34a 100%); }
.avatar-yuki { background: linear-gradient(135deg, #67e8f9 0%, #0891b2 100%); }

.character-name-area {
  display: flex;
  flex-direction: column;
}

.character-name {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-dark);
}

.character-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-slate-500);
}

.character-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.character-tag {
  background-color: var(--color-bg-gray);
  color: var(--color-slate-500);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
}

.character-desc {
  font-size: 12px;
  line-height: 19.5px;
  color: var(--color-slate-500);
  font-weight: 500;
}

.character-card-cta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.writer-archive-page {
  background: #f8fafc;
}

.writer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.writer-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.writer-card-top {
  height: 8px;
}

.writer-card-top-sakura { background: linear-gradient(90deg, #f9a8d4, #f43f5e); }
.writer-card-top-aoi { background: linear-gradient(90deg, #93c5fd, #3b82f6); }
.writer-card-top-haru { background: linear-gradient(90deg, #86efac, #16a34a); }
.writer-card-top-yuki { background: linear-gradient(90deg, #67e8f9, #0891b2); }

.writer-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.writer-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.writer-card-avatar,
.writer-card-avatar-image {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.writer-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
}

.writer-card-avatar-sakura { background: linear-gradient(135deg, #f9a8d4, #f43f5e); }
.writer-card-avatar-aoi { background: linear-gradient(135deg, #93c5fd, #3b82f6); }
.writer-card-avatar-haru { background: linear-gradient(135deg, #86efac, #16a34a); }
.writer-card-avatar-yuki { background: linear-gradient(135deg, #67e8f9, #0891b2); }

.writer-card-avatar-image {
  object-fit: cover;
}

.writer-card-heading {
  flex: 1;
  min-width: 0;
}

.writer-card-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
}

.writer-card-role {
  margin: 4px 0 0;
  color: var(--color-slate-500);
  font-size: 14px;
}

.writer-card-count {
  background: var(--color-bg-gray);
  color: var(--color-slate-700);
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.writer-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.writer-card-tag {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.writer-card-description {
  color: var(--color-slate-600);
  font-size: 14px;
  line-height: 1.8;
}

.writer-card-actions {
  margin-top: auto;
}

.writer-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  background: var(--color-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.writer-card-link:hover {
  opacity: 0.92;
}

/* ==========================================
   Blog Section Component
   ========================================== */
.blog-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  height: 160px;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category-badge {
  background-color: var(--color-bg-gray);
  color: var(--color-slate-600);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
}

.blog-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-dark);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-slate-500);
  margin-top: auto;
}

.blog-author {
  font-weight: 500;
}

.blog-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-read-time-icon {
  width: 10px;
  height: 10px;
}

/* ==========================================
   Video / YouTube Section Component
   ========================================== */
.video-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  position: relative;
  height: 177px;
  background-color: #f1f5f9;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.video-card:hover .video-play-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.play-button-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-color);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.video-card:hover .play-button-icon {
  transform: scale(1.1);
  background-color: #00a63e;
}

.play-button-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--color-white);
  margin-left: 4px;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(15, 23, 42, 0.75);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 6px;
}

.video-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--color-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-slate-500);
  margin-top: auto;
}

.video-views {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-views-icon {
  width: 11px;
  height: 11px;
}

/* ==========================================
   Footer Component
   ========================================== */
.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--border-color);
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 23px;
  color: var(--color-slate-600);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 16px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-menu-item a {
  font-size: 14px;
  color: var(--color-slate-600);
}

.footer-menu-item a:hover {
  color: var(--primary-color);
}

.footer-wp-types {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-wp-type-item {
  font-size: 12px;
  color: var(--color-slate-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-wp-type-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--color-slate-500);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--color-slate-500);
  text-align: center;
}

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 40px;
    line-height: 50px;
  }
  .hero-description {
    font-size: 16px;
    line-height: 26px;
  }
  .site-navigation {
    display: none; /* スマホ用ナビは今回は簡略化 */
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .blog-detail-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}

/* ==========================================
   Prediction Archive Page Styles
   ========================================== */
.archive-prediction-page {
  background-color: #f8fafc !important;
}

.archive-header-area {
  margin-bottom: 24px;
}

.filter-tab {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  color: var(--color-slate-600);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  padding: 8px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--color-bg-gray);
  color: var(--color-dark);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--color-white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

/* カードヘッダー内の左右表示 */
.race-card-header-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.race-card-location {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 500;
}

/* 一覧用予想テーブル背景ボックス */
.prediction-table-box {
  background-color: var(--color-bg-gray);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
}

.prediction-table-box .prediction-row {
  padding: 2px 0;
}

/* カード下部詳細リンク */
.card-detail-link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
  margin-top: 12px;
  transition: var(--transition-fast);
}

.card-detail-link:hover {
  color: #006028;
}

.card-detail-link .arrow-icon {
  width: 14px;
  height: 14px;
  transition: var(--transition-fast);
}

.card-detail-link:hover .arrow-icon {
  transform: translateX(3px);
}

/* ==========================================
   Race Prediction Detail Page Styles
   ========================================== */
.prediction-detail-page {
  background-color: #f8fafc !important;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 24px;
  transition: var(--transition-fast);
}

.back-link:hover {
  color: #006028;
}

/* レース詳細ヘッダー */
.race-detail-header-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.race-detail-hero {
  position: relative;
  height: 208px;
  width: 100%;
  background-color: #f1f5f9;
}

.race-detail-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.race-detail-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.race-detail-hero-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.race-detail-hero-badge {
  display: inline-flex;
}

.race-detail-title {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 30px;
  line-height: 36px;
  color: var(--color-white);
}

.race-detail-meta-row {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}

.race-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* クイック情報メタ */
.race-quick-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 72px;
  align-items: center;
}

.quick-meta-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-right: 1px solid var(--border-color);
}

.quick-meta-col:last-child {
  border-right: none;
}

.quick-meta-label {
  font-size: 12px;
  color: var(--color-slate-500);
  margin-bottom: 4px;
}

.quick-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

/* タブナビゲーション */
.detail-tabs-nav-container {
  margin-bottom: 24px;
}

.detail-tabs-nav {
  background-color: var(--color-bg-gray);
  padding: 4px;
  border-radius: 16px;
  display: flex;
  gap: 4px;
  width: 100%;
}

.detail-tab-btn {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-slate-500);
  border-radius: 12px;
  transition: var(--transition-fast);
  background: none;
}

.detail-tab-btn:hover {
  color: var(--color-dark);
}

.detail-tab-btn.active {
  background-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}

/* タブコンテンツエリア */
.tab-content-panel {
  display: none;
}

.tab-content-panel.active {
  display: block;
}

/* タブ1: 予想ピック */
.detail-comment-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.detail-comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-comment-text-box {
  background-color: var(--color-bg-gray);
  border-radius: 16px;
  padding: 16px;
  font-size: 14px;
  line-height: 22.75px;
  color: #364153;
}

.detail-predictions-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.detail-card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 18px;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.detail-card-heading-icon {
  width: 18px;
  height: 18px;
}

.detail-prediction-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-prediction-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.detail-prediction-item.item-double {
  background-color: #fef2f2;
  border-color: #ffc9c9;
}

.detail-prediction-item.item-single {
  background-color: #eff6ff;
  border-color: #bedbff;
}

.detail-prediction-item.item-triangle {
  background-color: #fffbeb;
  border-color: #fee685;
}

.detail-pred-symbol {
  font-weight: 900;
  font-size: 24px;
  width: 32px;
  text-align: center;
}

.item-double .detail-pred-symbol { color: #e7000b; }
.item-single .detail-pred-symbol { color: #155dfc; }
.item-triangle .detail-pred-symbol { color: #e17100; }

.detail-pred-num {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin-left: 16px;
}

.detail-pred-info {
  margin-left: 16px;
  flex-grow: 1;
}

.detail-pred-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.detail-pred-label {
  font-size: 12px;
  color: var(--color-slate-500);
}

.detail-pred-odds-box {
  text-align: right;
}

.detail-pred-odds-val {
  font-family: var(--font-mono);
  font-size: 18px;
  color: #bb4d00;
}

.detail-pred-odds-lbl {
  font-size: 12px;
  color: var(--color-slate-500);
}

.detail-confidence-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-confidence-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.detail-confidence-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-confidence-bar-lbl {
  font-size: 12px;
  color: var(--color-slate-500);
}

.detail-confidence-bar-val {
  background-color: #16a34a;
  color: var(--color-white);
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 9999px;
}

.detail-confidence-bar-bg {
  background-color: var(--color-bg-gray);
  height: 6px;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
}

.detail-confidence-bar-fill {
  background-color: #16a34a;
  height: 100%;
  border-radius: 9999px;
}

.detail-confidence-note {
  font-size: 12px;
  color: var(--color-slate-500);
  margin-top: 12px;
}

/* タブ2: 出走馬一覧 */
.entries-table-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.entries-table-container {
  width: 100%;
  overflow-x: auto;
}

.entries-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.entries-table th {
  background-color: var(--color-bg-gray);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-slate-500);
}

.entries-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--color-dark);
  vertical-align: middle;
}

.entries-table tr:last-child td {
  border-bottom: none;
}

.entries-table tr.highlight-row {
  background-color: rgba(240, 253, 244, 0.5);
}

.table-waku-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.table-num {
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: center;
}

.table-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-name-symbol {
  font-weight: 900;
  font-size: 14px;
}
.table-name-symbol.symbol-double { color: #e7000b; }
.table-name-symbol.symbol-single { color: #155dfc; }
.table-name-symbol.symbol-triangle { color: #e17100; }

.table-name {
  font-weight: 700;
}

.table-jockey {
  color: var(--color-slate-600);
}

.table-weight {
  font-family: var(--font-mono);
  color: var(--color-dark);
}

.table-odds {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #bb4d00;
}

.table-score-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-score-bar-bg {
  background-color: #f3f4f6;
  height: 8px;
  width: 100px;
  border-radius: 9999px;
  overflow: hidden;
}

.table-score-bar-fill {
  height: 100%;
  border-radius: 9999px;
}

.table-score-val {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--color-slate-500);
  width: 24px;
  text-align: right;
}

/* タブ3: データ比較 */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.comparison-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.radar-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 260px;
  margin-top: 16px;
}

.radar-svg {
  width: 260px;
  height: 260px;
}

.radar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}

.legend-double .legend-color { background-color: #00a63e; }
.legend-triangle .legend-color { background-color: #e17100; }

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}

.bar-lbl-name {
  width: 90px;
  text-align: right;
  color: #374151;
  font-family: var(--font-japanese);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-graphic-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-graphic-bg {
  background-color: var(--color-bg-gray);
  height: 12px;
  border-radius: 9999px;
  overflow: hidden;
  flex-grow: 1;
  position: relative;
}

.bar-graphic-fill {
  background-color: #3b82f6;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

.bar-graphic-fill.fill-double { background-color: #00a63e; }
.bar-graphic-fill.fill-triangle { background-color: #e17100; }
.bar-graphic-fill.fill-other { background-color: #94a3b8; }

.bar-val {
  width: 24px;
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  color: #94a3b8;
}



/* ==========================================
   Blog Post Detail Page Styles
   ========================================== */
.blog-detail-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.blog-main-content {
  min-width: 0;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 記事メインカード */
.blog-post-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.blog-post-hero-container {
  width: 100%;
  height: 360px;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.blog-post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-content-wrap {
  padding: 32px;
}

.blog-post-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.blog-post-badge.badge-guide {
  color: #16a34a;
  background-color: #eff6ff; /* light blue/green */
}

.blog-post-title {
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-slate-500);
  align-items: center;
  margin-bottom: 24px;
}

.blog-post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #86efac;
  font-size: 12px;
}

.blog-post-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: 24px;
}

/* 記事本文 */
.blog-post-body {
  color: #374151;
  font-size: 16px;
  line-height: 1.8;
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body strong {
  font-weight: 700;
  color: var(--color-dark);
}

.blog-post-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.blog-post-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

.blog-point-box {
  background-color: var(--primary-light);
  border: 1px dashed #86efac;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.blog-point-box p {
  margin-bottom: 0 !important;
  font-weight: 500;
  color: #166534;
}

.blog-point-box strong {
  color: var(--primary-color);
}

/* サイドバーカード共通 */
.sidebar-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* 著者プロフィールカード */
.author-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.author-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #86efac;
  font-size: 24px;
}

.author-profile-name-area {
  display: flex;
  flex-direction: column;
}

.author-profile-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.author-profile-role {
  font-size: 12px;
  color: var(--color-slate-500);
}

.author-profile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-slate-600);
}

/* 関連記事カード */
.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition-fast);
}

.related-post-item:hover {
  opacity: 0.8;
}

.related-post-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f1f5f9;
}

.related-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.related-post-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* 各種カテゴリバッジの色 */
.related-post-badge.badge-analysis {
  color: #2563eb;
  background-color: #eff6ff;
}
.related-post-badge.badge-column {
  color: #d97706;
  background-color: #fffbeb;
}
.related-post-badge.badge-track {
  color: #0891b2;
  background-color: #ecfeff;
}
.related-post-badge.badge-guide {
  color: #16a34a;
  background-color: #f0fdf4;
}

.related-post-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.4;
  /* line-clamp (max 2 lines) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   Blog Archive Page Styles
   ========================================== */
.archive-blog-page {
  background-color: #f8fafc !important;
}

.blog-list-header {
  margin-bottom: 32px;
}

.blog-list-category {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00a63e;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 8px;
}

.blog-list-category-icon {
  width: 14px;
  height: 14px;
}

.blog-list-title {
  font-family: var(--font-english);
  font-weight: 900;
  font-size: 30px;
  line-height: 36px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.blog-list-desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-slate-500);
}

/* ブログ一覧用カードグリッド */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 56px;
}

@media (max-width: 1024px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ブログアーカイブ用カードコンポーネント */
.blog-archive-card {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-archive-card-image {
  height: 176px;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.blog-archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.blog-archive-card:hover .blog-archive-card-image img {
  transform: scale(1.05);
}

.blog-archive-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* カテゴリバッジ */
.blog-badge-guide {
  background-color: #dcfce7;
  color: #008236;
}
.blog-badge-analysis {
  background-color: #dbeafe;
  color: #1447e6;
}
.blog-badge-column {
  background-color: #fef3c6;
  color: #bb4d00;
}
.blog-badge-track {
  background-color: #cefafe;
  color: #007595;
}

.blog-archive-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.blog-archive-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 19.25px;
  color: #101828;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38.5px;
}

.blog-archive-card-title a:hover {
  color: var(--primary-color);
}

.blog-archive-card-excerpt {
  font-size: 12px;
  font-weight: 500;
  line-height: 19.5px;
  color: #64748b;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 39px;
}

/* メタ情報セクション */
.blog-archive-card-meta {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-archive-card-author {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-archive-card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-archive-card-stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}

.blog-archive-card-stat-icon {
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Pagination Component Styles
   ========================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pagination {
  margin: 48px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--color-white);
  color: var(--color-slate-600);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition-normal);
  text-decoration: none;
}

.pagination a.page-numbers:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pagination .page-numbers.current {
  background-color: var(--primary-color);
  color: var(--color-white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  cursor: default;
}

.pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-slate-500);
  cursor: default;
}

.pagination .prev.page-numbers,
.pagination .next.page-numbers {
  font-size: 16px;
}

.pagination .prev.page-numbers:hover {
  transform: translate(-2px, -2px);
}

.pagination .next.page-numbers:hover {
  transform: translate(2px, -2px);
}

/* ==========================================
   Card Link Wrappers
   ========================================== */
.race-card-link-wrapper,
.blog-card-link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.race-card-link-wrapper:hover,
.blog-card-link-wrapper:hover {
  text-decoration: none;
  color: inherit;
}

/* Propagate hover effects to children */
.blog-card-link-wrapper:hover .blog-card-image img {
  transform: scale(1.05);
}

.race-card-link-wrapper:hover .race-card,
.blog-card-link-wrapper:hover .blog-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.keiba-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--color-slate-500);
}

.keiba-quick-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.keiba-single-grid {
  margin-top: 24px;
  align-items: start;
}

.keiba-main-column {
  grid-column: 1 / span 2;
}

.keiba-side-column {
  grid-column: 3 / span 1;
}

.keiba-content-grid {
  margin-top: 24px;
}

.keiba-article-body {
  padding-top: 4px;
}

.keiba-side-meta {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.keiba-side-meta div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.keiba-side-meta strong {
  font-size: 12px;
  color: var(--color-slate-500);
}

.keiba-side-meta span {
  font-size: 14px;
  color: var(--color-dark);
  word-break: break-word;
}

.keiba-mark-list,
.keiba-bet-list {
  display: grid;
  gap: 16px;
}

.keiba-mark-card,
.keiba-bet-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.keiba-mark-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.keiba-mark-symbol {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.keiba-mark-name,
.keiba-bet-selection {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
}

.keiba-mark-reason,
.keiba-bet-reason {
  margin: 0;
  color: var(--color-slate-500);
  line-height: 1.8;
  font-size: 14px;
}

.keiba-bet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.keiba-bet-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

.keiba-structured-card {
  margin-top: 24px;
}

.keiba-structured-pre {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.8;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.keiba-section-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.keiba-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.keiba-section-title {
  margin: 0;
  font-family: var(--font-english);
  font-size: 18px;
  line-height: 28px;
  font-weight: 900;
  color: #101828;
}

.keiba-grade-badge {
  background: #ffb900;
  color: #7b3306;
}

.keiba-basic-hero {
  width: 100%;
  height: 208px;
  border-radius: 12px;
  overflow: hidden;
}

.keiba-basic-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.keiba-meta-grid,
.keiba-admin-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.keiba-meta-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.keiba-meta-label {
  font-size: 12px;
  line-height: 16px;
  color: #64748b;
}

.keiba-meta-value {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #101828;
  word-break: break-word;
}

.keiba-inline-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 1.5px rgba(0,0,0,0.1), 0 1px 1px rgba(0,0,0,0.1);
}

.keiba-inline-title {
  margin: 0 0 12px;
  font-family: var(--font-english);
  font-size: 18px;
  line-height: 28px;
  font-weight: 900;
  color: #101828;
}

.keiba-inline-text {
  margin: 0;
  font-size: 14px;
  line-height: 22.75px;
  color: #364153;
}

.keiba-inline-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 16px;
  color: #64748b;
}

.keiba-picks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keiba-pick-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(180px, 280px);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.keiba-pick-row.tone-primary {
  background: #fef2f2;
  border-color: #ffc9c9;
}

.keiba-pick-row.tone-secondary {
  background: #eff6ff;
  border-color: #bedbff;
}

.keiba-pick-row.tone-accent {
  background: #fffbeb;
  border-color: #fee685;
}

.keiba-pick-row.tone-muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.keiba-pick-row.tone-warn {
  background: #fff7ed;
  border-color: #fed7aa;
}

.keiba-pick-symbol {
  font-size: 24px;
  line-height: 32px;
  font-weight: 900;
}

.keiba-pick-row.tone-primary .keiba-pick-symbol { color: #e7000b; }
.keiba-pick-row.tone-secondary .keiba-pick-symbol { color: #155dfc; }
.keiba-pick-row.tone-accent .keiba-pick-symbol { color: #e17100; }
.keiba-pick-row.tone-muted .keiba-pick-symbol { color: #64748b; }
.keiba-pick-row.tone-warn .keiba-pick-symbol { color: #c2410c; }

.keiba-pick-main {
  min-width: 0;
}

.keiba-pick-name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #101828;
}

.keiba-pick-sub {
  font-size: 13px;
  line-height: 18px;
  color: #64748b;
}

.keiba-pick-reason {
  font-size: 13px;
  line-height: 18px;
  color: #364153;
}

.keiba-bets-table-wrap {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.keiba-bets-table {
  width: 100%;
  border-collapse: collapse;
}

.keiba-bets-table th {
  background: #f1f5f9;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
}

.keiba-bets-table td {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  line-height: 18px;
  color: #364153;
  vertical-align: top;
}

.keiba-bets-table td:first-child,
.keiba-bets-table td:nth-child(2) {
  font-weight: 700;
  color: #101828;
  white-space: nowrap;
}

.keiba-writer-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.keiba-writer-inline-avatar,
.keiba-writer-avatar-image {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid #e2e8f0;
}

.keiba-writer-inline-emoji,
.keiba-writer-avatar-emoji {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #101828;
  font-size: 18px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.keiba-writer-inline-link,
.keiba-writer-name-link,
.keiba-writer-archive-link {
  color: #008236;
  text-decoration: none;
  font-weight: 700;
}

.keiba-writer-inline-link:hover,
.keiba-writer-name-link:hover,
.keiba-writer-archive-link:hover {
  text-decoration: underline;
}

.keiba-writer-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.keiba-writer-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.keiba-writer-text {
  min-width: 0;
}

.keiba-writer-profile {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: #364153;
}

@media (max-width: 960px) {
  .keiba-quick-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .keiba-main-column,
  .keiba-side-column {
    grid-column: auto;
  }

  .keiba-meta-grid,
  .keiba-admin-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .keiba-pick-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .keiba-pick-reason {
    grid-column: 2;
  }

  .keiba-writer-identity {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .keiba-quick-meta-grid {
    grid-template-columns: 1fr;
  }

  .keiba-bet-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .keiba-meta-grid,
  .keiba-admin-meta-grid {
    grid-template-columns: 1fr;
  }

  .keiba-bets-table th,
  .keiba-bets-table td {
    padding: 10px;
  }

  .keiba-writer-identity {
    flex-direction: column;
    align-items: flex-start;
  }
}
