@charset "UTF-8";
/* ==========================================================================
   みんなの税金 — グローバルシェル（ヘッダー / ナビ / パンくず / フッター）
   ※ 各ページ本文の装飾は page.html 内の <style> が担当。
     ここではサイト全体の枠だけを定義し、本文クラスとは衝突しないよう
     接頭辞付きセレクタに限定している。
   ========================================================================== */

:root {
  --color-key: #d97706;       /* アクセント（オレンジ） */
  --color-key-dark: #9a5f1a;  /* 見出し・サイト名のブラウン */
  --color-text: #333;
  --color-link: #1565c0;
  --color-bg: #f7f6f4;
  --color-header-bg: #ffffff;
  --color-footer-bg: #2b2b2b;
  --color-footer-text: #cfcfcf;
  --content-width: 840px;
  --shell-width: 1080px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-link); }

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid #ececec;
}
.site-header__inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
}
.site-title a { color: var(--color-key-dark); text-decoration: none; }
.site-tagline {
  margin: 0;
  font-size: 13px;
  color: #777;
}

/* ---------- グローバルナビ ---------- */
.global-nav {
  background: var(--color-header-bg);
  border-bottom: 2px solid var(--color-key);
  position: sticky;
  top: 0;
  z-index: 100;
}
.global-nav__inner {
  max-width: var(--shell-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.global-nav li { position: relative; }
.global-nav a {
  display: block;
  padding: 14px 18px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.global-nav a:hover { color: var(--color-key); background: #fff7ed; }

/* ドロップダウン（サブメニュー） */
.global-nav .has-sub > .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  display: none;
  flex-direction: column;
}
.global-nav .has-sub:hover > .submenu { display: flex; }
.global-nav .submenu a { padding: 11px 16px; font-weight: 500; border-top: 1px solid #f3f3f3; }
.global-nav .submenu li:first-child a { border-top: none; }

/* ハンバーガー（モバイル） */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---------- パンくず ---------- */
.breadcrumb {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 12.5px;
  color: #888;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: #bbb; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-key); }

/* ---------- メイン ---------- */
.site-main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.site-main--wide { max-width: var(--shell-width); }
.entry-header { margin: 8px 0 24px; }
.entry-title {
  font-size: 28px;
  line-height: 1.45;
  color: var(--color-key-dark);
  margin: 8px 0 14px;
  font-weight: 800;
}
.entry-eyecatch { margin: 0 0 24px; border-radius: 10px; overflow: hidden; }
.entry-content { background: #fff; padding: 28px; border-radius: 10px; }

/* ---------- コラム一覧カード ---------- */
.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.column-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.column-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.column-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.column-card__thumb { aspect-ratio: 1200 / 630; background: #f0ede8; overflow: hidden; }
.column-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.column-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.column-card__title { font-size: 16px; font-weight: 700; color: var(--color-key-dark); line-height: 1.5; }
.column-card__desc { font-size: 13px; color: #666; line-height: 1.7; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 40px 20px 28px;
}
.site-footer__inner { max-width: var(--shell-width); margin: 0 auto; }
.footer-nav ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: var(--color-footer-text); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 13px; color: #8f8f8f; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media screen and (max-width: 1023px) {
  .entry-content { padding: 22px; }
}

@media screen and (max-width: 834px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px; }
  .site-title { font-size: 22px; }

  /* ハンバーガー表示 */
  .nav-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
    color: #333;
  }
  .nav-toggle-label::before { content: "\2630"; font-size: 18px; }
  .global-nav__inner { flex-direction: column; align-items: stretch; }
  .global-nav ul.menu { display: none; flex-direction: column; width: 100%; }
  .nav-toggle:checked ~ ul.menu { display: flex; }
  .global-nav a { padding: 13px 20px; border-top: 1px solid #f0f0f0; }
  .global-nav .has-sub > .submenu {
    position: static; display: flex; box-shadow: none; border: none;
    min-width: auto; background: #fafafa;
  }
  .global-nav .submenu a { padding-left: 36px; }
}

@media screen and (max-width: 480px) {
  body { font-size: 15px; }
  .entry-title { font-size: 23px; }
  .entry-content { padding: 18px 16px; }
  .site-main { padding: 14px 14px 48px; }
}
