/* ============================================================
   sagyosho テーマ style.css — 常盤野あさなぎ工房
   - 生成りのオフホワイト地×深い緑×こげ茶の文字×山吹の差し色1色。
     「小さな工房のブランドサイト」の佇まい（docs/site-brief.md が正）。
   - 青紫系（インディゴ/バイオレット）は不使用。
   - 和文は BIZ UDPGothic（UDゴシック）1ファミリーのみ。丸ゴシック・明朝は不使用。
   - 本文 17px・行間 1.9 を最初から取る（文字サイズ変更等のウィジェットは作らない）。
   - 動きはホバーの色変化までに留める（スクロール連動・パララックスなし）。
   - Markdown 変換器の出力クラス（toc / footnotes / マーカー / box-button /
     language-*）は CMS 既定機能として装飾を残す。
   ============================================================ */

/* ---- テーマ変数 ------------------------------------------------ */
:root {
  /* 地・文字（生成りのオフホワイト×緑みの濃いこげ茶。茶は文字色に留め、面に使わない） */
  --color-bg: #f8f5ed;
  --color-surface: #ffffff;       /* カード・掲示枠・フォームなどの白面 */
  --color-bg-tint: #eef0e1;       /* 淡い緑がかった面（フッター・表ヘッダ・目次） */
  --color-text: #2e2a22;
  --color-muted: #6e6a5c;
  --color-border: #ddd6c3;

  /* 主色: 苔に寄せた深い緑。※ 明るい若葉側に振らない（放課後等デイ案との分離線） */
  --color-green: #4e7141;
  --color-green-dark: #3b5731;
  --color-green-soft: #e4ead8;

  /* 差し色: 山吹の1色だけ。※ 橙側に振らない（同上） */
  --color-accent: #c0862a;
  --color-accent-tint: #f6ecd6;   /* 山吹の淡い面（フォーム注記など） */

  /* 強調系（Markdown マーカー用。既定機能として残す） */
  --color-strong: #a84b2f;
  --color-mark: #f0dfae;

  /* コード（既定機能として残す） */
  --color-code-bg: #efece0;
  --color-pre-bg: #2f332a;
  --color-pre-text: #edeadf;

  /* レイアウト・フォント */
  --width-site: 1040px;           /* ヘッダー・フッターの最大幅 */
  --width-content: 780px;         /* 本文カラムの最大幅（1行が長くなりすぎない幅） */
  --width-sidebar: 260px;
  --font-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
}

/* ---- リセット最小限 -------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;                 /* 本文 17〜18px 相当（モバイルでも縮めない） */
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--color-green); transition: color 0.15s; }
a:hover { color: var(--color-green-dark); }

/* キーボード操作時のスキップリンク（通常は不可視） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-green-dark);
  color: #fff;
  padding: 0.5em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- ヘッダー --------------------------------------------------- */
.site-header {
  border-top: 3px solid var(--color-green);   /* 主色の細い帯 */
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-header-inner {
  max-width: var(--width-site);
  margin: 0 auto;
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.75rem;
}

.site-title { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.03em; }
.site-title a { color: var(--color-text); text-decoration: none; }
.site-title a:hover { color: var(--color-green); }

.header-menu { margin-left: auto; }
.header-menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-menu-item a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2em 0;
}
.header-menu-item a:hover {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* 検索フォーム（ヘッダー・検索ページ共用） */
.search-form { display: flex; margin-left: auto; }
.search-form input[type="search"] {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35em 0.75em;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  width: 10em;
  background: var(--color-surface);
  color: var(--color-text);
}
.search-form input[type="search"]:focus {
  outline: 2px solid var(--color-green);
  outline-offset: -1px;
}
.search-form button {
  font: inherit;
  font-size: 0.88rem;
  padding: 0.35em 1em;
  border: 1px solid var(--color-green);
  border-radius: 0 8px 8px 0;
  background: var(--color-green);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.search-form button:hover { background: var(--color-green-dark); border-color: var(--color-green-dark); }

/* 検索ページ内の大きめフォーム */
.search-form-page { margin: 0 0 2rem; }
.search-form-page input[type="search"] { width: 100%; max-width: 24em; font-size: 1rem; }
.search-form-page button { font-size: 1rem; }

/* ---- 本体レイアウト（メイン＋サイドバー） ----------------------- */
.site-body {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 2.25rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
.site-body.has-sidebar { grid-template-columns: minmax(0, 1fr) var(--width-sidebar); }

.site-main { min-width: 0; }

/* ---- サイドバー（メニューウィジェットのみ） ---------------------- */
.sidebar-menu-title {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-menu-list { margin: 0; padding: 0; list-style: none; }
.sidebar-menu-item a {
  display: block;
  padding: 0.4em 0.2em;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.sidebar-menu-item a:hover { color: var(--color-green); background: var(--color-bg-tint); }

/* ---- パンくずリスト --------------------------------------------- */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 0.5em;
  color: var(--color-border);
}
.breadcrumb-link { color: var(--color-muted); text-decoration: none; }
.breadcrumb-link:hover { color: var(--color-green); text-decoration: underline; }
.breadcrumb-current { color: var(--color-text); }

/* ---- ページ見出し（一覧・検索・404 共通） ------------------------ */
.page-header { margin: 0 0 2rem; }
.page-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-green);
}
.page-title { margin: 0.1em 0 0.2em; font-size: 1.6rem; line-height: 1.5; }
.page-meta { margin: 0; font-size: 0.9rem; color: var(--color-muted); }

/* ---- トップページ ----------------------------------------------- */
/* キャッチコピー（h1）とリード。h1 は home.md の title＝キャッチコピー */
.home-hero { margin: 0.5rem 0 1.75rem; }
.home-catch {
  margin: 0 0 0.45em;
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.home-lead { margin: 0; font-size: 1.02rem; color: var(--color-muted); }

/* ヒーロー画像（本文冒頭の <p><img></p>）を大きく */
.entry-home .entry-body > p:first-child { margin: 0 0 2.5rem; }
.entry-home .entry-body > p:first-child img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

/* お知らせ表: 日付列を控えめに */
.entry-home .entry-body td:first-child { color: var(--color-muted); }

/* 3つの入口カード（index.php が「工房のご案内」の h3 ブロックを .door-card で包む） */
.door-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 1.6rem 0 1rem;
}
.door-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1.2rem;
  transition: border-color 0.15s;
}
.door-card:hover { border-color: var(--color-green); }
.door-card h3 {
  margin: 0 0 0.7em;
  padding: 0;
  border: none;
  font-size: 1.06rem;
  line-height: 1.6;
}
.door-card h3::before { content: none; }        /* 全体の h3 マーカーはカード内では出さない */
.door-card p { margin: 0 0 0.8em; font-size: 0.93rem; }
.door-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.door-card p:last-child {
  margin: auto 0 0;                             /* リンクをカード下端にそろえる */
  padding-top: 0.3em;
}
.door-card p:last-child a {
  font-weight: 700;
  text-decoration: none;
}
.door-card p:last-child a::after { content: " →"; }
.door-card p:last-child a:hover { text-decoration: underline; }

/* HOME_TYPE=posts フォールバック時の見出し（通常は使われない） */
.hero { margin: 0 0 2.5rem; }
.hero-title { margin: 0 0 0.3em; font-size: 1.9rem; line-height: 1.4; }
.hero-description { margin: 0; color: var(--color-muted); }
.section-title {
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--color-border);
}
.more-link { margin-top: 1.5rem; text-align: right; }
.more-link a { text-decoration: none; font-weight: 600; }
.more-link a:hover { text-decoration: underline; }

/* ---- 記事一覧（カード。記事は使わないが既定機能として残す） ------- */
.entry-list { display: grid; gap: 1.25rem; }
.entry-card {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  background: var(--color-surface);
  transition: border-color 0.15s;
}
.entry-card:hover { border-color: var(--color-green); }
.entry-card.has-thumbnail {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}
.entry-card-thumbnail { flex-shrink: 0; }
.entry-card-thumbnail img {
  display: block;
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-bg-tint);
}
.entry-card-main { min-width: 0; }
.entry-card-title { margin: 0 0 0.35em; font-size: 1.15rem; line-height: 1.5; }
.entry-card-title a { color: var(--color-text); text-decoration: none; }
.entry-card-title a:hover { color: var(--color-green); }
.entry-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.entry-card-description {
  margin: 0.6em 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}
.entry-list-empty { color: var(--color-muted); }

/* カテゴリリンク・タグ（既定機能として残す） */
.entry-category {
  color: var(--color-green-dark);
  text-decoration: none;
  font-size: 0.85rem;
  background: var(--color-green-soft);
  padding: 0.05em 0.7em;
  border-radius: 999px;
}
.entry-category:hover { background: var(--color-green); color: #fff; }
.category-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.1em 0.85em;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  background: var(--color-surface);
}
.tag:hover { color: var(--color-green); border-color: var(--color-green); }

/* ---- 固定ページ・記事ページ -------------------------------------- */
.entry-header { margin: 0 0 1.75rem; }
.entry-title { margin: 0 0 0.4em; font-size: 1.7rem; line-height: 1.5; letter-spacing: 0.03em; }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.entry-footer { margin-top: 2.5rem; }
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- 本文のタイポグラフィ（Markdown 出力） ------------------------
   :where() でゼロ specificity にしてある（クラス付き装飾が確実に勝つため）。
   素の「.entry-body h2」に戻さないこと。 */
.entry-body { overflow-wrap: break-word; }

/* h2: 罫線＋山吹の短い下線。装飾はこの2本の線まで */
:where(.entry-body) h2 {
  position: relative;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 2.6em 0 1em;
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--color-border);
}
:where(.entry-body) h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 2.6em;
  height: 3px;
  border-radius: 2px;
  background: var(--color-accent);   /* 差し色（山吹）はここと .form-note のみ */
}

/* h3: 深緑の小さな角マーカー。連番・漢数字の装飾は付けない */
:where(.entry-body) h3 {
  font-size: 1.13rem;
  line-height: 1.6;
  margin: 2.2em 0 0.7em;
}
:where(.entry-body) h3::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.55em;
  border-radius: 2px;
  background: var(--color-green);
  vertical-align: 0.12em;
}
:where(.entry-body) h4 { font-size: 1.02rem; margin: 1.8em 0 0.7em; }

:where(.entry-body) p { margin: 0 0 1.3em; }
:where(.entry-body) ul,
:where(.entry-body) ol { margin: 0 0 1.3em; padding-left: 1.6em; }
:where(.entry-body) li { margin: 0.3em 0; }

/* 掲示枠（important の blockquote）: 白面の罫線ボックス */
:where(.entry-body) blockquote {
  margin: 1.4em 0;
  padding: 1em 1.4em;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: 0 10px 10px 0;
  background: var(--color-surface);
  color: var(--color-text);
}
:where(.entry-body) blockquote p { margin: 0 0 0.6em; }
:where(.entry-body) blockquote p:last-child { margin-bottom: 0; }

:where(.entry-body) hr {
  margin: 2.5em 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

:where(.entry-body) img { border-radius: 10px; }

/* 見出しへのアンカージャンプ時の余白 */
:where(.entry-body) h2,
:where(.entry-body) h3,
:where(.entry-body) h4 { scroll-margin-top: 1rem; }

/* コード（既定機能として残す） */
:where(.entry-body) code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-code-bg);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}
:where(.entry-body) pre {
  margin: 1.5em 0;
  padding: 1em 1.25em;
  background: var(--color-pre-bg);
  color: var(--color-pre-text);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.6;
}
:where(.entry-body) pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: inherit;
}

/* 表（一日の流れ・自主製品・事業所概要など。2〜3列前提で全幅にする） */
:where(.entry-body) table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
:where(.entry-body) th,
:where(.entry-body) td {
  padding: 0.65em 0.9em;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;       /* 長いメールアドレスなどを折り返す */
}
:where(.entry-body) th {
  background: var(--color-bg-tint);
  color: var(--color-green-dark);
  font-weight: 700;
  border-bottom: 2px solid var(--color-green);
}
/* 2列の表だけ、項目列（時間・日付・項目名）を折り返さない */
:where(.entry-body) td:first-child:nth-last-child(2) { white-space: nowrap; }

/* ---- 目次（[[toc]] の出力。既定機能として残す） ------------------- */
.toc {
  margin: 1.75em 0;
  padding: 1rem 1.4rem;
  background: var(--color-bg-tint);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.toc h2 {
  margin: 0 0 0.5em;
  padding: 0;
  border: none;
  font-size: 1rem;
}
.toc h2::after { content: none; }
.toc-list { margin: 0; padding: 0; list-style: none; }
.toc-item { margin: 0.3em 0; }
.toc-item-h3.toc-indent { padding-left: 1.4em; font-size: 0.93em; }
.toc-link { text-decoration: none; }
.toc-link:hover { text-decoration: underline; }

/* ---- 脚注（既定機能として残す） ----------------------------------- */
.footnotes-sep {
  margin: 3em 0 0;
  border: none;
  border-top: 1px dashed var(--color-border);
}
.footnotes { font-size: 0.9rem; color: var(--color-muted); }
.footnotes-title {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 1.2em 0 0.6em;
  padding: 0;
  border: none;
}
.footnotes-title::after { content: none; }
.footnotes-list { margin: 0; padding-left: 1.6em; }
.footnote-item { margin: 0.4em 0; }
.footnote-ref a { text-decoration: none; font-weight: 600; }
.footnote-backref { text-decoration: none; margin-left: 0.35em; }

/* ---- マーカー（::名前::文:: の出力。既定機能として残す） ----------- */
.emphasis { font-weight: 700; color: var(--color-strong); }
.underline {
  text-decoration: underline;
  text-decoration-color: var(--color-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.highlight { background: linear-gradient(transparent 55%, var(--color-mark) 55%); }
.soft-accent { color: var(--color-green-dark); font-weight: 600; }
.note {
  font-size: 0.88em;
  color: var(--color-muted);
  background: var(--color-bg-tint);
  padding: 0.1em 0.5em;
  border-radius: 4px;
}
.box {
  display: inline-block;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.05em 0.6em;
  border-radius: 6px;
}

/* ---- ボタン風リンク（{% button %} の出力。既定機能として残す） ----- */
.box-button { margin: 1.75em 0; text-align: center; }
.box-button a {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  padding: 0.7em 2.2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.15s;
}
.box-button a:hover { background: var(--color-green-dark); }

/* ---- 問い合わせフォーム（guide の見た目のみのフォーム） ----------- */
.contact-form {
  margin: 1.75em 0;
  padding: 1.5em 1.6em;
  max-width: 640px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.contact-form p { margin: 0 0 1.1em; }
.contact-form p:last-child { margin-bottom: 0; }
.contact-form label { font-weight: 700; font-size: 0.93rem; }
.contact-form input[type="text"],
.contact-form select,
.contact-form textarea {
  font: inherit;
  line-height: 1.6;
  width: 100%;
  margin-top: 0.3em;
  padding: 0.55em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-green);
  outline-offset: -1px;
}
.contact-form button {
  font: inherit;
  font-weight: 700;
  padding: 0.65em 2.6em;
  border: none;
  border-radius: 999px;
  background: var(--color-green);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-form button:hover { background: var(--color-green-dark); }

/* サンプルのため送信されない旨の注記（差し色の淡い面で目立たせる） */
.form-note {
  font-size: 0.9rem;
  padding: 0.5em 0.9em;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  background: var(--color-accent-tint);
}

/* ---- ページャ（既定機能として残す） ------------------------------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 2.75rem 0 0;
}
.pager-prev,
.pager-next {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.45em 1.2em;
  text-decoration: none;
  font-size: 0.95rem;
}
.pager-prev:hover,
.pager-next:hover { border-color: var(--color-green); }
.pager-info { font-size: 0.88rem; color: var(--color-muted); }

/* ---- 検索結果（search.js が描画） -------------------------------- */
.search-hit {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.search-hit-title { margin: 0 0 0.3em; font-size: 1.1rem; line-height: 1.5; }
.search-hit-title a { text-decoration: none; }
.search-hit-title a:hover { text-decoration: underline; }
.search-snippet { margin: 0; font-size: 0.92rem; color: var(--color-muted); }
.search-status { color: var(--color-muted); }

mark {
  background: var(--color-mark);
  color: inherit;
  padding: 0 0.1em;
}

.search-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.75rem 0 0;
}
.search-pager button {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.45em 1.2em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-green-dark);
  cursor: pointer;
}
.search-pager button:hover { border-color: var(--color-green); }
.search-pager .page-info { font-size: 0.88rem; color: var(--color-muted); }

/* ---- 404 --------------------------------------------------------- */
.notfound { text-align: center; padding: 3rem 0; }
.notfound-code {
  margin: 0;
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
}

/* ---- ライトボックス（assets/lightbox.js が生成） ------------------ */
.lightbox-target { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(37, 41, 30, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ---- フッター（4ブロック: 事業所情報/サイト内リンク/架空注記/コピーライト） */
.site-footer {
  border-top: 3px solid var(--color-green);
  background: var(--color-bg-tint);
}
.site-footer-inner {
  max-width: var(--width-site);
  margin: 0 auto;
  padding: 2.25rem 1rem 1.6rem;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 4rem;
  margin: 0 0 1.75rem;
}
.footer-name { margin: 0 0 0.5em; font-size: 1.02rem; font-weight: 700; }
.footer-lines { margin: 0; font-size: 0.92rem; line-height: 2; overflow-wrap: anywhere; }
.footer-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-menu-item a {
  display: block;
  padding: 0.16em 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-menu-item a:hover { color: var(--color-green); text-decoration: underline; }
.footer-disclaimer {
  margin: 0 0 1.4rem;
  padding: 0.9em 1.2em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-disclaimer p { margin: 0 0 0.45em; }
.footer-disclaimer p:last-child { margin-bottom: 0; }
.site-copyright {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---- レスポンシブ（スマートフォン幅 375px を優先） ---------------- */
@media (max-width: 900px) {
  .site-body.has-sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  /* 入口カードは縦積み */
  .door-cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* 本文 17px・行間 1.9 はモバイルでも維持する */
  .site-header-inner { padding: 0.8rem 1rem; gap: 0.5rem 1rem; }
  .header-menu { margin-left: 0; width: 100%; }
  .header-menu-list { gap: 0.2rem 1.1rem; }
  .header-menu-item a { font-size: 0.9rem; }
  .search-form { width: 100%; }
  .search-form input[type="search"] { width: 100%; }
  .site-body { padding: 1.75rem 1rem 3rem; }
  .home-catch { font-size: 1.5rem; }
  .home-lead { font-size: 0.98rem; }
  .entry-title { font-size: 1.4rem; }
  .page-title { font-size: 1.35rem; }
  :where(.entry-body) h2 { font-size: 1.25rem; }
  :where(.entry-body) h3 { font-size: 1.08rem; }
  :where(.entry-body) th,
  :where(.entry-body) td { padding: 0.55em 0.6em; }
  .entry-card { padding: 0.9rem 1rem; }
  .entry-card.has-thumbnail { gap: 0.8rem; }
  .entry-card-thumbnail img { width: 92px; height: 72px; }
  .contact-form { padding: 1.2em 1.1em; }
  .footer-columns { gap: 1.5rem 2rem; }
  :where(.entry-body) pre { padding: 0.8em 1em; }
}
