/* base.css - 全ページ共通スタイル（変数・リセット・ヘッダー）
 *
 * これまで各HTMLファイルが同一内容の<style>ブロックを個別に持っており、
 * ページ遷移のたびに再ダウンロード・再パースされていた。
 * nginx側は *.css に7日キャッシュを設定済みだったが、共有CSSファイルが
 * 存在しないため活用されていなかった。
 *
 * ここには全11テンプレート間で完全に内容が一致することを確認した
 * ルールのみを抽出している。フッターやbody基本色などページ系統間で
 * 実際に値が異なる箇所は、意図しない見た目変更を避けるため各ページの
 * <style>に残している。
 */

:root {
  --bg:          #f0f6ff;
  --bg-card:     #ffffff;
  --bg-hero:     #e4effe;
  --fg:          #0d1e42;
  --fg-mid:      #2d4a7a;
  --fg-light:    #7090c0;
  --accent:      #2563eb;
  --accent-bg:   #dbeafe;
  --border:      #c0d4f0;
  --radius:      10px;
  --font-round:  'M PLUS Rounded 1c', sans-serif;
  --font-base:   'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── HEADER ── */
header {
  background: #fff;
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-title {
  font-family: var(--font-round);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 1;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-mid);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.nav-link:hover { color: var(--accent); background: var(--accent-bg); }
.header-cta {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border-radius: var(--radius);
  min-height: 36px;
  display: flex;
  align-items: center;
}
.header-cta:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: none; color: var(--fg-mid); cursor: pointer; padding: 0; border-radius: var(--radius); }
.nav-toggle:hover { background: var(--accent-bg); color: var(--accent); }
.nav-toggle svg { pointer-events: none; }
@media (max-width: 560px) {
  .nav-toggle { display: flex; }
  .header-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 8px; z-index: 60;
  }
  .header-nav.is-open { display: flex; }
  .nav-link { display: block; padding: 12px 16px; }
}
