/* da-leca blog — 共通レイアウト用 CSS（ヘッダー・フッター・ナビ・トップ・一覧）。
   記事本文用は article.css を別途読み込み。 */

:root {
  --color-bg: #fafafa;
  --color-text: #222;
  --color-muted: #666;
  --color-border: #e0e0e0;
  --color-accent: #2a6df4;
  --color-cat: #8e44ad;
  --max-width: 760px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header/nav/footer (chrome) は shared/site-chrome/chrome.css を build 時に append（assets-deploy-construct） */

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- top ---- */
.hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero .lead { color: var(--color-muted); margin-top: 0; }

.article-list { list-style: none; padding: 0; margin: 0; }
.article-card { margin-bottom: 16px; padding: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: 8px; }
.article-card a { color: inherit; display: block; }
.article-card .cat { display: inline-block; color: var(--color-cat); font-size: 13px; font-weight: 600; margin-right: 8px; }
.article-card .title { display: block; font-size: 18px; font-weight: 600; margin: 4px 0; }
.article-card .date { color: var(--color-muted); font-size: 13px; }
.article-card .excerpt { display: block; color: var(--color-muted); margin-top: 8px; font-size: 14px; }

.category-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.category-list a {
  display: inline-block;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--color-text);
}

.more { margin-top: 24px; }

/* ---- archive / category list ---- */
.archive-list { list-style: none; padding: 0; }
.archive-list li { margin-bottom: 8px; padding: 12px 0; border-bottom: 1px dashed var(--color-border); }
.archive-list a { color: inherit; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.archive-list .date { color: var(--color-muted); font-size: 13px; min-width: 100px; }
.archive-list .cat { color: var(--color-cat); font-size: 13px; font-weight: 600; }
.archive-list .title { font-weight: 500; flex: 1 1 auto; }

.breadcrumb { color: var(--color-muted); font-size: 13px; margin-bottom: 8px; }

/* ---- 記事ページ共通要素（バッジ、メタ、添付、前後リンク） ---- */
.category-badge { margin-top: 0; }
.category-badge a { color: var(--color-cat); font-weight: 600; }
.article-meta { color: var(--color-muted); font-size: 14px; }
.attachments { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--color-border); font-size: 14px; }
.post-nav .prev { margin-right: auto; }
.post-nav .next { margin-left: auto; text-align: right; }
/* ============================================================
   da-leca サイト共通 chrome（header / nav / footer）
   単一正本: shared/site-chrome/chrome.css
   全ページ（build.mjs / static-pages / blog Lambda）の style.css に
   ビルド時 append される。var() 非依存・自己完結（blog 現行値を直書き）。
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}
.site-header .brand {
  font-weight: 700;
  font-size: 18px;
  color: #222;
  text-decoration: none;
}
.site-header .brand:hover {
  opacity: 0.7;
}
.site-nav a {
  margin-left: 16px;
  color: #222;
  text-decoration: none;
}
.site-nav a:hover {
  opacity: 0.7;
}
.site-footer {
  padding: 24px;
  text-align: center;
  color: #666;
  border-top: 1px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
}
.site-footer a {
  color: inherit;
}
