@charset "UTF-8";

/* --- カラー & 基本変数 --- */
:root {
  --navy: #131c38;
  --pink: #f43f5e;
  --pink-hover: #e11d48;
  --yellow: #fbbf24;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
}

/* --- ベースリセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  padding-top: 95px;
}

/* --- 固定ヘッダー（シンプル固定） --- */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--navy), #202e5b);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.header-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}
.title-highlight {
  color: var(--yellow);
  font-size: 2rem;
}

/* --- レイアウト（2カラム） --- */
.layout-container {
  max-width: 1060px;
  margin: 0px auto;
  padding: 32px 40px;
  background: var(--card);
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 127px; }
.side-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.side-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.side-nav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.side-nav a.nav-cta { background: #fff1f2; border-color: #fecdd3; color: var(--pink-hover); }
.side-nav a.nav-cta:hover { background: var(--pink); color: #fff; }
.side-nav a.nav-back { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.side-nav a.nav-back:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.side-nav li.nav-org { margin-top: 8px; }

/* --- メインコンテンツ --- */
main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
section {
  background: var(--card);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
section h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--pink);
  display: inline-block;
}

/* 日時・場所 */
.info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.info-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  border-left: 4px solid var(--navy);
  border-radius: 6px;
}
.info-label {
  font-size: 0.85rem;
  font-weight: bold;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Googleマップ */
.map-container { width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.map-container iframe { width: 100%; aspect-ratio: 16 / 9; min-height: 280px; display: block; }

/* 参加料カード */
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 14px; }
.fee-card { background: #fff5f6; border: 1.5px solid #fecdd3; border-radius: 12px; padding: 22px 20px; text-align: center; }
.fee-title { font-weight: bold; color: var(--navy); font-size: 1.1rem; }
.fee-price { font-size: 2.2rem; font-weight: 800; color: var(--pink); margin: 6px 0; }
.fee-price span { font-size: 0.95rem; font-weight: normal; margin-left: 2px; }

/* 駐車場（小さめの別枠） */
.fee-parking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
}
.parking-label { font-weight: bold; font-size: 0.9rem; color: var(--navy); }
.parking-price { font-weight: 800; font-size: 1.25rem; color: var(--text); }
.parking-price span { font-size: 0.85rem; font-weight: normal; margin-left: 2px; }

/* スケジュール */
.schedule-timeline { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.schedule-timeline li {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-left: 4px solid var(--navy);
  border-radius: 0 6px 6px 0;
}
.schedule-timeline .time { font-weight: 800; color: var(--pink); min-width: 50px; }

/* ルール告知 & 枠 */
.notice-box { background: #fefce8; border-left: 5px solid var(--yellow); border-radius: 6px; padding: 16px 20px; }
.notice-title { font-weight: bold; color: #854d0e; margin-bottom: 4px; }
.notice-desc { font-size: 0.9rem; color: #713f12; }
.rules-link-wrap { margin-top: 18px; }
.btn-sub {
  display: inline-block;
  padding: 10px 22px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-sub:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.rule-placeholder {
  color: var(--muted);
  font-style: italic;
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  border: 1px dashed var(--border);
}
.rules-list {
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rules-list li {
  line-height: 1.75;
}
.rules-sublist {
  margin-top: 8px;
  padding-left: 1.4em;
  list-style-type: circle;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 参加登録 (CTA) */
#registration { text-align: center; background: linear-gradient(135deg, #fff, #fff5f6); border: 2px solid #fecdd3; }
.btn-register {
  display: inline-block;
  margin-top: 16px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
  transition: all 0.2s ease;
}
.btn-register:hover { background: var(--pink-hover); transform: translateY(-2px); }

/* ページ上部へ戻る */
.back-to-top { text-align: center; }
.back-to-top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: color 0.2s ease;
}
.back-to-top a:hover { color: var(--navy); text-decoration: underline; }

/* フッター */
footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 0;
}
.footer-links { margin-bottom: 8px; }
.footer-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.footer-links a:hover { opacity: 0.8; }

/* --- レスポンシブ（スマホ・タブレット） --- */
@media (max-width: 768px) {
  body { padding-top: 85px; }
  header { padding: 12px 14px; }
  header h1 { font-size: 1.05rem; line-height: 1.3; }
  .title-highlight { font-size: 1.15rem; }

  .layout-container { flex-direction: column; margin: 0 auto; padding: 16px; gap: 16px; }
  .sidebar { width: 100%; position: static; }
  .side-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-nav li { flex: 1 1 calc(50% - 4px); min-width: 120px; }
  .side-nav li.nav-org { flex: 1 1 100%; margin-top: 4px; }
  .side-nav a { text-align: center; padding: 10px 8px; font-size: 0.85rem; }

  section { padding: 20px 16px; }
  .fee-parking { flex-direction: column; align-items: flex-start; gap: 4px; }
  .info-item { flex-direction: column; gap: 4px; }
  .btn-register { display: block; width: 100%; }
}
