/* バズハブ — 全ページ共通トップバー + master ページ用モバイルサイドバー */
:root {
  --hub-bar-h: 48px;
}
body.has-hub-topbar {
  padding-top: var(--hub-bar-h);
}
.hub-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hub-bar-h);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: var(--cream-card, #FFFAF0);
  border-bottom: 1px solid var(--border, #E8D9C0);
  box-shadow: 0 1px 8px rgba(180, 120, 80, 0.08);
}
.hub-home {
  font-size: 13px;
  font-weight: 700;
  color: var(--terracotta-dark, #A04C2A);
  text-decoration: none;
  white-space: nowrap;
}
.hub-home:hover { color: var(--terracotta, #C9663F); }
.hub-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border, #E8D9C0);
  border-radius: 8px;
  background: var(--cream-bg, #FBF3E7);
  color: var(--text-dark, #3B2A1F);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hub-export-wrap { position: relative; flex-shrink: 0; }
.hub-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--terracotta, #C9663F);
  border-radius: 8px;
  background: var(--terracotta, #C9663F);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  box-sizing: border-box;
  vertical-align: middle;
}
.hub-export-btn::after {
  content: "▼";
  font-size: 9px;
  line-height: 1;
  opacity: 0.92;
  transform: translateY(1px);
}
.hub-export-btn:hover { background: var(--terracotta-dark, #A04C2A); }
.hub-export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border, #E8D9C0);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(60, 40, 20, 0.12);
  padding: 6px;
  z-index: 400;
}
.hub-export-menu[hidden] { display: none; }
.hub-export-menu button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dark, #3B2A1F);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.hub-export-menu button:hover { background: var(--cream-deep, #F5E9D3); }
.hub-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(59, 42, 31, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.hub-toast.is-visible { opacity: 1; }
body.has-hub-topbar .sidebar {
  top: var(--hub-bar-h);
  height: calc(100vh - var(--hub-bar-h));
}
.hub-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--hub-bar-h);
  background: rgba(59, 42, 31, 0.35);
  z-index: 90;
}
.hub-sidebar-backdrop.is-visible { display: block; }
@media (max-width: 900px) {
  .hub-menu-btn {
    display: inline-flex;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .hub-export-btn {
    height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }
  body.has-hub-topbar .main { margin-left: 0; }
}
