/* 部品どうしを行き来する共通の帯。部品の見た目に依存しないよう、色はここで持つ。
   2026-11-29 白地のヘッダーに替え、左にマーク・サイト名・説明書きを置いた（policedit.jp の並べ方を参考）。
   各分野のページが自分のメニューを top:0 で固定しているため、この帯は固定しない */
.shisei-bar { --sb-bg: #fff; --sb-ink: #1a1a1a; --sb-ink-2: #4d4d4d; --sb-on: #e8f1fe; --sb-on-ink: #0017c1;
  --sb-line: #d9d9d9; --sb-hover: #f2f2f2; --sb-blue: #0017c1; --sb-yellow: #ffd43b;
  background: var(--sb-bg); color: var(--sb-ink); border-bottom: 1px solid var(--sb-line); font-family: "Noto Sans JP", "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; font-size: 14px; line-height: 1.4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shisei-bar { --sb-bg: #1e1e1e; --sb-ink: #f2f2f2; --sb-ink-2: #c4c4c4; --sb-on: #1b2250; --sb-on-ink: #c5d7fb; --sb-line: #3a3a3a; --sb-hover: #2a2a2a; --sb-blue: #9db7f9; } }
:root[data-theme="dark"] .shisei-bar { --sb-bg: #1e1e1e; --sb-ink: #f2f2f2; --sb-ink-2: #c4c4c4; --sb-on: #1b2250; --sb-on-ink: #c5d7fb; --sb-line: #3a3a3a; --sb-hover: #2a2a2a; --sb-blue: #9db7f9; }
.shisei-bar-inner { max-width: 1104px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; box-sizing: border-box; }
.shisei-bar-name { display: flex; align-items: center; gap: 10px; color: var(--sb-ink); text-decoration: none; white-space: nowrap; }
.shisei-bar-name svg { height: 38px; width: auto; flex: none; }
.shisei-bar-name .sb-b { fill: var(--sb-blue); } .shisei-bar-name .sb-y { fill: var(--sb-yellow); } .shisei-bar-name .sb-s { stroke: var(--sb-blue); }
.shisei-bar-name b { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: .02em; }
.shisei-bar-name small { display: block; font-size: 11.5px; color: var(--sb-ink-2); }
.shisei-bar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.shisei-bar nav::-webkit-scrollbar { display: none; }
.shisei-bar nav a { color: var(--sb-ink-2); text-decoration: none; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.shisei-bar nav a:hover { color: var(--sb-ink); background: var(--sb-hover); }
.shisei-bar nav a[aria-current="true"] { background: var(--sb-on); color: var(--sb-on-ink); font-weight: 700; }
.shisei-bar-toggle, .shisei-bar .sb-close { display: none; }
/* スマホではメニューを畳み、右上の三本線のボタンで右から引き出す（2026-11-29 本人：吉川なおき公式サイトと同じ形に。
   oita_politics_astro の src/styles/top.css「.spmenu」の寸法・色を写した。PC は横並びのまま） */
@media (max-width: 760px) {
  .shisei-bar-inner { padding: 8px 8px 8px 12px; min-height: 0; }
  .shisei-bar-name { padding: 2px 0; }
  .shisei-bar-name svg { height: 30px; }
  .shisei-bar-name b { font-size: 17px; }
  .shisei-bar-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; color: var(--sb-ink); cursor: pointer; flex: none; }
  .shisei-bar-toggle span { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; }
  .shisei-bar nav { position: fixed; top: 0; right: 0; bottom: 0; width: 50%; min-width: max-content; max-width: 84%; z-index: 1000;  /* 画面の真ん中あたりまで出す（2026-11-29 本人） */  display: block; overflow-y: auto; background: #292d33; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; box-shadow: -8px 0 24px rgba(0,0,0,.18); }
  .shisei-bar.is-open nav { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
  .shisei-bar .sb-close { display: block; margin: 0 8px 0 auto; height: 56px; padding: 0 12px; background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
  .shisei-bar nav a { display: block; color: #fff; font-size: 15px; font-weight: 700; padding: 18px 28px; white-space: nowrap; border-radius: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .shisei-bar nav a:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
  .shisei-bar nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
  .shisei-bar nav a[aria-current="true"] { color: #fff; background: rgba(255,255,255,.12); }
}
