/* ===========================================
   一般社団法人 北海道ジャンプロープ連合 HP
   =========================================== */

:root {
  --navy: #1d2089;
  --navy-dark: #12144f;
  --red: #e60012;
  --bg: #f7f7f5;
  --ink: #202230;
  --ink-soft: #565a6e;
  --line: #e3e3e0;
  --white: #ffffff;
  --max-width: 1100px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
}

.brand img {
  height: 40px;
  width: auto;
}

.brand .brand-text {
  font-size: 0.95rem;
  line-height: 1.3;
}

.brand .brand-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }
  nav.main-nav a.active,
  nav.main-nav a:hover {
    border-bottom-color: var(--line);
    border-left-color: var(--red);
    background: var(--bg);
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.hero .logo-mark {
  height: 100px;
  margin: 0 auto 28px;
  background: var(--white);
  padding: 14px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

section.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  text-align: center;
  margin: 0 0 40px;
}

.section-title .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 780px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  color: var(--navy);
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card.photo-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card.photo-card .card-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card.photo-card .card-body {
  padding: 24px;
}

.card.photo-card .card-body p {
  margin-bottom: 10px;
}

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.location-list li {
  padding: 9px 0 9px 20px;
  border-top: 1px dashed var(--line);
  position: relative;
}

.location-list li:first-child {
  border-top: none;
}

.location-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.location-list li strong {
  color: var(--navy);
}

.event-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-card .band {
  height: 6px;
  background: var(--red);
}

.event-card.potato .band { background: #d97b3f; }

.event-card .body {
  padding: 26px 28px 28px;
}

.event-card .date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.event-card.potato .date { color: #b8631f; }

.event-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.2rem;
}

.event-card dl {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.event-card dl div {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.event-card dl div:first-of-type { border-top: none; }

.event-card dl dt {
  flex: 0 0 72px;
  font-weight: 700;
  color: var(--ink);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(232,53,47,0.1);
  color: var(--red);
  margin: 3px 6px 0 0;
}

.event-card.potato .badge {
  background: rgba(217,123,63,0.12);
  color: #b8631f;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn:hover { opacity: 0.9; }

.btn.outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn.navy {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Notice / placeholder ---------- */

.notice {
  background: #fff8e8;
  border: 1px solid #f1dfa8;
  color: #7a6015;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.88rem;
  margin: 0 0 32px;
}

/* ---------- Table (results etc.) ---------- */

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
}

table.results th, table.results td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}

table.results th {
  background: var(--navy);
  color: var(--white);
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.table-scroll table.results { border: none; }

/* ---------- Map (Hokkaido geographic) ---------- */

.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.hokkaido-map {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

.hokkaido-map .land {
  fill: #e7e9f5;
  stroke: var(--navy);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.hokkaido-map .city-fill {
  stroke: var(--white);
  stroke-width: 0.75;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.hokkaido-map a:hover .city-fill {
  opacity: 1;
}

.hokkaido-map .city-fill:hover {
  stroke: var(--ink);
  stroke-width: 1.25;
}

.hokkaido-map .city-fill.jfa { fill: var(--red); }
.hokkaido-map .city-fill.hkr { fill: #0f9d8c; }
.hokkaido-map .city-fill.hako { fill: #e8a33d; }

.hokkaido-map .leader-line {
  stroke: var(--ink-soft);
  stroke-width: 0.6;
}

.hokkaido-map .leader-dot.jfa { fill: var(--red); }
.hokkaido-map .leader-dot.hkr { fill: #0f9d8c; }
.hokkaido-map .leader-dot.hako { fill: #e8a33d; }

.hokkaido-map .leader-label {
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--ink);
}

.hokkaido-map a:hover .leader-label {
  fill: var(--navy);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 20px;
}

.map-legend a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.map-legend a:hover {
  color: var(--navy);
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.jfa { background: var(--red); }
.legend-dot.hkr { background: #0f9d8c; }
.legend-dot.hako { background: #e8a33d; }

.map-caption {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.card .area {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 10px;
}

/* ---------- Contact / Form ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form.contact-form label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--white);
}

form.contact-form textarea { min-height: 140px; resize: vertical; }

form.contact-form .required {
  color: var(--red);
  font-size: 0.75rem;
  margin-left: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li { margin-bottom: 8px; }

.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
