/* ==========================================================
   TOWN SCOPE - Common Styles
   ========================================================== */

:root {
  --primary: #123b55;
  --primary-dark: #0b283d;
  --accent: #087f85;
  --accent-light: #e8f5f4;
  --text: #202e3a;
  --text-muted: #5e7080;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --border: #dce4ea;
  --border-light: #edf1f4;
  --shadow: 0 2px 10px rgba(21, 48, 67, .045);
  --radius: 10px;
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.45;
}

/* ==========================================================
   Header
   ========================================================== */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  min-height: 76px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--primary-dark);
}

.site-logo:hover {
  color: var(--primary-dark);
}

.site-logo-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.site-logo-text strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .035em;
}

.site-logo-text small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .015em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  background: var(--accent-light);
  color: var(--accent);
}

/* ==========================================================
   Main Layout
   ========================================================== */

.site-main {
  width: 100%;
  max-width: var(--content-width);
  min-height: 55vh;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

.page-header {
  margin-bottom: 22px;
}

.page-title {
  margin: 0 0 7px;
  color: var(--primary-dark);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.page-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================
   Breadcrumb
   ========================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 3px;
  color: #9caab5;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ==========================================================
   Sections & Cards
   ========================================================== */

.content-section {
  margin-bottom: 22px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  margin: 0;
  padding-left: 11px;
  border-left: 4px solid var(--accent);
  color: var(--primary-dark);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.section-heading a {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.section-description {
  margin: -5px 0 15px;
  color: var(--text-muted);
  font-size: 13px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.info-card {
  min-width: 0;
  padding: 15px;
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.info-card-label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.info-card-value {
  display: block;
  color: var(--primary-dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.info-card-unit {
  margin-left: 3px;
  font-size: 12px;
  font-weight: 500;
}

.info-card-note {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================================
   Data Tables
   ========================================================== */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background: #f0f5f8;
  color: var(--primary-dark);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: #fafcfd;
}

.data-table tbody tr:hover {
  background: #f1f8f8;
}

.data-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table a {
  font-weight: 600;
}

/* ==========================================================
   Lists & Links
   ========================================================== */

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid var(--border-light);
}

.link-list li:last-child {
  border-bottom: 0;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 3px;
  font-size: 14px;
  font-weight: 600;
}

.link-list a::after {
  content: "›";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

/* ==========================================================
   Tags & Badges
   ========================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--accent-light);
  color: #076b70;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.tag-neutral {
  background: #edf1f5;
  color: #536778;
}

/* ==========================================================
   Navigation Tabs
   ========================================================== */

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tab-nav a {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.tab-nav a:hover,
.tab-nav a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================
   Municipality Page
   ========================================================== */

.municipality-hero {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #c9dfe3;
  border-radius: var(--radius);
  background: linear-gradient(125deg, #fff 0%, #eaf5f5 100%);
}

.municipality-hero h1 {
  margin: 0 0 7px;
  color: var(--primary-dark);
  font-size: 29px;
  font-weight: 850;
}

.municipality-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.municipality-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.municipality-meta span {
  padding: 4px 9px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #d5e5e7;
  border-radius: 5px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.municipality-map {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #e8eff1;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.municipality-map .leaflet-container {
  width: 100%;
  height: 360px;
}

.map-note {
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.indicator-card {
  padding: 14px 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.indicator-card-name {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.indicator-card-score {
  display: block;
  margin-top: 5px;
  color: var(--primary);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.indicator-card-score small {
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================================
   Notices & Empty States
   ========================================================== */

.notice {
  padding: 12px 15px;
  border: 1px solid #c9dfe3;
  border-radius: 7px;
  background: var(--accent-light);
  color: #175a5e;
  font-size: 13px;
}

.empty-state {
  padding: 25px 15px;
  text-align: center;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.data-source {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  background: var(--primary-dark);
  color: #d9e5ed;
}

.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 38px 20px 30px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 55px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.3;
}

.footer-logo span {
  color: #46c7bf;
}

.footer-logo:hover {
  color: #fff;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #b9ccd9;
  font-size: 12px;
  line-height: 1.9;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-link-group h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.footer-link-group a {
  color: #c2d4df;
  font-size: 12px;
  line-height: 1.6;
}

.footer-link-group a:hover {
  color: #6de1d8;
}

.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 15px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: #9fb7c6;
  font-size: 11px;
}

.footer-bottom a {
  color: #c9dce6;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    border-top: 1px solid var(--border-light);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding: 11px 13px;
    border-radius: 0;
    font-size: 13px;
  }

  .site-nav a.active,
  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px var(--accent);
    background: transparent;
  }

  .indicator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    gap: 25px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    padding: 10px 12px 0;
  }

  .site-logo-icon {
    width: 37px;
    height: 37px;
    font-size: 22px;
  }

  .site-logo-text strong {
    font-size: 20px;
  }

  .site-logo-text small {
    font-size: 10px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0;
  }

  .site-nav a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .site-main {
    padding: 16px 12px 36px;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-description {
    font-size: 13px;
  }

  .breadcrumb {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .content-section {
    margin-bottom: 14px;
    padding: 15px 12px;
    border-radius: 8px;
  }

  .section-heading {
    margin-bottom: 13px;
    padding-bottom: 9px;
  }

  .section-heading h2 {
    font-size: 17px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .info-card {
    padding: 12px 10px;
  }

  .info-card-label {
    font-size: 12px;
  }

  .info-card-value {
    font-size: 20px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 9px 8px;
  }

  .municipality-hero {
    padding: 17px 14px;
    margin-bottom: 14px;
  }

  .municipality-hero h1 {
    font-size: 24px;
  }

  .municipality-map {
    min-height: 220px;
  }

  .municipality-map .leaflet-container {
    height: 260px;
  }

  .indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .indicator-card {
    padding: 12px 8px;
  }

  .indicator-card-score {
    font-size: 23px;
  }

  .tab-nav {
    gap: 6px;
  }

  .tab-nav a {
    padding: 7px 10px;
    font-size: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 16px 22px;
    gap: 25px;
  }

  .footer-logo {
    font-size: 21px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    padding: 14px 16px 18px;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 360px) {
  .site-logo-text strong {
    font-size: 18px;
  }

  .site-nav a {
    padding: 10px;
    font-size: 11px;
  }

  .info-card-value {
    font-size: 18px;
  }

  .indicator-card-name {
    font-size: 11px;
  }
}

/* Municipality Details */

.municipality-stat-category {
  margin-top: 22px;
}

.municipality-stat-category h3,
.municipality-land-section h3 {
  margin: 0 0 11px;
  padding: 7px 11px;
  background: #eef4f7;
  border-radius: 5px;
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 800;
}

.municipality-land-section+.municipality-land-section {
  margin-top: 24px;
}

.municipality-population-chart {
  max-width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.municipality-population-chart canvas {
  display: block;
  width: 100% !important;
  max-height: 320px;
}

@media (max-width: 600px) {
  .municipality-stat-category {
    margin-top: 17px;
  }

  .municipality-stat-category h3,
  .municipality-land-section h3 {
    font-size: 14px;
  }

  .municipality-population-chart {
    padding: 6px;
  }
}

/* 自治体地図 */
.municipality-map {
  width: 100%;
  height: 430px;
  background: #eef3f8;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

@media (max-width: 767px) {
  .municipality-map {
    height: 340px;
    border-radius: 8px;
  }
}

/* 自治体ブロックナビ */
.municipality-block-nav {
  margin: 24px 0;
}

.municipality-block-nav-heading {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #172033;
}

.municipality-block-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.municipality-block-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #dfe4e9;
  border-radius: 11px;
  color: #202a36;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.municipality-block-card:hover {
  border-color: #0b858a;
  background: #f8fdfd;
  text-decoration: none;
}

.municipality-block-card.is-active {
  border-color: #0b858a;
  background: #f2fafa;
}

.municipality-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .94rem;
  font-weight: 700;
}

.municipality-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  font-size: 1rem;
}

.municipality-block-value {
  font-size: 1.13rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.municipality-block-description {
  color: #647080;
  font-size: .81rem;
  line-height: 1.55;
}

.municipality-block-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #6a7581;
  font-size: .78rem;
}

.municipality-block-arrow {
  color: #4b5968;
  font-size: 1.5rem;
  line-height: 1;
}

#municipality-detail {
  scroll-margin-top: 16px;
}

@media (max-width: 600px) {
  .municipality-block-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .municipality-block-card {
    padding: 12px 10px;
    gap: 8px;
  }

  .municipality-block-title {
    font-size: .84rem;
  }

  .municipality-block-value {
    font-size: .96rem;
  }

  .municipality-block-description,
  .municipality-block-bottom {
    font-size: .72rem;
  }
}

/* 人口・地価推移グラフ共通 */
.municipality-population-chart,
.municipality-land-chart {
  position: relative;
  width: 100%;
  height: 360px;
  min-height: 360px;
  margin: 16px 0;
}

.municipality-population-chart canvas,
.municipality-land-chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 767px) {

  .municipality-population-chart,
  .municipality-land-chart {
    height: 300px;
    min-height: 300px;
    margin: 12px 0;
  }
}

.info-grid {
  margin-bottom: 20px;
}

/* 自治体統計ランキング */
.municipality-ranking-section {
  margin: 26px 0;
}

.municipality-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.municipality-ranking-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce4e9;
  border-radius: 10px;
  background: #fff;
}

.municipality-ranking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #253343;
  font-size: .95rem;
  font-weight: 700;
}

.municipality-ranking-title span {
  color: #7a8793;
  font-size: .75rem;
  font-weight: 400;
}

.municipality-ranking-value {
  margin: 12px 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.municipality-ranking-value small {
  font-size: .8rem;
  font-weight: 400;
}

.municipality-ranking-rows {
  display: grid;
  gap: 8px;
}

.municipality-ranking-rows>div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f4f7f9;
}

.municipality-ranking-rows span {
  flex: 1;
  min-width: 65px;
  color: #526171;
  font-size: .82rem;
}

.municipality-ranking-rows strong {
  color: #087f85;
  font-size: 1.1rem;
}

.municipality-ranking-rows small {
  color: #788591;
  font-size: .73rem;
}

@media (max-width: 600px) {
  .municipality-ranking-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .municipality-ranking-card {
    padding: 14px;
  }

  .municipality-ranking-value {
    font-size: 1.35rem;
  }
}

.municipality-hero-overview {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(100, 116, 139, .2);
}

.municipality-hero-overview>p:first-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.municipality-hero-source {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  opacity: .75;
}

/* 出身有名人 */
.celeb-intro {
  margin: 0 0 18px;
  color: #566173;
  font-size: .9rem;
  line-height: 1.7;
}

.celeb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.celeb-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
}

.celeb-card-link {
  display: flex;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.celeb-card-image {
  flex: 0 0 90px;
  width: 90px;
  height: 127px;
  min-height: 112px;
  background: #eef1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.celeb-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

.celeb-no-image {
  color: #9aa3af;
  font-size: .75rem;
}

.celeb-card-body {
  min-width: 0;
  flex: 1;
  padding: 12px 10px;
}

.celeb-card-body h3 {
  margin: 0 0 6px;
  font-size: .95rem;
  line-height: 1.4;
  color: #24364b;
}

.celeb-occupation {
  margin: 0 0 6px;
  color: #52677c;
  font-size: .78rem;
  line-height: 1.5;
}

.celeb-birth {
  margin: 0;
  color: #7c8795;
  font-size: .74rem;
  line-height: 1.5;
}

.celeb-card a:hover h3 {
  color: #2563a6;
}

.celeb-limit-note,
.celeb-empty {
  margin: 16px 0;
  font-size: .85rem;
  color: #667085;
}

.celeb-source {
  margin-top: 20px;
  font-size: .75rem;
  color: #7b8491;
  line-height: 1.6;
}

.celeb-source p {
  margin: 3px 0;
}

.celeb-more {
  margin-top: 18px;
  text-align: right;
}

.celeb-more a {
  font-size: .85rem;
  color: #2563a6;
  text-decoration: none;
}

.celeb-more a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .celeb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .celeb-card-link {
    display: block;
  }

  .celeb-card-image {
    width: 100%;
    height: 130px;
    min-height: 0;
  }

  .celeb-card-image img {
    height: 130px;
    min-height: 0;
  }

  .celeb-card-body {
    padding: 9px;
  }

  .celeb-card-body h3 {
    font-size: .88rem;
  }

  .celeb-occupation,
  .celeb-birth {
    font-size: .72rem;
  }
}

/* 政令指定都市の行政区一覧 */
.designated-ward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.designated-ward-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #254c78;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.designated-ward-link:hover {
  background: #edf5ff;
  border-color: #93b9e5;
}

.designated-ward-link span:last-child {
  flex-shrink: 0;
  color: #7c9ab9;
  font-size: 1.2rem;
}

@media (max-width: 767px) {
  .designated-ward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .designated-ward-link {
    padding: 12px;
    font-size: .88rem;
  }
}

.pref-index-intro {
  margin-bottom: 22px;
  color: #53657b;
  line-height: 1.8;
}

.pref-index-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.pref-index-stat {
  padding: 13px 20px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #f8fafc;
}

.pref-index-stat strong {
  display: block;
  font-size: 1.35rem;
  color: #1d426b;
}

.pref-index-stat span {
  font-size: .8rem;
  color: #64748b;
}

.pref-map {
  position: relative;
  height: 520px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  overflow: hidden;
  background: #eef5fa;
}

.pref-map-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #64748b;
  text-align: center;
  font-size: .9rem;
}

.pref-map-note {
  margin: 10px 0 0;
  font-size: .8rem;
  color: #64748b;
}

.pref-region {
  margin-top: 24px;
}

.pref-region h2 {
  margin: 0 0 12px;
  padding: 0 0 9px 12px;
  border-bottom: 1px solid #e2e8f0;
  border-left: 4px solid #3b82b6;
  color: #203c5d;
  font-size: 1.08rem;
}

.pref-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.pref-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
  color: #254e78;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.pref-link:hover {
  background: #eff6fd;
  border-color: #9bc3e7;
}

.pref-link-name {
  font-size: .92rem;
  font-weight: 600;
}

.pref-link-count {
  font-size: .74rem;
  color: #718096;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .pref-map {
    height: 380px;
  }

  .pref-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pref-link {
    padding: 11px;
  }

  .pref-link-name {
    font-size: .86rem;
  }

  .pref-link-count {
    font-size: .7rem;
  }
}

/* 都道府県別 市区町村一覧 */
.prefecture-detail {
  padding-top: 20px;
  padding-bottom: 45px;
}

.pref-detail-header {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 20px;
  border: 1px solid #dce5ed;
  border-radius: 12px;
  background: #f7fafc;
}

.pref-detail-header h1 {
  margin: 0 0 8px;
  color: #172d40;
  font-size: 25px;
  line-height: 1.4;
}

.pref-detail-header p {
  margin: 0;
  color: #657587;
  font-size: 13px;
}

.pref-detail-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 14px;
  color: #346d9c;
}

.pref-detail-total strong {
  font-size: 24px;
  font-weight: 800;
}

.pref-detail-total span {
  font-size: 12px;
}

.pref-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pref-detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #d5e1ec;
  border-radius: 7px;
  background: #fff;
  color: #315e83;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pref-detail-nav a span {
  padding: 2px 6px;
  border-radius: 5px;
  background: #eaf2f9;
  color: #527b9e;
  font-size: 11px;
}

.pref-detail-section {
  margin-bottom: 30px;
  scroll-margin-top: 20px;
}

.pref-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 0 9px 11px;
  border-bottom: 1px solid #dce5ed;
  border-left: 4px solid #477fa9;
}

.pref-detail-section-head h2 {
  margin: 0;
  color: #1e374b;
  font-size: 17px;
}

.pref-detail-section-head>span {
  color: #7b8b99;
  font-size: 12px;
}

.pref-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pref-detail-item {
  min-width: 0;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.pref-detail-link {
  display: block;
  padding: 11px 12px;
  color: #285d88;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.pref-detail-item:hover {
  border-color: #9bbdd7;
  background: #f7fbff;
}

.pref-detail-wards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 0 12px 11px;
}

.pref-detail-wards a {
  color: #637f97;
  font-size: 11px;
  line-height: 1.5;
  text-decoration: none;
}

.pref-detail-link:hover,
.pref-detail-wards a:hover,
.pref-detail-bottom a:hover {
  text-decoration: underline;
}

.pref-detail-bottom {
  padding-top: 15px;
  border-top: 1px solid #e1e8ee;
}

.pref-detail-bottom a {
  color: #477fa9;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pref-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .prefecture-detail {
    padding-top: 14px;
  }

  .pref-detail-header {
    padding: 18px;
  }

  .pref-detail-header h1 {
    font-size: 21px;
  }

  .pref-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pref-detail-link {
    padding: 10px;
    font-size: 14px;
  }

  .pref-detail-wards {
    padding: 0 10px 10px;
    gap: 5px 8px;
  }

  .pref-detail-wards a {
    font-size: 10px;
  }
}

/* 鉄道路線一覧 */
.railways-page {
  padding-top: 20px;
  padding-bottom: 45px;
}

.railways-pref-section {
  margin-bottom: 28px;
}

.railways-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 20px;
}

.railways-route-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe7ee;
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.railways-route-card:hover {
  background: #f5faff;
  border-color: #a7c5dc;
}

.railways-route-mark {
  flex: 0 0 7px;
  align-self: stretch;
  min-height: 38px;
  border-radius: 4px;
  background: #6b9ec6;
}

.railways-route-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.railways-route-content strong {
  color: #245c89;
  font-size: 14px;
  line-height: 1.4;
}

.railways-route-operator {
  color: #526779;
  font-size: 12px;
}

.railways-route-prefectures {
  color: #8492a0;
  font-size: 11px;
  line-height: 1.5;
}

.railways-route-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
  color: #718096;
  font-size: 12px;
}

.railways-route-arrow {
  color: #91a8b9;
  font-size: 24px;
  line-height: 1;
}

.railways-empty,
.railways-guide {
  padding: 18px;
  border: 1px solid #e0e8ef;
  border-radius: 9px;
  background: #f8fafc;
  color: #657587;
  font-size: 13px;
  margin-bottom: 20px;
}

.railways-guide strong {
  color: #315e83;
}

.railways-guide p {
  margin: 7px 0 0;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .railways-page {
    padding-top: 14px;
  }

  .railways-route-list {
    grid-template-columns: 1fr;
  }

  .railways-route-card {
    padding: 12px;
  }
}

/* 路線詳細・駅一覧 */
.railway-detail-page {
  padding-top: 20px;
  padding-bottom: 45px;
}

.railway-detail-prefectures {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.railway-detail-prefectures a {
  padding: 5px 10px;
  border-radius: 5px;
  background: #e8f1f8;
  color: #376e9b;
  font-size: 12px;
  text-decoration: none;
}

.railway-detail-section {
  margin-bottom: 30px;
}

.railway-detail-note {
  margin: 0 0 20px;
  color: #738493;
  font-size: 12px;
  line-height: 1.8;
}

.railway-station-list {
  margin-left: 5px;
}

.railway-station-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 75px;
}

.railway-station-track {
  position: relative;
  flex: 0 0 20px;
  display: flex;
  justify-content: center;
}

.railway-station-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 4px;
  background: #7ba8c9;
}

.railway-station-item:first-child .railway-station-track::before {
  top: 23px;
}

.railway-station-item:last-child .railway-station-track::before {
  bottom: calc(100% - 23px);
}

.railway-station-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 16px;
  border: 4px solid #5c92ba;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.railway-station-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 9px;
  padding: 13px 16px;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  background: #fff;
}

.railway-station-card:hover {
  border-color: #accbdf;
  background: #f8fbfe;
}

.railway-station-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.railway-station-number {
  color: #91a1af;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.railway-station-main h3 {
  margin: 0;
  color: #233f55;
  font-size: 15px;
  line-height: 1.5;
}

.railway-station-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.railway-station-pref {
  color: #8797a5;
}

.railway-station-location a {
  color: #3375a6;
  font-weight: 700;
  text-decoration: none;
}

.railway-station-location a:hover {
  text-decoration: underline;
}

.railway-station-unlinked {
  color: #a0aab4;
}

.railway-detail-pref-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.railway-detail-pref-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e0e8ef;
  border-radius: 7px;
  color: #326f9b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.railway-detail-pref-list a:hover {
  background: #f5faff;
}

.railway-detail-pref-list small {
  color: #8797a5;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 700px) {
  .railway-detail-page {
    padding-top: 14px;
  }

  .railway-detail-header {
    padding: 18px;
  }

  .railway-detail-header h1 {
    font-size: 21px;
  }

  .railway-station-item {
    gap: 9px;
  }

  .railway-station-card {
    padding: 11px 12px;
  }

  .railway-station-main h3 {
    font-size: 14px;
  }

  .railway-detail-pref-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 駅から地域情報へのリンクを強調 */
.railway-station-card {
  display: block;
}

.railway-station-main {
  margin-bottom: 10px;
}

.railway-station-location {
  display: block;
  width: 100%;
}

.railway-station-area-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #c8ddec;
  border-radius: 7px;
  background: #f0f7fc;
  text-decoration: none !important;
  transition: background .15s, border-color .15s;
}

.railway-station-area-link:hover {
  background: #e2f1fb;
  border-color: #86b3d4;
}

.railway-station-area-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.railway-station-area-text small {
  color: #6d8598;
  font-size: 11px;
  font-weight: 400;
}

.railway-station-area-text strong {
  color: #245f8d;
  font-size: 14px;
  line-height: 1.4;
}

.railway-station-area-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 8px 11px;
  border-radius: 6px;
  background: #3677a8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.railway-station-area-link:hover .railway-station-area-action {
  background: #245f8d;
}

@media (max-width: 600px) {
  .railway-station-area-link {
    padding: 10px;
    gap: 8px;
  }

  .railway-station-area-text strong {
    font-size: 13px;
  }

  .railway-station-area-action {
    padding: 8px;
    font-size: 11px;
  }
}

/* 路線詳細：通過都道府県リンク */
.railway-detail-prefectures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 20px auto 0;
}

.railway-detail-prefectures a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #cbdfea;
  border-radius: 20px;
  background: #f0f7fb;
  color: #246c9e;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.railway-detail-prefectures a:hover {
  background: #dceefa;
}

@media (max-width: 600px) {
  .railway-detail-prefectures {
    gap: 6px;
    margin-top: 16px;
  }

  .railway-detail-prefectures a {
    min-height: 32px;
    padding: 5px 11px;
    font-size: .78rem;
  }
}

/* 地域検索 */
.region-search-page {
  padding-top: 20px;
  padding-bottom: 45px;
}

.region-search-header {
  margin-bottom: 20px;
}

.region-search-header h1 {
  margin: 0 0 8px;
  color: #172d40;
  font-size: 25px;
}

.region-search-header p {
  margin: 0;
  color: #657587;
  font-size: 13px;
  line-height: 1.7;
}

.region-search-panel {
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid #dce5ed;
  border-radius: 11px;
  background: #f7fafc;
}

.region-search-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.region-search-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.region-search-field label {
  color: #425c70;
  font-size: 12px;
  font-weight: 700;
}

.region-search-field input,
.region-search-field select {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 10px 13px;
  border: 1px solid #cbd9e5;
  border-radius: 7px;
  background: #fff;
  color: #243e52;
  font-size: 15px;
  font-family: inherit;
}

.region-search-field input:focus,
.region-search-field select:focus {
  outline: 2px solid #9bc3df;
  outline-offset: 1px;
}

.region-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: end;
  gap: 12px;
}

.region-search-submit {
  min-height: 46px;
  padding: 10px 20px;
  border: 0;
  border-radius: 7px;
  background: #346d9c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.region-search-submit:hover {
  background: #285b84;
}

.region-search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 0 10px 11px;
  border-bottom: 1px solid #dce5ed;
  border-left: 4px solid #477fa9;
}

.region-search-section-head h2 {
  margin: 0;
  color: #1e374b;
  font-size: 18px;
}

.region-search-section-head>span {
  color: #64798b;
  font-size: 13px;
  font-weight: 700;
}

.region-search-result-info {
  margin: 0 0 12px;
  color: #82909d;
  font-size: 12px;
}

.region-search-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.region-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #e0e8ef;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.region-search-item:hover {
  background: #f4f9fd;
  border-color: #a5c7df;
}

.region-search-item-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.region-search-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.region-search-item-title strong {
  color: #245c89;
  font-size: 17px;
  line-height: 1.4;
}

.region-search-item-title small {
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf3f8;
  color: #668198;
  font-size: 10px;
}

.region-search-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: #65798b;
  font-size: 12px;
  line-height: 1.5;
}

.region-search-item-kana {
  color: #9aa6b1;
}

.region-search-item-action {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #edf5fb;
  color: #3476a6;
  font-size: 12px;
  font-weight: 700;
}

.region-search-item:hover .region-search-item-action {
  background: #dceef9;
}

.region-search-item-action span:last-child {
  font-size: 19px;
  line-height: 1;
}

.region-search-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}

.region-search-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 5px 10px;
  box-sizing: border-box;
  border: 1px solid #d5e2ec;
  border-radius: 6px;
  background: #fff;
  color: #376f99;
  font-size: 13px;
  text-decoration: none;
}

.region-search-pagination a.is-current {
  border-color: #346d9c;
  background: #346d9c;
  color: #fff;
}

.region-search-empty,
.region-search-guide {
  padding: 18px;
  border: 1px solid #dfe8ef;
  border-radius: 9px;
  background: #f8fafc;
  color: #657587;
  font-size: 13px;
  line-height: 1.8;
}

.region-search-guide strong {
  color: #315e83;
}

.region-search-guide p {
  margin: 7px 0;
}

.region-search-guide a {
  color: #3476a6;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 600px) {
  .region-search-page {
    padding-top: 14px;
  }

  .region-search-header h1 {
    font-size: 21px;
  }

  .region-search-panel {
    padding: 15px;
  }

  .region-search-controls {
    grid-template-columns: 1fr;
  }

  .region-search-item {
    padding: 12px;
    gap: 8px;
  }

  .region-search-item-title strong {
    font-size: 16px;
  }

  .region-search-item-action {
    padding: 8px;
    font-size: 11px;
  }

  .region-search-item-action span:first-child {
    display: none;
  }
}

/* ヘッダー地域検索 */
.header-search {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.header-search-label {
  flex-shrink: 0;
  color: #e4eef6;
  font-size: 13px;
  font-weight: 700;
}

.header-search-control {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  max-width: 680px;
  height: 39px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.header-search-control input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #263d50;
  font-size: 13px;
  font-family: inherit;
}

.header-search-control input::placeholder {
  color: #91a0ad;
}

.header-search-control button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 0 17px;
  border: 0;
  background: #397fae;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.header-search-control button:hover {
  background: #28658f;
}

@media (max-width: 600px) {
  .header-search {
    gap: 8px;
    margin-top: 0px;
    padding-top: 10px;
    margin-bottom: 10px;
  }

  .header-search-label {
    display: none;
  }

  .header-search-control {
    max-width: none;
    height: 38px;
  }

  .header-search-control input {
    padding: 0 10px;
    font-size: 13px;
  }

  .header-search-control button {
    padding: 0 13px;
  }

  .header-search-control button span {
    display: none;
  }
}

.header-inner {
  flex-wrap: wrap;
}

.header-search {
  flex-basis: 100%;
}

/* ヘッダー検索フォームの余白・視認性改善 */
.header-inner {
  row-gap: 0;
}

.header-search {
  margin-top: 4px;
  padding-top: 7px;
  padding-bottom: 2px;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.header-search-control {
  height: 40px;
  border: 2px solid #9fc6e3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: border-color .15s, box-shadow .15s;
}

.header-search-control:focus-within {
  border-color: #59b5ef;
  box-shadow: 0 0 0 3px rgba(89, 181, 239, .2);
}

.header-search-control input {
  background: #f9fcff;
  font-size: 14px;
}

.header-search-control input::placeholder {
  color: #71899d;
  opacity: 1;
}

.header-search-control button {
  background: #2475ab;
  padding: 0 19px;
}

.header-search-control button:hover {
  background: #185d8c;
}

@media (max-width: 600px) {
  .header-search {
    margin-top: 3px;
    padding-top: 6px;
    padding-bottom: 0;
  }

  .header-search-control {
    height: 39px;
  }

  .header-search-control input {
    font-size: 14px;
  }

  .header-search-control button {
    padding: 0 14px;
  }
}

.ranking-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: #17364a
}

.ranking-category-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px
}

.ranking-category-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 6px;
  border: 1px solid #d9e5e8;
  border-radius: 8px;
  background: #fff;
  color: #295363;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4
}

.ranking-category-link:hover {
  border-color: #087f85;
  color: #087f85;
  background: #f3fbfb
}

.ranking-category-link.is-active {
  border-color: #087f85;
  background: #087f85;
  color: #fff
}

.ranking-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0
}

.ranking-filter label {
  font-weight: 700;
  font-size: 14px
}

.ranking-filter select {
  max-width: 230px;
  min-width: 170px;
  padding: 9px 12px;
  border: 1px solid #cddde1;
  border-radius: 7px;
  background: #fff;
  color: #243c4b
}

.ranking-filter button {
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  background: #087f85;
  color: #fff;
  font-weight: 700;
  cursor: pointer
}

.ranking-result-count {
  margin: 12px 0;
  font-size: 13px;
  color: #607682
}

.ranking-table {
  width: 100%;
  table-layout: auto
}

.ranking-table th:first-child,
.ranking-table td:first-child {
  width: 76px
}

.ranking-rank {
  font-weight: 800;
  white-space: nowrap;
  color: #174f62
}

.ranking-place {
  font-weight: 700;
  text-decoration: none
}

.ranking-prefecture {
  display: block;
  font-size: 11px;
  color: #758793;
  margin-top: 3px
}

.ranking-value {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums
}

.ranking-year {
  white-space: nowrap;
  color: #667d88;
  font-size: 12px
}

.ranking-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0 10px
}

.ranking-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  min-height: 35px;
  padding: 6px 10px;
  border: 1px solid #d7e3e7;
  border-radius: 6px;
  color: #24606d;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px
}

.ranking-pagination a.is-active {
  background: #087f85;
  border-color: #087f85;
  color: #fff
}

@media(max-width:767px) {
  .ranking-category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px
  }

  .ranking-category-link {
    font-size: 12px;
    min-height: 40px
  }

  .ranking-table th:first-child,
  .ranking-table td:first-child {
    width: 52px
  }

  .ranking-table th,
  .ranking-table td {
    padding: 9px 5px;
    font-size: 12px
  }

  .ranking-year {
    font-size: 11px
  }

  .ranking-prefecture {
    font-size: 10px
  }

  .ranking-filter select {
    flex: 1;
    min-width: 0
  }
}

.ranking-filter #ranking-order {
  min-width: 125px;
  max-width: 150px;
}

@media (max-width: 767px) {
  .ranking-filter {
    gap: 8px;
  }

  .ranking-filter label {
    font-size: 12px;
  }

  .ranking-filter #ranking-order {
    min-width: 110px;
    max-width: none;
  }
}

/* ランキング一覧：文字サイズ拡大 */
.ranking-table th {
  font-size: 15px;
  padding: 13px 12px;
}

.ranking-table td {
  font-size: 17px;
  padding: 15px 12px;
  line-height: 1.6;
}

/* 順位 */
.ranking-rank {
  font-size: 19px;
}

/* 自治体名 */
.ranking-place {
  font-size: 18px;
}

/* 都道府県名 */
.ranking-prefecture {
  font-size: 13px;
  margin-top: 4px;
}

/* ランキング数値 */
.ranking-value {
  font-size: 19px;
}

/* 対象年 */
.ranking-year {
  font-size: 13px;
}

/* スマートフォン */
@media (max-width: 767px) {
  .ranking-table th {
    font-size: 13px;
    padding: 11px 7px;
  }

  .ranking-table td {
    font-size: 16px;
    padding: 13px 7px;
    line-height: 1.5;
  }

  .ranking-rank {
    font-size: 17px;
  }

  .ranking-place {
    font-size: 17px;
  }

  .ranking-prefecture {
    font-size: 12px;
  }

  .ranking-value {
    font-size: 18px;
  }

  .ranking-year {
    font-size: 12px;
  }
}

.indicator-card {
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, background-color .2s;
}

a.indicator-card:hover {
  border-color: #087f85;
  background: #f2fbfb;
}

.indicator-card-link {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #087f85;
}

/* 地域指標：総合評価 */
.indicator-total {
  margin: 18px 0 22px;
  padding: 22px 20px;
  border: 1px solid #b7dfe0;
  border-radius: 12px;
  background: linear-gradient(135deg, #eefafa, #ffffff);
  text-align: center;
}

.indicator-total-heading {
  color: #285968;
  font-size: 17px;
  font-weight: 800;
}

.indicator-total-score {
  margin: 10px 0;
  color: #087f85;
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.indicator-total-score span {
  color: #536c76;
  font-size: 18px;
  font-weight: 600;
}

.indicator-total-description {
  max-width: 620px;
  margin: 12px auto;
  color: #526a76;
  font-size: 14px;
  line-height: 1.8;
}

.indicator-total-link {
  display: inline-block;
  margin-top: 8px;
  color: #087f85;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.indicator-total-link:hover {
  color: #075d63;
}

@media (max-width: 767px) {
  .indicator-total {
    padding: 20px 12px;
  }

  .indicator-total-heading {
    font-size: 16px;
  }

  .indicator-total-score {
    font-size: 42px;
  }

  .indicator-total-score span {
    font-size: 16px;
  }

  .indicator-total-description {
    font-size: 13px;
  }
}

/* 地域指標の評価項目・算出根拠 */
.indicator-definition-section {
  margin-top: 24px;
}

.indicator-definition-group {
  margin-top: 22px;
}

.indicator-definition-title {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 4px solid #087f85;
  border-radius: 0 6px 6px 0;
  background: #edf8f8;
  color: #174c55;
  font-size: 18px;
  font-weight: 800;
}

.indicator-definition-parent {
  margin: 0 0 18px;
}

.indicator-definition-parent h4 {
  margin: 0 0 8px;
  color: #253f4b;
  font-size: 16px;
}

.indicator-definition-description {
  margin: 0 0 12px;
  color: #526a76;
  font-size: 14px;
  line-height: 1.8;
}

.indicator-definition-items {
  display: grid;
  gap: 10px;
}

.indicator-definition-item {
  padding: 14px 16px;
  border: 1px solid #dce8eb;
  border-radius: 8px;
  background: #fff;
}

.indicator-definition-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.indicator-definition-item-heading strong {
  color: #264552;
  font-size: 15px;
}

.indicator-definition-weight {
  padding: 3px 8px;
  border-radius: 5px;
  background: #e8f6f6;
  color: #087f85;
  font-size: 12px;
  font-weight: 700;
}

.indicator-definition-item p {
  margin: 8px 0 0;
  color: #526a76;
  font-size: 14px;
  line-height: 1.75;
}

.indicator-definition-item .indicator-definition-source {
  color: #758793;
  font-size: 12px;
}

@media (max-width: 767px) {
  .indicator-definition-title {
    font-size: 16px;
  }

  .indicator-definition-parent h4 {
    font-size: 15px;
  }

  .indicator-definition-item {
    padding: 12px;
  }

  .indicator-definition-item-heading strong {
    font-size: 14px;
  }

  .indicator-definition-description,
  .indicator-definition-item p {
    font-size: 13px;
  }
}

/* ========================================
   地域比較
======================================== */

.compare-intro,
.compare-results {
  margin-bottom: 24px;
}

.compare-form {
  margin-top: 18px;
}

.compare-form-grid,
.compare-region-header,
.compare-item-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.compare-form-side {
  min-width: 0;
  padding: 16px;
  background: #f4f8f9;
  border: 1px solid #dce7ea;
  border-radius: 9px;
}

.compare-form-side-title {
  margin-bottom: 12px;
  color: #087f85;
  font-size: 17px;
  font-weight: 800;
}

.compare-form-side label {
  display: block;
  margin: 10px 0 5px;
  color: #455e69;
  font-size: 13px;
  font-weight: 700;
}

.compare-form-side select,
.compare-form-side input {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #cbd9de;
  border-radius: 6px;
  background: #fff;
  color: #243f4b;
  font-size: 15px;
}

.compare-form-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.compare-form-actions button {
  padding: 11px 20px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.compare-swap {
  border: 1px solid #b9cbd0;
  background: #fff;
  color: #42606c;
}

.compare-submit {
  border: 1px solid #087f85;
  background: #087f85;
  color: #fff;
}

.compare-error,
.compare-form-error {
  margin-top: 12px;
  color: #bd3434;
  font-size: 14px;
}

/* 比較対象の地域名 */
.compare-region-header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 18px 0 14px;
  padding: 8px 0;
  background: #fff;
}

.compare-region-name {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #e9f5f5;
  text-align: center;
}

.compare-region-name span {
  display: block;
  margin-bottom: 4px;
  color: #607985;
  font-size: 13px;
}

.compare-region-name strong {
  display: block;
  color: #174f57;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* セクション */
.compare-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
  padding: 10px 13px;
  border-left: 4px solid #087f85;
  background: #edf7f7;
}

.compare-section-heading h3 {
  margin: 0;
  color: #204a54;
  font-size: 18px;
}

.compare-section-heading span {
  color: #617b84;
  font-size: 12px;
}

/* 比較項目 */
.compare-item-list {
  display: grid;
  gap: 7px;
}

.compare-item {
  padding: 10px 12px;
  border: 1px solid #e1e9ec;
  border-radius: 7px;
  background: #fff;
}

.compare-item-title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 7px;
  color: #354e59;
  text-align: center;
}

.compare-item-title strong,
.compare-item-title a {
  font-size: 15px;
  font-weight: 700;
}

.compare-item-title span {
  color: #81919a;
  font-size: 12px;
}

.compare-item-values {
  gap: 8px;
}

.compare-value {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 7px;
  border-radius: 6px;
  background: #f4f6f7;
  text-align: center;
}

.compare-value.is-higher {
  background: #e1f4ef;
  color: #087b68;
  box-shadow: inset 0 0 0 1px #a8d9c9;
}

.compare-value-number {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.compare-value-label {
  padding: 2px 5px;
  border-radius: 4px;
  background: #c8e9df;
  color: #087b68;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.compare-note {
  margin: 14px 0;
  color: #74848d;
  font-size: 12px;
  line-height: 1.8;
}

.compare-bottom-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.compare-bottom-links a {
  padding: 9px 15px;
  border: 1px solid #bfd7db;
  border-radius: 6px;
  color: #087f85;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 767px) {

  .compare-form-grid,
  .compare-region-header {
    gap: 8px;
  }

  .compare-form-side {
    padding: 10px;
  }

  .compare-form-side-title {
    font-size: 15px;
  }

  .compare-form-side select,
  .compare-form-side input {
    padding: 9px 6px;
    font-size: 14px;
  }

  .compare-region-name {
    padding: 9px 5px;
  }

  .compare-region-name strong {
    font-size: 17px;
  }

  .compare-item {
    padding: 9px 7px;
  }

  .compare-item-title strong,
  .compare-item-title a {
    font-size: 14px;
  }

  .compare-value {
    min-height: 44px;
    padding: 8px 4px;
  }

  .compare-value-number {
    font-size: 17px;
  }

  .compare-value-label {
    font-size: 10px;
  }

  .compare-section-heading h3 {
    font-size: 16px;
  }

  .compare-form-actions button {
    font-size: 14px;
  }
}

/* 地域比較：カテゴリ目次 */
.compare-toc {
  margin: 16px 0 22px;
}

.compare-toc h2 {
  margin: 0 0 12px;
  color: #254b55;
  font-size: 17px;
}

.compare-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-toc-links a {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid #c9e2e3;
  border-radius: 6px;
  background: #f0f8f8;
  color: #087f85;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.compare-toc-links a:hover {
  background: #dceff0;
  border-color: #91c7cb;
}

.compare-section-heading {
  scroll-margin-top: 90px;
}

@media (max-width: 767px) {
  .compare-toc-links {
    gap: 6px;
  }

  .compare-toc-links a {
    padding: 7px 10px;
    font-size: 13px;
  }

  .compare-toc h2 {
    font-size: 16px;
  }
}

/* 都道府県別：鉄道・高速IC */

/* 鉄道・高速IC：都道府県カード */
.railway-pref-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.railway-pref-title {
  padding: 15px 14px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #263e53;
  text-align: center;
}

.railway-pref-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 12px;
  margin-top: auto;
}

.railway-pref-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 38px;
  padding: 8px 5px;
  border: 1px solid #c8dfef;
  border-radius: 7px;
  background: #eaf4fb;
  color: #246c9e;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.railway-pref-actions a:hover {
  background: #d5eaf8;
  border-color: #89b9d9;
}

.railway-pref-actions a:focus-visible {
  outline: 2px solid #246c9e;
  outline-offset: 2px;
}

.railway-pref-actions a span {
  font-size: 1rem;
  line-height: 1;
}

/* 高速IC一覧：下部の戻るリンク */
.railways-bottom-link {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 20px;
}

.railways-bottom-link a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #d4e4ef;
  border-radius: 8px;
  background: #f4f9fc;
  color: #246c9e;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.railways-bottom-link a:hover {
  background: #e4f1fa;
}

@media (max-width: 600px) {
  .railways-bottom-link {
    margin: 20px auto 30px;
    padding: 0 15px;
  }
}

/* スマートフォン */
@media (max-width: 600px) {
  .railway-pref-title {
    padding: 12px 8px 10px;
    font-size: .95rem;
  }

  .railway-pref-actions {
    gap: 5px;
    padding: 0 6px 9px;
  }

  .railway-pref-actions a {
    min-height: 36px;
    padding: 7px 3px;
    font-size: .75rem;
    gap: 2px;
  }
}

.highway-joint-type {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2f1ed;
  color: #24775c;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* 都道府県統計 */
.pref-stat-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.pref-stat-category-nav a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #f7f9fc;
  color: #334155;
  font-size: .85rem;
  text-decoration: none;
}

.pref-stat-category-nav a:hover {
  background: #eaf2ff;
  border-color: #b7d2f7;
}

.pref-stat-category {
  margin-top: 28px;
  scroll-margin-top: 80px;
}

.pref-stat-category h3 {
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid #4678b8;
  font-size: 1.05rem;
  color: #24364d;
}

.pref-stat-table-wrap {
  overflow-x: auto;
}

.pref-stat-value {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pref-stat-value span {
  margin-left: 4px;
  font-size: .78rem;
  font-weight: 400;
  color: #64748b;
}

@media (max-width: 600px) {
  .pref-stat-category-nav {
    gap: 6px;
  }

  .pref-stat-category-nav a {
    padding: 6px 9px;
    font-size: .78rem;
  }

  .pref-stat-category {
    margin-top: 22px;
  }
}

/* 都道府県地図 */
.prefecture-map {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #f1f5f9;
  z-index: 0;
}

.prefecture-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: .9rem;
}

.prefecture-map-note {
  margin: 8px 0 0;
  color: #64748b;
  font-size: .75rem;
}

.prefecture-map-popup-link {
  display: block;
  margin-top: 8px;
  color: #2563eb;
  font-size: .85rem;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .prefecture-map {
    height: 350px;
    border-radius: 8px;
  }
}

.pref-celeb-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f5f8fc;
  color: #475569;
  font-size: .9rem;
}

.pref-celeb-more a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.pref-celeb-more a:hover {
  text-decoration: underline;
}

.celeb-region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.celeb-region-links a {
  padding: 9px 13px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #f7f9fc;
  color: #285b91;
  font-size: .85rem;
  text-decoration: none;
}

.celeb-region-links a:hover {
  background: #eaf2ff;
}

.celeb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 12px;
}

.celeb-pagination a,
.celeb-pagination span {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  font-size: .85rem;
  text-decoration: none;
}

.celeb-pagination a {
  background: #fff;
  color: #285b91;
}

.celeb-pagination a:hover {
  background: #eaf2ff;
}

.celeb-pagination .is-current {
  background: #326ca7;
  border-color: #326ca7;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 600px) {
  .celeb-pagination {
    gap: 4px;
  }

  .celeb-pagination a,
  .celeb-pagination span {
    min-width: 32px;
    height: 34px;
    padding: 0 8px;
    font-size: .8rem;
  }
}

/* Hero：関連データサイトへのリンク */
.hero-related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-related-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #fff;
  color: #24364b;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30, 60, 100, 0.06);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.hero-related-card:hover {
  border-color: #5289c9;
  box-shadow: 0 5px 16px rgba(30, 60, 100, 0.14);
  transform: translateY(-2px);
}

.hero-related-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-related-icon {
  font-size: 21px;
  flex-shrink: 0;
}

.hero-related-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 3px 0;
}

.hero-related-count strong {
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.hero-related-count>span {
  font-size: 13px;
  font-weight: 600;
}

.hero-related-description {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid #e7edf5;
  color: #376eae;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-related-description>span {
  flex-shrink: 0;
  font-size: 20px;
}

/* カテゴリごとのアクセント */
.hero-related-company {
  border-top: 3px solid #3978c6;
}

.hero-related-medical {
  border-top: 3px solid #159c94;
}

.hero-related-school {
  border-top: 3px solid #d69a35;
}

/* モバイルでも3列を維持 */
@media (max-width: 600px) {
  .hero-related-links {
    gap: 6px;
    margin-top: 18px;
  }

  .hero-related-card {
    padding: 10px 7px;
    gap: 7px;
    border-radius: 9px;
  }

  .hero-related-title {
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
  }

  .hero-related-icon {
    font-size: 23px;
  }

  .hero-related-count strong {
    font-size: 21px;
  }

  .hero-related-count>span {
    font-size: 11px;
  }

  .hero-related-description {
    justify-content: center;
    font-size: 10px;
    text-align: center;
    padding-top: 7px;
  }

  .hero-related-description>span {
    display: none;
  }
}

/* 都道府県一覧：詳細・市区町村リンク */
.pref-link-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.pref-link-card:hover {
  border-color: #85add4;
  box-shadow: 0 3px 12px rgba(30, 60, 100, .09);
}

.pref-link-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 15px;
  color: #243b53;
  text-decoration: none;
}

.pref-link-main:hover {
  color: #2563a6;
}

.pref-link-municipalities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 10px 15px;
  border-top: 1px solid #e8edf3;
  background: #f4f8fd;
  color: #2868a7;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.pref-link-municipalities:hover {
  background: #e6f1fc;
}

.pref-link-municipalities span {
  font-size: 18px;
  line-height: 1;
}

/* 都道府県別・市区町村一覧 */

.pref-municipalities-hero .page-title {
  margin-bottom: 12px;
}

.pref-municipalities-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.pref-municipalities-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 15px 8px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #f5f9fd;
  text-align: center;
}

.pref-municipalities-stat strong {
  color: #245e9c;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.pref-municipalities-stat span {
  color: #60738a;
  font-size: 12px;
}

.pref-municipalities-hero-link {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.pref-municipalities-hero-link a {
  color: #2868a7;
  text-decoration: none;
}

.pref-municipalities-hero-link a:hover {
  text-decoration: underline;
}

/* 地図 */
#prefecture-map.prefecture-map {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #eef4f9;
}

.prefecture-map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #60738a;
  font-size: 14px;
}

/* 分類ナビ */
.pref-municipalities-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.pref-municipalities-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #d4e2f0;
  border-radius: 8px;
  background: #f4f8fd;
  color: #2868a7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pref-municipalities-nav a:hover {
  background: #e6f1fc;
  border-color: #90b8dd;
}

.pref-municipalities-nav span {
  color: #637b93;
  font-size: 12px;
  font-weight: 500;
}

/* 市区町村グループ */
.pref-municipalities-group {
  margin-top: 28px;
  scroll-margin-top: 80px;
}

.pref-municipalities-group .section-heading {
  margin-bottom: 14px;
}

.pref-municipalities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.pref-municipalities-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  background: #fff;
  color: #304c68;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.pref-municipalities-item:hover {
  background: #f1f7fd;
  border-color: #8bb5dc;
  color: #245e9c;
}

.pref-municipalities-arrow {
  flex-shrink: 0;
  color: #7b9cbd;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 900px) {
  .pref-municipalities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pref-municipalities-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .pref-municipalities-stat {
    padding: 11px 5px;
  }

  .pref-municipalities-stat strong {
    font-size: 21px;
  }

  .pref-municipalities-stat span {
    font-size: 11px;
  }

  #prefecture-map.prefecture-map {
    height: 320px;
  }

  .pref-municipalities-nav {
    gap: 6px;
  }

  .pref-municipalities-nav a {
    padding: 8px 12px;
    font-size: 12px;
  }

  .pref-municipalities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pref-municipalities-item {
    padding: 11px 10px;
    font-size: 13px;
  }
}

/* 同一都道府県・同一種別の地域リンク */
.municipality-related {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.municipality-related-heading {
  margin: 0 0 11px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.municipality-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.municipality-related-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #f6f9fc;
  color: #315f90;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.municipality-related-link:hover {
  background: #e8f2fc;
  border-color: #9bbddd;
  color: #1e4f82;
}

.municipality-related-more {
  margin: 12px 0 0;
  text-align: right;
  font-size: 12px;
}

.municipality-related-more a {
  color: #2868a7;
  font-weight: 600;
  text-decoration: none;
}

.municipality-related-more a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .municipality-related {
    margin-top: 15px;
    padding-top: 13px;
  }

  .municipality-related-heading {
    font-size: 14px;
  }

  .municipality-related-links {
    gap: 5px;
  }

  .municipality-related-link {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* トップページ */
/* ========================================
   HOME HERO
======================================== */
.home-hero {
  display: block;
  width: 100%;
  margin: 0;
  padding: 36px 20px 30px;
  background: linear-gradient(135deg, #123f68 0%, #17628a 55%, #168b93 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.home-hero .home-hero-inner {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.home-hero .home-hero-inner h1 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: center;
}

.home-hero .home-hero-inner>p {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  text-align: center;
}

/* 統計カード */
.home-hero .home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 960px;
  gap: 14px;
  margin: 32px auto 0;
  padding: 0;
  align-items: stretch;
  justify-content: center;
}

.home-hero .home-hero-stats>div {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-hero .home-hero-stats>div>a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 116px;
  margin: 0;
  padding: 20px 12px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  color: #fff;
  text-decoration: none;
  text-align: center;
  transition: background .2s, border-color .2s, transform .2s;
}

.home-hero .home-hero-stats>div>a:hover {
  background: rgba(255, 255, 255, .25);
  border-color: rgba(255, 255, 255, .65);
  transform: translateY(-3px);
}

.home-hero .home-hero-stats>div>a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.home-hero .home-hero-stats strong {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.home-hero .home-hero-stats span {
  display: block;
  margin: 9px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.5;
}

.home-hero .home-hero-stats>div>a::after {
  content: "›";
  position: absolute;
  top: 9px;
  right: 13px;
  color: rgba(255, 255, 255, .7);
  font-size: 1.25rem;
  line-height: 1;
}

/* タブレット */
@media (max-width: 850px) {
  .home-hero {
    padding: 24px 15px 28px;
  }

  .home-hero .home-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 600px;
    gap: 12px;
    margin-top: 28px;
  }

  .home-hero .home-hero-stats>div>a {
    min-height: 106px;
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  .home-hero {
    padding: 24px 12px 28px;
  }

  .home-hero .home-hero-inner h1 {
    font-size: 1.60rem;
    line-height: 1.45;
    letter-spacing: 0;
  }

  .home-hero .home-hero-inner>p {
    margin-top: 12px;
    font-size: .85rem;
    line-height: 1.8;
  }

  .home-hero .home-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 24px;
  }

  .home-hero .home-hero-stats>div>a {
    min-height: 100px;
    padding: 15px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .17);
  }

  .home-hero .home-hero-stats strong {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .home-hero .home-hero-stats span {
    margin-top: 7px;
    font-size: .8rem;
  }

  .home-hero .home-hero-stats>div>a::after {
    top: 7px;
    right: 10px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .home-hero-stats>div>a {
    transition: none;
  }
}

/* 地方別 */
.home-pref-region {
  margin-top: 25px;
}

.home-pref-region h3 {
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 4px solid #4b89c8;
  color: #304b66;
  font-size: 17px;
  line-height: 1.5;
}

.home-pref-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}




.home-pref-more {
  margin: 22px 0 0;
  text-align: right;
}

.home-pref-more a {
  color: #2868a7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* タブレット */
@media (max-width: 900px) {
  .home-pref-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* スマートフォン */
@media (max-width: 600px) {

  .home-pref-region {
    margin-top: 20px;
  }

  .home-pref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
}

/* Hero：地域データ統計カード */
.home-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.home-hero-stats>div {
  min-width: 0;
}

.home-hero-stats>div>a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}

.home-hero-stats>div>a:hover {
  background: rgba(255, 255, 255, .23);
  border-color: rgba(255, 255, 255, .65);
  transform: translateY(-3px);
}

.home-hero-stats strong {
  display: block;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.home-hero-stats span {
  display: block;
  margin-top: 9px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .88);
}

.home-hero-stats>div>a::after {
  content: "›";
  position: absolute;
  top: 9px;
  right: 13px;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, .7);
}

.home-hero-stats>div>a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* タブレット */
@media (max-width: 850px) {
  .home-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-hero-stats>div>a {
    min-height: 108px;
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  .home-hero-stats {
    gap: 9px;
    margin-top: 22px;
  }

  .home-hero-stats>div>a {
    min-height: 100px;
    padding: 15px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
  }

  .home-hero-stats strong {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    letter-spacing: -.04em;
  }

  .home-hero-stats span {
    margin-top: 7px;
    font-size: .78rem;
  }

  .home-hero-stats>div>a::after {
    top: 7px;
    right: 10px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-stats>div>a {
    transition: none;
  }
}

/* 都道府県カード */
.home-pref-card {
  min-width: 0;
  padding: 0 0 12px;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(35, 55, 75, .05);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.home-pref-card:hover {
  border-color: #b8cddd;
  box-shadow: 0 5px 14px rgba(35, 55, 75, .11);
  transform: translateY(-2px);
}

.home-pref-main-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.home-pref-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: linear-gradient(145deg, #edf6fc, #f2f7ed);
}

.home-pref-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-pref-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 13px 7px;
}

.home-pref-card-heading strong {
  color: #254e75;
  font-size: 17px;
  font-weight: 800;
}

.home-pref-card-heading>span {
  color: #bd8148;
  font-size: 23px;
  line-height: 1;
}

.home-pref-main-link:hover .home-pref-card-heading strong {
  color: #176ba9;
}

/* 庁所在地 */
.home-pref-capital {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 13px 11px;
  font-size: 12px;
}

.home-pref-capital>span {
  color: #89939c;
}

.home-pref-capital a,
.home-pref-capital strong {
  color: #b36d31;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-pref-capital a:hover {
  color: #8f4f1b;
  text-decoration: underline;
}

/* 統計：横1列 */
.home-pref-card-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 10px;
  padding: 9px 2px 0;
  border-top: 1px solid #edf0f2;
}

.home-pref-card-stats>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 3px;
  border-right: 1px solid #edf0f2;
}

.home-pref-card-stats>div:last-child {
  border-right: 0;
}

.home-pref-card-stats span {
  color: #89939c;
  font-size: 11px;
  white-space: nowrap;
}

.home-pref-card-stats strong {
  color: #4e5e6b;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 統計の数字に控えめなアクセント */
.home-pref-card-stats>div:nth-child(1) strong {
  color: #3975a5;
}

.home-pref-card-stats>div:nth-child(2) strong {
  color: #58865a;
}

.home-pref-card-stats>div:nth-child(3) strong {
  color: #bd754f;
}

.home-pref-card-stats>div:nth-child(4) strong {
  color: #8872a8;
}

@media (max-width: 600px) {
  .home-pref-card-heading {
    padding: 9px 10px 5px;
  }

  .home-pref-card-heading strong {
    font-size: 15px;
  }

  .home-pref-capital {
    margin: 0 10px 9px;
    font-size: 11px;
  }

  .home-pref-capital a,
  .home-pref-capital strong {
    font-size: 12px;
  }

  .home-pref-card-stats {
    margin: 0 6px;
    padding-top: 8px;
  }

  .home-pref-card-stats>div {
    padding: 0 1px;
  }

  .home-pref-card-stats span {
    font-size: 10px;
  }

  .home-pref-card-stats strong {
    font-size: 11px;
  }
}


/* トップページ：ランキング */
.home-rankings,
.home-indicators {
  margin-top: 28px;
}

.home-ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.home-ranking-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 15px 12px 24px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.home-ranking-card:hover {
  background: #f5faff;
  border-color: #81add8;
}

.home-ranking-card strong {
  color: #245e9c;
  font-size: 15px;
}

.home-ranking-card>span:not(.home-ranking-arrow) {
  color: #687d91;
  font-size: 12px;
  line-height: 1.6;
}

.home-ranking-arrow {
  position: absolute;
  right: 12px;
  bottom: 5px;
  color: #86a5c3;
  font-size: 22px;
}

/* 地域指標 */
.home-indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-indicator-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe5ef;
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.home-indicator-card:hover {
  background: #f5faff;
  border-color: #81add8;
}

.home-indicator-icon {
  font-size: 27px;
  line-height: 1.3;
}

.home-indicator-card strong {
  color: #245e9c;
  font-size: 17px;
}

.home-indicator-description {
  color: #60758a;
  font-size: 13px;
  line-height: 1.7;
}

.home-indicator-link {
  margin-top: auto;
  padding-top: 5px;
  color: #2868a7;
  font-size: 12px;
  font-weight: 700;
}

.home-section-more {
  margin: 20px 0 0;
  text-align: right;
}

.home-section-more a {
  color: #2868a7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .home-ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {

  .home-rankings,
  .home-indicators {
    margin-top: 20px;
  }

  .home-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .home-ranking-card {
    padding: 12px 10px 23px;
  }

  .home-ranking-card strong {
    font-size: 14px;
  }

  .home-indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-indicator-card {
    padding: 13px 11px;
    gap: 6px;
  }

  .home-indicator-icon {
    font-size: 23px;
  }

  .home-indicator-card strong {
    font-size: 15px;
  }

  .home-indicator-description {
    font-size: 12px;
  }
}

/* 地域指標ランキング */
.home-indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-indicator-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 65, 100, .04);
}

.home-indicator-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.home-indicator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #eef5fc;
  font-size: 24px;
}

.home-indicator-heading-text {
  min-width: 0;
}

.home-indicator-heading-text h3 {
  margin: 0 0 4px;
  color: #245e9c;
  font-size: 17px;
  line-height: 1.4;
}

.home-indicator-heading-text p {
  margin: 0;
  color: #718396;
  font-size: 11px;
  line-height: 1.5;
}

.home-indicator-unit {
  margin: 13px 0 5px;
  color: #8292a3;
  font-size: 11px;
  text-align: right;
}

.home-indicator-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e8edf3;
}

.home-indicator-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding: 8px 2px;
  border-bottom: 1px solid #edf1f5;
}

.home-indicator-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #f0f3f7;
  color: #75879a;
  font-size: 13px;
  font-weight: 800;
}

.home-indicator-rank.is-top {
  background: #e7f1fc;
  color: #3274b7;
}

.home-indicator-list li:first-child .home-indicator-rank {
  background: #fff1d5;
  color: #b57b1d;
}

.home-indicator-list li:nth-child(2) .home-indicator-rank {
  background: #edf0f4;
  color: #687b90;
}

.home-indicator-list li:nth-child(3) .home-indicator-rank {
  background: #f8eee7;
  color: #a77351;
}

.home-indicator-place {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-decoration: none;
}

.home-indicator-place strong {
  overflow: hidden;
  color: #315e8a;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-indicator-place:hover strong {
  text-decoration: underline;
}

.home-indicator-place small {
  color: #8a99a8;
  font-size: 11px;
}

.home-indicator-score {
  flex-shrink: 0;
  color: #253e59;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.home-indicator-score small {
  margin-left: 2px;
  color: #8292a3;
  font-size: 10px;
  font-weight: 400;
}

.home-indicator-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 14px 3px 0;
  color: #2868a7;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.home-indicator-more:hover {
  text-decoration: underline;
}

.home-indicator-empty {
  padding: 25px 0;
  color: #8292a3;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .home-indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-indicator-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-indicator-card {
    padding: 15px;
  }

  .home-indicator-list li {
    min-height: 51px;
  }

  .home-indicator-score {
    font-size: 16px;
  }
}

.towns-hero h1 {
  margin: 0 0 12px;
  color: #254f79;
  font-size: 26px;
}

.towns-summary {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.towns-summary>div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid #dce7f2;
  border-radius: 9px;
  background: #f5f9fd;
}

.towns-summary strong {
  color: #2868a7;
  font-size: 23px;
}

.towns-summary span {
  color: #687e92;
  font-size: 12px;
}

.towns-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.towns-search label {
  color: #425d78;
  font-size: 13px;
  font-weight: 700;
}

.towns-search input {
  flex: 1;
  min-width: 160px;
  padding: 11px 13px;
  border: 1px solid #d1dfeb;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.towns-search input:focus {
  outline: 2px solid #91b9e0;
  outline-offset: 1px;
}

#town-search-count {
  color: #6b8093;
  font-size: 12px;
}

.towns-group-index {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 24px;
}

.towns-group-index a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #dce7f2;
  border-radius: 7px;
  background: #f6f9fc;
  color: #316a9f;
  font-size: 12px;
  text-decoration: none;
}

.towns-group-index a:hover {
  background: #e9f3fc;
}

.towns-group-index small {
  color: #8295a7;
  font-size: 10px;
}

.town-group {
  margin-bottom: 25px;
  scroll-margin-top: 20px;
}

.town-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 13px;
  border-left: 4px solid #4c8ecb;
  border-radius: 0 7px 7px 0;
  background: #eef5fc;
}

.town-group-heading h3 {
  margin: 0;
  color: #305b84;
  font-size: 16px;
}

.town-group-heading span {
  color: #8193a5;
  font-size: 12px;
}

.town-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.town-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e2e9f0;
  border-radius: 8px;
  background: #fff;
}

.town-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.town-item-main strong {
  color: #334f6c;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.town-kana,
.town-detail {
  color: #8493a2;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.town-map-link {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef5fc;
  color: #3574af;
  font-size: 11px;
  text-decoration: none;
}

.town-map-link:hover {
  background: #dcecfb;
}

.town-no-results {
  padding: 25px;
  color: #71869a;
  text-align: center;
}

.towns-information p {
  color: #61758a;
  font-size: 13px;
  line-height: 1.9;
}

.towns-information a {
  color: #2868a7;
  font-weight: 700;
}

.town-item[hidden],
.town-group[hidden],
.towns-group-index a[hidden],
.town-no-results[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .town-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .towns-hero h1 {
    font-size: 22px;
  }

  .towns-summary {
    gap: 8px;
  }

  .towns-summary>div {
    flex: 1;
    justify-content: center;
    padding: 10px 7px;
  }

  .towns-summary strong {
    font-size: 19px;
  }

  .town-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .town-item {
    padding: 9px 8px;
  }

  .town-item-main strong {
    font-size: 13px;
  }

  .town-map-link {
    padding: 4px 6px;
    font-size: 10px;
  }
}

/* 市区町村ページ：町字概要 */
.municipality-towns-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.municipality-towns-summary span {
  padding: 8px 12px;
  border-radius: 7px;
  background: #eef5fc;
  color: #60758a;
  font-size: 13px;
}

.municipality-towns-summary strong {
  color: #2868a7;
  font-size: 17px;
  font-weight: 800;
}

.municipality-town-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.municipality-town-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  background: #fff;
}

.municipality-town-name {
  min-width: 0;
  color: #345875;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.municipality-town-count {
  flex-shrink: 0;
  color: #8293a4;
  font-size: 11px;
  white-space: nowrap;
}

.municipality-towns-more {
  margin-top: 20px;
  text-align: center;
}

.municipality-towns-more a {
  display: inline-block;
  padding: 11px 24px;
  border: 1px solid #b9d3ea;
  border-radius: 8px;
  background: #eef6fd;
  color: #2868a7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.municipality-towns-more a:hover {
  background: #dfedfa;
}

.municipality-towns-empty {
  padding: 18px;
  color: #71869a;
  font-size: 13px;
}

@media (max-width: 900px) {
  .municipality-town-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .municipality-town-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .municipality-town-group {
    padding: 10px 9px;
  }

  .municipality-town-name {
    font-size: 12px;
  }

  .municipality-towns-more a {
    display: block;
    text-align: center;
  }
}

/* 都道府県庁所在地 */
.hero-capital {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0;
  font-size: 14px;
}

.hero-capital-label {
  color: #647b90;
  font-weight: 600;
}

.hero-capital a {
  color: #2868a7;
  font-weight: 700;
  text-decoration: none;
}

.hero-capital a:hover {
  text-decoration: underline;
}

.home-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-ranking-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.home-ranking-card-header h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
  color: #243b53;
}

.home-ranking-card-header p {
  margin: 0;
  font-size: .82rem;
  color: #718096;
}

.home-ranking-top3 {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}

.home-ranking-top3 li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.home-ranking-position {
  flex: 0 0 32px;
  font-size: .8rem;
  font-weight: 700;
  color: #718096;
}

.home-ranking-top3 li:first-child .home-ranking-position {
  color: #c28b24;
}

.home-ranking-name {
  flex: 1;
  min-width: 0;
  font-size: .9rem;
  font-weight: 600;
  color: #2563a6;
  text-decoration: none;
}

.home-ranking-name small {
  display: block;
  margin-top: 2px;
  font-size: .72rem;
  font-weight: 400;
  color: #94a3b8;
}

.home-ranking-value {
  flex-shrink: 0;
  text-align: right;
  font-size: .9rem;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.home-ranking-value small {
  margin-left: 2px;
  font-size: .72rem;
  font-weight: 400;
  color: #94a3b8;
}

.home-ranking-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  font-size: .85rem;
  font-weight: 600;
  color: #2563a6;
  text-decoration: none;
}

.home-ranking-more:hover,
.home-ranking-name:hover {
  text-decoration: underline;
}

.home-ranking-empty {
  color: #94a3b8;
  font-size: .85rem;
}

@media (max-width: 640px) {
  .home-ranking-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-ranking-card {
    padding: 15px;
  }
}

.about-page {
  max-width: 960px;
  margin: 0 auto;
}

.about-content {
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.about-content h2 {
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.1rem;
  color: #243b53;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  margin: 0 0 12px;
  font-size: .92rem;
  line-height: 1.9;
  color: #475569;
}

.about-info {
  margin: 0;
}

.about-info>div {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: .9rem;
}

.about-info dt {
  flex: 0 0 120px;
  color: #64748b;
}

.about-info dd {
  margin: 0;
  color: #334155;
}

.about-content a {
  color: #2563a6;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

.about-contact-link a {
  display: inline-block;
  padding: 11px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .about-content {
    padding: 18px 15px;
  }

  .about-info dt {
    flex-basis: 95px;
  }
}

/* 当サイトについて */
.about-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.about-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  font-size: .82rem;
  color: #64748b;
}

.about-breadcrumb a {
  color: #2563a6;
  text-decoration: none;
}

.about-header {
  margin-bottom: 24px;
}

.about-header h1 {
  margin: 0 0 9px;
  font-size: 1.65rem;
  line-height: 1.4;
  color: #1e293b;
}

.about-header p {
  margin: 0;
  font-size: .9rem;
  color: #64748b;
}

.about-content {
  max-width: 960px;
  padding: 8px 26px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.about-section {
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

.about-section:last-child {
  border-bottom: none;
}

.about-section h2 {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #2563a6;
  font-size: 1.12rem;
  color: #243b53;
}

.about-section p {
  margin: 0 0 12px;
  font-size: .92rem;
  line-height: 1.9;
  color: #475569;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: #2563a6;
  text-decoration: none;
}

.about-section a:hover {
  text-decoration: underline;
}

.about-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-related-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  font-size: .85rem;
  font-weight: 600;
}

.about-info {
  margin: 0;
}

.about-info>div {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
  font-size: .9rem;
}

.about-info>div:last-child {
  border-bottom: none;
}

.about-info dt {
  flex: 0 0 115px;
  color: #64748b;
}

.about-info dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #334155;
}

.about-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  font-size: .9rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .about-page {
    padding-top: 16px;
    padding-bottom: 30px;
  }

  .about-header h1 {
    font-size: 1.35rem;
  }

  .about-content {
    padding: 4px 16px;
  }

  .about-section {
    padding: 20px 0;
  }

  .about-section h2 {
    font-size: 1.02rem;
  }

  .about-section p {
    font-size: .88rem;
  }

  .about-info dt {
    flex-basis: 90px;
  }

  .about-related-links {
    flex-direction: column;
  }

  .about-related-links a {
    width: 100%;
  }
}