:root {
  --color-primary: #1b64d8;
  --color-primary-soft: #e7f0ff;
  --color-primary-deep: #0d3e8f;
  --color-accent: #d9534f;
  --color-accent-deep: #c9443f;
  --color-text: #1d2a3a;
  --color-text-muted: #5a6a80;
  --color-bg: #edf4ff;
  --color-border: #d4e0f5;
  --page-max: 1200px;
  --page-padding-desktop: 40px;
  --page-padding-mobile: 16px;
  --color-map-active: #78A0D0;
  --color-map-active-hover: #5b8ab8;
  --color-map-considering: #98D8E8;
  --color-map-considering-hover: #80c8d8;
  --color-map-inactive: #D8D8E0;
  --color-map-stroke: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #f7fbff 0%, var(--color-bg) 55%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-padding-mobile);
}

/* ===== Page-level width constraint ===== */
.notice-banner,
.hero,
.main-content {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 10;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.site-logo {
  height: 94px;
  width: auto;
  flex-shrink: 0;
}

/* Hamburger toggle (hidden by default, shown on narrow screens) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.header-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-btn:hover {
  background: var(--color-primary-soft);
}

.header-btn--accent {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.header-btn--accent:hover {
  background: var(--color-primary-deep);
  border-color: var(--color-primary-deep);
}

/* ===== Notice Banner ===== */
.notice-banner {
  padding: 12px 16px;
  text-align: center;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.6;
  background: var(--color-primary-soft);
  color: var(--color-primary-deep);
  border-bottom: 1px solid var(--color-border);
}

.notice-banner--static {
  background: var(--color-accent);
  color: #ffffff;
  border-bottom: none;
}

.notice-banner--warning {
  background: #fff8e1;
  color: #8d6e00;
  border-bottom-color: #ffe082;
}


/* ===== Hero ===== */
.hero-image {
  position: relative;
  margin-top: -118px;
  padding: 0;
  overflow: hidden;
}

.hero-image__img {
  display: block;
  width: 100%;
  height: auto;
}


.hero-catchcopy {
  position: absolute;
  right: 5%;
  bottom: 4%;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-align: right;
}

.hero-catchcopy__line {
  display: block;
}

.hero-catchcopy__line--1 {
  font-size: clamp(13px, 2vw, 22px);
}

.hero-catchcopy__sub {
  font-size: clamp(12px, 1.8vw, 20px);
  margin-right: 0.3em;
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
}

.hero-catchcopy__main {
  font-size: clamp(22px, 4vw, 48px);
  letter-spacing: 0.15em;
}

.hero-subcatch {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  color: var(--color-primary-deep);
  letter-spacing: 0.1em;
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
  background: #ffffff;
}

.hero-description {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding-top: 12px;
  padding-bottom: 12px;
}

.hero-description p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  font-family: "游明朝", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", serif;
}

.hero-description p + p {
  margin-top: 8px;
}


/* ===== GIS Sites Section ===== */
.gis-sites {
  padding-bottom: 48px;
}

.gis-sites__title {
  text-align: center;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0 0 28px;
}

.gis-sites__subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
}

/* Map container */
.map-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto 64px;
}

.tottori-map {
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
}

.map-area--active polygon {
  fill: var(--color-map-active);
  stroke: var(--color-map-stroke);
  stroke-width: 1;
  transition: fill 0.2s ease;
  cursor: pointer;
}

.map-area--active:hover polygon {
  fill: var(--color-map-active-hover);
}

.map-area--inactive polygon {
  fill: var(--color-map-inactive);
  stroke: var(--color-map-stroke);
  stroke-width: 1;
}

.map-area--considering polygon {
  fill: var(--color-map-considering);
  stroke: var(--color-map-stroke);
  stroke-width: 1;
}

.map-area--considering .map-label {
  fill: #80a0b0;
}

.map-label {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  fill: var(--color-text);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  font-weight: 600;
}

.map-area--inactive .map-label {
  fill: #a8b0b8;
}

.map-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  top: -95px;
  margin-bottom: -95px;
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #c8d8ef;
  padding: 6px 10px;
  background: var(--color-bg);
  font-size: 13px;
}

.map-legend__item {
  display: inline-flex;
  align-items: center;
  font-size: inherit;
}

.map-legend__color {
  display: inline-block;
  width: 20px;
  height: 14px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.map-legend__color--active {
  background: var(--color-map-active);
}

.map-legend__color--considering {
  background: var(--color-map-considering);
}

.map-legend__color--inactive {
  background: var(--color-map-inactive);
}

.map-legend__text {
  margin-left: 2px;
}

.map-pref-btn {
  display: inline-block;
  padding: 8px 36px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s ease;
}

.map-pref-btn:hover {
  background: var(--color-primary-soft);
}

.map-pref-btn--pref {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
}

.map-pref-btn--pref:hover {
  background: transparent;
}

.map-pref-btn__bg {
  width: 202px;
  height: auto;
  display: block;
}

.map-pref-btn__bg polygon {
  fill: var(--color-map-active);
  stroke: var(--color-map-active);
  stroke-width: 2;
  transition: fill 0.2s ease;
}

.map-pref-btn--pref:hover .map-pref-btn__bg polygon {
  fill: var(--color-map-active-hover);
  stroke: var(--color-map-active-hover);
}

.map-pref-btn__text {
  position: absolute;
  top: 22%;
  color: var(--color-text);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

/* List grid */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.list-grid__cell {
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 18px;
  transition: background 0.2s ease;
}

.list-grid__cell:hover {
  background: var(--color-primary-soft);
}

.list-grid__cell--inactive {
  pointer-events: none;
  color: #727272;
  font-weight: 400;
}

.list-grid__cell--inactive:hover {
  background: transparent;
}

.list-grid__cell--empty {
  pointer-events: none;
  color: transparent;
}

/* ===== Main content ===== */
.main-content {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}


/* ===== Footer ===== */
.site-footer {
  padding: 16px 0 20px;
  background: var(--color-primary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-inner .copyright {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 575px) {
  .site-logo {
    height: 40px;
  }

  .header-inner {
    padding: 6px 0;
    gap: 6px;
  }

  .header-btn {
    padding: 5px 8px;
    font-size: 10px;
    border-width: 1.5px;
  }

  .hero-image {
    margin-top: -52px;
  }

  .hero-description p {
    font-size: 14px;
  }

  .main-content {
    padding: 20px 0 20px;
  }

  .notice-banner {
    font-size: 20px;
  }

  .gis-sites__title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .list-grid__cell {
    font-size: 14px;
    padding: 10px 4px;
  }

  .map-footer {
    top: -30px;
    margin-bottom: -30px;
    gap: 16px;
  }

  .map-legend {
    font-size: 11px;
    padding: 4px 8px;
  }

  .map-pref-btn__bg {
    width: 100px;
  }

  .map-pref-btn__text {
    font-size: 11px;
  }
}

/* ===== Responsive: Narrow Mobile (hamburger) ===== */
@media (max-width: 374px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle-label span {
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-label span::before {
    top: -7px;
  }

  .nav-toggle-label span::after {
    top: 7px;
  }

  /* Animate to X when checked */
  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--color-primary);
  }

  .nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--color-primary);
  }

  /* Nav hidden by default, shown when checked */
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--page-padding-mobile);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    gap: 0;
    padding: 4px;
    z-index: 20;
    min-width: 200px;
  }

  .nav-toggle:checked ~ .header-nav {
    display: flex;
  }

  .header-btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 4px;
  }
}

/* ===== Responsive: Tablet+ ===== */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--page-padding-desktop);
  }

  .site-logo {
    height: 104px;
  }

  .header-inner {
    padding: 12px 0;
  }

  .header-btn {
    padding: 10px 22px;
    font-size: 14px;
  }

  .footer-inner {
    padding: 0;
  }

  .hero-image {
    margin-top: -128px;
  }


  .hero-description {
    padding-top: 16px;
    padding-bottom: 16px;
  }

}

