/*
Theme Name: Gourmet Map Japan
Theme URI: https://example.com/gourmet-map-japan
Author: Codex
Description: Japan map restaurant guide for multilingual, highly rated restaurants.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Text Domain: gourmet-map-japan
*/

:root {
  --ink: #17212b;
  --muted: #65717d;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #dfd7ca;
  --accent: #be4c32;
  --accent-2: #267a72;
  --gold: #b4872f;
  --shadow: 0 18px 40px rgba(30, 28, 24, 0.11);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
.gmj-page { min-height: 100vh; }
.gmj-header {
  padding: 28px clamp(18px, 4vw, 56px) 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.92);
}
.gmj-brand {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}
.gmj-brand a { text-decoration: none; font-weight: 800; font-size: 18px; }
.gmj-brand span { color: var(--muted); font-size: 13px; }
.gmj-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
.gmj-lang a {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}
.gmj-lang a.is-active {
  background: var(--ink);
  color: #fff;
}
.gmj-main { max-width: 1160px; margin: 0 auto; padding: 38px clamp(18px, 4vw, 56px) 64px; }
.gmj-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
}
.gmj-kicker { color: var(--accent); font-weight: 800; letter-spacing: 0; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: 0; }
.gmj-lead { color: var(--muted); font-size: 17px; max-width: 650px; }
.gmj-note { color: var(--muted); font-size: 13px; margin-top: 18px; }
.gmj-map-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.gmj-map { width: 100%; height: auto; display: block; }
.gmj-map a text { fill: #fff; font-size: 15px; font-weight: 800; pointer-events: none; }
.gmj-map a rect, .gmj-map a path { transition: transform .16s ease, filter .16s ease, opacity .16s ease; transform-origin: center; }
.gmj-map a:hover rect, .gmj-map a:hover path,
.gmj-map a:focus rect, .gmj-map a:focus path { filter: brightness(1.08); transform: translateY(-2px); }
.gmj-region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.gmj-region-link, .gmj-back, .gmj-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.gmj-region-link { background: var(--accent-2); }
.gmj-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.gmj-title-row h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 0; }
.gmj-list { display: grid; gap: 14px; }
.gmj-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(30, 28, 24, 0.06);
}
.gmj-card:hover { border-color: var(--accent); }
.gmj-card h2 { margin: 0 0 6px; font-size: 22px; }
.gmj-meta { color: var(--muted); font-size: 14px; }
.gmj-score { color: var(--gold); font-weight: 900; font-size: 20px; white-space: nowrap; }
.gmj-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.gmj-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.gmj-detail-head h1 { font-size: clamp(34px, 4.6vw, 56px); }
.gmj-badge { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-size: 13px; color: var(--muted); margin: 4px 6px 0 0; }
.gmj-dl { display: grid; grid-template-columns: 180px 1fr; gap: 12px 18px; margin: 0; }
.gmj-dl dt { color: var(--muted); font-weight: 800; }
.gmj-dl dd { margin: 0; }
.gmj-source { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gmj-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.gmj-home-link { margin: 34px 0 0; text-align: center; }
.gmj-pref-map {
  margin: 0 0 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(30, 28, 24, 0.06);
}
.gmj-pref-map__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}
.gmj-pref-map svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}
.gmj-pref-map__shape path {
  fill: #e9f1ee;
  stroke: #8aa49d;
  stroke-width: 1.4;
}
.gmj-shop-marker {
  filter: drop-shadow(0 4px 6px rgba(23, 33, 43, 0.2));
  transition: transform .14s ease, filter .14s ease;
}
.gmj-pref-map a:hover .gmj-shop-marker,
.gmj-pref-map a:focus .gmj-shop-marker {
  transform: translateY(-3px);
  filter: drop-shadow(0 7px 10px rgba(23, 33, 43, 0.28));
}
.gmj-shop-marker__roof { fill: var(--accent); }
.gmj-shop-marker__body { fill: #fff; stroke: var(--ink); stroke-width: 1.2; }
.gmj-shop-marker__door { fill: var(--accent-2); }
.gmj-shop-marker text {
  fill: var(--ink);
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}
.gmj-capital-marker circle {
  fill: #fff7d8;
  stroke: var(--gold);
  stroke-width: 2;
  filter: drop-shadow(0 4px 6px rgba(30, 28, 24, 0.18));
}
.gmj-capital-marker path { fill: var(--gold); }
.gmj-capital-marker text {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 900;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  .gmj-brand { align-items: flex-start; flex-direction: column; }
  .gmj-hero { grid-template-columns: 1fr; }
  .gmj-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmj-title-row, .gmj-detail-head { display: block; }
  .gmj-pref-map__head { display: block; }
  .gmj-dl { grid-template-columns: 1fr; gap: 4px 0; }
  .gmj-card { grid-template-columns: 1fr; }
}
