/* ===== Reset & Base ===== */
:root {
  --primary: #0066cc;
  --primary-dark: #004d99;
  --accent: #ff6b35;
  --accent-light: #ffa07a;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1a2233;
  --text-sub: #5a6478;
  --border: #e1e6ef;
  --gold: #d4a017;
  --silver: #8893a7;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.10);

  --kyoto: #5b3a8a;
  --osaka: #cc2a4d;
  --hyogo: #1a8a5b;
  --shiga: #2980b9;
  --nara: #b88723;
  --wakayama: #e87722;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Global Header (navigation) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-header .brand {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header .brand::before {
  content: "🏆";
  font-size: 18px;
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all 0.15s ease;
}
.site-nav a:hover {
  background: var(--bg);
  color: var(--primary);
  text-decoration: none;
}
.site-nav a.active {
  background: var(--primary);
  color: white;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0066cc 0%, #00a8e8 50%, #ff6b35 100%);
  color: white;
  padding: 50px 40px 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.kyoto { background: linear-gradient(135deg, #5b3a8a 0%, #8e5fb6 50%, #c194db 100%); }
.hero.osaka { background: linear-gradient(135deg, #cc2a4d 0%, #ff5e7e 100%); }
.hero.hyogo { background: linear-gradient(135deg, #1a8a5b 0%, #4fb583 100%); }
.hero.shiga { background: linear-gradient(135deg, #2980b9 0%, #5dade2 100%); }
.hero.nara { background: linear-gradient(135deg, #b88723 0%, #e0b465 100%); }
.hero.calendar { background: linear-gradient(135deg, #4a3aa8 0%, #00a8e8 50%, #ff6b35 100%); }

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero .slogan {
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.9;
  margin-bottom: 8px;
  font-weight: 300;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero .subtitle {
  font-size: 15px;
  opacity: 0.95;
  margin-bottom: 20px;
}
.hero-meta {
  display: inline-flex;
  gap: 20px;
  background: rgba(255,255,255,0.15);
  padding: 10px 24px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  font-size: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ===== Container ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }

/* ===== Section Title ===== */
section { margin-bottom: 50px; }
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title .icon {
  display: inline-block;
  width: 6px;
  height: 26px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 3px;
}
.section-sub {
  color: var(--text-sub);
  font-size: 13px;
  margin-bottom: 24px;
  padding-left: 18px;
}

/* ===== Badges ===== */
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-kyoto { background: var(--kyoto); color: white; }
.badge-osaka { background: var(--osaka); color: white; }
.badge-hyogo { background: var(--hyogo); color: white; }
.badge-shiga { background: var(--shiga); color: white; }
.badge-nara { background: var(--nara); color: white; }
.badge-wakayama { background: var(--wakayama); color: white; }
.badge-sport { background: var(--border); color: var(--text); }
.badge-popular { background: var(--gold); color: white; }
.badge-must { background: var(--accent); color: white; }
.badge-prelim { background: #5a6478; color: white; }
.badge-main { background: #c0392b; color: white; }

/* ===== Cards ===== */
.feature-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.feature-header {
  padding: 24px 28px;
  border-bottom: 3px solid var(--accent);
  background: linear-gradient(135deg, #fff5e6 0%, #ffe0b3 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.feature-header.kyoto { background: linear-gradient(135deg, #efe6f7 0%, #d4c0ee 100%); border-bottom-color: var(--kyoto); }
.feature-header.osaka { background: linear-gradient(135deg, #ffe6ec 0%, #ffb8c7 100%); border-bottom-color: var(--osaka); }
.feature-header.hyogo { background: linear-gradient(135deg, #e6f5ec 0%, #b8e6c7 100%); border-bottom-color: var(--hyogo); }
.feature-header.shiga { background: linear-gradient(135deg, #e6f1f9 0%, #b8d8ed 100%); border-bottom-color: var(--shiga); }
.feature-header.nara { background: linear-gradient(135deg, #fbf3e1 0%, #f0d99c 100%); border-bottom-color: var(--nara); }
.feature-header h3 {
  font-size: 20px;
  color: #663300;
  font-weight: 800;
}
.feature-body { padding: 28px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.info-item {
  background: var(--bg);
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}
.info-item.kyoto { border-left-color: var(--kyoto); }
.info-item.osaka { border-left-color: var(--osaka); }
.info-item.hyogo { border-left-color: var(--hyogo); }
.info-item.shiga { border-left-color: var(--shiga); }
.info-item.nara { border-left-color: var(--nara); }
.info-label {
  font-size: 10px;
  color: var(--text-sub);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-weight: 700;
}
.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.info-value.big { font-size: 17px; color: var(--accent); }

.venue-list {
  background: var(--bg);
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.venue-list h4 {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.venue-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.venue-list li {
  background: white;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--border);
}
.venue-list li.final { background: var(--accent); color: white; font-weight: 700; border-color: var(--accent); }

.highlight-box {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3d6 100%);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.highlight-box h4 {
  font-size: 13px;
  color: #8a6914;
  margin-bottom: 6px;
  font-weight: 700;
}
.highlight-box p { font-size: 13px; line-height: 1.8; }

.note-box {
  background: #f0f7ff;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-sub);
}
.warn-box {
  background: #fff3e0;
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: #663300;
}

/* ===== Recommendation Cards (grid) ===== */
.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.reco-card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.reco-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.reco-card .rank {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  border-bottom-left-radius: 10px;
}
.reco-card .rank.gold { background: var(--gold); }
.reco-card .rank.must { background: var(--accent); }
.reco-header { margin-bottom: 12px; padding-right: 60px; }
.reco-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.reco-sport {
  font-size: 12px;
  color: var(--text-sub);
}
.stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin: 6px 0; }
.stars .empty { color: #ddd; }

.reco-detail {
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}
.reco-detail dt {
  font-weight: 700;
  color: var(--text-sub);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 5px;
}
.reco-detail dt:first-child { margin-top: 0; }
.reco-detail dd { color: var(--text); margin-bottom: 3px; }

.reco-why {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  padding: 8px 0;
  border-top: 1px dashed var(--border);
  margin-bottom: 12px;
}
.reco-why::before {
  content: "★ 見どころ ";
  color: var(--accent);
  font-weight: 700;
}
.reco-cta {
  margin-top: auto;
  text-align: right;
}
.reco-cta a {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s;
}
.reco-cta a:hover { background: var(--primary-dark); text-decoration: none; }

/* ===== Tables ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--bg);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

/* ===== Calendar ===== */
.cal-month {
  background: var(--card);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cal-month-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 800;
}
.cal-month-body { padding: 0; }
.cal-event {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cal-event:last-child { border-bottom: none; }
.cal-event:hover { background: var(--bg); }
.cal-event.final { background: linear-gradient(90deg, #fff3e0, transparent); border-left: 4px solid var(--accent); }
.cal-date {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.cal-date .wday {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-sub);
}
.cal-info { font-size: 13px; }
.cal-info .title { font-weight: 700; margin-bottom: 2px; }
.cal-info .venue { font-size: 11px; color: var(--text-sub); }
.cal-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cal-tag.prelim { background: #e1e6ef; color: var(--text-sub); }
.cal-tag.final { background: var(--accent); color: white; }
.cal-tag.main { background: #c0392b; color: white; }

/* ===== Sources ===== */
.sources {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.sources h3 { font-size: 14px; margin-bottom: 12px; }
.sources ul { list-style: none; }
.sources li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}
.sources li:last-child { border: none; }
.sources a { color: var(--primary); word-break: break-all; }

/* ===== Footer ===== */
footer.site-footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--text-sub);
  font-size: 11px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.back-nav {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.back-nav a {
  background: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.back-nav a:hover { background: var(--primary); color: white; text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 32px 18px 28px; }
  .hero h1 { font-size: 22px; }
  .hero-meta { flex-direction: column; gap: 6px; padding: 12px 18px; }
  .container { padding: 24px 14px; }
  .section-title { font-size: 18px; }
  .feature-header { padding: 18px; }
  .feature-body { padding: 18px; }
  .info-grid { grid-template-columns: 1fr; }
  .cal-event { grid-template-columns: 70px 1fr; }
  .cal-tag { grid-column: 2; justify-self: start; }
  .site-header { padding: 10px 14px; }
  .site-nav a { padding: 5px 10px; font-size: 12px; }
}
