/* ============================================
   名久井岳アドベンチャーフェス 共通スタイル
   ============================================ */
:root {
  --blue: #0a7ac2;
  --deep-blue: #10538f;
  --green: #009a6a;
  --lime: #7cb832;
  --orange: #f39800;
  --navy: #13293d;
  --ink: #22313f;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --line: #e2e8ec;
  --grad: linear-gradient(120deg, #0a7ac2 0%, #009a6a 60%, #7cb832 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

.en {
  font-family: "Jost", "Noto Sans JP", sans-serif;
  letter-spacing: .12em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand img { height: 40px; width: auto; }
.brand .brand-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.brand .brand-name small {
  display: block;
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .18em;
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px; height: 22px;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--navy);
  transition: .25s;
}
.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

.global-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
}
.global-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: .2s;
}
.global-nav a:hover,
.global-nav a.current {
  color: var(--blue);
  border-bottom-color: var(--orange);
}

@media (max-width: 900px) {
  .nav-toggle-label { display: block; }
  .global-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .global-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .global-nav { max-height: 480px; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span::after { transform: rotate(-45deg); top: 0; }
}

/* ---------- hero (top page) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  background: url("assets/hero-main.jpg") center 35% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,41,61,.15) 0%, rgba(19,41,61,.25) 45%, rgba(19,41,61,.82) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px 72px;
  color: #fff;
}
.hero-catch {
  font-size: clamp(15px, 2.4vw, 20px);
  font-weight: 700;
  letter-spacing: .3em;
  color: #ffd98a;
  margin-bottom: 8px;
}
.hero-title {
  font-size: clamp(34px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .06em;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hero-title small {
  display: block;
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: .2em;
  margin-top: 10px;
}
.hero-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(4px);
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
}
.hero-next .tag {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: .15em;
}

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  background: var(--grad);
  color: #fff;
  padding: 64px 20px 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: .1em;
  line-height: 1.3;
}
.page-hero .en-sub {
  display: block;
  font-size: 13px;
  letter-spacing: .35em;
  opacity: .85;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ---------- layout ---------- */
.section { padding: 72px 20px; }
.section.alt { background: var(--mist); }
.container { max-width: 1140px; margin: 0 auto; }
.container.narrow { max-width: 860px; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en-label {
  display: block;
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .08em;
  color: var(--navy);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 48px; height: 3px;
  background: var(--orange);
  margin: 14px auto 0;
  border-radius: 2px;
}
.lead { text-align: center; max-width: 760px; margin: 0 auto 40px; }

/* ---------- components ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 38px;
  border-radius: 40px;
  transition: .2s;
  letter-spacing: .08em;
}
.btn:hover { background: var(--deep-blue); transform: translateY(-2px); }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: #d98700; }
.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(19,41,61,.06);
}
.card .card-head {
  background: var(--grad);
  color: #fff;
  padding: 20px 24px;
}
.card .card-head.orange-head { background: linear-gradient(120deg, #f39800, #f5b942); }
.card .card-head .en { font-size: 13px; letter-spacing: .25em; opacity: .9; }
.card .card-head h3 { font-size: 24px; letter-spacing: .05em; }
.card .card-body { padding: 24px; }
.card .dist {
  font-family: "Jost", sans-serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.card .dist small { font-size: 18px; margin-left: 4px; }

.spec-list { list-style: none; margin-top: 16px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.spec-list li span:first-child { color: #6b7a86; font-weight: 600; white-space: nowrap; }
.spec-list li span:last-child { text-align: right; font-weight: 600; }

/* tables */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.info-table th {
  width: 200px;
  background: var(--mist);
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 6px; }
  .info-table td { padding-top: 6px; }
}

/* timeline */
.timeline { list-style: none; max-width: 640px; margin: 0 auto; }
.timeline li {
  display: flex;
  gap: 22px;
  padding: 0 0 26px 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 101px;
  top: 10px; bottom: -4px;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .time {
  width: 88px;
  flex-shrink: 0;
  text-align: right;
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--blue);
}
.timeline .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 9px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px #fff;
}
.timeline .desc { font-weight: 600; }
.timeline .desc small { display: block; font-weight: 400; color: #6b7a86; }

/* news */
.news-list { list-style: none; max-width: 860px; margin: 0 auto; }
.news-list li {
  display: flex;
  gap: 24px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  flex-wrap: wrap;
}
.news-list .date {
  font-family: "Jost", sans-serif;
  color: #8a97a1;
  font-size: 14px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.news-list .cat {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 3px;
  padding: 2px 10px;
  white-space: nowrap;
}
.news-list .cat.orange { background: var(--orange); }

/* checklist */
.check-list { list-style: none; }
.check-list li {
  padding: 12px 0 12px 38px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px; top: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list.orange li::before { content: "＋"; background: var(--orange); }
.check-list li strong { color: var(--navy); }
.check-list li small { display: block; color: #6b7a86; }

/* notice / alert boxes */
.notice {
  background: #fff7ea;
  border: 1px solid #f0d9ac;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
}
.notice.blue {
  background: #eef6fc;
  border-color: #c3ddf0;
  border-left-color: var(--blue);
}
.notice h4 { color: var(--navy); margin-bottom: 6px; font-size: 16px; }

/* marker legend */
.marker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.marker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}
.marker .chip {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
}
.marker h4 { color: var(--navy); margin-bottom: 4px; }
.marker p { font-size: 14px; color: #6b7a86; }

/* results */
.result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(19,41,61,.06);
}
.result-card .medal { font-size: 34px; }
.result-card .cat-name {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  margin: 6px 0 10px;
}
.result-card .runner { font-size: 22px; font-weight: 700; color: var(--navy); }
.result-card .time {
  font-family: "Jost", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 6px;
}

/* sponsors */
.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.sponsor-list li {
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 26px;
  font-weight: 600;
  color: var(--navy);
}

/* history band */
.history-band {
  background: linear-gradient(160deg, #13293d 0%, #10538f 120%);
  color: #eef4f8;
  padding: 88px 20px;
}
.history-band .section-head h2 { color: #fff; }
.history-band .section-head .en-label { color: #8fd0b4; }
.history-story {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 2.4;
}
.history-story p { margin-bottom: 2.2em; }
.history-story em {
  font-style: normal;
  color: #ffd98a;
  font-weight: 700;
}
.history-closing {
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 21px);
  letter-spacing: .08em;
}

/* course maps */
.map-embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.map-embed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(19,41,61,.06);
}
.map-embed-card .map-embed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.map-embed-card h3 { color: var(--navy); font-size: 18px; }
.map-embed-card h3 .en { color: var(--blue); margin-right: 8px; }
.map-embed-card iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-embed-card .map-embed-foot { padding: 14px 20px; font-size: 14px; }

/* video */
.video-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(19,41,61,.18);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap { cursor: pointer; background: #000; }
.video-wrap > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s, opacity .3s;
}
.video-wrap:hover > img { transform: scale(1.03); opacity: .85; }
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 58px;
  background: rgba(19,41,61,.75);
  border-radius: 14px;
  transition: background .2s;
}
.play-button::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.video-wrap:hover .play-button { background: var(--orange); }

/* map */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8;
  min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* photo strip */
.photo-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.photo-feature img { border-radius: 12px; box-shadow: 0 10px 30px rgba(19,41,61,.15); }
@media (max-width: 800px) { .photo-feature { grid-template-columns: 1fr; } }

/* cta band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 20px;
}
.cta-band h2 { font-size: clamp(22px, 3.2vw, 32px); letter-spacing: .1em; margin-bottom: 10px; }
.cta-band p { opacity: .85; max-width: 640px; margin: 0 auto; }

/* ---------- footer ---------- */
.site-footer {
  background: #0e1f2f;
  color: #c5d2dc;
  padding: 56px 20px 28px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { height: 46px; }
.footer-brand strong { color: #fff; display: block; font-size: 16px; }
.site-footer h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .25em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c5d2dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright {
  max-width: 1140px;
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 12px;
  color: #8a9bab;
}
