@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; }

/* ==========================================================================
   記事本文の共通コンポーネント（コラム = .entry-content 内）
   ※ 各記事の <style> はこれらを上書き可能（body 内のため後勝ち）。
     テーマ色は記事側で --accent / --accent-dark を設定して変える。
     tip / ok / ng などの意味色は固定。
   ========================================================================== */
.entry-content {
  --accent: #c62828;        /* 記事のテーマ色（見出し下線・表ヘッダ等） */
  --accent-dark: #7f0000;   /* 見出し文字などの濃いテーマ色 */
}

.entry-content .page-section { margin-bottom: 56px; }
.entry-content .page-section h2 { font-size: 25px; margin-bottom: 18px; border-bottom: 3px solid var(--accent); padding-bottom: 10px; }
.entry-content .page-section p { font-size: 15px; line-height: 1.9; color: #444; margin: 0 0 14px; }
.entry-content .sub-heading { font-size: 17px; margin: 26px 0 10px; color: var(--accent-dark); border-left: 4px solid var(--accent); padding-left: 12px; }

.entry-content .lead { font-size: 16px; line-height: 2; color: #333; }
.entry-content .entry-meta { font-size: 13px; color: #888; margin: 0 0 24px; }

.entry-content .info-box { background: #ffebee; border-left: 5px solid var(--accent); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 18px 0; }
.entry-content .info-box-title { font-size: 14px; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.entry-content .info-box p { margin: 0; font-size: 14px; line-height: 1.8; }

.entry-content .tip-box { background: #fff8e1; border-left: 5px solid #ffc107; border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 18px 0; }
.entry-content .tip-title { font-size: 14px; font-weight: 700; color: #e65100; margin-bottom: 8px; }
.entry-content .tip-box p { margin: 0; font-size: 14px; line-height: 1.8; }

.entry-content .calc-box { background: #ffebee; border: 2px solid var(--accent); border-radius: 14px; padding: 20px 22px; margin: 20px 0; }
.entry-content .calc-title { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.entry-content .formula-main { font-size: 17px; font-weight: 700; color: var(--accent-dark); }

.entry-content .table-wrap { overflow-x: auto; margin: 14px 0 22px; }
.entry-content .info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content .info-table th { background: var(--accent); color: #fff; padding: 10px 14px; text-align: left; }
.entry-content .info-table td { padding: 9px 14px; border-bottom: 1px solid #ffcdd2; }
.entry-content .info-table tr:nth-child(even) td { background: #fff5f5; }

.entry-content .ok-ng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 26px; }
.entry-content .ok-card { background: #e8f5e9; border: 2px solid #81c784; border-radius: 12px; padding: 18px; }
.entry-content .ng-card { background: #ffebee; border: 2px solid #ef9a9a; border-radius: 12px; padding: 18px; }
.entry-content .ok-card h4 { color: #2e7d32; margin: 0 0 10px; font-size: 14px; }
.entry-content .ng-card h4 { color: #b71c1c; margin: 0 0 10px; font-size: 14px; }
.entry-content .ok-card ul, .entry-content .ng-card ul { margin: 0; padding-left: 18px; font-size: 13px; color: #444; line-height: 2; }

.entry-content .step-list { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 22px; }
.entry-content .step-list li { position: relative; padding: 12px 14px 12px 56px; margin-bottom: 10px; background: #fafafa; border: 1px solid #eee; border-radius: 10px; font-size: 14px; line-height: 1.8; color: #444; }
.entry-content .step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }

.entry-content .faq-item { border-bottom: 1px solid #ffcdd2; padding: 16px 0; }
.entry-content .faq-q { font-size: 15px; font-weight: 700; color: var(--accent-dark); margin: 0 0 8px; padding-left: 26px; position: relative; }
.entry-content .faq-q::before { content: "Q"; position: absolute; left: 0; top: -2px; color: var(--accent); font-size: 17px; font-weight: 800; }
.entry-content .faq-a { font-size: 14px; line-height: 1.9; color: #444; margin: 0; padding-left: 26px; }

/* 広告枠（A8.net 等のアフィリエイト広告リンクを貼る箱。中身は記事側に貼る） */
.entry-content .ad-slot { margin: 28px 0; padding: 4px 0; text-align: center; }
.entry-content .ad-slot::before { content: "スポンサーリンク"; display: block; font-size: 11px; color: #999; letter-spacing: .04em; margin-bottom: 6px; }
.entry-content .ad-slot img, .entry-content .ad-slot iframe { max-width: 100%; height: auto; border: 0; }
.entry-content .ad-slot a { text-decoration: none; }

.entry-content .related-links { margin: 14px 0 0; padding-left: 18px; }
.entry-content .related-links li { font-size: 14px; line-height: 2; }
.entry-content .source-note { font-size: 12px; color: #888; line-height: 1.9; border-top: 1px solid #eee; margin-top: 32px; padding-top: 16px; }

@media screen and (max-width: 480px) {
  .entry-content .ok-ng-grid { grid-template-columns: 1fr; }
  .entry-content .page-section h2 { font-size: 20px; }
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@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; }
}
