/* v2 の ☰ メニュー（ui/nav-menu.js）と上の帯。色は ../ui/style.css の変数（light / dark） */
.v2-topbar { max-width: 980px; margin: 0 auto; padding: 8px 16px 0; display: flex; justify-content: flex-end; }
.v2-topbar .menu-open-btn { font-size: 0.85rem; padding: 6px 10px; }
.v2-nav { position: fixed; inset: 0; z-index: 50; }
.v2-nav[hidden] { display: none; }
.v2-nav-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); animation: v2-nav-fade 0.18s ease-out; }
.v2-nav-sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(300px, 86vw); overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: var(--surface); color: var(--text); border-left: 1px solid var(--border); box-shadow: var(--shadow);
  animation: v2-nav-in 0.2s ease-out;
}
.v2-nav-sheet:focus { outline: none; }
.v2-nav-title { margin: 0; font-weight: 700; font-size: 1rem; }
.v2-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v2-nav-item {
  display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); background: var(--bg); text-decoration: none; font-weight: 700;
}
button.v2-nav-item { width: 100%; text-align: left; font-size: 1rem; } /* 移らずに開く項目（ルール説明のダイアログ） */
.v2-nav-item:hover { border-color: var(--accent); }
.v2-nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.v2-nav-item[aria-current='page'] { background: var(--accent-soft); border-color: var(--accent); }
/* fsitlab のロゴつきの項目（<fsitlab-link>。見た目はホームの下の同じリンクと同じ。押せる高さだけ足す） */
.v2-nav-list .v2-nav-brand a.v2-nav-item { min-height: 44px; }
.v2-nav-close { margin-top: auto; color: var(--text-2); }
html.v2-nav-on { overflow: hidden; }
@keyframes v2-nav-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes v2-nav-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .v2-nav-sheet, .v2-nav-backdrop { animation: none; }
}
