:root {
  --ink: #2b2b33;
  --paper: #faf8f4;
  --accent: #c8372d;
  --accent-soft: #f6e3e0;
  --line: #e4ded4;
  --muted: #8a8578;
  --card: #ffffff;
  --shadow: 0 2px 10px rgba(43,43,51,.08);
  --radius: 12px;
  --r-hokkaido: #6fa8b8;
  --r-tohoku:   #7ba05b;
  --r-kanto:    #e0a458;
  --r-chubu:    #d97f4a;
  --r-kinki:    #b87ca8;
  --r-chugoku:  #c45f5f;
  --r-shikoku:  #5f9e8f;
  --r-kyushu:   #8a7bc0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-size: 20px; font-weight: 700; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  box-shadow: var(--shadow);
}
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: .5px; line-height: 1.1; }
.brand-text small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.search-box { position: relative; flex: 1 1 220px; max-width: 420px; }
#search {
  width: 100%; padding: 9px 14px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
#search:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.search-results a {
  display: flex; justify-content: space-between; padding: 8px 14px;
  color: var(--ink); font-size: 14px;
}
.search-results a:hover, .search-results a.active { background: var(--accent-soft); text-decoration: none; }
.search-results .dim { color: var(--muted); font-size: 12px; }
.lang-switch {
  margin-left: auto; padding: 7px 16px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
}
.lang-switch:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* ---------- layout ---------- */
.view { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

.hero {
  border-radius: var(--radius); overflow: hidden; margin-bottom: 26px;
  box-shadow: var(--shadow); position: relative; background: #fff;
}
.hero img { width: 100%; display: block; }
.hero .hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 22px 14px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.hero .hero-caption b { font-size: 20px; }

.section-title {
  font-size: 17px; font-weight: 800; margin: 30px 0 12px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.section-title small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 8px; }

.map-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } }

.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.map-card svg { width: 100%; height: auto; display: block; }
.map-link { display: block; }
.map-link:hover path { filter: drop-shadow(0 0 6px rgba(200,55,45,.5)); }

.japan-pref {
  stroke: #fff; stroke-width: 2.5; cursor: pointer;
  transition: fill .15s ease, filter .15s ease;
}
.map-link:hover .japan-pref { fill: var(--accent) !important; }

.muni-path { stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill .12s ease; }
.map-link:hover .muni-path { fill: var(--accent) !important; }

.map-tip {
  position: fixed; z-index: 99; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 12px;
  padding: 4px 10px; border-radius: 6px; opacity: 0;
  transition: opacity .1s; white-space: nowrap;
}

.region-block { margin-bottom: 18px; }
.region-name { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; display:flex; align-items:center; gap:6px; }
.region-dot { width:10px;height:10px;border-radius:50%;display:inline-block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 4px 12px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink);
}
.chip:hover { background: var(--accent-soft); border-color: var(--accent); text-decoration: none; }

.muni-list { display: flex; flex-wrap: wrap; gap: 7px; }
.muni-item {
  position: relative; padding: 5px 12px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink);
}
.muni-item:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-soft); }
.muni-item .star { position:absolute; top:-8px; right:-6px; font-size:14px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }
.muni-item.featured { border-color: var(--accent); font-weight: 700; }

.muni-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.muni-head h1 { font-size: 30px; margin: 0; font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; }
.muni-head .tags { display: flex; gap: 6px; }
.tag { font-size: 11px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.tag.gray { background: #eeece7; color: var(--muted); }
.tagline { color: var(--muted); margin: 0 0 22px; }

.manga-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; max-width: 640px; margin: 0 auto;
}
.manga-frame img { width: 100%; display: block; border-radius: 6px; margin-bottom: 14px; }
.manga-frame img:last-of-type { margin-bottom: 0; }
.manga-caption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.manga-title { text-align: center; font-weight: 800; font-size: 16px; margin-bottom: 12px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); font-size: 14px;
}
.article-card h3 { margin: 0 0 8px; font-size: 16px; }
.article-card .tag { margin-bottom: 8px; display: inline-block; }
.article-card p { margin: 8px 0; }

.empty-state {
  background: #fff; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted); font-size: 14px;
}
.empty-state .big { font-size: 26px; margin-bottom: 6px; }
.empty-state b { color: var(--ink); }

.info-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; font-size: 14px; margin-bottom: 24px;
}
.info-card table { border-collapse: collapse; }
.info-card td { padding: 3px 14px 3px 0; }
.info-card td:first-child { color: var(--muted); white-space: nowrap; }

.featured-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; }
.featured-card {
  flex: 0 0 auto; width: 150px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
  color: var(--ink);
}
.featured-card:hover { text-decoration: none; border-color: var(--accent); }
.featured-card img { width: 100%; height: 96px; object-fit: cover; display: block; }
.featured-card .fc-body { padding: 7px 10px; font-size: 12px; }
.featured-card .fc-name { font-weight: 800; font-size: 13px; }
.featured-card .fc-pref { color: var(--muted); font-size: 11px; }

footer.site-footer {
  border-top: 1px solid var(--line); padding: 22px 20px 30px;
  text-align: center; font-size: 13px; color: var(--muted);
}
.site-footer .fine { font-size: 11px; opacity: .8; }

@media (max-width: 640px) {
  .site-header { padding: 8px 12px; gap: 10px; }
  .muni-head h1 { font-size: 24px; }
}
