@charset "UTF-8";

/* 検索フォーム用：広域ブロックボタンから都道府県を選択 */

.jp-map {
  margin-top: 14px;
  padding: 16px 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  max-width: 720px;
}

.jp-map__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.jp-map__hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.jp-map__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.jp-map__region-btn {
  flex: 1 1 auto;
  min-width: 4.5em;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: var(--jp-region-fill, #e2e8f0);
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.jp-map__region-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.jp-map__region-btn:focus {
  outline: 2px solid #1a5fb4;
  outline-offset: 2px;
}

.jp-map__region-btn.is-active {
  box-shadow: 0 0 0 2px #1a5fb4, 0 2px 8px rgba(26, 95, 180, 0.25);
  filter: brightness(0.98);
}

.jp-map__panel {
  min-height: 0;
  margin-top: 14px;
}

.jp-map__panel[hidden] {
  display: none !important;
}

.jp-map__panel-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.jp-map__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jp-map__chip {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}

.jp-map__chip:hover,
.jp-map__chip:focus {
  border-color: #1a5fb4;
  color: #1a5fb4;
  outline: none;
}

.jp-map__chip.is-selected {
  background: #1a5fb4;
  border-color: #1a5fb4;
  color: #fff;
}

.jp-map__actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

a.jp-map__clear {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

a.jp-map__clear:hover {
  background: #f1f5f9;
}

.jp-map__seo-nav {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12px;
  color: #64748b;
}
.jp-map__seo-nav summary {
  cursor: pointer;
  font-weight: 700;
  color: #475569;
}
.jp-map__seo-nav-body {
  margin-top: 10px;
  max-height: 240px;
  overflow: auto;
}
.jp-map__seo-block {
  margin-bottom: 10px;
}
.jp-map__seo-block-title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}
.jp-map__seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.jp-map__seo-links a {
  font-size: 11px;
  color: #1a5fb4;
  text-decoration: none;
}
.jp-map__seo-links a:hover {
  text-decoration: underline;
}

.jp-map__current {
  font-size: 12px;
  color: #64748b;
}

.jp-map__current strong {
  color: #0f172a;
  font-weight: 800;
}

@media (max-width: 480px) {
  .jp-map__region-btn {
    min-width: calc(50% - 4px);
    flex: 1 1 calc(50% - 4px);
  }
}
