/* ============================================================
   header-override.css
   14ページに完全一致で重複していたヘッダー上書きCSSを1本化。
   内容は1文字も変更していない（common.css の後に読み込むこと）。
   ============================================================ */
/* ================================================================
   ヘッダー：2段レイアウト上書き（common.css不変）
   ================================================================ */

/* ── ヘッダー全体：縦2段 ── */
.header-inner {
  flex-direction: column !important;
  height: auto !important;
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  position: relative !important;
}

/* ── 上段：ロゴ ＋ 会社情報（横並び） ── */
.header-row-top {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  padding: 6px 48px 6px 320px !important;
  min-height: 34px !important;
  border-bottom: none !important;
}
/* ロゴ：2段またぎで縦中央に絶対配置 */
.logo-area {
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  min-width: unset !important;
  border-bottom: none !important;
  position: absolute !important;
  left: 48px !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: auto 0 !important;
  z-index: 10 !important;
}



/* ── メガメニュー：full幅を維持 ── */
.mega-menu--flat {
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  min-width: 100vw !important;
}
.mega-flat-grid {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 48px !important;
}

/* メガメニュー（flat含む）: is-mega-openで開閉 */
.nav-item:hover .mega-menu--flat {
  opacity: 0 !important;
  visibility: hidden !important;
}
.nav-item.is-mega-open .mega-menu--flat {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.mega-menu--flat {
  transition: opacity 0.2s, visibility 0.2s !important;
}

/* ── メガメニュー位置：ヘッダー高さはJSで上書き ── */
.mega-menu,
.mega-menu--3col,
.mega-menu--flat {
  top: 108px !important;
}
