:root {
  --bg: #fff8ed;
  --bg-soft: #fffdf8;
  --surface: #ffffff;
  --text: #2f261f;
  --muted: #67584b;
  --accent: #e56f1f;
  --accent-dark: #9b5a2a;
  --accent-soft: #ffead4;
  --border: #e7c9a3;
  --footer-bg: #3a2a1f;
  --footer-text: #fffaf2;
  --footer-muted: #f8ead8;
  --radius: 18px;
  --button-shadow: 0 3px 0 #8a4d25, 0 5px 12px rgba(92, 48, 19, 0.14);
  --soft-shadow: 0 8px 22px rgba(82, 55, 28, 0.14);
}

/* ページ全体の基本設定 */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: inherit;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: calc(100% - 32px);
  max-width: 960px;
  margin: 0 auto;
}

/* ヘッダー */
.site-header {
  padding: 34px 0 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 224, 191, 0.82)),
    var(--bg-soft);
  border-bottom: 4px solid var(--accent);
}

.site-header .container {
  text-align: center;
}

.site-label {
  --site-label-font-size: clamp(0.78rem, 3.2vw, 1rem);

  display: inline-block;
  max-width: 94%;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--site-label-font-size);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
}

h1 {
  font-size: 2.4rem;
  letter-spacing: 0.04em;
}

.site-name {
  margin: 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ヒーロー */
.lead,
.hero-lead {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.95;
}

.hero-image {
  margin-top: 22px;
  overflow: hidden;
  border: 3px solid rgba(231, 201, 163, 0.82);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  opacity: 0.92;
}

/* セクション */
.section {
  padding: 34px 0;
}

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

.section-text {
  margin: 0 0 14px;
}

.page-title {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 8px solid var(--accent);
  font-size: 2rem;
  line-height: 1.25;
}

.page-lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.9;
}

/* セクション見出し */
.section-title,
h2 {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 8px solid var(--accent);
  font-size: 1.6rem;
}

/* カード */
.card,
.notice-card,
.about .container {
  padding: 20px;
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius);
}

.notice-card {
  margin-bottom: 22px;
}

main p:not(.notice-date):not(.notice-key-info):not(.news-date):not(.news-key-info p):not(.image-caption):not(.news-ended-badge) {
  text-align: justify;
  text-justify: inter-character;
}

.important-card,
.news-card {
  margin-bottom: 18px;
}

.important-card h3,
.news-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.card-title,
.notice-date {
  color: var(--accent-dark);
  font-size: 1rem;
  font-weight: 800;
}

.news-date {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.notice-key-info {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}

.notice-key-info span,
.notice-key-info p {
  margin: 0;
}

.news-key-info {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff7eb;
  border-radius: 12px;
}

.news-key-info-section {
  display: grid;
  gap: 0.3rem;
}

.news-key-info p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.65;
  text-align: left;
}

.news-ended-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--muted);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
}

.news-card.is-ended h3 {
  margin-bottom: 0;
}

.news-ended-details {
  margin-top: 1rem;
}

.news-ended-summary {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 3px solid var(--accent-dark);
  border-radius: 16px;
  background: linear-gradient(var(--surface), var(--accent-soft));
  color: var(--text);
  box-shadow: var(--button-shadow);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.news-ended-summary::-webkit-details-marker {
  display: none;
}

.news-ended-summary::marker {
  content: "";
}

.news-ended-summary:focus-visible {
  outline: 4px solid #4a2d12;
  outline-offset: 4px;
}

.news-ended-summary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8a4d25, 0 3px 8px rgba(92, 48, 19, 0.12);
}

.news-ended-content {
  margin-top: 1rem;
}

.notice-date a,
.text-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 800;
}

/* 大きなボタン */
.large-button,
.primary-button,
.button-grid a {
  display: block;
  min-height: 64px;
  padding: 17px 18px;
  border: 3px solid var(--accent-dark);
  border-radius: 16px;
  background: linear-gradient(#f58b3a, #dc6a1f);
  color: #ffffff;
  box-shadow: var(--button-shadow);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.primary-button {
  font-size: 1.35rem;
}

.large-button:active,
.primary-button:active,
.button-grid a:active,
.link-button:active,
.back-to-top:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8a4d25, 0 3px 8px rgba(92, 48, 19, 0.12);
}

.large-button:focus-visible,
.primary-button:focus-visible,
.button-grid a:focus-visible,
.link-button:focus-visible,
.back-to-top:focus-visible,
.header-link:focus-visible {
  outline: 4px solid #4a2d12;
  outline-offset: 4px;
}

/* 通常のリンクボタン */
.button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  margin: 16px auto 0;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  object-fit: contain;
}

.image-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.disaster-diagram {
  max-width: 680px;
  margin: 0 auto 18px;
}

.disaster-diagram img {
  display: block;
  width: 100%;
  max-height: 420px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  object-fit: contain;
}

@media (max-width: 719px) {
  .news-image {
    max-height: 72vh;
  }

  .news-key-info {
    padding: 10px 10px;
  }

  .notice-key-info {
    font-size: 1rem;
    font-weight: 700;
  }
}

.document-button {
  margin: 16px 0;
}

.garbage-calendar-link {
  display: block;
  margin-top: 1rem;
}

.garbage-calendar-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.garbage-calendar-section .document-button {
  margin-top: 1rem;
  margin-bottom: 0;
}

.document-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.guidance-list {
  margin: 0;
  padding-left: 1.3em;
}

.guidance-list li {
  margin-bottom: 12px;
}

.guidance-list li:last-child {
  margin-bottom: 0;
}

.disaster-stock-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.stock-card h3,
.stock-summary-card h3 {
  margin: 14px 0 10px;
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.stock-summary-card h3 {
  margin-top: 0;
}

.stock-image {
  display: block;
  width: 100%;
  height: 180px;
  padding: 8px;
  border-radius: 14px;
  background: var(--bg-soft);
  object-fit: contain;
}

.stock-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.stock-summary-card {
  margin-top: 18px;
  background: #fff7eb;
}

.schedule-card-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.schedule-card {
  padding: 16px;
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: 16px;
}

.schedule-card h3 {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.garbage-date-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.garbage-date-list div {
  padding: 0px;
  background: var(--surface);
  border-radius: 14px;
}

.garbage-date-list dt {
  color: var(--muted);
  font-weight: 800;
}

.garbage-type-main {
  display: inline-block;
  margin-right: 3px;
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.garbage-type-sub {
  font-size: 1rem;
  font-weight: 800;
}

.garbage-date-list dd {
  margin: 4px 0 0;
  color: var(--accent-dark);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.25;
}

.date-deadline {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.schedule-note,
.schedule-card-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.schedule-card-note {
  padding: 12px 14px;
  background: #fff7eb;
  border-radius: 12px;
  font-weight: 700;
}

.pdf-card {
  margin-top: 18px;
}

.pdf-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
}

.pdf-link-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.pdf-link-list .large-button {
  min-height: 58px;
  padding: 14px 16px;
  font-size: 1.08rem;
}

.request-card {
  line-height: 1.85;
}

.request-lead {
  margin-bottom: 20px;
}

.request-card .guidance-list {
  padding-left: 1.15em;
}

.request-card .guidance-list li {
  margin-bottom: 14px;
}

.request-card strong {
  color: var(--accent-dark);
  font-weight: 900;
}

.request-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff7eb;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 700;
}

.line-guide {
  padding-top: 0;
}

.line-guide-card {
  background: var(--bg-soft);
}

.line-guide-button {
  max-width: 320px;
  min-height: 56px;
  margin-top: 8px;
  padding: 14px 18px;
  font-size: 1.08rem;
}

.link-button,
.button-grid a {
  background: linear-gradient(var(--surface), var(--accent-soft));
  color: var(--text);
}

/* 注意書き */
.note {
  padding: 16px 18px;
  background: #fff3df;
  border: 2px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ページ上部へ戻る固定ボタン */
.scroll-top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid var(--accent-dark);
  border-radius: 50%;
  background: linear-gradient(var(--surface), var(--accent-soft));
  color: var(--accent-dark);
  box-shadow: var(--button-shadow);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.scroll-top-button.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.scroll-top-button:focus-visible {
  outline: 4px solid rgba(229, 111, 31, 0.35);
  outline-offset: 4px;
}

.page-back-button {
  margin-top: 22px;
}

/* フッター */
.site-footer {
  padding: 28px 0;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer p {
  margin: 0;
}

.footer-note {
  margin-top: 8px;
  color: var(--footer-muted);
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 4.4rem;
  }

  .site-name {
    font-size: 2.8rem;
  }

  .section-title,
  h2 {
    font-size: 2.2rem;
  }

  .page-title {
    font-size: 2.8rem;
  }

  .site-header {
    padding: 54px 0 46px;
  }

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

  .hero-image img {
    height: 260px;
  }

  .section {
    padding: 48px 0;
  }

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

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

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

  .pdf-link-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
