/* =====================================================
   styles.css
   共通ベーススタイル（夕上村 公式サイト）
   ===================================================== */

/* ---------- CSS変数 ---------- */
:root {
  /* 基本配色（自治体公式系） */
  --bg: #ffffff;
  --surface: #f9fafb;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* レイアウト */
  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- リセット / ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);

  /* 固定ヘッダー・フッター分の余白 */
  padding-top: 96px;
  padding-bottom: 72px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
}

ul,
ol {
  padding-left: 1.25em;
}

/* ---------- レイアウト ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(14px, 2vw, 22px);
}

.layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- カード ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 10px;
  font-size: 18px;
}

/* ---------- ヒーロー ---------- */
.hero-area {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.hero-copy {
  padding-right: 8px;
}

.kicker {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 26px;
}

.hero-lead {
  margin: 0 0 8px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-figure {
  margin: 0;
}

.hero-figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- グリッド ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* ---------- リスト ---------- */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.list li:last-child {
  border-bottom: none;
}

.list a {
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.list a:hover {
  border-bottom-color: currentColor;
}

.list-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.list .subtle {
  opacity: 0.75;
}

/* ---------- 文章 ---------- */
.prose {
  margin: 0;
}

/* 注意・補足 */
.note {
  margin-top: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

/* ---------- サイトマップ導線 ---------- */
.sitemap-link {
  font-size: 14px;
}

.sitemap-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.sitemap-desc {
  margin: 0 0 8px;
  color: var(--muted);
}

.sitemap-anchor {
  text-decoration: none;
  border-bottom: 1px dotted var(--border);
}

.sitemap-anchor:hover {
  border-bottom-color: currentColor;
}

/* ---------- ページ番号（装飾用） ---------- */
.page-number {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero-area {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 104px;
    padding-bottom: 80px;
  }

  .hero-title {
    font-size: 22px;
  }
}
