/* ブログ（静的HTML）用のヘッダー・フッター。Next のページ（components/site-header.tsx / site-footer.tsx）と同じ見た目 */
.sc-header, .sc-footer { --sc-night: #1d262f; --sc-brand: #3056d3; --sc-brand-dark: #2445b3; font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "PingFang TC", sans-serif; }
.sc-header *, .sc-footer * { box-sizing: border-box; }
.sc-header ul, .sc-footer ul { list-style: none; margin: 0; padding: 0; }
.sc-header a, .sc-footer a { text-decoration: none; }
.sc-wrap { max-width: 80rem; margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.sc-header { position: sticky; top: 0; z-index: 99; background: rgba(29, 38, 47, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sc-header .sc-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.sc-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; font-weight: 700; font-size: 20px; white-space: nowrap; }
.sc-brand img { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.sc-nav { display: flex; align-items: center; gap: 24px; }
.sc-nav > ul { display: flex; gap: 24px; }
.sc-nav > ul a { color: #fff; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.sc-nav > ul a:hover { color: #bfdbfe; }
.sc-lang { position: relative; }
.sc-lang button { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: inherit; font-weight: 500; cursor: pointer; padding: 6px 8px; }
.sc-lang button:hover { color: #bfdbfe; }
.sc-lang ul { display: none; position: absolute; right: 0; top: 100%; margin-top: 8px; width: 160px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15); padding: 4px 0; }
.sc-lang.open ul { display: block; }
.sc-lang ul a { display: block; padding: 8px 16px; font-size: 14px; color: #374151; }
.sc-lang ul a:hover { background: #f9fafb; }
.sc-lang ul a.sc-current { font-weight: 600; color: var(--sc-night); background: #f9fafb; }
.sc-cta { background: var(--sc-brand); color: #fff !important; padding: 10px 20px; border-radius: 12px; font-weight: 600; white-space: nowrap; transition: background 0.2s; }
.sc-cta:hover { background: var(--sc-brand-dark); }
.sc-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.sc-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 1023px) {
  .sc-toggle { display: block; }
  .sc-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 12px 0 8px; }
  .sc-header.open .sc-nav { display: flex; }
  .sc-nav > ul { flex-direction: column; gap: 0; }
  .sc-nav > ul a { display: block; padding: 8px; border-radius: 8px; }
  .sc-lang ul { position: static; display: flex; flex-wrap: wrap; gap: 8px; width: auto; background: none; border: 0; box-shadow: none; margin: 0; padding: 0 8px; }
  .sc-lang button { display: none; }
  .sc-lang ul a { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; color: #d1d5db; padding: 6px 12px; }
  .sc-lang ul a.sc-current { background: #fff; color: var(--sc-night); border-color: #fff; }
  .sc-cta { text-align: center; padding: 12px 20px; }
}

/* 旧テンプレートでヘッダーの下に敷いていた空の帯は不要 */
section.ud-hero:empty { display: none; }

/* フッター */
.sc-footer { background: var(--sc-night); color: #d1d5db; padding: 64px 0 40px; margin-top: 64px; }
.sc-ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.sc-ft-group h4 { color: #fff; font-weight: 600; font-size: 16px; margin: 0 0 16px; }
.sc-ft-group li { margin-bottom: 8px; }
.sc-ft-group a, .sc-ft-bottom a { color: #d1d5db; transition: color 0.2s; }
.sc-ft-group a:hover, .sc-ft-bottom a:hover { color: #fff; }
.sc-ft-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 32px !important; font-size: 14px; }
@media (max-width: 767px) {
  .sc-ft-grid { grid-template-columns: 1fr; }
}

/* ブログ一覧のページ送り */
.sc-pager { display: flex; justify-content: center; gap: 8px; margin: 16px 0 48px; flex-wrap: wrap; }
.sc-pager a, .sc-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid #e5e7eb; color: #1d262f; background: #fff; text-decoration: none; }
.sc-pager a:hover { border-color: #1d262f; }
.sc-pager .sc-on { background: #1d262f; color: #fff; border-color: #1d262f; }
.sc-pager .sc-off { color: #cbd5e1; }
