:root {
  --bg: #080b0f;
  --bg-soft: #10151c;
  --panel: #151b23;
  --panel-strong: #1a222d;
  --text: #f5f7fa;
  --muted: #aeb8c6;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #ff4b3e;
  --accent-soft: rgba(255, 75, 62, 0.16);
  --accent-border: rgba(255, 75, 62, 0.45);
  --accent-contrast: #ffffff;
  --max-width: 1180px;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 0, var(--accent-soft), transparent 28rem),
    linear-gradient(180deg, #07090c 0%, var(--bg) 45%, #0c1015 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

body[data-season="spring"] {
  --accent: #ff6f91;
  --accent-soft: rgba(255, 111, 145, 0.17);
  --accent-border: rgba(255, 111, 145, 0.45);
}

body[data-season="summer"] {
  --accent: #00b9d8;
  --accent-soft: rgba(0, 185, 216, 0.17);
  --accent-border: rgba(0, 185, 216, 0.45);
}

body[data-season="autumn"] {
  --accent: #f28b32;
  --accent-soft: rgba(242, 139, 50, 0.18);
  --accent-border: rgba(242, 139, 50, 0.45);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: #111;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 9, 12, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  flex: 0 0 auto;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.site-brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.global-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  display: block;
  padding: 10px 12px;
  color: #dce2ea;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent-soft);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* トップは .hero-inner 側で余白を管理し、共通section余白との重複を防ぐ */
.hero {
  padding-block: 0;
}

.home-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.24;
  pointer-events: none;
}
.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.home-page-hero::before {
  background-image: url("../Data-file/Images/home-8h-page-hero-web.jpg");
  opacity: 0.3;
}

.news-results-page-hero::before {
  background-image: url("../Data-file/Images/news-results-page-hero-web.jpg");
}

.question-page-hero::before {
  background-image: url("../Data-file/Images/question-page-hero-web.jpg");
}

.spring-page-hero::before {
  background-image: url("../Data-file/Images/spring-8h-page-hero-web.jpg");
  opacity: 0.26;
}

.summer-page-hero::before {
  background-image: url("../Data-file/Images/summer-8h-page-hero-web.jpg");
  opacity: 0.26;
}

.autumn-page-hero::before {
  background-image: url("../Data-file/Images/autumn-8h-page-hero-draft.jpg");
  opacity: 0.26;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -15rem;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(255, 255, 255, 0.025),
    0 0 0 126px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 64px;
  padding-block: 100px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-block: 78px 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0.22em 0 0.3em;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.page-title-mobile-break {
  display: block;
}

.hero h1 span,
.page-hero h1 span {
  display: block;
  color: var(--accent);
}

.lead {
  max-width: 760px;
  margin: 0;
  color: #d7dde6;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.button.primary {
  color: var(--accent-contrast);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 14px 34px var(--accent-soft);
}

.hero-panel,
.card,
.notice-item,
.faq-item {
  background: linear-gradient(180deg, rgba(27, 34, 44, 0.96), rgba(16, 21, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 30px;
}

.hero-panel h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.quick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.quick-list div {
  padding: 17px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.quick-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.quick-list dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.quick-list .quick-item {
  --quick-accent: var(--accent);
  border-top: 3px solid var(--quick-accent);
}

.quick-item dt {
  color: var(--quick-accent);
}

.quick-list .quick-spring {
  --quick-accent: #ff6f91;
}

.quick-list .quick-summer {
  --quick-accent: #00b9d8;
}

.quick-list .quick-autumn {
  --quick-accent: #f28b32;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  color: #f4d58d;
  background: rgba(247, 198, 83, 0.11);
  border: 1px solid rgba(247, 198, 83, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #f7c653;
  border-radius: 50%;
}

main section {
  padding-block: 100px;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0.28em 0 0.22em;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-accent, var(--accent));
  z-index: 2;
}

.card.spring {
  --card-accent: #ff6f91;
}

.card.summer {
  --card-accent: #00b9d8;
}

.card.autumn {
  --card-accent: #f28b32;
}

.race-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--race-card-photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.race-card-photo > * {
  position: relative;
  z-index: 1;
}

.race-card-photo.spring {
  --race-card-photo: url("../Data-file/Images/spring-8h-page-hero-web.jpg");
}

.race-card-photo.summer {
  --race-card-photo: url("../Data-file/Images/summer-8h-page-hero-web.jpg");
}

.race-card-photo.autumn {
  --race-card-photo: url("../Data-file/Images/autumn-8h-page-hero-draft.jpg");
}

.card h3 {
  margin: 0.45em 0 0.25em;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-points {
  margin: 14px 0 0;
  padding-left: 1.25em;
  color: var(--muted);
}

.card-points li + li {
  margin-top: 6px;
}

.card-link {
  display: inline-flex;
  margin-top: 22px;
  color: #fff;
  font-weight: 900;
}

.card-link::after {
  content: "→";
  margin-left: 8px;
  color: var(--card-accent, var(--accent));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: start;
}

.info-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-table div {
  display: grid;
  grid-template-columns: minmax(110px, 0.28fr) 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
  font-weight: 750;
}

.info-table dd {
  margin: 0;
  font-weight: 800;
}

.notice-list {
  display: grid;
  gap: 14px;
}

.notice-item {
  display: grid;
  grid-template-columns: 8em 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 24px;
  box-shadow: none;
}

.notice-item time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.notice-item h3 {
  margin: 0;
  font-size: 1rem;
}

.notice-item h3 a:hover {
  color: var(--accent);
}

.notice-item .category {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}
.notice-item-pinned {
  align-items: start;
  background: linear-gradient(135deg, var(--accent-soft), rgba(16, 21, 28, 0.98));
  border-color: var(--accent-border);
  box-shadow: inset 4px 0 0 var(--accent);
}
.notice-item-fan8 {
  background: linear-gradient(135deg, rgba(247, 198, 83, 0.14), rgba(16, 21, 28, 0.98));
  border-color: rgba(247, 198, 83, 0.5);
  box-shadow: inset 4px 0 0 #f7c653;
}

.notice-item-fan8 .notice-pin {
  color: #17120a;
  background: #f7c653;
}

.notice-item-fan8 .category {
  color: #f7c653;
}

.notice-item-fan8 .notice-pdf-link {
  background: rgba(247, 198, 83, 0.12);
  border-color: rgba(247, 198, 83, 0.48);
}

.notice-item-fan8 .notice-pdf-link[href]:hover {
  background: rgba(247, 198, 83, 0.2);
}

.notice-item-fan8 .notice-pdf-link small {
  color: #17120a;
  background: #f7c653;
}

.notice-pinned-meta {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.notice-pin {
  padding: 4px 9px;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
}

.notice-pinned-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.notice-pinned-content h3 {
  font-size: 1.08rem;
}

.notice-pinned-content p {
  margin: 6px 0 14px;
  color: #c9d1dc;
  font-size: 0.9rem;
}

.notice-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 13px;
  color: #fff;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 850;
}

.notice-pdf-link[href]:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notice-pdf-link:not([href]) {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  border-style: dashed;
  cursor: default;
}

.notice-pdf-link small {
  padding: 2px 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.62rem;
}

.notice-pdf-waiting,
.notice-pdf-link:not([href]) .notice-pdf-ready {
  display: none;
}

.notice-pdf-link:not([href]) .notice-pdf-waiting {
  display: inline;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0 24px;
  box-shadow: none;
}

.faq-item summary {
  position: relative;
  padding: 22px 42px 22px 0;
  cursor: pointer;
  font-weight: 900;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--accent);
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--muted);
}

.faq-item .faq-note {
  margin: -10px 0 24px;
  padding: 14px 16px;
  color: #dce3ec;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.faq-note strong {
  color: #fff;
}

.faq-pdf-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0 20px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 12px 28px var(--accent-soft);
  font-weight: 900;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.faq-pdf-link:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.faq-pdf-link small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 750;
}

.faq-video {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.faq-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}

.contact-section .section-heading {
  margin-bottom: 24px;
}

.contact-section .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.contact-section .section-heading p {
  font-size: 0.95rem;
}

.contact-card {
  padding: 20px 24px;
}

.contact-info div {
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.contact-info dt {
  font-size: 0.82rem;
}

.contact-info dd {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.contact-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.contact-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: #fff;
}

.empty-state {
  padding: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

/* リザルト一覧 */
.results-guide-note {
  margin: -14px 0 30px;
  padding: 14px 18px;
  color: #d8dee7;
  background: rgba(247, 198, 83, 0.08);
  border: 1px solid rgba(247, 198, 83, 0.24);
  border-radius: 14px;
  font-size: 0.9rem;
}

.results-featured-year {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(255, 75, 62, 0.11), transparent 48%),
    rgba(16, 21, 28, 0.78);
  border: 1px solid var(--accent-border);
  border-radius: 30px;
}

.results-featured-year::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../Data-file/Images/results-featured-year-web.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.results-featured-year > * {
  position: relative;
  z-index: 1;
}

.results-year-heading,
.results-archive-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.results-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.results-year-heading h3,
.results-archive-heading h3 {
  margin: 3px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.results-year-note {
  padding: 6px 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.results-season-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.results-season-card {
  --season-color: var(--accent);
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(27, 34, 44, 0.98), rgba(12, 17, 23, 0.98));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.results-season-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--season-color);
}

.results-spring {
  --season-color: #ff6f91;
}

.results-summer {
  --season-color: #00b9d8;
}

.results-autumn {
  --season-color: #f28b32;
}

.results-season-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-season-name {
  color: var(--season-color);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.results-status {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.results-status.is-published {
  color: #9ce7bd;
}

.results-season-card h4 {
  margin: 14px 0 6px;
  font-size: 1.18rem;
}

.results-season-card p {
  min-height: 3.5em;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.results-pdf-disabled,
.results-pdf-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.results-pdf-disabled {
  color: #8f99a8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.results-pdf-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--season-color);
  transition: background 0.2s ease, transform 0.2s ease;
}

.results-pdf-link:hover {
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-2px);
}

.results-pdf-link small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.results-recent-years {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.results-year-details,
.results-archive-group {
  background: rgba(16, 21, 28, 0.8);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.results-year-details > summary,
.results-archive-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}

.results-year-details > summary::-webkit-details-marker,
.results-archive-group > summary::-webkit-details-marker {
  display: none;
}

.results-year-details > summary::after,
.results-archive-group > summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
}

.results-year-details[open] > summary::after,
.results-archive-group[open] > summary::after {
  content: "−";
}

.results-year-details > summary > span:first-child,
.results-archive-group > summary > span:first-child {
  display: flex;
  flex-direction: column;
}

.results-year-details summary strong,
.results-archive-group summary strong {
  color: #fff;
  font-size: 1.12rem;
}

.results-year-details summary small,
.results-archive-group summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.results-summary-action {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.results-year-details > .results-season-grid {
  padding: 0 24px 24px;
}

.results-archive {
  margin-top: 76px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.results-archive-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.results-archive-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.results-archive-years {
  padding: 0 24px 24px;
}

.results-archive-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.results-archive-row h4 {
  margin: 0;
  font-size: 0.94rem;
}

.results-archive-seasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.results-archive-pdf {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 6px;
  overflow: hidden;
  color: #e5eaf1;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-top: 2px solid var(--season-color);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

a.results-archive-pdf:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.results-archive-pdf small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
}

.results-archive-pdf.is-missing {
  color: #7f8997;
  border-style: dashed;
  border-top-color: var(--line);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 62px 30px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(21, 27, 35, 0.96));
  border: 1px solid var(--accent-border);
  border-radius: 32px;
}

.cta h2 {
  margin: 0 0 0.25em;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.16;
}

.cta p {
  max-width: 680px;
  margin: 0 auto 26px;
  color: #d5dce5;
}

.entry-area {
  padding: 48px 30px;
  text-align: left;
}

.race-outline-section,
.page-opening-section,
.spring-outline-section {
  padding-top: 72px;
  padding-bottom: 42px;
}

.page-opening-section {
  padding-bottom: 100px;
}

#races.page-opening-section {
  padding-bottom: 60px;
}

/* トップのお知らせは前後のセクションと近づけ、情報の流れを途切れさせない */
.home-news-section {
  padding-block: 56px;
}

.home-faq-section {
  padding-block: 32px;
}

.home-two-rider-section {
  padding-block: 20px;
}

.home-two-rider-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 46px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 75, 62, 0.24), transparent 30%),
    linear-gradient(135deg, #171118, #201318 56%, #111820);
  border: 1px solid rgba(255, 75, 62, 0.42);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.home-two-rider-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Data-file/Images/two-rider-enduro-cta-draft01.jpg") center / cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.home-two-rider-card::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -260px;
  width: 540px;
  height: 540px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.025),
    0 0 0 96px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.home-two-rider-copy,
.home-two-rider-stats {
  position: relative;
  z-index: 1;
}

.home-two-rider-status {
  display: block;
  width: fit-content;
  margin-top: 18px;
  padding: 7px 12px;
  color: #ffd3d0;
  background: rgba(255, 75, 62, 0.13);
  border: 1px solid rgba(255, 75, 62, 0.35);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.home-two-rider-copy h2 {
  margin: 0.28em 0 0.22em;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.home-two-rider-copy h2 span {
  display: block;
  color: var(--accent);
}

.home-two-rider-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #c9d1dc;
  font-size: 1.04rem;
}

.home-two-rider-stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.home-two-rider-stats div {
  padding: 18px 20px;
  background: rgba(7, 9, 12, 0.64);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.home-two-rider-stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.home-two-rider-stats dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
}

.race-entry-section,
.spring-entry-section {
  padding-top: 42px;
}

.entry-heading {
  text-align: center;
}

.entry-heading .entry-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-guide {
  margin: 0 auto 28px;
  padding: 22px;
  background: rgba(8, 11, 15, 0.42);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
}

.entry-guide h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  text-align: center;
}

.entry-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-guide-list li {
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.entry-guide-list strong,
.entry-guide-list span {
  display: block;
}

.entry-guide-list strong {
  color: var(--accent);
  font-size: 0.9rem;
}

.entry-guide-list span {
  margin-top: 4px;
  color: #d5dce5;
  font-size: 0.86rem;
}

.entry-guide .entry-guide-note {
  max-width: none;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.entry-fee-panel {
  margin: 0 auto 14px;
  overflow: hidden;
  background: rgba(8, 11, 15, 0.42);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
}

.payment-details-panel {
  margin-bottom: 28px;
}

.entry-fee-panel > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.entry-fee-panel > summary::-webkit-details-marker {
  display: none;
}

.entry-fee-panel > summary span {
  font-size: 1.18rem;
  font-weight: 900;
}

.entry-fee-panel > summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.entry-fee-panel > summary::after {
  content: "料金表を開く";
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
}

.entry-fee-panel[open] > summary::after {
  content: "料金表を閉じる";
}

.payment-details-panel > summary::after {
  content: "支払い方法を開く";
}

.payment-details-panel[open] > summary::after {
  content: "支払い方法を閉じる";
}

.payment-details-content {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.entry-fee-content {
  display: grid;
  gap: 18px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

main .entry-fee-section {
  padding-block: 0;
}

.entry-fee-section h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1rem;
}

.fee-capacity-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #d5dce5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.78rem;
}

.fee-capacity-note strong {
  color: var(--accent);
  font-size: 0.8rem;
}

.entry-fee-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.88rem;
}

.entry-fee-table th,
.entry-fee-table td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.entry-fee-table thead th {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
}

.entry-fee-table tbody th {
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 800;
}

.entry-fee-table td {
  color: var(--muted);
}

.entry-add-on-fee-table th:first-child {
  width: 60%;
}

.entry-add-on-fee-table th:last-child {
  width: 40%;
}

.fee-option-name,
.fee-option-detail {
  display: block;
}

.fee-option-detail {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
}

.fee-total,
.fee-tax-excluded {
  display: block;
}

.fee-total {
  color: #fff;
  font-size: 0.9rem;
}

.fee-tax-excluded {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
}

.entry-fee-table td.fee-intro-price {
  background: rgba(255, 77, 122, 0.06);
}

.fee-intro-label {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 8px;
  color: #160b10;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.35;
}

.fee-special {
  color: var(--accent);
  font-size: 1rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  position: relative;
  overflow: hidden;
  align-self: start;
  padding: 26px;
  background: linear-gradient(180deg, rgba(27, 34, 44, 0.98), rgba(12, 17, 23, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.entry-card:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 720px);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  z-index: 2;
}

.entry-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--entry-card-photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.entry-card-photo > * {
  position: relative;
  z-index: 1;
}

.entry-card-photo-8h {
  --entry-card-photo: url("../Data-file/Images/entry-card-photo-8h-web.jpg");
}

.entry-card-photo-short {
  --entry-card-photo: url("../Data-file/Images/entry-card-photo-short-web.jpg");
}

.entry-card-photo-tbm {
  --entry-card-photo: url("../Data-file/Images/entry-card-photo-tbm-web.jpg");
}

.entry-card-photo-trial {
  --entry-card-photo: url("../Data-file/Images/entry-card-photo-trial-web.jpg");
}

.entry-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.entry-duration {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  color: #160b10;
  background: var(--accent);
  border-radius: 20px;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 12px 28px var(--accent-soft);
}

.entry-duration-multi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-size: 0.92rem;
  line-height: 1;
}

.entry-duration-multi span {
  display: block;
}

.entry-duration-label {
  font-size: 1.05rem;
}

.entry-season {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.entry-card h3 {
  margin: 2px 0 0;
  font-size: 1.55rem;
}

.entry-options {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.entry-options li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.entry-option-text strong,
.entry-option-text span {
  display: block;
}

.entry-option-text strong {
  font-size: 1rem;
}

.entry-option-text span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.entry-action {
  display: block;
  min-width: 112px;
  padding: 9px 14px;
  color: #160b10;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.entry-action[href] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-action[href]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--accent-soft);
}

.entry-action:not([href]) {
  color: #9da8b6;
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
  cursor: not-allowed;
}

.entry-action-ready,
.entry-action-waiting {
  display: block;
}

.entry-action:not([href]) .entry-action-ready,
.entry-action[href] .entry-action-waiting {
  display: none;
}

.participation-guide-section {
  background: rgba(255, 255, 255, 0.018);
  border-block: 1px solid var(--line);
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.guide-nav a {
  padding: 8px 14px;
  color: #e6ebf1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.guide-nav a:hover {
  color: #fff;
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: linear-gradient(180deg, rgba(27, 34, 44, 0.98), rgba(12, 17, 23, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}

.guide-number {
  position: absolute;
  top: 17px;
  right: 20px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.guide-card h3 {
  margin: 0 0 6px;
  padding-right: 38px;
  font-size: 1.35rem;
}

.guide-card > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-data {
  margin: 0;
  border-top: 1px solid var(--line);
}

.guide-data div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.guide-data dt {
  color: var(--muted);
  font-weight: 750;
}

.guide-data dd {
  margin: 0;
  font-weight: 800;
}

.guide-list {
  margin: 0;
  padding-left: 1.25em;
  color: #d5dce5;
}

.guide-list li + li {
  margin-top: 7px;
}

.guide-table-wrap {
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.guide-table th,
.guide-table td {
  padding: 11px 12px;
  text-align: left;
  border: 1px solid var(--line);
}

.guide-table th {
  color: var(--accent);
  background: var(--accent-soft);
}

.guide-table td {
  color: #d5dce5;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.payment-card {
  min-width: 0;
  padding: 18px 20px;
}

.payment-card > p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.payment-card .guide-data div {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding-block: 8px;
}

.payment-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  padding: 13px 16px;
  color: #d5dce5;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  font-size: 0.86rem;
}

.guide-content-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.guide-card-wide {
  width: 100%;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule-group {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-margin-top: 100px;
}

.rule-group-full {
  grid-column: 1 / -1;
}

.rule-group-allowed {
  border-color: rgba(94, 204, 148, 0.34);
}

.rule-group-warning {
  border-color: rgba(242, 139, 50, 0.38);
}

.rule-group h4 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1rem;
}

.handlebar-intro {
  margin: 0;
  color: #d5dce5;
  font-size: 0.88rem;
}

.handlebar-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.handlebar-type {
  padding: 15px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.handlebar-type h5 {
  margin: 0 0 9px;
  font-size: 0.9rem;
}

.handlebar-allowed {
  border-color: rgba(94, 204, 148, 0.34);
}

.handlebar-allowed h5 {
  color: #78dca9;
}

.handlebar-prohibited {
  border-color: rgba(242, 139, 50, 0.38);
}

.handlebar-prohibited h5 {
  color: #f2a35f;
}

.handlebar-details {
  margin-top: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.handlebar-details > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 850;
}

.handlebar-details > summary::-webkit-details-marker {
  display: none;
}

.handlebar-details > summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.handlebar-details > summary::after {
  content: "規定を開く";
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
}

.handlebar-details[open] > summary::after {
  content: "規定を閉じる";
}

.handlebar-details-content {
  padding: 15px;
  border-top: 1px solid var(--line);
}

.handlebar-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.handlebar-spec-list div {
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
}

.handlebar-spec-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.handlebar-spec-list dd {
  margin: 3px 0 0;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
}

.rule-note {
  margin: 13px 0 0;
  padding: 10px 12px;
  color: #d5dce5;
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.82rem;
}

.rule-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-table th[scope="row"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.class-table {
  min-width: 660px;
}

.guide-footnote {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.schedule-list li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.schedule-list time {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.schedule-list strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
}

.schedule-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.schedule-list .schedule-highlight {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.schedule-note {
  margin-top: 18px;
  padding: 14px 16px;
  color: #d5dce5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.schedule-note strong {
  color: #fff;
}

.schedule-note p {
  margin: 5px 0 0;
  font-size: 0.84rem;
}

.schedule-card > .schedule-pdf-pending {
  margin: 18px 0;
}

.schedule-pdf-link {
  padding: 11px 15px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  text-decoration: none;
}

.schedule-pdf-link::after {
  content: "PDF";
  margin-left: 10px;
  padding: 2px 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  font-size: 0.68rem;
}

.awards-list {
  display: grid;
  gap: 10px;
}

.award-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.award-item > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.award-item > summary::-webkit-details-marker {
  display: none;
}

.award-item > summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.award-item > summary::after {
  content: "詳細を見る";
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}

.award-item[open] > summary::after {
  content: "閉じる";
}

.award-content {
  padding: 0 17px 17px;
  border-top: 1px solid var(--line);
}

.award-content h4 {
  margin: 15px 0 3px;
  color: var(--accent);
  font-size: 0.92rem;
}

.award-content p {
  margin: 0;
  color: #d5dce5;
  font-size: 0.86rem;
}

.award-content .rule-note {
  margin-top: 13px;
}

.award-content .guide-list {
  margin-top: 12px;
}

.site-footer {
  padding-block: 50px;
  color: #909baa;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a:hover {
  color: #fff;
}

@media (max-width: 1120px) {
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .payment-note {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .header-inner {
    padding-block: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .global-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .global-nav ul {
    justify-content: flex-start;
    width: max-content;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 80px;
  }

  .home-two-rider-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-two-rider-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-hero-inner {
    padding-block: 64px 58px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .entry-guide-list {
    grid-template-columns: 1fr;
  }

  .payment-details-panel > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .payment-details-panel > summary small {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .payment-details-panel > summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .results-season-grid,
  .results-archive-groups {
    grid-template-columns: 1fr;
  }

  .results-season-card p {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max-width));
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
  }

  .page-title-mobile-break {
    display: block;
  }

  main section {
    padding-block: 76px;
  }

  .race-outline-section,
  .page-opening-section,
  .spring-outline-section {
    padding-top: 56px;
    padding-bottom: 30px;
  }

  .page-opening-section {
    padding-bottom: 76px;
  }

  #races.page-opening-section {
    padding-bottom: 40px;
  }

  .race-entry-section,
  .spring-entry-section {
    padding-top: 30px;
  }

  .contact-section {
    padding-block: 52px;
  }

  .contact-card {
    padding: 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .home-two-rider-section {
    padding-block: 20px;
  }

  .home-faq-section {
    padding-block: 28px;
  }

  .home-two-rider-card {
    padding: 28px 24px;
    border-radius: 26px;
  }

  .home-two-rider-stats {
    grid-template-columns: 1fr;
  }

  .notice-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .fee-capacity-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .handlebar-type-grid,
  .handlebar-spec-list {
    grid-template-columns: 1fr;
  }

  .handlebar-details > summary {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .rule-group-full {
    grid-column: auto;
  }

  .entry-card:only-child {
    grid-column: auto;
  }

  .entry-options li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .entry-action {
    width: 100%;
  }

  .results-featured-year {
    padding: 24px;
  }

  .results-year-heading,
  .results-archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .results-year-details > summary,
  .results-archive-group > summary {
    gap: 12px;
    padding: 19px;
  }

  .results-summary-action {
    display: none;
  }

  .results-year-details > .results-season-grid,
  .results-archive-years {
    padding: 0 19px 19px;
  }

  .results-archive-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-hero h1 > span {
    font-size: clamp(1.7rem, 8.5vw, 2.2rem);
    white-space: nowrap;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-hero-inner {
    padding-block: 50px 46px;
  }

  .quick-list {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .card {
    padding: 23px;
  }

  .entry-area {
    padding: 38px 18px;
  }

  .entry-card {
    padding: 22px 18px;
  }

  .entry-guide,
  .guide-card {
    padding: 20px 18px;
  }

  .guide-data div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .payment-card {
    padding: 17px 16px;
  }

  .payment-card .guide-data div {
    grid-template-columns: 1fr;
  }

  .award-item > summary {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .entry-fee-panel > summary {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 17px 18px;
  }

  .entry-fee-panel > summary small,
  .entry-fee-panel > summary::after {
    grid-column: 1;
    grid-row: auto;
  }

  .entry-fee-content,
  .payment-details-content {
    padding: 18px;
  }

  .entry-fee-table th,
  .entry-fee-table td {
    padding: 10px 8px;
  }

  .entry-duration {
    flex-basis: 62px;
    width: 62px;
    border-radius: 17px;
    font-size: 1.4rem;
  }

  .schedule-list li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 8px;
  }

  .schedule-list time {
    font-size: 0.9rem;
  }

  .schedule-pdf-link {
    width: 100%;
    justify-content: space-between;
  }

  .results-archive-seasons {
    grid-template-columns: 1fr;
  }

  .results-archive-pdf {
    text-align: left;
    padding-inline: 10px;
  }

  .faq-pdf-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
/* トップページ専用の縦余白調整 */
.home-page .hero-inner {
  min-height: 620px;
  padding-block: 84px;
}

.home-page #races.page-opening-section {
  padding-top: 64px;
  padding-bottom: 48px;
}

.home-page .home-two-rider-section {
  padding-block: 16px;
}

.home-page .home-two-rider-card {
  padding: clamp(30px, 4.5vw, 56px);
}

.home-page .home-news-section {
  padding-block: 44px;
}

.home-page .home-faq-section {
  padding-block: 20px;
}

.home-page .home-faq-section .cta {
  padding: 44px 28px;
}

.home-page .home-faq-section .cta p {
  margin-bottom: 20px;
}

.home-page .contact-section {
  padding-block: 54px;
}

@media (max-width: 980px) {
  .home-page .hero-inner {
    padding-block: 68px;
  }
}

@media (max-width: 760px) {
  .home-page .hero-inner {
    gap: 32px;
    padding-block: 64px;
  }

  .home-page #races.page-opening-section {
    padding-top: 48px;
    padding-bottom: 34px;
  }

  .home-page .home-two-rider-section {
    padding-block: 14px;
  }

  .home-page .home-news-section {
    padding-block: 36px;
  }

  .home-page .home-faq-section {
    padding-block: 16px;
  }

  .home-page .home-faq-section .cta {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .home-page .home-faq-section .cta p {
    margin-bottom: 18px;
  }

  .home-page .contact-section {
    padding-block: 46px;
  }
}
@media (max-width: 760px) {
  .notice-item-pinned {
    gap: 14px;
  }

  .notice-pinned-meta {
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
  }
}

/* お知らせ・リザルトページ専用の縦余白 */
.news-list-section {
  padding-top: 52px;
  padding-bottom: 32px;
}

.results-list-section {
  padding-top: 52px;
}

@media (max-width: 760px) {
  .news-list-section {
    padding-top: 42px;
    padding-bottom: 24px;
  }

  .results-list-section {
    padding-top: 40px;
  }
}
