:root {
  --ink: #17201d;
  --muted: #66716d;
  --paper: #f8f5ef;
  --surface: #ffffff;
  --line: #ded8cc;
  --red: #b83b35;
  --blue: #235a70;
  --green: #55725d;
  --gold: #b88637;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: 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: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--red);
}

.hero {
  min-height: 72vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 72px) 54px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(11, 18, 20, 0.18), rgba(11, 18, 20, 0.78)),
    url("https://images.unsplash.com/photo-1528164344705-47542687000d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd79b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 18px;
  color: var(--ink);
  background: #fff;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.summary-strip div {
  min-height: 110px;
  padding: 24px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.summary-strip div:last-child {
  border-right: 0;
}

.summary-strip strong {
  display: block;
  color: var(--blue);
  font-size: 2.2rem;
  line-height: 1;
}

.summary-strip span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: 78px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.region-button.active,
.region-button:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  text-transform: none;
}

.result-count {
  min-height: 24px;
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 900;
}

.prefecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.prefecture-card,
.next-grid article {
  display: grid;
  gap: 12px;
  min-height: 240px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(31, 43, 40, 0.05);
}

.prefecture-region {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prefecture-card h3,
.next-grid h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.15;
}

.prefecture-spot {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.prefecture-card p:not(.prefecture-spot),
.next-grid p {
  margin: 0;
  color: var(--muted);
}

.prefecture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.prefecture-tags span {
  min-height: 26px;
  padding: 4px 8px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.monetization {
  background: #e8efe9;
}

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

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #15201f;
}

footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .prefecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 76vh;
    padding-top: 88px;
  }

  h1 {
    font-size: clamp(2.35rem, 15vw, 4.4rem);
  }

  .summary-strip,
  .prefecture-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-strip div:last-child {
    border-bottom: 0;
  }

  footer {
    flex-direction: column;
  }
}
