:root {
  --ink: #182321;
  --muted: #5b6661;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9ddd6;
  --green: #376b4d;
  --green-dark: #214433;
  --clay: #a86445;
  --blue: #315f72;
  --gold: #c89545;
  --shadow: 0 18px 40px rgba(24, 35, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(24, 35, 33, 0.7), rgba(24, 35, 33, 0.28) 48%, rgba(24, 35, 33, 0.04)),
    url("photos/real-exterior-garden-fence.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #e6d4ac;
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: #e6d4ac;
  color: #17211f;
  background: #e6d4ac;
}

.tldr {
  width: min(1120px, calc(100% - 32px));
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tldr h2,
.tldr p {
  margin: 0;
}

.tldr h2 {
  font-size: 1.2rem;
}

.tldr-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tldr-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ee;
}

.tldr strong {
  color: var(--green-dark);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f5ee;
}

.metric b {
  display: block;
  color: var(--clay);
  font-size: 1.15rem;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 78px auto;
}

.section-header {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-dark);
  background: #edf3ec;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.steps ol {
  margin: 0;
  padding-left: 1.4rem;
}

.steps li + li {
  margin-top: 14px;
}

.note {
  padding: 22px;
  border-left: 5px solid var(--gold);
  background: #fff7e6;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.region {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

a.region {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.region:hover {
  border-color: var(--green-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.region-feature {
  background: #f1f7ed;
}

.region b {
  display: block;
}

.region span {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  padding: 42px 0;
  color: #dce6df;
  background: #182321;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
}

.small {
  color: #95a69f;
  font-size: 0.9rem;
}

.credit a {
  color: #dce6df;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 74vh;
  }

  .hero-inner {
    padding: 64px 0 84px;
  }

  .tldr,
  .steps {
    grid-template-columns: 1fr;
  }

  .cards,
  .region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .metric-row,
  .cards,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .region-grid {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .tldr {
    padding: 22px;
  }
}

.city-hero {
  min-height: 62vh;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 31, 27, 0.8), rgba(18, 31, 27, 0.46) 48%, rgba(18, 31, 27, 0.18)),
    url("photos/real-exterior-garden-fence.jpg") center / cover no-repeat;
}

.city-hero .hero-inner {
  padding: 80px 0 72px;
}

.breadcrumb {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--green-dark);
  text-decoration: none;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #9ba49f;
}

.city-tldr {
  margin-top: 0;
  border-top: 4px solid var(--green);
}

.city-tldr ul,
.check-list,
.source-list,
.keyword-list {
  margin: 0;
  padding-left: 1.2rem;
}

.city-tldr li + li,
.check-list li + li,
.source-list li + li,
.keyword-list li + li {
  margin-top: 8px;
}

.toc {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.toc a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
}

.numbered-toc {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.numbered-toc h2 {
  margin: 0 0 16px;
  font-size: 1.24rem;
}

.numbered-toc ol {
  margin: 0;
  padding-left: 1.35rem;
  columns: 2;
  column-gap: 34px;
}

.numbered-toc li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.numbered-toc a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.numbered-toc span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.stat-card {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card strong {
  display: block;
  color: var(--clay);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.stat-card b {
  display: block;
  margin: 8px 0 6px;
  color: var(--green-dark);
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card a {
  color: var(--green-dark);
  font-weight: 700;
}

.source-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-badges {
  width: min(1120px, calc(100% - 32px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-badge {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-badge b,
.area-pattern b,
.contact-card b {
  display: block;
  color: var(--green-dark);
}

.feature-badge span,
.area-pattern span,
.contact-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.split-grid,
.area-pattern-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.split-card,
.area-pattern,
.contact-card,
.warning-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.split-card h3,
.warning-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.split-card p,
.warning-card p {
  margin: 0;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #cdd7ce;
  border-radius: 999px;
  background: #f4f7f2;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.cta-band {
  width: min(1120px, calc(100% - 32px));
  margin: 78px auto;
  padding: 28px;
  border-radius: 8px;
  background: #1f3b31;
  color: #fff;
}

.cta-band h2,
.cta-band p {
  margin: 0;
}

.cta-band p {
  max-width: 780px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
}

.cta-band .section-label {
  color: #d8c28f;
}

.cta-band .hero-actions {
  margin-top: 18px;
}

.warning-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fact {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fact b {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
}

.fact p {
  margin: 0;
  color: var(--muted);
}

.photo-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.photo-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-frame figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.photo-placeholder {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed #b7beb8;
  border-radius: 8px;
  background: #f4f2eb;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.system-grid,
.process-grid,
.material-grid,
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.system-card,
.process-card,
.material-card,
.keyword-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.system-card h3,
.process-card h3,
.material-card h3,
.keyword-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.35;
}

.system-card p,
.process-card p,
.material-card p,
.keyword-card p {
  margin: 0;
  color: var(--muted);
}

.service-detail {
  padding: 0;
}

.service-detail summary {
  position: relative;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 18px 46px 18px 20px;
  color: var(--green-dark);
  font-size: 1.06rem;
  line-height: 1.35;
  list-style: none;
}

.service-detail summary::-webkit-details-marker {
  display: none;
}

.service-detail summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.service-detail[open] summary::after {
  content: "-";
}

.service-detail p {
  padding: 0 20px 20px;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-box b {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 1.08rem;
}

.source-list a,
.official-link {
  color: var(--green-dark);
  font-weight: 700;
}

.date-row {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 78px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.city-note {
  margin-top: 18px;
  padding: 18px;
  border-left: 5px solid var(--green);
  background: #edf3ec;
}

.top-gap {
  margin-top: 18px;
}

.section-gap {
  margin-top: 28px;
}

.bottom-gap {
  margin-bottom: 18px;
}

@media (max-width: 920px) {
  .toc,
  .stat-grid,
  .feature-badges,
  .split-grid,
  .area-pattern-grid,
  .contact-grid,
  .warning-grid,
  .facts,
  .system-grid,
  .process-grid,
  .material-grid,
  .keyword-grid,
  .status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .city-hero {
    min-height: 58vh;
  }

  .city-hero .hero-inner {
    padding: 56px 0 54px;
  }

  .toc,
  .numbered-toc ol,
  .tldr-list,
  .stat-grid,
  .feature-badges,
  .split-grid,
  .area-pattern-grid,
  .contact-grid,
  .warning-grid,
  .facts,
  .example-grid,
  .system-grid,
  .process-grid,
  .material-grid,
  .keyword-grid,
  .status-row {
    grid-template-columns: 1fr;
  }

  .numbered-toc ol {
    columns: 1;
  }
}

/* Toyonaka city page: layout aligned to the referenced regional guide format. */
:root {
  --accent: #2f8d59;
  --accent-dark: #1f5f3f;
  --guide-bg: #f3f7f0;
}

body {
  background: var(--guide-bg);
  overflow-x: hidden;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}

.nav {
  width: min(1160px, calc(100% - 28px));
}

.brand {
  color: var(--accent-dark);
  font-weight: 900;
}

.nav-links {
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.breadcrumb {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 9px 0;
}

.city-hero {
  min-height: auto;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12, 38, 27, 0.86) 0%, rgba(16, 58, 36, 0.62) 38%, rgba(21, 84, 50, 0.18) 68%, rgba(21, 84, 50, 0.02) 100%),
    url("photos/real-exterior-garden-fence.jpg") center / cover no-repeat;
}

.osaka-prefecture .city-hero {
  background:
    linear-gradient(90deg, rgba(12, 38, 27, 0.88) 0%, rgba(16, 58, 36, 0.68) 42%, rgba(21, 84, 50, 0.24) 72%, rgba(21, 84, 50, 0.06) 100%),
    url("photos/real-exterior-garden-fence.jpg") center / cover no-repeat;
}

.city-hero .hero-inner {
  width: min(1160px, calc(100% - 28px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: center;
  padding: 64px 0 72px;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.city-hero h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5.4vw, 4rem);
  line-height: 1.24;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.city-hero h1 span {
  display: block;
}

.city-hero .hero-lead {
  max-width: 780px;
  font-size: 1.1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.city-hero .button {
  border-radius: 4px;
  font-weight: 900;
}

.city-hero .button.primary {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.badge {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(168, 70, 25, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(70, 50, 32, 0.08);
}

.badge b {
  display: block;
  color: var(--accent-dark);
  font-size: 1.02rem;
  line-height: 1.35;
}

.badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.94rem;
}

.quick-list li {
  position: relative;
  padding-left: 24px;
}

.quick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
}

.page-shell {
  width: min(1160px, calc(100% - 28px));
  margin: 28px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  gap: 28px;
  align-items: start;
}

main.page {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.page-aside {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding-right: 2px;
}

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

.side-card h2 {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 1.08rem;
  line-height: 1.45;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.side-list li {
  position: relative;
  padding-left: 17px;
}

.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.side-list a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.side-contact-list b,
.side-contact-list span {
  display: block;
}

.side-contact-list b {
  color: var(--green-dark);
}

.side-contact-list span {
  margin-top: 2px;
  font-size: 0.82rem;
}

.page .section,
.page .numbered-toc,
.page .date-row {
  width: auto;
  margin-right: 0;
  margin-left: 0;
}

.page .section {
  margin-top: 0;
  margin-bottom: 0;
}

.page .section + .section,
.page .numbered-toc + .section,
.page .section + .numbered-toc {
  margin-top: 52px;
}

.page .section-header {
  max-width: none;
  margin-bottom: 22px;
}

.page .section-label,
.numbered-toc .section-label {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.page .section-header h2,
.numbered-toc h2 {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-left: 7px solid var(--accent-dark);
  background: var(--accent);
  color: #fff;
  font-size: 1.44rem;
  line-height: 1.45;
  font-weight: 900;
}

.page .section-header p {
  color: var(--muted);
}

.numbered-toc {
  padding: 20px;
  border-radius: 0;
  background: #f8f8f8;
}

.numbered-toc ol {
  columns: 1;
  line-height: 1.85;
}

.numbered-toc span {
  font-size: 0.9rem;
}

.page .split-card,
.page .area-pattern,
.page .contact-card,
.page .warning-card,
.page .system-card,
.page .process-card,
.page .material-card,
.page .keyword-card,
.page .stat-card,
.page .fact,
.page .status-box,
.page .note,
.page .table-wrap,
.page details,
.page .photo-frame {
  border-radius: 0;
}

.page .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.page .stat-card {
  min-height: 128px;
  padding: 14px;
}

.page .stat-card strong {
  color: var(--accent-dark);
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.page .split-grid,
.page .area-pattern-grid,
.page .contact-grid,
.page .system-grid,
.page .material-grid,
.page .keyword-grid {
  gap: 12px;
}

.page .process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.page .process-card {
  min-height: 148px;
}

.page .process-card h3::before {
  content: "";
}

.page .cta-band {
  width: auto;
  margin: 52px 0 0;
  border-radius: 0;
  background: #2d2d2d;
}

.page .date-row {
  margin-top: 28px;
  margin-bottom: 0;
  border-radius: 0;
}

@media (max-width: 980px) {
  .city-hero .hero-inner,
  .page-shell {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .hero-badges,
  .page .stat-grid,
  .page .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 18px, 372px);
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, max-content);
    align-items: center;
    font-size: 0.78rem;
    white-space: normal;
    overflow-x: visible;
    justify-content: flex-start;
    gap: 8px 11px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .city-nav-links {
    display: none;
  }

  .city-hero {
    padding-inline: 16px;
  }

  .city-hero .hero-inner {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 34px 0;
  }

  .city-hero .hero-copy,
  .city-hero .hero-panel {
    min-width: 0;
    max-width: 100%;
  }

  .city-hero .eyebrow {
    display: block;
    width: 100%;
    max-width: calc(100vw - 32px);
    word-break: break-all;
  }

  .city-hero .eyebrow span,
  .city-hero .hero-lead span {
    display: block;
  }

  .city-hero h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 7vw, 2rem);
    line-height: 1.28;
    word-break: break-all;
  }

  .city-hero .hero-lead {
    font-size: 0.96rem;
    word-break: break-all;
  }

  .hero-badges,
  .page .stat-grid,
  .page .process-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 366px);
    margin-top: 18px;
  }

  main.page {
    padding: 18px 16px 32px;
  }

  .page .section + .section,
  .page .numbered-toc + .section,
  .page .section + .numbered-toc {
    margin-top: 42px;
  }
}

/* UI design system refresh: structure-neutral overrides. */
:root {
  --ink: #17211d;
  --muted: #4f5d55;
  --paper: #f5f7f2;
  --surface: #ffffff;
  --surface-soft: #f0f5ef;
  --surface-warm: #fff8ea;
  --line: #d8e0d6;
  --line-strong: #bdcbbd;
  --green: #2f7a4c;
  --green-dark: #17462e;
  --accent: #2f7a4c;
  --accent-dark: #17462e;
  --clay: #9b6438;
  --blue: #2e6070;
  --gold: #bc8640;
  --guide-bg: #f5f7f2;
  --radius-sm: 6px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 29, 0.08);
  --shadow: 0 14px 34px rgba(23, 33, 29, 0.1);
  --shadow-lg: 0 24px 70px rgba(23, 33, 29, 0.16);
  --content: 1160px;
}

html {
  scroll-padding-top: 88px;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 122, 76, 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfcf8 0%, var(--paper) 28rem);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0f3523;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.button:focus-visible,
.region:focus-visible {
  outline: 3px solid rgba(47, 96, 112, 0.55);
  outline-offset: 3px;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 224, 214, 0.88);
  box-shadow: 0 1px 0 rgba(23, 33, 29, 0.03);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--content), calc(100% - 32px));
  min-height: 68px;
  gap: 22px;
}

.brand {
  color: var(--green-dark);
  font-size: 1.02rem;
  font-weight: 900;
}

.nav-links {
  gap: 10px;
  font-size: 0.9rem;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: #405149;
  font-weight: 800;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--green-dark);
}

.breadcrumb {
  width: min(var(--content), calc(100% - 32px));
  margin-top: 0;
  padding: 12px 0;
  color: #65736c;
}

.breadcrumb a {
  font-weight: 800;
  text-decoration: none;
}

.hero,
.city-hero,
.osaka-prefecture .city-hero {
  min-height: 72vh;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(13, 32, 25, 0.9) 0%, rgba(21, 65, 40, 0.72) 45%, rgba(24, 65, 76, 0.2) 78%, rgba(24, 65, 76, 0.04) 100%),
    url("photos/real-exterior-garden-fence.jpg") center / cover no-repeat;
  color: #fff;
}

.hero-inner,
.city-hero .hero-inner {
  width: min(var(--content), calc(100% - 32px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
}

.hero:not(.city-hero) .hero-inner {
  display: block;
  max-width: min(var(--content), calc(100% - 32px));
}

.eyebrow,
[data-c="eyebrow"] {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.13);
  color: #f5e7bf;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hero h1,
.city-hero h1 {
  max-width: 890px;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-lead,
.city-hero .hero-lead {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1.9;
}

.hero-actions {
  gap: 12px;
  margin-top: 28px;
}

.button,
.city-hero .button {
  min-height: 48px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button.primary,
.city-hero .button.primary {
  border-color: #f2d184;
  color: #17211d;
  background: #f2d184;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.hero-panel h2 {
  color: var(--green-dark);
  font-weight: 900;
}

.quick-list {
  gap: 12px;
}

.quick-list li {
  color: #34463d;
}

.quick-list li::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(188, 134, 64, 0.12);
}

.hero-badges {
  gap: 12px;
}

.badge {
  border: 1px solid rgba(216, 224, 214, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.badge b {
  color: var(--green-dark);
  font-weight: 900;
}

main {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  width: min(var(--content), calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 30px;
  margin-top: 34px;
}

main.page {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section {
  width: min(var(--content), calc(100% - 32px));
  margin: clamp(56px, 7vw, 86px) auto;
}

.page .section,
.page .numbered-toc,
.page .date-row {
  width: auto;
}

.page .section + .section,
.page .numbered-toc + .section,
.page .section + .numbered-toc {
  margin-top: clamp(44px, 6vw, 68px);
}

.section-header {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-label,
.numbered-toc .section-label,
[data-c="eyebrow"] {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.section-header h2,
.page .section-header h2,
.numbered-toc h2 {
  margin: 0 0 12px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 5px solid var(--green);
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-header p,
.page .section-header p {
  max-width: 760px;
  color: var(--muted);
}

.tldr,
.city-tldr,
[data-c="callout"] {
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tldr {
  width: min(var(--content), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 22px;
  margin-top: -52px;
}

.page .tldr {
  width: auto;
  margin: 0 0 34px;
}

.tldr h2 {
  color: var(--green-dark);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.45;
}

.tldr p + p,
.tldr h2 + p {
  margin-top: 10px;
}

.metric-row,
.stat-grid,
[data-c="stat"] {
  gap: 12px;
}

.metric,
.stat-card,
[data-c="stat"] {
  min-height: 142px;
  padding: 18px;
  border: 1px solid #d3dfd3;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 239, 0.78));
  box-shadow: var(--shadow-sm);
}

.metric b,
.stat-card strong,
[data-c="stat"] strong,
[data-c="stat"] b {
  display: block;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.metric span,
.stat-card p,
.stat-card b,
[data-c="stat"] span,
[data-c="stat"] p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.cards,
.split-grid,
.area-pattern-grid,
.contact-grid,
.system-grid,
.process-grid,
.material-grid,
.keyword-grid,
.facts,
.feature-badges {
  gap: 16px;
}

.card,
.split-card,
.area-pattern,
.contact-card,
.system-card,
.process-card,
.material-card,
.keyword-card,
.fact,
.feature-badge,
.status-box,
.side-card,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card,
.split-card,
.area-pattern,
.contact-card,
.system-card,
.process-card,
.material-card,
.keyword-card,
.fact,
.feature-badge,
.status-box {
  padding: 20px;
}

.card h3,
.split-card h3,
.system-card h3,
.process-card h3,
.material-card h3,
.keyword-card h3 {
  color: var(--green-dark);
  font-size: 1.06rem;
  font-weight: 900;
  line-height: 1.45;
}

.card p,
.split-card p,
.system-card p,
.process-card p,
.material-card p,
.keyword-card p,
.fact p,
.area-pattern span,
.contact-card span {
  color: var(--muted);
}

.tag,
.chip {
  border: 1px solid rgba(47, 122, 76, 0.18);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.chip {
  min-height: 36px;
}

.region-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.region {
  min-height: 132px;
  padding: 18px;
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

a.region:hover {
  border-color: rgba(47, 122, 76, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.region-feature {
  background:
    linear-gradient(180deg, #ffffff, #edf5ed);
  border-color: #c6d8c5;
}

.region b {
  color: var(--green-dark);
  font-weight: 900;
}

.region span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.65;
}

.numbered-toc,
[data-c="toc"] {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.numbered-toc ol,
[data-c="toc"] ol {
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: auto;
}

.numbered-toc li,
[data-c="toc"] li {
  counter-increment: toc;
  min-height: 72px;
  position: relative;
  margin: 0;
  padding: 12px 12px 12px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcf8;
}

.numbered-toc li::before,
[data-c="toc"] li::before {
  content: counter(toc);
  position: absolute;
  left: 12px;
  top: 13px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.numbered-toc a,
[data-c="toc"] a {
  color: var(--green-dark);
  font-weight: 900;
}

.numbered-toc span,
[data-c="toc"] span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.table-wrap,
[data-c="cost-table"],
[data-c="subsidy-table"] {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  min-width: 680px;
  font-size: 0.95rem;
}

caption {
  padding: 12px 14px 0;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 14px 16px;
}

thead th {
  color: #fff;
  background: var(--green-dark);
}

tbody th {
  width: 30%;
  color: var(--green-dark);
  background: #edf5ed;
}

tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th {
  background-color: #fafbf8;
}

.note,
.warning-card,
.city-note,
[data-c="callout"] {
  border: 1px solid #ead8af;
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface-warm);
  color: #44351e;
  box-shadow: var(--shadow-sm);
}

.warning-card strong,
.note strong {
  color: #573d18;
}

.faq,
[data-c="faq"] {
  gap: 12px;
}

details {
  overflow: clip;
}

summary,
.service-detail summary {
  min-height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 48px 16px 18px;
  color: var(--green-dark);
  font-weight: 900;
  line-height: 1.5;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.service-detail summary::after,
details summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
}

details[open] summary::after,
.service-detail[open] summary::after {
  content: "-";
}

details p,
.service-detail p {
  padding: 0 18px 18px;
}

.steps,
[data-c="steps"] {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.process-card {
  position: relative;
  padding-top: 22px;
}

.process-card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 4px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.page-aside {
  top: 88px;
  gap: 14px;
}

.side-card {
  padding: 18px;
}

.side-card h2 {
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 900;
}

.side-list {
  color: var(--muted);
}

.side-list li::before {
  background: var(--gold);
}

.source-note,
.small,
.date-row {
  color: #65736c;
}

.date-row {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  margin-top: 80px;
  color: #e7eee7;
  background:
    linear-gradient(135deg, #17211d 0%, #163e2a 100%);
}

.footer-inner {
  width: min(var(--content), calc(100% - 32px));
}

.footer-inner .small,
.site-footer .small {
  color: rgba(231, 238, 231, 0.78);
}

.official-link,
.source-list a {
  color: var(--green-dark);
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .city-hero .hero-inner,
  .page-shell,
  .steps {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .numbered-toc ol,
  [data-c="toc"] ol {
    grid-template-columns: 1fr;
  }

  .tldr {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 72px;
  }

  .nav {
    width: min(100% - 24px, var(--content));
    min-height: 0;
    padding: 12px 0;
  }

  .nav-links {
    display: none;
  }

  .breadcrumb,
  main,
  .section,
  .page-shell,
  .tldr,
  .hero-inner,
  .city-hero .hero-inner {
    width: min(100% - 24px, var(--content));
  }

  .hero,
  .city-hero {
    min-height: auto;
    padding: 0;
  }

  .hero-inner,
  .city-hero .hero-inner {
    min-height: auto;
    padding: 44px 0;
  }

  .hero h1,
  .city-hero h1 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
    line-height: 1.24;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-lead,
  .city-hero .hero-lead {
    font-size: 0.98rem;
    word-break: normal;
  }

  .eyebrow {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    word-break: normal;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .tldr,
  .numbered-toc,
  .steps,
  .side-card {
    padding: 18px;
  }

  .cards,
  .region-grid,
  .split-grid,
  .area-pattern-grid,
  .contact-grid,
  .system-grid,
  .process-grid,
  .material-grid,
  .keyword-grid,
  .facts,
  .feature-badges,
  .stat-grid,
  .metric-row,
  .status-row {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .page .section-header h2,
  .numbered-toc h2 {
    font-size: clamp(1.28rem, 6vw, 1.62rem);
  }

  .numbered-toc li,
  [data-c="toc"] li {
    min-height: 0;
  }

  table {
    min-width: 620px;
  }
}
