/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e8001d;
  --red-dark: #b5001a;
  --red-glow: rgba(232, 0, 29, 0.15);
  --orange: #ff6b00;
  --bg-black: #080808;
  --bg-dark: #0f0f0f;
  --bg-card: #161616;
  --bg-card2: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --border-red: rgba(232, 0, 29, 0.4);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --chrome: #c0c0c0;
  --font: 'Inter', 'Noto Sans JP', sans-serif;
  --nav-h: 64px;
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-black);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  font-style: italic;
}
.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  font-style: italic;
}
.nav-logo-sub {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-tab {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-tab.active { color: var(--red); background: var(--red-glow); }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-usdm {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-usdm:hover { border-color: var(--red); color: var(--red); }

/* ===== MAIN LAYOUT ===== */
.main { padding-top: var(--nav-h); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 48px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.7) 50%, rgba(8,8,8,0.9) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(232,0,29,0.03) 40px,
      rgba(232,0,29,0.03) 41px
    );
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,0,29,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,0,29,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}
.hero-accent {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, transparent 30%, rgba(232,0,29,0.04) 100%);
}
.hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.hero-content { position: relative; max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-glow);
  border: 1px solid var(--border-red);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  font-style: italic;
  margin-bottom: 8px;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.hero-stat-num span { color: var(--red); font-size: 14px; }
.hero-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ===== SECTION ===== */
.section { padding: 40px 48px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.section-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== FILTERS ===== */
.filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.filter-select {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color var(--transition);
  min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.filter-select:focus { outline: none; border-color: var(--red); }
.filter-select:hover { border-color: rgba(255,255,255,0.2); }

.search-input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px 8px 36px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font);
  transition: border-color var(--transition);
  min-width: 200px;
  position: relative;
}
.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.search-input:focus { outline: none; border-color: var(--red); }

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.filter-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== VIEW TOGGLE ===== */
.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-left: auto;
}
.view-btn {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-btn.active { background: var(--bg-card2); color: var(--text); }
.view-btn:hover { color: var(--text); }

/* ===== EVENT CARDS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.events-list { display: flex; flex-direction: column; gap: 8px; }

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
}
.event-card:hover { border-color: rgba(232,0,29,0.3); transform: translateY(-2px); background: var(--bg-card2); }
.event-card.featured { border-color: rgba(232,0,29,0.25); }
.event-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}
.event-card-body { padding: 18px 20px; }

.event-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}
.event-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.cat-race { background: rgba(232,0,29,0.15); color: #ff4d4d; border: 1px solid rgba(232,0,29,0.3); }
.cat-custom { background: rgba(255,107,0,0.15); color: #ff8c42; border: 1px solid rgba(255,107,0,0.3); }
.cat-motor { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.cat-classic { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.cat-meeting { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.cat-offroad { background: rgba(234,179,8,0.15); color: #facc15; border: 1px solid rgba(234,179,8,0.3); }

.event-featured-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.event-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 8px;
}
.event-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--chrome);
}
.event-meta-row { display: flex; align-items: center; gap: 6px; }
.event-meta-icon { font-size: 13px; color: var(--text-dim); }
.event-actions {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.event-date-range {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
}
.event-link {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.event-link:hover { color: var(--red); }

/* List view card */
.event-card-list {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.event-card-list:hover { border-color: rgba(232,0,29,0.3); background: var(--bg-card2); }
.event-card-list.featured { border-left: 2px solid var(--red); }
.event-list-date {
  min-width: 80px;
  text-align: center;
}
.event-list-month { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.event-list-day { font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.event-list-body { flex: 1; min-width: 0; }
.event-list-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.event-list-meta { font-size: 12px; color: var(--text-muted); }
.event-list-cat { flex-shrink: 0; }

/* ===== CALENDAR VIEW ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cal-month {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cal-month-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cal-month-name { font-size: 14px; font-weight: 700; color: #fff; }
.cal-month-count {
  font-size: 11px;
  background: var(--red-glow);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-red);
}
.cal-month-body { padding: 8px; }
.cal-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
  cursor: pointer;
}
.cal-event-item:hover { background: rgba(255,255,255,0.04); }
.cal-event-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cal-event-info { min-width: 0; flex: 1; }
.cal-event-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-date { font-size: 11px; color: var(--text-muted); }
.cal-empty { padding: 20px; text-align: center; font-size: 12px; color: var(--text-dim); }

/* ===== MAP VIEW ===== */
.map-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  align-items: start;
}
.map-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.japan-map {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}
.map-region {
  cursor: pointer;
  transition: all 0.15s ease;
}
.map-region:hover .region-fill { fill: rgba(232,0,29,0.5); }
.map-region.active .region-fill { fill: rgba(232,0,29,0.7); }
.region-fill { transition: fill 0.15s ease; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.map-legend-item:hover { border-color: var(--border); color: var(--text); }
.map-legend-item.active { border-color: var(--red); color: var(--red); background: var(--red-glow); }
.map-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.map-sidebar { display: flex; flex-direction: column; gap: 12px; }
.map-region-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-region-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.map-event-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.map-event-card:hover { border-color: rgba(232,0,29,0.3); background: var(--bg-card); }
.map-event-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.map-event-date { font-size: 11px; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.map-event-venue { font-size: 11px; color: var(--text-muted); }

/* ===== YEAR TABS ===== */
.year-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.year-tab {
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 1px;
  transition: all var(--transition);
}
.year-tab:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.year-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; opacity: 0.3; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(232,0,29,0.3);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.2s;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.modal-title { font-size: 18px; font-weight: 700; color: #fff; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-body { padding: 24px; }
.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-info-item {}
.modal-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.modal-info-value { font-size: 14px; color: var(--text); font-weight: 500; }
.modal-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.modal-footer { display: flex; gap: 10px; }
.btn-primary {
  flex: 1;
  padding: 10px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-top {
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  font-style: italic;
}
.footer-logo-name { font-size: 18px; font-weight: 800; letter-spacing: 2px; font-style: italic; }
.footer-tagline { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.footer-section-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-link-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--red); }
.footer-usdm-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.footer-usdm-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.footer-usdm-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.footer-usdm-logo-wrap:hover { opacity: 1; }
.footer-usdm-logo-svg {
  width: 44px;
  height: 40px;
  color: var(--red);
  filter: drop-shadow(0 0 6px rgba(232,0,29,0.4));
}
.footer-usdm-logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  font-family: 'Inter', sans-serif;
}
.footer-usdm-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-usdm-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.footer-usdm-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition);
  width: fit-content;
}
.footer-usdm-btn:hover { background: var(--red-dark); }
.footer-bottom {
  padding: 20px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-bottom-right { display: flex; gap: 20px; }

/* ===== UPCOMING BANNER ===== */
.upcoming-banner {
  background: linear-gradient(90deg, rgba(232,0,29,0.1) 0%, rgba(232,0,29,0.05) 50%, transparent 100%);
  border: 1px solid rgba(232,0,29,0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.upcoming-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  flex-shrink: 0;
}
.upcoming-divider { width: 1px; height: 30px; background: var(--border-red); flex-shrink: 0; }
.upcoming-scroll {
  display: flex;
  gap: 32px;
  overflow: hidden;
  flex: 1;
}
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--chrome);
  cursor: pointer;
  transition: color var(--transition);
}
.upcoming-item:hover { color: #fff; }
.upcoming-item-date { color: var(--red); font-weight: 700; font-size: 11px; }

/* ===== TICKER ANIMATION ===== */
.ticker-wrap {
  background: var(--red);
  padding: 8px 0;
  overflow: hidden;
}
.ticker {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.ticker-sep { color: rgba(255,255,255,0.4); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== NAV FAV BADGE ===== */
.fav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 2px;
  vertical-align: middle;
}

/* ===== QUICK SECTION (今週末・今月) ===== */
.quick-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.quick-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.quick-box-icon { font-size: 16px; color: var(--red); }
.quick-box-title { font-size: 13px; font-weight: 700; color: #fff; flex: 1; }
.quick-box-count {
  font-size: 11px;
  background: var(--red-glow);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-red);
}
/* ===== HERO LAST UPDATE ===== */
.hero-lastupdate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #aaa;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero-lastupdate i { color: var(--red); font-size: 12px; }

/* ===== QUICK SECTION — 横スクロールカード ===== */
.quick-box-body { padding: 10px 0 6px; }
.quick-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
  -webkit-overflow-scrolling: touch;
}
.quick-cards-scroll::-webkit-scrollbar { height: 3px; }
.quick-cards-scroll::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }
.quick-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}
.quick-card:hover { border-color: var(--red); transform: translateY(-2px); }
.quick-card-date {
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.quick-card-pref {
  font-size: 10px;
  color: #888;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-block;
  margin-bottom: 6px;
}
.quick-card-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quick-more-btn {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--red-glow);
  border: 1px dashed var(--border-red);
  border-radius: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.quick-more-btn:hover { background: rgba(232,0,29,0.15); }
.quick-empty { padding: 16px; text-align: center; font-size: 12px; color: var(--text-dim); }

/* ===== FAVORITES ===== */
.event-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 1;
}
.event-fav-btn:hover { border-color: #ff4d6d; color: #ff4d6d; background: rgba(255,77,109,0.1); }
.event-fav-btn.active { color: #ff4d6d; border-color: #ff4d6d; background: rgba(255,77,109,0.15); }
.event-card { position: relative; }

/* ===== SHARE BUTTONS (card) ===== */
.event-share-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
}
.event-share-btn:hover { border-color: var(--border); color: var(--text-muted); }
.event-share-x:hover { color: #fff; border-color: #333; background: #111; }
.event-share-line:hover { color: #06C755; border-color: rgba(6,199,85,0.3); }

/* ===== MODAL UPDATES ===== */
.modal-fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  flex-shrink: 0;
}
.modal-fav-btn:hover { border-color: #ff4d6d; color: #ff4d6d; }
.modal-fav-btn.active { color: #ff4d6d; border-color: #ff4d6d; background: rgba(255,77,109,0.1); }
.modal-fav-btn.active .ti-heart::before { content: '\ebe6'; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.modal-share-label { font-size: 11px; color: var(--text-dim); margin-right: 2px; }
.modal-share-x {
  display: flex; align-items: center; gap: 5px;
  background: #000; border: 1px solid #333; color: #fff;
  padding: 6px 12px; border-radius: var(--radius); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: background var(--transition);
}
.modal-share-x:hover { background: #111; }
.modal-share-line {
  display: flex; align-items: center; gap: 5px;
  background: #06C755; color: #fff;
  padding: 6px 12px; border-radius: var(--radius); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: background var(--transition); text-decoration: none;
}
.modal-share-line:hover { background: #05a847; }
.modal-share-gcal {
  display: flex; align-items: center; gap: 5px;
  background: rgba(66,133,244,0.12); border: 1px solid rgba(66,133,244,0.3);
  color: #6ba4f8; padding: 6px 12px; border-radius: var(--radius); font-size: 11px; font-weight: 700;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.modal-share-gcal:hover { background: rgba(66,133,244,0.2); }
.modal-cat-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px;
}

/* ===== HERO CAR ===== */
.hero-car-wrap {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.3) 15%, black 40%, black 80%, transparent 100%);
}
.hero-car-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 40px rgba(232,0,29,0.2));
}
.hero-car-photo:not([src]) { display: none; }
.hero-car-svg {
  width: 100%;
  max-width: 580px;
  filter: drop-shadow(0 0 40px rgba(232,0,29,0.15)) drop-shadow(0 20px 40px rgba(0,0,0,0.8));
  opacity: 0.92;
}

/* ===== UPDATE ANNOUNCEMENT BANNER ===== */
.update-banner {
  margin: 0 var(--side-pad) 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,0,29,0.12) 0%, rgba(232,0,29,0.06) 100%);
  border: 1px solid rgba(232,0,29,0.35);
  animation: bannerPulse 3s ease-in-out infinite;
}
@keyframes bannerPulse {
  0%, 100% { border-color: rgba(232,0,29,0.35); }
  50%       { border-color: rgba(232,0,29,0.65); }
}
.update-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}
.update-banner-icon {
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.update-banner-body { flex: 1; min-width: 0; }
.update-banner-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.update-banner-list { display: flex; flex-direction: column; gap: 4px; }
.update-banner-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.update-banner-item-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.update-banner-item-names {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 11px;
  margin-top: 1px;
}
.update-banner-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 2px; flex-shrink: 0;
  transition: color 0.15s;
}
.update-banner-close:hover { color: var(--text-secondary); }

/* ===== LINE BANNER ===== */
.line-banner {
  background: linear-gradient(135deg, #042d14 0%, #063d1a 50%, #052810 100%);
  border-top: 1px solid rgba(6,199,85,0.2);
  border-bottom: 1px solid rgba(6,199,85,0.2);
}
.line-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.line-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.line-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(6,199,85,0.3);
}
.line-banner-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #06C755;
  margin-bottom: 4px;
}
.line-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.line-banner-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.line-banner-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.line-id-badge {
  font-size: 13px;
  font-weight: 700;
  color: #06C755;
  background: rgba(6,199,85,0.1);
  border: 1px solid rgba(6,199,85,0.3);
  padding: 8px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
}
.line-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
  white-space: nowrap;
}
.line-add-btn:hover { background: #05a847; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .map-container { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* ⑤ モバイルヒーロー縮小 */
  .hero {
    height: auto;
    min-height: 0;
    padding: 80px 20px 28px;
  }
  .hero h1 { font-size: 30px; line-height: 1.25; }
  .hero-sub { font-size: 13px; }
  .hero-car-wrap { display: none; }
  .hero-stats { gap: 16px; margin-top: 16px; }
  .hero-stat-num { font-size: 28px; }
  .hero-content { max-width: 100%; }
  /* ② Quick cards on mobile */
  .quick-card { width: 140px; }
  .section { padding: 24px; }
  .nav-tabs { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .modal-info-grid { grid-template-columns: 1fr; }
  .line-banner-inner { flex-direction: column; align-items: flex-start; padding: 20px 24px; }
  .line-banner-right { width: 100%; }
  .line-add-btn { flex: 1; justify-content: center; }
}
