/* ============================================================
   三段池RC 2026年 合宿・陸上大会 共通スタイル
   ============================================================ */

/* リセット */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "Hiragino Sans", "Meiryo", "Noto Sans JP", sans-serif;
  color: #3c2820;
  background: #fdf8ee;
  line-height: 1.7;
}

/* カラーパレット（チラシより）
   PRIMARY:  #d85b3c (朱赤・弁柄)
   ACCENT_G: #5a8c3e (深緑)
   ACCENT_Y: #f5af19 (山吹)
   ACCENT_P: #dc5070 (桃色)
   BG_CREAM: #fdf8ee
   BG_LIGHT: #fff5e6
   TEXT_DK : #3c2820
*/

/* ============================================================
   ヘッダー（全ページ共通ナビ）
============================================================ */
.site-header {
  background: linear-gradient(135deg, #d85b3c 0%, #f5af19 100%);
  color: #fff;
  padding: 18px 24px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-header .site-title {
  font-size: 1.3em;
  font-weight: bold;
  margin: 0;
}
.site-header .site-title a { color: #fff; text-decoration: none; }
.site-header .site-title small {
  display: block;
  font-size: 0.7em;
  font-weight: normal;
  opacity: 0.9;
  margin-top: 2px;
}
.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  font-size: 0.9em;
  transition: background 0.2s;
}
.site-nav a:hover { background: rgba(255,255,255,0.35); }
.site-nav a.active { background: #fff; color: #d85b3c; font-weight: bold; }

/* ============================================================
   コンテナ
============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px;
}
.container.narrow { max-width: 900px; }

/* ============================================================
   見出し
============================================================ */
h1, h2, h3 { font-family: inherit; }
.page-title {
  text-align: center;
  font-size: 2em;
  color: #d85b3c;
  margin: 30px 0 10px;
  position: relative;
}
.page-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #f5af19;
  border-radius: 2px;
  margin: 12px auto 0;
}
.page-subtitle {
  text-align: center;
  color: #6a5040;
  margin: 0 0 30px;
  font-size: 1.1em;
}

.section {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  border-left: 6px solid #d85b3c;
}
.section h2 {
  color: #d85b3c;
  font-size: 1.5em;
  margin: 0 0 20px;
  border-bottom: 2px dashed #f5af19;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h3 {
  color: #5a8c3e;
  font-size: 1.2em;
  margin: 18px 0 10px;
}

/* ============================================================
   ヒーロー（トップページ用）
============================================================ */
.hero {
  background: linear-gradient(135deg, rgba(216,91,60,0.92), rgba(245,175,25,0.92)),
              url("HP掲載用写真/合宿写真01.jpg") center/cover;
  color: #fff;
  text-align: center;
  padding: 80px 20px 70px;
  margin-bottom: 30px;
}
.hero h1 {
  font-size: 2.6em;
  margin: 0 0 16px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}
.hero .date-big {
  font-size: 2em;
  font-weight: bold;
  margin: 14px 0;
  letter-spacing: 2px;
}
.hero .tagline {
  font-size: 1.2em;
  margin: 16px 0 0;
  opacity: 0.95;
}

/* ============================================================
   トップの目次カード
============================================================ */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.toc-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
  border-top: 5px solid #d85b3c;
}
.toc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.toc-card .toc-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 12px;
}
.toc-card .toc-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #d85b3c;
  margin: 6px 0;
}
.toc-card .toc-desc {
  font-size: 0.92em;
  color: #6a5040;
  margin: 8px 0 0;
}
.toc-card.green { border-top-color: #5a8c3e; }
.toc-card.green .toc-title { color: #5a8c3e; }
.toc-card.yellow { border-top-color: #f5af19; }
.toc-card.yellow .toc-title { color: #c88800; }
.toc-card.pink { border-top-color: #dc5070; }
.toc-card.pink .toc-title { color: #dc5070; }
.toc-card.locked { opacity: 0.85; background: #f8f4ec; border-top-color: #999; }
.toc-card.locked .toc-title { color: #888; }
.toc-card.locked::after {
  content: "🔒 幹事専用（要パスワード）";
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  color: #c00;
}

/* ============================================================
   情報ボックス
============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 20px;
  margin: 18px 0;
}
.info-grid dt {
  font-weight: bold;
  color: #5a8c3e;
  align-self: center;
}
.info-grid dd { margin: 0; align-self: center; }

/* ============================================================
   スケジュール
============================================================ */
.schedule-day {
  background: linear-gradient(to right, #fff5e6, #fdf8ee);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 18px;
  border-left: 4px solid #5a8c3e;
}
.schedule-day h3 {
  color: #d85b3c;
  margin: 0 0 16px;
  font-size: 1.3em;
}
.schedule-day ul { list-style: none; padding: 0; margin: 0; }
.schedule-day li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dotted #d8cfc0;
  gap: 14px;
}
.schedule-day li:last-child { border-bottom: none; }
.schedule-day .icon { font-size: 1.6em; flex-shrink: 0; width: 40px; text-align: center; }
.schedule-day .time {
  flex-shrink: 0;
  width: 70px;
  font-weight: bold;
  color: #5a8c3e;
  font-size: 1.05em;
}

/* ============================================================
   競技種目カード
============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.event-card {
  background: linear-gradient(135deg, #d85b3c, #f5af19);
  color: #fff;
  text-align: center;
  padding: 28px 14px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.18s;
  text-decoration: none;
  display: block;
}
.event-card:hover { transform: translateY(-3px) scale(1.02); }
.event-card .ev-distance { font-size: 2em; display: block; margin-bottom: 4px; }
.event-card .ev-label { font-size: 0.9em; opacity: 0.95; }

.fun-events {
  background: linear-gradient(135deg, #fff5cc, #fdf8ee);
  border: 2px dashed #f5af19;
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.fun-events h3 {
  color: #dc5070;
  text-align: center;
  margin: 0 0 16px;
  font-size: 1.4em;
}
.fun-events .fun-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fun-events .fun-list li {
  background: #fff;
  text-align: center;
  padding: 14px 10px;
  border-radius: 8px;
  border: 1px solid #f5af19;
}
.fun-events .fun-list .fun-name { font-weight: bold; color: #dc5070; }
.fun-events .fun-list .fun-desc { display: block; font-size: 0.85em; color: #6a5040; margin-top: 4px; }

/* ============================================================
   写真ギャラリー
============================================================ */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.photo-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.photo-gallery img:hover { transform: scale(1.03); }

/* ============================================================
   テーブル
============================================================ */
.table-wrap { overflow-x: auto; margin-top: 18px; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.data-table th {
  background: #d85b3c;
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95em;
}
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #ecdfc8;
  font-size: 0.92em;
}
.data-table tr:nth-child(even) { background: #fcf6e8; }
.data-table tr:hover { background: #fff5e6; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .center { text-align: center; }

/* バッジ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.82em;
  font-weight: bold;
}
.badge-rc { background: #e8f3dd; color: #4a7c2e; }
.badge-ext { background: #fde8e8; color: #c00; }
.badge-ins { background: #fff2cc; color: #d97706; }

/* ============================================================
   コンタクト・問合せボックス
============================================================ */
.contact-box {
  background: linear-gradient(135deg, #d85b3c, #b94a30);
  color: #fff;
  text-align: center;
  padding: 36px 24px;
  border-radius: 16px;
  margin: 25px 0;
  box-shadow: 0 4px 12px rgba(216,91,60,0.25);
}
.contact-box h2 {
  color: #fff;
  border: none;
  margin: 0 0 16px;
  font-size: 1.5em;
  display: block;
}
.contact-box .contact-name { font-size: 1.2em; font-weight: bold; margin: 10px 0 4px; }
.contact-box .contact-tel {
  font-size: 1.6em;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 6px 0;
}
.contact-box .contact-tel a { color: #fff; text-decoration: none; }

/* ============================================================
   ノート・補足情報
============================================================ */
.note {
  background: #f0f8e8;
  border-left: 4px solid #5a8c3e;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 0.95em;
}
.note strong { color: #5a8c3e; }
.warn {
  background: #fff5e6;
  border-left: 4px solid #d85b3c;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 16px 0;
  font-size: 0.95em;
}
.warn strong { color: #d85b3c; }

/* ============================================================
   ボタン
============================================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-family: inherit;
}
.btn-primary { background: #d85b3c; color: #fff; }
.btn-primary:hover { background: #b94a30; transform: translateY(-2px); }
.btn-green { background: #5a8c3e; color: #fff; }
.btn-green:hover { background: #466e30; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #d85b3c;
  border: 2px solid #d85b3c;
}
.btn-outline:hover { background: #d85b3c; color: #fff; }

/* ============================================================
   出走リスト 組分け
============================================================ */
.heat-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-top: 5px solid #5a8c3e;
}
.heat-card.fast { border-top-color: #d85b3c; }
.heat-card .heat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #d85b3c;
  font-size: 1.15em;
  font-weight: bold;
  flex-wrap: wrap;
}
.heat-card .heat-num {
  background: #d85b3c;
  color: #fff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.85em;
}
.heat-card .badge-fast {
  background: #ffe699;
  color: #c75600;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
}
.lane-list { list-style: none; padding: 0; margin: 0; }
.lane-list li {
  display: flex;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px dotted #ecdfc8;
  gap: 12px;
}
.lane-list li:last-child { border-bottom: none; }
.lane-list .lane-no {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #5a8c3e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}
.lane-list .lane-empty .lane-no { background: #ddd; }
.lane-list .lane-empty .lane-name { color: #999; font-style: italic; }
.lane-list .lane-name { flex: 1; font-weight: bold; }
.lane-list .lane-aff { font-size: 0.85em; color: #6a5040; }
.lane-list .lane-pb {
  font-size: 0.85em;
  color: #888;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ============================================================
   タブ（種目選択など）
============================================================ */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  border-bottom: 2px solid #f5af19;
  padding-bottom: 0;
}
.tab-btn {
  background: #fff5e6;
  border: 2px solid #f5af19;
  border-bottom: none;
  padding: 10px 22px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-weight: bold;
  color: #6a5040;
  font-family: inherit;
  font-size: 1em;
  transition: background 0.18s;
}
.tab-btn:hover { background: #fff2cc; }
.tab-btn.active {
  background: #d85b3c;
  color: #fff;
  border-color: #d85b3c;
}

/* ============================================================
   フッター
============================================================ */
.site-footer {
  background: #3c2820;
  color: #fff5e6;
  text-align: center;
  padding: 30px 20px 24px;
  margin-top: 50px;
}
.site-footer p { margin: 6px 0; }
.site-footer small { opacity: 0.7; }
.site-footer a { color: #f5af19; text-decoration: none; }

/* ============================================================
   モバイル対応
============================================================ */
@media (max-width: 700px) {
  .hero h1 { font-size: 1.8em; }
  .hero .date-big { font-size: 1.4em; }
  .page-title { font-size: 1.5em; }
  .info-grid { grid-template-columns: 1fr; gap: 6px; }
  .info-grid dt { margin-top: 10px; }
  .section { padding: 20px 18px; }
  .container { padding: 20px 14px; }
  .site-header .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; justify-content: flex-start; }
  .schedule-day li { flex-wrap: wrap; }
  .data-table { font-size: 0.85em; }
}
