:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #24231f;
  --muted: #69655d;
  --line: #e7e0d3;
  --turmeric: #d99a18;
  --chili: #b9472d;
  --leaf: #2f654d;
  --leaf-soft: #e5f0e9;
  --sun: #fff4d9;
  --shadow: 0 18px 50px rgba(43, 36, 22, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(251, 250, 246, .92);
  border-bottom: 1px solid rgba(231, 224, 211, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--turmeric);
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--sun);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28, 24, 18, .92), rgba(28, 24, 18, .7) 42%, rgba(28, 24, 18, .14) 78%),
    linear-gradient(0deg, rgba(28, 24, 18, .14), rgba(28, 24, 18, .14)),
    url("hero-curry.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(47, 101, 77, .24) 54% 59%, transparent 59%),
    repeating-linear-gradient(22deg, rgba(255,255,255,.1) 0 1px, transparent 1px 58px);
  opacity: .7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(251, 250, 246, .92), rgba(251, 250, 246, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #fff2ce;
  font-weight: 800;
  font-size: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--turmeric);
}

h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6.3vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 30px;
  color: rgba(255,255,255,.9);
  font-size: 19px;
  font-weight: 700;
}

.search-panel {
  width: min(860px, 100%);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
  padding: 9px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
}

.search-row input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-row button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--chili);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.chip[data-active="true"] {
  background: #fff;
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(820px, 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
}

.stat {
  padding: 16px;
  color: #fff;
  background: rgba(255,255,255,.1);
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-copy {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.region-panel,
.store-card,
.note-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.region-panel {
  display: block;
  min-height: 190px;
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
  background:
    linear-gradient(135deg, rgba(255,244,217,.74), rgba(255,255,255,.94) 46%),
    #fff;
}

.region-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(43, 36, 22, .1);
}

.region-panel strong {
  display: block;
  font-size: 24px;
}

.region-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.region-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-weight: 800;
  font-size: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-button[data-active="true"] {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.result-count {
  color: var(--muted);
  font-weight: 800;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 18px;
}

.store-card h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.store-kicker {
  color: var(--chili);
  font-weight: 900;
  font-size: 13px;
}

.store-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.store-facts {
  display: grid;
  gap: 5px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.store-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.store-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
}

.map-link {
  background: var(--ink);
  color: #fff;
}

.detail-link {
  border: 1px solid var(--line);
  background: #fff;
}

.map-box {
  position: sticky;
  top: 88px;
  min-height: 440px;
  padding: 18px;
  background:
    linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.88)),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(47,101,77,.12) 32px 33px),
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(47,101,77,.12) 32px 33px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-box h3 {
  margin: 0 0 8px;
}

.map-box p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.map-region {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.map-region strong {
  color: var(--leaf);
}

.map-region span {
  color: var(--muted);
  font-size: 13px;
}

.note-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.note-box {
  padding: 18px;
}

.note-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.note-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 12px;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    display: block;
    min-height: 0;
    padding: 10px 16px 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .nav {
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a:hover,
  .nav a[aria-current="page"] {
    background: var(--sun);
    color: var(--ink);
  }

  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(28, 24, 18, .9), rgba(28, 24, 18, .68) 48%, rgba(28, 24, 18, .24)),
      url("hero-curry.png") 63% center / cover no-repeat;
  }

  .hero::after {
    height: 120px;
  }

  .hero-inner,
  .section,
  .footer {
    width: min(100% - 32px, 1120px);
  }

  .hero-inner {
    padding: 54px 0 34px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row button {
    width: 100%;
  }

  .chip-row,
  .type-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar,
  .type-filters::-webkit-scrollbar {
    display: none;
  }

  .chip,
  .filter-button {
    flex: 0 0 auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 42px 0;
  }

  .section-head,
  .toolbar {
    display: block;
  }

  .result-count {
    display: block;
    margin-top: 12px;
  }

  .region-grid,
  .note-grid,
  .directory-layout,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .map-box {
    position: static;
    min-height: auto;
  }

  .store-card {
    min-height: 0;
  }

  .store-actions a {
    flex: 1;
  }

  .footer {
    padding-bottom: 48px;
  }
}
