.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 99999;
  display: flex;
  align-items: center;
}
.header-inner {
  position: relative; /* 必須 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1068px;
  padding: 0 24px;
  margin: 0 auto;
}

/* @media screen and (max-width: 1080px) {
  .header-inner {
      padding: calc(2rem + 44px) 0 4.5rem;
  }
} */

.header-logo img {
  height: 28px;
}
@media (max-width: 768px) {
  .header-logo img {
    height: 24px;
  }
}
.header-logo {
  max-width: 127px;
}

/* メニュー */
.header-nav {
  margin-top: 12px;
}
.header-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.menu-item a {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.menu-item a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 0.3s;
}

/* ホバー時：文字・下線ともにオレンジ */
.menu-item a:hover {
  color: #ea5413;
}
.menu-item a:hover::after {
  position: absolute;
  bottom: 6px;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: #ccc;
  border-radius: 4px;
  transition: background-color 0.3s;
  content: "";
  position: absolute;
  background-color: #ea5413;
}

/* アクティブ状態（JSで付与） */
.menu-item.active a {
  color: #000; /* 初期は黒のまま */
}
.menu-item.active a::after {
  background-color: #ea5413;
}

/* お役立ちコラムメニューに下線なし */
.menu-item.no-underline a::after {
  display: none;
}
.menu-item.no-underline a:hover {
  color: #ea5413;
}

.menu-separator {
  /* 区切り線 */
  width: 1px;
  height: 16px;
  background-color: #000;
  margin: -8px 8px 0;
}


/* ログインボタン 共通スタイル（PC & SP） */
.menu-login a,
.sp-login-btn {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  text-decoration: none;
  transition: color 0.3s;
  background-color: #000000;
  padding: 4px 16px;
  border-radius: 5px;
  letter-spacing: .5px;
}
/* ホバー時に文字だけオレンジ（線は出さない） */
.menu-login a:hover,
.sp-login-btn:hover {
  color: #ea5413;
}
/* 初期状態：スマホ用ログインボタンは非表示（PCのみ） */
.sp-login-btn {
  display: none;
}





/* スマホ非表示 */
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  .header-menu {
    display: none;
  }
  /* .header-inner {
    justify-content: normal;
  }
  .lower_layer {
    background: #f6f6f6;
  }
  .search_old_car {
    color: #ea5413;
    font-weight: bold;
    font-size: 1.3rem;
    margin-left: 10px;
  } */

  /* 並びをロゴ｜ログイン｜ハンバーガー にする */
  .header-inner {
    justify-content: flex-start; /* normal とほぼ同じだが明示しておく */
    align-items: center;
  }
  .header-logo {
    margin-right: auto; /* ロゴを左、残りを右側へ押し出す */
  }
  /* スマホ用ログインボタンを表示して、ハンバーガーの左に配置 */
  .sp-login-btn {
    display: inline-block;
    /* margin-right: 0; */
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 52px;
  }
  .lower_layer {
    background: #f6f6f6;
  }
  .search_old_car {
    color: #ea5413;
    font-weight: bold;
    font-size: 1.3rem;
    margin-left: 10px;
  }
}