*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep: #1a3a2a;
  --green-mid: #2d5a3d;
  --green-light: #4a8c5c;
  --green-pale: #c8e6d0;
  --earth: #8B6914;
  --earth-light: #c4962a;
  --cream: #f5f0e8;
  --cream-dark: #e8e0d0;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --accent: #d4451a;
}

html { scroll-behavior: smooth; }

section {
  scroll-margin-top: 30px;
}

#info,
#races,
#fee,
#apply,
#course,
#access,
#results,
#notes,
#contact {
  scroll-margin-top: 70px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 64px;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 背景写真（全面） */
.hero-bg-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('aseets/images/bg.jpg') center 148% / cover no-repeat;
  z-index: 0;
}

/* PC：左側に白いグラデーションオーバーレイ（ロゴを見やすくする） */
.hero-bg-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 45%, transparent 70%);
  pointer-events: none;
}

/* 右下：難攻不落画像 + ゲストMC画像 */
.hero-nankou {
  position: absolute;
  bottom: 167px;
  right: 5rem;
  z-index: 4;
}

.hero-nankou-img {
  display: block;
  width: clamp(280px, 38vw, 520px);
  height: auto;
}

.hero-gestmc-img {
  display: block;
  position: absolute;
  top: -7rem;
  right: -3rem;
  width: clamp(100px, 13vw, 180px);
  height: auto;
  z-index: 5;
}

/* 左側テキストブロック */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem 1rem;
  max-width: 700px;
  margin: 0 auto 0 3%;
  align-self: center;
  animation: fadeDown 0.8s ease both;
}

.hero-main-title {
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-title-img {
  display: block;
  width: clamp(320px, 50vw, 600px);
  height: auto;
  mix-blend-mode: multiply;
}

.hero-title-sub-img {
  display: block;
  width: clamp(180px, 28vw, 340px);
  height: auto;
  margin-top: 0.6rem;
  mix-blend-mode: multiply;
}

.hero-catch {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  color: #1a3a2a;
  line-height: 2;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.45);
  padding: 0.8rem 1rem;
  border-radius: 4px;
}

/* エントリー開始バッジ（右上の丸） */
.hero-entry-badge {
  position: absolute;
  top: calc(86px + 2.5rem);
  right: 7.5rem;
  z-index: 5;
  width: 171px;
  height: 171px;
  border-radius: 50%;
  background: rgba(245,242,235,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.hero-entry-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

.hero-entry-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #2d5a3d;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.3;
}

.hero-entry-soon {
  font-size: 1.2rem;
}

.hero-entry-date {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a3a2a;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-entry-day {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: #2d5a3d;
  letter-spacing: 0.1em;
}

.hero-entry-arrow {
  font-size: 1.1rem;
  color: #2d5a3d;
  line-height: 1;
}

/* 写真→開催日バーへの波ウェーブ */
.hero-wave {
  position: relative;
  z-index: 3;
  margin-top: auto;
  line-height: 0;
  background: transparent;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* PC：SP用波を非表示（廃止） */

/* 開催日バー */
.hero-date-bar {
  position: relative;
  z-index: 3;
  background: #f5f0e8;
}

.hero-date-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-date-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hero-date-icon {
  width: 40px;
  height: 30px;
  flex-shrink: 0;
}

.hero-date-label-group {
  display: flex;
  flex-direction: column;
}

.hero-date-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2d5a3d;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1.3;
}

.hero-date-value {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #1a3a2a;
  letter-spacing: 0.03em;
  line-height: 1;
}

.hero-date-927 {
  font-size: 3.8rem;
}

.hero-date-sup {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #2d5a3d;
  letter-spacing: 0.05em;
  line-height: 1.2;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.hero-date-right {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
}

.hero-rain-badge {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #2d5a3d;
  padding: 0.3rem 0.9rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: 23px;
}

.hero-date-row {
  display: flex;
  align-items: center;
  gap: 2.9rem;
}

.hero-venue-pin {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  color: #1a3a2a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  padding-top: 40px;
}

.hero-venue-pin br {
  display: none;
}

.sp-br {
  display: none;
}

.hero-venue-pin svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

/* スクロール */
.hero-scroll {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 0 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  background: #f5f0e8;
  color: #2d5a3d;
}

.hero-scroll svg,
.hero-scroll span {
  animation: pulse 2s ease infinite;
}

/* ===== HERO SP ===== */
@media (max-width: 768px) {
  .hero-bg-img {
    background-position: center 85%;
  }

  .hero-bg-img::after {
    background: linear-gradient(to bottom, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.3) 35%, transparent 60%);
  }

  .hero-nankou {
    bottom: 311px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    right: auto;
    z-index: 4;
  }

  .hero-nankou-img {
    width: clamp(300px, 88vw, 460px);
  }

  .hero-gestmc-img {
    width: clamp(114px, 22vw, 170px);
    top: -4rem;
    right: 0.5rem;
  }

  .hero-content {
    padding: 4rem 1.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .hero-title-img {
    width: clamp(270px, 90vw, 430px);
  }

  .hero-title-sub-img {
    width: clamp(140px, 50vw, 240px);
  }

  .hero-entry-badge {
    width: 110px;
    height: 110px;
    right: 2.2rem;
    top: 83px;
  }

  .hero-entry-label {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .hero-entry-soon {
    font-size: 0.82rem;
  }

  .hero-date-927 {
    font-size: 2.8rem;
  }

  .hero-date-row {
    justify-content: flex-end;
  }

  .hero-date-left {
    margin: 0 auto;
  }

  .hero-venue-pin {
    font-size: 1.2rem;
    align-items: flex-start;
    padding-top: 0;
  }

  .hero-venue-pin br {
    display: block;
  }

  .sp-br {
    display: block;
  }

  .btn-course {
    width: 100%;
  }

  .hero-date-right {
    margin: 0 auto;
  }

  /* SP：波・バー・スクロールすべてクリーム色 */
  .hero-wave { background: transparent; 
                margin-bottom: -4px;
  }
  .hero-wave svg { height: 81px; }

  .hero-date-bar { background: #f5f0e8; }

  .hero-date-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.2rem 1.5rem;
  }

  .hero-date-label { font-size: 0.9rem; }
  .hero-date-value { font-size: 2.2rem; }

  .hero-date-right {
    border-left: none;
    border-top: 1px solid rgba(45,90,61,0.15);
    padding-left: 0;
    padding-top: 0.6rem;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .hero-rain-badge { font-size: 0.82rem; }

  .hero-scroll { background: #f5f0e8; color: #2d5a3d; 
                  margin-top: -5px;
  }
}


/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-logo {
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-logo span { color: var(--earth-light); }

.nav-links {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
}

.nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  height: 64px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-links li a:hover {
  background: rgba(45,90,61,0.05);
}

.nav-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a3a2a;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 0.58rem;
  color: #999;
  letter-spacing: 0.1em;
  margin-top: 2px;
  white-space: nowrap;
}

.nav-entry-item {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-entry-btn {
  flex-shrink: 0;
  background: #2d5a3d;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s;
}

.nav-entry-btn:hover { background: #1a3a2a; }



/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--earth);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--green-deep);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* ===== INFO GRID ===== */
.info-section { background: var(--white); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--cream);
  border-left: 4px solid var(--green-light);
  padding: 1.5rem;
  position: relative;
}

.info-card.accent { border-left-color: var(--earth-light); }
.info-card.red { border-left-color: var(--accent); }

.info-card-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--green-mid);
  margin-bottom: 0.5rem;
}

.info-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

.info-card-sub {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.3rem;
}

/* ===== PDF BUTTON ===== */
.pdf-btn-wrap {
  margin-top: 2rem;
  text-align: center;
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-mid);
  color: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 2.8rem;
  border: 2px solid var(--green-mid);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-pdf:hover {
  background: var(--white);
  color: var(--green-mid);
}

/* ===== RACES ===== */
.races-section { background: var(--green-deep); }
.races-section .section-title { color: var(--white); }
.races-section .section-label { color: var(--earth-light); }
.races-section .section-inner { max-width: 1400px; }

.race-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.race-card {
  background: var(--green-deep);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.race-card:hover { background: var(--green-mid); }

.race-dist {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--earth-light);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.race-dist-unit {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
}

.race-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.3rem 0;
}

.race-start {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  color: var(--green-pale);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.race-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.race-tag {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.race-tag-caution {
  background: rgba(212, 69, 26, 0.35);
  color: #ffb49a;
  border: 1px solid rgba(212, 69, 26, 0.5);
}

.race-laps {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
}

/* ===== FEE ===== */
.fee-section { background: var(--cream); }

.fee-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.fee-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.fee-card.featured {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.fee-card.koukousei {
  background: #aec9bc;
  border-color: #769781;
}

.fee-cat {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-mid);
  margin-bottom: 0.8rem;
}

.fee-card.featured .fee-cat { color: var(--green-pale); }

.fee-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--green-deep);
  line-height: 1;
}

.fee-card.featured .fee-amount { color: var(--earth-light); }

.fee-yen {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  vertical-align: super;
}

.fee-note {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-top: 0.5rem;
}

.fee-card.featured .fee-note { color: rgba(255, 255, 255, 0.5); }

.fee-qualify {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  background: var(--green-pale);
  padding: 0.3rem 0.8rem;
  display: inline-block;
  margin-top: 0.8rem;
}

.fee-card.featured .fee-qualify {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green-pale);
}

/* ===== COURSE ===== */
.course-section { background: var(--white); }
.course-section .section-title { color: var(--green-deep); }
.course-section .section-label { color: var(--earth); }

.course-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 2;
  margin-bottom: 2rem;
}

.course-link-wrap {
  margin-bottom: 2.5rem;
}

.btn-course {
  display: inline-block;
  background: var(--earth-light);
  color: var(--white);
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.9rem 2.4rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.btn-course:hover {
  background: var(--earth);
  transform: translateY(-2px);
}

.course-notice {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.course-notice-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.course-notice ul {
  list-style: none;
  padding: 0;
}

.course-notice li {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.9;
  padding-left: 1em;
  text-indent: -1em;
}

.course-notice li::before {
  content: "・";
}

.course-notice a {
  color: var(--green-mid);
  text-decoration: underline;
}

.course-notice a:hover {
  color: var(--green-deep);
}

/* ===== RESULTS ===== */
.results-section { background: var(--green-deep); }
.results-section .section-title { color: var(--white); }
.results-section .section-label { color: var(--earth-light); }

.results-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
}

.results-item {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.results-btn-wrap {
  width: 100%;
}

.results-balloon {
  position: relative;
  display: inline-block;
  background: var(--earth-light);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  align-self: flex-start;
}

.results-balloon::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 1.2rem;
  border-width: 7px 6px 0;
  border-style: solid;
  border-color: var(--earth-light) transparent transparent;
}

.results-balloon-inv {
  background: var(--white);
  color: var(--earth-light);
}

.results-balloon-inv::after {
  border-color: var(--white) transparent transparent;
}

.btn-results {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--cream);
  color: var(--green-deep);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1rem 2.4rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: default;
}

.btn-results-sub {
  background: var(--earth-light);
  color: var(--white);
  font-size: 0.95rem;
}

/* ===== ACCESS ===== */
.access-section { background: var(--cream); }

.access-map {
  margin-bottom: 1.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 450px;
}

.access-info {
  margin-top: 1.2rem;
}

.access-address {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 2;
  border-left: 4px solid var(--green-light);
  padding-left: 1rem;
}

.access-address strong {
  color: var(--green-deep);
  font-weight: 700;
}

@media (max-width: 768px) {
  .access-map iframe { height: 300px; }
}

/* ===== APPLY ===== */
.apply-section {
  background: var(--earth);
  padding: 4rem 2rem;
  text-align: center;
}

.apply-section .section-title { color: var(--white); }
.apply-section .section-label { color: rgba(255, 255, 255, 0.6); }

.apply-deadline {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.apply-deadline strong {
  color: var(--white);
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .apply-deadline strong {
    line-height: 1.2;
    font-size: 1.3rem;
  }
}

.apply-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
  letter-spacing: 0.05em;
}

.btn-apply {
  display: inline-block;
  background: var(--white);
  color: var(--earth);
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  padding: 1rem 3rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin: 0.5rem;
}

.btn-apply:hover {
  background: var(--green-deep);
  color: var(--white);
}

.btn-apply-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  padding: 0.9rem 2.5rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s, color 0.2s;
  margin: 0.5rem;
}

.btn-apply-outline:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--white);
}

/* ===== NOTES ===== */
.notes-section { background: var(--white); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.note-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.note-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-icon svg { width: 20px; height: 20px; }

.note-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-deep);
  margin-bottom: 0.3rem;
}

.note-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--cream-dark);
  padding: 3rem 2rem;
  text-align: center;
}

.contact-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--earth);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.contact-org {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.contact-email {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  color: var(--earth);
  letter-spacing: 0.05em;
  margin-top: 25px;
}

.contact-email a {
  color: var(--earth);
  text-decoration: none;
}

/* ===== HIGHLIGHT BAR ===== */
.highlights {
  background: var(--earth-light);
  padding: 0.9rem 2rem;
  text-align: center;
}

.highlight-item {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.12em;
  display: inline-block;
  animation: highlightSlide 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes highlightSlide {
  from {
    transform: translateX(-120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.highlight-dot {
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--green-deep);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-address {
  font-style: normal; /* addressのデフォルトitalicをリセット */
}

.footer-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.footer-contact {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--earth-light);
}

/* ===== 見出し要素のリセット（h1/h2/h3をdivと同等に） ===== */
h1, h2, h3 {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

/* ===== RUNNER ANIMATION ===== */
.runner-anim {
  position: absolute;
  bottom: 18%;
  left: -60px;
  z-index: 2;
  animation: runnerMove 8s linear 1s forwards;
  opacity: 0.6;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes runnerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(110vw); }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a3a2a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: #1a3a2a;
  transition: max-height 0.35s ease;
}

.mobile-menu.is-open {
  max-height: 520px;
}

.mobile-links {
  list-style: none;
  padding: 0.5rem 0 0;
}

.mobile-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-links a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.mobile-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #c8e6d0;
}

.mobile-entry-wrap {
  padding: 0.8rem 1.5rem 1.2rem;
}

.mobile-entry-btn {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: #2d5a3d;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .race-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
  .nav-links     { display: none; }
  .nav-entry-btn { display: none; }
  .hamburger     { display: flex; margin-left: auto; }
  .mobile-menu   { display: block; }
}

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



/* ===== 問合せ変更 ===== */
.contact-email a {
  display: inline-block;
  min-width: 220px;
  padding: 1rem 2.6rem;
  background: transparent;
  color: var(--green-deep);
  border: 1px solid rgba(139, 105, 20, 0.55);
  text-decoration: none;

  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: center;

  position: relative;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.contact-email a::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(139, 105, 20, 0.18);
  pointer-events: none;
}

.contact-email a:hover {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
  transform: translateY(-2px);
}

.contact-email a:hover::before {
  border-color: rgba(255, 255, 255, 0.18);
}
.contact-email a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.contact-email a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ===== 左からの文字スライド ===== */
.hero-copy-anim {
  position: absolute;
  bottom: 7.5rem;
  left: -100%;
  z-index: 2;

  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;

  animation: copySlideIn 5.6s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

@keyframes copySlideIn {
  0% {
    left: -100%;
    opacity: 0;
  }

  70% {
    opacity: 1;
  }

  100% {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
  }
}

/* ===== COURSE INLINE LINK ===== */
.course-inline-link {
  color: var(--green-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s;
}

.course-inline-link:hover {
  color: var(--green-deep);
}

/* ===== BTN-COURSE AS BUTTON ===== */
.btn-course {
  border: none;
  cursor: pointer;
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  text-align: center;
}

/* ===== COURSE MODAL ===== */
.course-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.course-modal.is-open {
  display: flex;
}

.course-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.course-modal-content {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 4px;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem 1.5rem;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.25s ease both;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.course-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--green-deep);
  color: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.course-modal-close:hover {
  background: var(--green-mid);
}

.course-modal-img-wrap {
  overflow: auto;
  max-width: 80vw;
  max-height: 76vh;
}

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

.course-modal-caption {
  margin-top: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  text-align: center;
}

@media (max-width: 768px) {
  .course-modal-content {
    padding: 2rem 1rem 1.2rem;
    max-width: 96vw;
  }

  .course-modal-img-wrap {
    max-width: 90vw;
    max-height: 70vh;
  }
}