/* 区別特集 v1.3。本文の幅・余白・イベントカードは既存 sd_features.css をそのまま使う。 */
.sdaf-nav,
.sdaf-panel {
  box-sizing: border-box;
  color: #202428;
  font-family: inherit;
}
.sdaf-nav *,
.sdaf-panel * {
  box-sizing: border-box;
}
.sdaf-nav {
  margin: 28px 0 40px;
  min-width: 0;
  container-type: inline-size;
}
.sdaf-nav-heading h2 {
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.4;
  margin: 0;
}
.sdaf-nav-heading p {
  font-size: 13px;
  color: #747b80;
  line-height: 1.8;
  margin: 7px 0 0;
}
.sdaf-nav--wards .sdaf-nav-heading {
  margin-bottom: 20px;
}
.sdaf-ward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #e5e9e7;
  border: 1px solid #e5e9e7;
  border-radius: 18px;
  overflow: hidden;
}
.sdaf-ward {
  min-width: 0;
  padding: 10px 18px 16px;
  background: #fff;
}
.sdaf-ward a {
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s;
}
.sdaf-ward-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  color: #202428;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}
.sdaf-ward-name span {
  color: #137255;
  font-size: 1.3rem;
  font-weight: 400;
}
.sdaf-ward-name:hover {
  color: #137255;
}
.sdaf-ward-periods {
  display: flex;
  gap: 8px;
}
.sdaf-ward-periods a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f0f6f3;
  color: #137255;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
}
.sdaf-ward-periods a:hover {
  background: #deeee5;
  color: #0c543d;
}
.sdaf-nav--area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 16px 22px;
  border: 1px solid #e5e9e7;
  border-radius: 16px;
  background: #fff;
  margin: 0 0 24px;
}
.sdaf-nav--area .sdaf-nav-heading h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.6;
}
.sdaf-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.sdaf-tabs a,
.sdaf-pages a,
.sdaf-pages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #e5e9e7;
  border-radius: 10px;
  text-decoration: none;
  color: #137255;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}
.sdaf-tabs a[aria-current],
.sdaf-pages [aria-current] {
  background: #137255;
  color: #fff;
  border-color: #137255;
}
.sdaf-tabs a:hover,
.sdaf-pages a:hover {
  background: #e5f3ec;
  color: #0c543d;
}
.sdaf-tabs a[aria-current]:hover {
  background: #0c543d;
  color: #fff;
}
.sdaf-tabs .sdaf-area-link {
  gap: 12px;
  border-color: transparent;
  background: transparent;
}
.sdaf-panel {
  min-width: 0;
  padding: clamp(21px, 3vw, 38px);
  border: 1px solid #e5e9e7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 32px #00000008;
}
.sdaf-detail .sdf-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
} /* 既存の可変幅を明示。1120px制限を廃止。 */
.sdaf-detail .sdf-toc {
  margin-top: 24px;
}
.sdaf-title-part {
  display: inline-block;
}
/* 導入文とタイトル下の説明を、特集本文の幅に合わせる。 */
.sdaf-detail .sdf-lead,
.sdaf-detail .sdaf-intro {
  max-width: none;
  white-space: normal;
}
.sdaf-nav a:focus-visible,
.sdaf-panel a:focus-visible,
.sdaf-pages a:focus-visible,
.sdaf-months a:focus-visible {
  outline: 3px solid #146644;
  outline-offset: 3px;
}
.sdaf-intro {
  font-size: 1.05rem;
  line-height: 1.95;
  max-width: none;
  color: #40574b;
}
.sdaf-range {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #4f6e5d;
}
.sdaf-count {
  display: inline-block;
  background: #e3f0e7;
  color: #165b3e;
  border-radius: 30px;
  padding: 5px 13px;
  font-weight: 800;
}
.sdaf-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin: 24px 0 40px;
}
.sdaf-panel h2 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0 0 12px;
}
.sdaf-panel ul {
  padding-left: 1.4em;
  line-height: 1.8;
}
.sdaf-panel li {
  margin: 12px 0;
}
.sdaf-panel a {
  color: #155e41;
}
.sdaf-panel .sdf-button {
  color: white;
}
.sdaf-section-head {
  margin-top: 36px;
  margin-bottom: 20px;
}
.sdaf-section-head h2 {
  font-size: 1.45rem;
  line-height: 1.6;
  margin: 0 0 8px;
}
.sdaf-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
}
.sdaf-months {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sdaf-months a {
  display: inline-flex;
  padding: 12px 16px;
  border: 1px solid #d5e4db;
  border-radius: 8px;
  color: #175e40;
  background: white;
  min-height: 44px;
  text-decoration: none;
}
.sdaf-archive {
  padding: 18px;
  border-left: 4px solid #b48239;
  background: #fff7e8;
  line-height: 1.8;
  color: #684d22;
  margin: 20px 0;
}
.sdaf-empty {
  padding: 30px 24px;
  border: 1px dashed #b4cabe;
  border-radius: 16px;
  background: #f8fbf9;
}
.sdaf-empty h2 {
  font-size: 1.3rem;
  line-height: 1.6;
}
.sdaf-empty p {
  line-height: 1.9;
}
.sdaf-detail .sdf-event {
  scroll-margin-top: 90px;
}
.sdaf-detail .sdf-description {
  white-space: normal;
}
.sdaf-summary {
  color: #546b5d;
  font-size: 0.9rem;
  line-height: 1.8;
}

@container (min-width:1000px) {
  .sdaf-ward-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .sdaf-nav {
    margin-bottom: 32px;
  }
  .sdaf-nav--wards .sdaf-nav-heading {
    margin-bottom: 16px;
  }
  .sdaf-nav--area {
    padding: 16px;
    gap: 10px;
    margin-bottom: 22px;
  }
  .sdaf-nav--area .sdaf-tabs {
    width: 100%;
  }
  .sdaf-tabs a:not(.sdaf-area-link) {
    flex: 1;
  }
  .sdaf-tabs .sdaf-area-link {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0;
  }
  .sdaf-ward {
    padding: 8px 12px 12px;
  }
  .sdaf-ward-grid {
    border-radius: 14px;
  }
  .sdaf-ward-periods {
    gap: 6px;
  }
  .sdaf-ward-periods a {
    min-height: 44px;
    padding: 6px 4px;
  }
  .sdaf-hub-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .sdaf-panel {
    padding: 21px;
    border-radius: 17px;
  }
  .sdaf-range {
    gap: 8px;
  }
  .sdaf-empty {
    padding: 22px 18px;
  }
}
