/* ============================================
   shared-nav.css — HP・ビズ書庫 共通ナビスタイル

   このファイルを変更すると、HPとビズ書庫の
   両方のナビゲーションに反映されます。

   配置場所: bizmanga.com/shared-nav.css
   ============================================ */

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Logo ===== */
.logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ===== Nav Links ===== */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.nav-links a {
  text-decoration: none; color: #000;
  font-size: 14px; font-weight: 500;
  letter-spacing: normal;
  line-height: 14px;
  transition: color 0.4s;
  position: relative;
  padding: 13px 16px;
  display: flex;
}

/* ===== オレンジ補助線（上下） ===== */
.nav-links a::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: #EB5200;
  z-index: 2;
  transition: 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}
.nav-links a::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: #EB5200;
  z-index: 2;
  transition: 0.3s cubic-bezier(0.58, 0.3, 0.005, 1);
}
/* 非ホバー時：線を隠す */
.nav-links a:not(:hover):not(:focus):not(.nav-active)::before {
  opacity: 0; left: -20px; width: 10px;
}
.nav-links a:not(:hover):not(:focus):not(.nav-active)::after {
  opacity: 0; left: 100%; width: 10px;
}
/* ホバー時 */
.nav-links a:hover { color: #EB5200; }
.nav-links a:hover::before,
.nav-links a:hover::after { opacity: 1; left: 0; width: 100%; }
/* アクティブ */
.nav-links a.nav-active { color: #EB5200; }
.nav-links a.nav-active::before,
.nav-links a.nav-active::after { opacity: 1; left: 0; width: 100%; }

/* ===== CTA ボタン（お問い合わせ） ===== */
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  background: #EB5200; color: #fff !important;
  padding: 12px 16px; border-radius: 100px;
  font-size: 14px !important; font-weight: 500 !important;
  line-height: 14px;
  min-width: 128px;
  min-height: 46.4px;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: #d85a10; transform: translateY(-1px); }
.nav-cta::before,
.nav-cta::after { display: none !important; }

/* ===== ドロップダウン ===== */
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: auto;
  background: #fff;
  border-radius: 0;
  box-shadow: rgba(0, 0, 0, 0.5) 0px 10px 10px -15px;
  padding: 0;
  min-width: 156px;
  z-index: 1100;
  list-style: none;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 900;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.dropdown-menu li a::before,
.dropdown-menu li a::after {
  display: none;
}
.dropdown-menu li a:hover {
  background: #FFF5EE;
  color: #EB5200;
}

/* ===== ハンバーガー（モバイル） ===== */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #333; border-radius: 2px;
  transition: all 0.3s;
}
