:root {
  color-scheme: light;
  --ink: #1c1917;
  --muted: #57534e;
  --faint: #78716c;
  --line: #e7e5e4;
  --soft: #fafaf9;
  --accent: #9a3412;
  --accent-dark: #431407;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  flex: 0 0 auto;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 48px;
  height: auto;
}

.logo-type {
  display: grid;
  gap: 0.08rem;
  color: var(--ink);
  line-height: 1;
}

.logo-ja {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.logo-en {
  color: var(--accent);
  font-size: 0.42rem;
  font-weight: 900;
  letter-spacing: 0.26em;
}

.logo:hover img {
  filter: saturate(1.08) contrast(1.05);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

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

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 950;
}

.lead {
  max-width: 690px;
  margin: 1rem 0 0;
  color: #44403c;
  font-size: 1rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  font-size: 0.92rem;
}

.primary-action {
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  color: var(--ink);
  border: 1px solid #d6d3d1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  background: #fff;
}

.stats div {
  min-height: 104px;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div:nth-child(2n) { border-right: 0; }
.stats div:nth-last-child(-n + 2) { border-bottom: 0; }
.stats strong { display: block; font-size: 2rem; line-height: 1; }
.stats span { display: block; color: var(--faint); font-size: 0.82rem; margin-top: 0.5rem; }

.map-panel {
  position: relative;
  min-height: 600px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
  overflow: hidden;
}

.japan-map {
  position: absolute;
  inset: 0;
}

.japan-map-canvas {
  position: absolute;
  inset: 2.4rem -0.85rem 3.9rem;
  width: calc(100% + 1.7rem);
  height: calc(100% - 6.3rem);
}

.japan-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.08));
}

.map-grid line {
  stroke: rgba(214, 211, 209, 0.28);
  stroke-width: 1;
}

.map-land path {
  fill: url("#mapLand");
  stroke: rgba(168, 162, 158, 0.26);
  stroke-width: 0.45;
  stroke-linejoin: round;
}

.map-marker {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.map-marker .map-hit-line {
  stroke: transparent;
  stroke-width: 22;
  stroke-linecap: round;
  pointer-events: stroke;
}

.map-marker .map-hit-circle {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.map-marker .map-leader {
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.55;
  pointer-events: none;
}

.map-marker .map-dot {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 8px 14px rgba(67, 20, 7, 0.22));
  pointer-events: none;
}

.map-marker text {
  fill: #fff;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
}

.map-marker .map-label {
  fill: var(--ink);
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 6;
  stroke-linejoin: round;
  font-size: 10px;
}

.map-marker:hover {
  color: var(--accent-dark);
}

.map-stats {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.map-stats div {
  padding: 0.75rem;
  border-right: 1px solid var(--line);
}

.map-stats div:last-child {
  border-right: 0;
}

.map-stats strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.map-stats span {
  display: block;
  margin-top: 0.3rem;
  color: var(--faint);
  font-size: 0.76rem;
}

.featured {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 0.65rem;
  margin: 1.5rem 0 2.4rem;
}

.feature-tile {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.feature-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.feature-tile span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 0.5rem;
}

.feature-tile strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.4;
}

.filter-panel,
.policy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 2rem;
  background: #fff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.filter-panel p,
.section-title-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.static-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.static-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.chips,
.pref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pref-list { margin-top: 0.65rem; }

.chip,
.pref-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  color: #292524;
  background: var(--soft);
  cursor: pointer;
  font-size: 0.82rem;
  text-decoration: none;
}

.policy-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #44403c;
}

.policy-panel li {
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 2.5rem 0 1.2rem;
}

.search-box {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 320px);
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 850;
}

.search-box input {
  min-height: 42px;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font: inherit;
}

.region-block {
  scroll-margin-top: 96px;
  margin: 2rem 0 2.5rem;
}

.region-block h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
}

.region-block h3 span {
  color: var(--faint);
  background: #f5f5f4;
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 750;
}

.maker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.maker-grid > article {
  min-width: 0;
}

.maker-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(214, 211, 209, 0.45) 25%, transparent 25%) 0 0 / 18px 18px,
    var(--soft);
}

.maker-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
}

.maker-meta,
.tags,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.maker-meta span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.maker-body h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
}

.maker-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
}

.maker-body h3 a {
  text-decoration: none;
}

.maker-body h3 a:hover {
  color: var(--accent);
}

.maker-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.tags span {
  color: #44403c;
  background: #f5f5f4;
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  font-size: 0.72rem;
}

.source-row {
  margin-top: auto;
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.5;
}

.official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.official-link:hover,
.chip:hover,
.pref-list a:hover,
.feature-tile:hover strong {
  color: var(--accent);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.82rem;
  text-align: center;
}

.footer-policy {
  max-width: 720px;
  margin: 0.75rem auto;
}

.footer-policy summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 750;
}

.footer-policy p {
  margin: 0.5rem 0 0;
  line-height: 1.8;
}

.hidden { display: none; }

.sub-hero {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.sub-hero h1 {
  max-width: 900px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
}

.link-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 96px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.link-grid a:hover {
  border-color: #d6d3d1;
  color: var(--accent);
}

.link-grid strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.link-grid span {
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: -0.3rem 0 1.5rem;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 750;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 1rem;
  margin: 1rem 0 1.5rem;
}

.summary-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.summary-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ware-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.ware-index-card {
  display: grid;
  gap: 0.55rem;
  min-height: 220px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.ware-index-card:hover {
  border-color: #d6d3d1;
}

.ware-index-card span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
}

.ware-index-card strong {
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1.35;
}

.ware-index-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.ware-index-card small {
  align-self: end;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 850;
}

.ware-guide {
  margin-bottom: 2.5rem;
}

.source-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.source-panel h2 {
  font-size: 1.1rem;
}

.source-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.source-panel li {
  margin-bottom: 0.35rem;
  line-height: 1.75;
}

.source-panel {
  margin: 1.5rem 0 2.5rem;
  background: var(--soft);
}

.source-panel p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
}

.product-body {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem;
}

.product-body .maker-meta {
  margin: 0;
}

.product-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
}

.product-body h3 a {
  text-decoration: none;
}

.product-body h3 a:hover {
  color: var(--accent);
}

.product-price {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 900;
}

.maker-detail,
.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  margin: 1.5rem 0 2rem;
}

.detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 0.75rem;
}

.detail-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.detail-body dl {
  display: grid;
  gap: 0;
  margin: 0 0 1rem;
}

.detail-body dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-body dt {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 850;
}

.detail-body dd {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .maker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ware-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .map-panel { min-height: 560px; }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
  }

  .logo img {
    width: 44px;
  }

  .site-header nav {
    flex: 1 1 100%;
    margin-top: 0.65rem;
    gap: 0.45rem 0.85rem;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    font-size: 0.82rem;
  }

  main { width: min(100% - 24px, 1160px); }

  .hero,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 2.5rem; }
  .map-panel { min-height: 500px; }
  .map-stats { grid-template-columns: repeat(3, 1fr); }
  .map-stats div { padding: 0.6rem; }
  .map-stats strong { font-size: 1.2rem; }
  .map-marker .map-label { display: none; }
  .stats div { min-height: 92px; }
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maker-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .ware-index { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .maker-detail,
  .product-detail { grid-template-columns: 1fr; }
  .detail-body dl div { grid-template-columns: 1fr; gap: 0.25rem; }
  .section-title-row { display: block; }
  .search-box { margin-top: 1rem; }
}
