/* 小山地域興創塾ページ 固有CSS。既存 style.css を前提に必要箇所のみ追加・上書き */

.area-hero .hero-copy h1,
.area-hero .hero-copy h2 {
  letter-spacing: .015em;
}

.area-hero .hero-card {
  justify-self: center;
}

.oyama-context-section {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.stat-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 0 34px;
}

.stat-summary article {
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}

.stat-summary span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.stat-summary strong {
  color: var(--black);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.03em;
}

.stat-summary small {
  margin-left: 6px;
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
}

.stat-summary p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: stretch;
}

.chart-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chart-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.chart-head p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.line-chart {
  position: relative;
  padding: 10px 0 0;
}

.line-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.line-chart line {
  stroke: #d9d9d9;
  stroke-width: 1;
}

.line-chart polyline {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart .population {
  stroke: var(--red);
}

.line-chart .households {
  stroke: #111;
}

.chart-labels text {
  fill: #777;
  font-size: 15px;
  text-anchor: middle;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend span::before {
  content: "";
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.chart-legend .pop {
  color: var(--red);
}

.chart-legend .hh {
  color: #111;
}

.age-chart {
  display: grid;
  gap: 18px;
  padding: 20px 0 4px;
}

.age-row {
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  gap: 14px;
  align-items: center;
}

.age-row span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.age-row strong {
  color: var(--black);
  font-size: 15px;
  text-align: right;
}

.age-bar {
  height: 16px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
}

.age-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  border-radius: 999px;
}

.data-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.area-character-block {
  margin-top: 70px;
}

.section-title.compact {
  margin-bottom: 34px;
}

.local-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.local-area-grid article {
  position: relative;
  min-height: 245px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.local-area-grid article::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -32px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(227, 6, 19, .22);
  transform: rotate(45deg);
}

.local-area-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.local-area-grid h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
}

.local-area-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.can-do-section {
  background: #fff;
}

.can-do-grid {
  grid-template-columns: repeat(4, 1fr);
}

.recommended-section {
  background: var(--bg-soft);
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.recommend-list div {
  position: relative;
  padding: 18px 20px 18px 48px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
  font-weight: 800;
  line-height: 1.6;
}

.recommend-list div::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 25px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--red);
  border-radius: 50%;
}

.place-section {
  background: #fff;
}

.place-card .area-content p + p {
  margin-top: 16px;
}

.next-section {
  background: var(--bg-soft);
}

.next-flow .flow-card {
  background: #fff;
}

@media (max-width: 1080px) {
  .chart-grid,
  .local-area-grid,
  .recommend-list {
    grid-template-columns: 1fr;
  }

  .can-do-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .stat-summary,
  .can-do-grid {
    grid-template-columns: 1fr;
  }

  .chart-card,
  .local-area-grid article {
    padding: 24px;
  }

  .age-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .age-row strong {
    text-align: left;
  }

  .chart-legend {
    flex-wrap: wrap;
  }

  .local-area-grid article {
    min-height: auto;
  }
}
