/* =========================================
   Municipality Page Styles (Generic & Reusable)
   自治体個別ページのスタイル（汎用テンプレート）
 ========================================= */

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800&display=swap');

:root {
/*  --font-mori: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;/*
  
  /* Theme Colors for Cards */
  --theme-pink: #e16a80;
  --theme-pink-bg: #fdf2f4;
  --theme-pink-dark: #b83a51;
  
  --theme-orange: #ff9b38;
  --theme-orange-bg: #fffbf5;
  --theme-orange-dark: #d86d10;

  --theme-yellow: #f7b731;
  --theme-yellow-bg: #fffdf5;
  --theme-yellow-dark: #c98a00;  

  --theme-green: #9DBB3D;
  --theme-green-bg: #F5FAEC;
  --theme-green-dark: #617d14;
  
  --theme-teal: #00a29a;
  --theme-teal-bg: #f0faf9;
  --theme-teal-dark: #00746e;

  --theme-blue: #0054a6;
  --theme-blue-bg: #f2f7fc;
  --theme-blue-dark: #003666;
  }

/* ---------- Breadcrumb ---------- */
.muni-breadcrumb {
  max-width: 1000px;
  margin: 20px auto 10px;
  padding: 0 0px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.muni-breadcrumb a {
  color: var(--color-text-light);
  transition: color 0.2s;
}

.muni-breadcrumb a:hover {
  color: var(--color-main-dark);
  text-decoration: underline;
}

/* ---------- Title Area ---------- */
.muni-header-title {
  text-align: center;
  padding: 40px 20px 20px;
  font-family: var(--font-mori);
}

.muni-title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.muni-badge {
  display: inline-block;
  background: var(--color-main-light);
  color: var(--color-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 16px;
  border-radius: 99px;
  letter-spacing: 0.1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.muni-name {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-heading);
  margin: 5px 0 0;
  line-height: 1.2;
}

/* ---------- Hero Image Area ---------- */
.muni-hero-img-sec {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 0px;
}

.muni-hero-img-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.muni-hero-img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.muni-hero-btn-container {
  text-align: center;
  margin-top: 30px;
}

.muni-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 50px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mori);
  border-radius: 99px;
  box-shadow: 0 6px 0 var(--theme-orange-dark), 0 10px 20px rgba(255, 155, 56, 0.3);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.muni-primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--theme-orange-dark), 0 12px 25px rgba(255, 155, 56, 0.4);
}

.muni-primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--theme-orange-dark), 0 5px 10px rgba(255, 155, 56, 0.2);
}

.muni-primary-btn::after {
  content: "→";
  font-size: 1.5rem;
}

/* -------------- */
.section-desc-tight {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-main-dark);
    line-height: 1.2;
}


/* ---------- Common Sections ---------- */
.muni-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 20px;
}

.muni-section-title {
  font-family: var(--font-mori);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.muni-section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-main);
  margin: 12px auto 0;
  border-radius: 2px;
}

.muni-section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

/* ---------- About Section ---------- */
.muni-about {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.muni-about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.muni-about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.muni-about-text p {
  margin-bottom: 20px;
}

.muni-about-text p:last-child {
  margin-bottom: 0;
}

.muni-info-table {
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.info-row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.info-row:first-child {
  padding-top: 0;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-label {
  width: 90px;
  font-weight: 700;
  color: var(--color-heading);
  flex-shrink: 0;
}

.info-value {
  color: var(--color-text);
  line-height: 1.5;
}

.muni-small-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  display: block;
  margin-top: 4px;
}

/* ---------- Themes Grid Section ---------- */
.muni-themes {
  padding-top: 20px;
}

.muni-themes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.muni-theme-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  text-align: center;
}

.theme-card-header {
  margin-bottom: 12px;
}

.theme-num {
  font-family: var(--font-mori);
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.theme-name {
  font-family: var(--font-mori);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.theme-card-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0 5px;
}

.theme-card-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.theme-desc {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  flex-grow: 1;
}

.theme-card-action {
  margin-top: auto;
}

.theme-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: var(--color-white);
  font-family: var(--font-mori);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
  opacity: 0.95;
}

.theme-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

/* Card-Specific Colors */
.theme-green {
  border-color: var(--theme-green);
  background: var(--theme-green-bg);
}
.theme-green .theme-num,
.theme-green .theme-name {
  color: var(--theme-green-dark);
}
.theme-green .theme-btn {
  background: var(--theme-green);
  box-shadow: 0 4px 0 var(--theme-green-dark);
}

.theme-blue {
  border-color: var(--theme-blue);
  background: var(--theme-blue-bg);
}
.theme-blue .theme-num,
.theme-blue .theme-name {
  color: var(--theme-blue-dark);
}
.theme-blue .theme-btn {
  background: var(--theme-blue);
  box-shadow: 0 4px 0 var(--theme-blue-dark);
}

.theme-pink {
  border-color: var(--theme-pink);
  background: var(--theme-pink-bg);
}
.theme-pink .theme-num,
.theme-pink .theme-name {
  color: var(--theme-pink-dark);
}
.theme-pink .theme-btn {
  background: var(--theme-pink);
  box-shadow: 0 4px 0 var(--theme-pink-dark);
}

.theme-orange {
  border-color: var(--theme-orange);
  background: var(--theme-orange-bg);
}
.theme-orange .theme-num,
.theme-orange .theme-name {
  color: var(--theme-orange-dark);
}
.theme-orange .theme-btn {
  background: var(--theme-orange);
  box-shadow: 0 4px 0 var(--theme-orange-dark);
}

.theme-teal {
  border-color: var(--theme-teal);
  background: var(--theme-teal-bg);
}
.theme-teal .theme-num,
.theme-teal .theme-name {
  color: var(--theme-teal-dark);
}
.theme-teal .theme-btn {
  background: var(--theme-teal);
  box-shadow: 0 4px 0 var(--theme-teal-dark);
}

.theme-yellow {
  border-color: var(--theme-yellow);
  background: var(--theme-yellow-bg);
}
.theme-yellow .theme-num,
.theme-yellow .theme-name {
  color: var(--theme-yellow-dark);
}
.theme-yellow .theme-btn {
  background: var(--theme-yellow);
  box-shadow: 0 4px 0 var(--theme-yellow-dark);
}




/* ---------- Results Section ---------- */
.muni-results-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.muni-result-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border-light);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}

/*
.muni-result-card:hover {
  transform: translateY(-4px);
}
*/

.result-badge {
  position: absolute;
  top: -15px;
  background: var(--color-main);
  color: var(--color-white);
  font-family: var(--font-mori);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 5px 20px;
  border-radius: 99px;
  box-shadow: var(--shadow);
}

.result-badge.accent {
  background: var(--color-accent);
}

.result-date-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 15px 0;
  color: var(--color-heading);
}

.result-date {
  font-family: var(--font-mori);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.result-day {
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--color-border-light);
  color: var(--color-text);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.result-title {
  font-family: var(--font-mori);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 10px 0 12px;
}

.result-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}


/* ---------- Bottom CTA Section ---------- */
.muni-cta-section {
  max-width: 1000px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.cta-inner {
  background: linear-gradient(135deg, var(--color-main-dark), var(--color-main));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Deco circles for a playful look */
.cta-inner::before,
.cta-inner::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cta-inner::before {
  width: 250px;
  height: 250px;
  top: -100px;
  left: -100px;
}

.cta-inner::after {
  width: 150px;
  height: 150px;
  bottom: -50px;
  right: -50px;
}

.cta-title {
  font-family: var(--font-mori);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 35px;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

.cta-btn-wrap {
  position: relative;
  z-index: 1;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .muni-themes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .muni-name {
    font-size: 2.2rem;
  }
  
  .muni-section {
    margin: 40px auto;
    padding: 30px 15px;
  }
  
  .muni-section-title {
    font-size: 1.8rem;
  }
  
  .muni-about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .muni-results-timeline {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .muni-result-card {
    padding: 24px;
  }
  
  .cta-inner {
    padding: 40px 20px;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-desc {
    font-size: 1rem;
    margin-bottom: 25px;
  }
}

@media (max-width: 580px) {
  .muni-themes-grid {
      grid-template-columns: 1fr;
      max-width: 320px;
      margin: 0 auto;
  }
  
  .muni-theme-card {
    padding: 12px 10px;
  }
  
  .theme-name {
    font-size: 1.5rem;
  }
  
  .theme-desc {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .theme-card-img {
    margin: 8px 0;
  }

  .theme-card-img img {
    width: 100%;
    display: block;
  }

  .muni-primary-btn {
    font-size: 1.2rem;
    padding: 14px 36px;
  }
}

@media (max-width: 480px) {
  .muni-themes-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}
