/* Shared corporate header for static /erp — keep in sync with app/corporate.css (header rules only). */
.bx-site {
  --bx-paper: #f3f6fa;
  --bx-ink: #182c46;
  --bx-blue: #244fdb;
  --bx-muted: #58687c;
  --bx-line: #dce2eb;
  --bx-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --bx-latin: "Manrope", "DM Sans", sans-serif;
  --bx-header-h: 92px;
  color: var(--bx-ink);
  font-family: "Noto Sans JP", sans-serif;
}
.bx-site * { box-sizing: border-box; }
.bx-site button { font: inherit; cursor: pointer; }
.bx-site :focus-visible { outline: 3px solid var(--bx-blue); outline-offset: 5px; }

.bx-header {
  height: var(--bx-header-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(243, 246, 250, 0.98);
  isolation: isolate;
  position: sticky;
  top: 0;
  z-index: 11002;
  border-bottom: 1px solid rgba(24, 44, 70, 0.08);
  flex-wrap: nowrap;
}
.bx-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
  backdrop-filter: blur(18px);
  pointer-events: none;
}
.bx-wordmark {
  font-family: var(--bx-latin);
  font-weight: 800;
  font-size: 47px;
  letter-spacing: -0.075em;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  color: var(--bx-ink);
  flex-shrink: 0;
}
.bx-wordmark-dot { color: var(--bx-blue); }
.bx-desktop-nav {
  margin-left: auto;
  display: flex;
  gap: 30px;
  align-items: center;
}
.bx-desktop-nav a {
  font-size: 13px;
  font-weight: 500;
  position: relative;
  color: var(--bx-ink);
  text-decoration: none;
}
.bx-desktop-nav a[aria-current="page"] { color: var(--bx-blue); }
.bx-desktop-nav a::after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: -7px;
  left: 0;
  right: 100%;
  background: var(--bx-ink);
  transition: right 0.25s;
}
.bx-desktop-nav a:hover::after { right: 0; }
.bx-header-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #a4afbf;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--bx-ink);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.bx-header-cta:hover { background: var(--bx-ink); color: #fff; }
.bx-header-cta svg { width: 20px; height: 20px; font-size: 20px; flex-shrink: 0; }
.bx-menu-button { display: none; flex-shrink: 0; }
.bx-mobile-nav[hidden] { display: none !important; }
.bx-mobile-nav {
  position: fixed;
  top: var(--bx-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11001;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bx-paper);
  padding: 20px 28px calc(28px + env(safe-area-inset-bottom));
  box-shadow: 0 16px 24px #182c4610;
}
.bx-mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--bx-line);
  color: var(--bx-ink);
  text-decoration: none;
}
.bx-mobile-nav svg { width: 20px; height: 20px; flex-shrink: 0; }
.bx-skip {
  position: fixed;
  top: 0;
  left: 20px;
  transform: translateY(-150%);
  background: var(--bx-blue);
  color: white;
  padding: 12px 24px;
  z-index: 11003;
  text-decoration: none;
}
.bx-skip:focus { transform: none; }

@media (max-width: 1100px) {
  .bx-header { gap: 20px; }
  .bx-desktop-nav { gap: 18px; }
  .bx-header-cta { gap: 10px; }
}
@media (max-width: 940px) {
  .bx-desktop-nav { display: none; }
  .bx-header-cta { margin-left: auto; }
  .bx-menu-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--bx-ink);
  }
}
@media (max-width: 800px) {
  .bx-site { --bx-header-h: 76px; }
  .bx-header { height: var(--bx-header-h); padding: 0 24px; }
  .bx-wordmark { font-size: 40px; }
  .bx-desktop-nav { display: none; }
  .bx-header-cta { margin-left: auto; }
  .bx-menu-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 40px;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--bx-ink);
  }
}
@media (max-width: 420px) {
  .bx-header { padding: 0 20px; gap: 14px; }
  .bx-header-cta { font-size: 11px; padding: 9px 11px; }
}

/* Counteract ERP base/legacy globals without touching page body styles. */
.bx-shared-header header.bx-header {
  justify-content: flex-start !important;
  min-height: 0 !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 11002 !important;
}
.bx-shared-header a.bx-header-cta {
  background: transparent !important;
  color: var(--bx-ink) !important;
  min-height: unset !important;
  min-width: unset !important;
  width: auto !important;
  font-weight: 500 !important;
}
.bx-shared-header a.bx-header-cta:hover { background: var(--bx-ink) !important; color: #fff !important; }
.bx-shared-header .bx-menu-button {
  min-height: unset !important;
  background: transparent !important;
  color: var(--bx-ink) !important;
}
