@charset "UTF-8";
/* JRA-VAN World 競走馬ページ専用CSS v6 / www_sample対応
 * 既存の /css/jra-van.css より後に読み込みます。共通CSSは無変更。
 * タイトル帯・パンくず・ヘッダー・フッターは共通側のHTML/CSSを利用。
 * 本文は .jvw-horse-page 内、外枠調整は #horse-data 内に限定。
 */
#horse-data #container.jvw-horse-host { padding-top: 0; }

.jvw-horse-page {
  --jvw-horse-width: 960px;
  font-feature-settings: normal;
  -webkit-font-feature-settings: normal;
  --jvw-horse-paper: #fdfdfd;
  --jvw-horse-ink: #222222;
  --jvw-horse-line: #dddddd;
  --jvw-horse-head: #efefef;
  --jvw-horse-stripe: #f9f9f9;
  --jvw-horse-accent: #ff4081;
  --jvw-horse-link: #3498db;
  --jvw-horse-muted: #666666;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--jvw-horse-ink);
  background: var(--jvw-horse-paper);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans CJK JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: normal;
  text-align: left;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-wrap: break-word;
}
.jvw-horse-page,
.jvw-horse-page *,
.jvw-horse-page *::before,
.jvw-horse-page *::after { box-sizing: border-box; }
.jvw-horse-page :where(h1,
h2,
h3,
p,
ul,
ol,
figure) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
.jvw-horse-page :where(ul,
ol) { list-style: none; }
.jvw-horse-page :where(a) { color: inherit; text-decoration: none; }
.jvw-horse-page :where(img) { display: block; max-width: 100%; height: auto; border: 0; }
.jvw-horse-page .jvw-horse-inner {
  width: calc(100% - 40px);
  max-width: var(--jvw-horse-width);
  margin-right: auto;
  margin-left: auto;
  padding: 0;
}

.jvw-horse-page .jvw-horse-identity { padding: 51px 20px 0; text-align: center; }
.jvw-horse-page .jvw-horse-name {
  margin: 0;
  padding: 0 0 16px;
  border: 0;
  background: none;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .035em;
}
.jvw-horse-page .jvw-horse-name__en { display: inline; font-size: 16px; font-weight: 700; }
/* The three surviving anchors in the supplied screenshot. */
.jvw-horse-page .jvw-horse-nav {
  display: block;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
  background: var(--jvw-horse-paper);
}
.jvw-horse-page .jvw-horse-nav__list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 27px;
  margin: 0;
  padding: 0 16px;
  list-style: none;
}
.jvw-horse-page .jvw-horse-nav__list > li { display: block; margin: 0; padding: 0; border: 0; background: none; }
.jvw-horse-page .jvw-horse-nav__list > li::before { content: none; }
.jvw-horse-page .jvw-horse-nav__link {
  display: block;
  position: relative;
  margin: 0;
  padding: 10px 0 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
}
.jvw-horse-page .jvw-horse-nav__link:hover,
.jvw-horse-page .jvw-horse-nav__link[aria-current="location"] { border-bottom-color: var(--jvw-horse-link); }
.jvw-horse-page .jvw-horse-nav__link:focus-visible,
.jvw-horse-page .jvw-horse-table-scroll:focus-visible { outline: 2px solid #2176b7; outline-offset: 3px; }
.jvw-horse-page .jvw-horse-content { padding-top: 30px; padding-bottom: 35px; }
.jvw-horse-page .jvw-horse-photo { width: 100%; max-width: 800px; margin: 0 auto 30px; }
.jvw-horse-page .jvw-horse-photo img { width: 100%; height: auto; margin: 0 auto; }
.jvw-horse-page .jvw-horse-photo figcaption:empty { display: none; }
.jvw-horse-page .jvw-horse-photo figcaption { margin-top: 4px; color: var(--jvw-horse-muted); font-size: 10px; text-align: right; }
.jvw-horse-page .jvw-horse-section { display: block; margin: 0 0 21px; padding: 0; scroll-margin-top: 88px; }
.jvw-horse-page .jvw-horse-section:last-of-type { margin-bottom: 0; }
.jvw-horse-page .jvw-horse-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 11px;
  padding: 0;
  border: 0;
  background: none;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
}
.jvw-horse-page .jvw-horse-section-title::before {
  content: "";
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  background: var(--jvw-horse-accent);
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}
/* Flat tables: 1px borders, light gray headers, alternating white/gray rows. */
.jvw-horse-page .jvw-horse-table {
  display: table;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--jvw-horse-line);
  border-collapse: collapse;
  border-radius: 0;
  border-spacing: 0;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.jvw-horse-page .jvw-horse-table th,
.jvw-horse-page .jvw-horse-table td {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--jvw-horse-line);
  background: transparent;
  color: #222;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: break-word;
}
.jvw-horse-page .jvw-horse-table thead th { padding: 9px 7px; background: var(--jvw-horse-head); font-weight: 700; text-align: center; line-height: 1.25; }
.jvw-horse-page .jvw-horse-table tbody tr { background: #fff; }
.jvw-horse-page .jvw-horse-table tbody tr:nth-child(odd) { background: var(--jvw-horse-stripe); }
.jvw-horse-page .jvw-horse-basic col:first-child { width: 20%; }
.jvw-horse-page .jvw-horse-basic tbody th { background: var(--jvw-horse-head); font-weight: 700; }
.jvw-horse-page .jvw-horse-basic th,
.jvw-horse-page .jvw-horse-basic td { padding: 6px 10px; font-size: 13px; line-height: 1.4; }
.jvw-horse-page .jvw-horse-table-scroll {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.jvw-horse-page .jvw-horse-records { min-width: 960px; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-date { width: 11.5%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-course { width: 20.5%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-race { width: 27.5%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-video { width: 5.5%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-finish { width: 5.5%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-jockey { width: 10%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-track { width: 7%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-distance { width: 6.5%; }
.jvw-horse-page .jvw-horse-records .jvw-horse-col-going { width: 6%; }
.jvw-horse-page .jvw-horse-records td { padding: 7px 9px; white-space: nowrap; }
.jvw-horse-page .jvw-horse-records .jvw-horse-race-name { white-space: normal; overflow-wrap: anywhere; }
.jvw-horse-page .jvw-horse-records .jvw-horse-video,
.jvw-horse-page .jvw-horse-records .jvw-horse-finish,
.jvw-horse-page .jvw-horse-records .jvw-horse-track,
.jvw-horse-page .jvw-horse-records .jvw-horse-going { text-align: center; }
.jvw-horse-page .jvw-horse-records .jvw-horse-distance { text-align: right; }
.jvw-horse-page .jvw-horse-records .jvw-horse-finish--1 { background: #ffe5e5; }
.jvw-horse-page .jvw-horse-records .jvw-horse-finish--2 { background: #fff9c4; }
.jvw-horse-page .jvw-horse-records .jvw-horse-finish--3 { background: #e0f7fa; }
.jvw-horse-page .jvw-horse-grade { white-space: nowrap; }
.jvw-horse-page .jvw-horse-records .jvw-horse-video { color: #888; }
.jvw-horse-page .jvw-horse-stats { min-width: 640px; }
.jvw-horse-page .jvw-horse-stats col:first-child { width: 20%; }
.jvw-horse-page .jvw-horse-stats tbody th { padding: 7px 9px; background: var(--jvw-horse-head); font-weight: 700; text-align: center; white-space: nowrap; }
.jvw-horse-page .jvw-horse-stats td { padding: 7px 10px; text-align: right; white-space: nowrap; }

.jvw-horse-page .jvw-horse-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 768px) {
  .jvw-horse-page .jvw-horse-inner { width: calc(100% - 30px); }

  .jvw-horse-page .jvw-horse-identity { padding: 30px 15px 0; }
  .jvw-horse-page .jvw-horse-name { padding-bottom: 17px; font-size: 18px; line-height: 1.55; letter-spacing: normal; }
  .jvw-horse-page .jvw-horse-name__en { font-size: 14px; white-space: nowrap; }
  .jvw-horse-page .jvw-horse-nav__list { gap: 25px; padding-right: 12px; padding-left: 12px; }
  .jvw-horse-page .jvw-horse-nav__link { padding-top: 12px; padding-bottom: 10px; font-size: 13px; }
  .jvw-horse-page .jvw-horse-content { padding-top: 25px; padding-bottom: 27px; }
  .jvw-horse-page .jvw-horse-section { margin-bottom: 23px; scroll-margin-top: 80px; }
  .jvw-horse-page .jvw-horse-section-title { gap: 6px; margin-bottom: 10px; font-size: 17px; }
  .jvw-horse-page .jvw-horse-section-title::before { flex-basis: 14px; width: 14px; height: 14px; }
  .jvw-horse-page .jvw-horse-basic col:first-child { width: 26%; }
  .jvw-horse-page .jvw-horse-basic th,
.jvw-horse-page .jvw-horse-basic td { padding: 8px 9px; font-size: 12px; line-height: 1.5; }
}
@media print {
  .jvw-horse-page { --jvw-horse-width: 100%; background: #fff; }
  .jvw-horse-page .jvw-horse-inner { width: 100%; }
  
  .jvw-horse-page .jvw-horse-identity { padding-top: 20px; }
  .jvw-horse-page .jvw-horse-nav { display: none; }
  .jvw-horse-page .jvw-horse-table-scroll { overflow: visible; }
  .jvw-horse-page .jvw-horse-records,
.jvw-horse-page .jvw-horse-stats { min-width: 0; font-size: 9px; }
  .jvw-horse-page .jvw-horse-records td { white-space: normal; }
  .jvw-horse-page .jvw-horse-section { break-inside: avoid; }
}
