/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --accent:       #C0392B;
  --accent-dark:  #922B21;
  --bg:           #FAF7F1;
  --surface:      #FFFFFF;
  --border:       #E8E1D6;
  --text:         #2C2C2C;
  --text-muted:   #6B6B6B;
  --header-h:     58px;
  --maxw:         1000px;

  --pin-temple:      #E67E22;
  --pin-nature:      #27AE60;
  --pin-theme-park:  #8E44AD;
  --pin-food-market: #F1C40F;
  --pin-museum:      #2980B9;
  --pin-castle:      #922B21;
  --pin-festival:    #E91E8C;
  --pin-general:     #7F8C8D;

  --june:   #27AE60;
  --july:   #E6A817;
  --august: #C0392B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding-top: var(--header-h);
}

.ja {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82em;
  margin-left: 0.35rem;
}

.sub-jp {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* ── Header / nav ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.site-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.title-jp { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.title-en { font-size: 0.95rem; font-weight: 600; color: var(--text); }

.tab-nav { display: flex; gap: 0.3rem; }

.tab-nav a {
  padding: 0.35rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-nav a:hover { color: var(--accent); border-color: var(--border); }

.tab-nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Layout ────────────────────────────────────────────────── */
.content-wrapper {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.content-wrapper h1 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.lead {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

/* ── Map ───────────────────────────────────────────────────── */
.map-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.map-img { display: block; width: 100%; height: auto; }

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: all 0.15s ease;
}

.hotspot-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.22);
  flex-shrink: 0;
}

.hotspot:hover { background: #fff; transform: translate(-50%, -50%) scale(1.06); }

.hotspot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hotspot.active .hotspot-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.4); }

/* ── Region detail / place cards ───────────────────────────── */
.detail-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem;
  font-style: italic;
}

.region-head { margin-bottom: 1.25rem; }
.region-head h2 { font-size: 1.35rem; }
.region-desc { color: var(--text-muted); margin-top: 0.3rem; max-width: 65ch; }

/* Area groups within a region */
.area-group { margin-bottom: 1.75rem; }

.area-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.place-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Horizontal card: title/tags/link column on the left, prose on the right */
.place-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.place-main {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
}

.place-main h3 { font-size: 1rem; font-weight: 700; }
.place-main .gmaps-link { margin-top: auto; padding-top: 0.6rem; }

.place-body { flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.5rem 0 0; }

.tag {
  padding: 0.12rem 0.5rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  text-transform: capitalize;
}
.tag-temple      { background: var(--pin-temple); }
.tag-nature      { background: var(--pin-nature); }
.tag-theme-park  { background: var(--pin-theme-park); }
.tag-food-market { background: var(--pin-food-market); color: #4a3f00; }
.tag-museum      { background: var(--pin-museum); }
.tag-castle      { background: var(--pin-castle); }
.tag-festival    { background: var(--pin-festival); }
.tag-general     { background: var(--pin-general); }

.place-desc { font-size: 0.875rem; }

.place-tips {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.place-tips li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  margin-top: 0.2rem;
}
.place-tips li::before { content: "💡"; position: absolute; left: 0; }

.place-note {
  font-size: 0.82rem;
  background: #FBF3E7;
  border-left: 3px solid var(--july);
  padding: 0.5rem 0.7rem;
  border-radius: 0 6px 6px 0;
  margin-top: 0.6rem;
}

.gmaps-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.gmaps-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Food ──────────────────────────────────────────────────── */
.food-category { margin-bottom: 2.5rem; }
.food-category h2 {
  font-size: 1.2rem;
  border-left: 3px solid var(--accent);
  padding-left: 0.7rem;
  margin-bottom: 1rem;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.food-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.food-card h3 { font-size: 0.95rem; font-weight: 700; }
.food-desc { font-size: 0.86rem; margin-top: 0.4rem; }
.food-place { font-size: 0.8rem; color: var(--accent); margin-top: 0.55rem; font-style: italic; }

/* ── Festivals ─────────────────────────────────────────────── */
.festival-month { margin-bottom: 2.5rem; }

.month-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }

.month-badge {
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.month-badge.june   { background: var(--june); }
.month-badge.july   { background: var(--july); }
.month-badge.august { background: var(--august); }

.festival-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}
.festival-card.highlight { border-left: 3px solid var(--accent); }

.festival-info { flex: 1; }
.festival-info h3 { font-size: 1rem; font-weight: 700; }
.festival-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.festival-desc { font-size: 0.875rem; margin-top: 0.5rem; }

.festival-card .gmaps-link { flex-shrink: 0; margin-top: 0; padding-top: 0.3rem; white-space: nowrap; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-inner { padding: 0 0.75rem; }
  .title-en { display: none; }
  .tab-nav a { padding: 0.3rem 0.6rem; font-size: 0.8rem; }

  .hotspot { font-size: 0.62rem; padding: 0.15rem 0.4rem 0.15rem 0.3rem; }
  .hotspot-dot { width: 7px; height: 7px; }

  .festival-card { flex-direction: column; gap: 0.6rem; }
  .festival-card .gmaps-link { padding-top: 0; }

  .place-card { flex-direction: column; gap: 0.6rem; }
  .place-main { flex-basis: auto; }
  .place-main .gmaps-link { margin-top: 0.4rem; padding-top: 0; }
}
