/* 全体のレイアウト */
.custom-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: fixed;
  z-index: 100;
  width: 100%;
  top: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 20px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.logo img {
  display: block;
  max-height: 42px;
  width: auto;
  margin-left: 25px;
}

/* メニュー全体 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 50px;
  list-style: none;
}

.nav-menu a {
  font-size: 19px;
  color: #000;
}

.nav-menu a:hover {
  color: #000;
  background: inherit;
  text-decoration: none;
}

/* ドロップダウン */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  list-style: none;
  padding: 10px 0;
  min-width: 150px;
  border-radius: 4px;
}

.dropdown li a {
  display: block;
  padding: 8px 16px;
  color: #000;
}

.dropdown li a:hover {
  background: #f1efe9;
}

/* PCホバー時に表示 */
.has-dropdown:hover .dropdown {
  display: block;
}

/* お問い合わせボタン */
.nav-menu a.header-cta-button {
  background: #9f8530;
  border-radius: 100px;
  padding: 10px 40px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

/* スマホ用お問い合わせボタン */
.header-right-sp {
  display: none;
}

.header-cta-button-sp {
  background: none;
  border: none;
  cursor: pointer;
  background: #9f8530;
  border-radius: 20px;
  padding: 6px 12px;
  color: white;
  font-size: 13px;
  font-weight: 500;
}

/* ハンバーガーボタン */
.nav-toggle {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* メニュー閉じるボタン */
.nav-close {
  display: none;
  position: absolute;
  top: -16px;
  right: 18px;
  color: #d1d9df;
  font-size: 50px;
  font-weight: 100;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

/* スマホレイアウト */
@media (max-width: 768px) {
  .header-container {
    padding: 5px 20px 10px 20px;
  }
  
  .logo img {
    display: block;
    max-height: 42px;
    width: auto;
    margin-left: 10px;
  }

  .header-right-sp {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* ロゴ・お問い合わせ・ハンバーガーを横並び */
  .logo img {
    display: block;
    max-height: 42px;
    width: auto;
    margin-left: 10px;
  }

  .header-right-sp {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .header-cta-button-sp:hover {
    color: white;
    text-decoration: none;
  }

  /* お問い合わせボタン */
  .nav-menu a.header-cta-button {
    display: none;
  }

  /* メニュー */
  .nav-menu {
    display: none;
    width: 90%;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: #192a3d;
    position: fixed;
    top: 0;
    right: 0;
    padding-top: 50px;
    gap: 10px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-close.open {
    display: block;
  }

  .nav-menu a {
    display: block;
    color: white;
    font-weight: bold;
  }

  .nav-menu a:hover {
    color: white;
    background: inherit;
    text-decoration: none;
  }

  /* ドロップダウン */
  a.has-arrow::after {
    content: "›";
    display: inline-block;
    margin-left: 20px;
    font-size: 50px;
    line-height: 1;
    position: relative;
    top: 13px;
    font-weight: 100;
    transform: rotate(90deg) scale(1, 0.8)
  }

  .dropdown {
    display: none;
    flex-direction: column;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .has-dropdown:hover .dropdown {
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: flex;
  }

  .has-dropdown {
    position: relative;
  }

  .dropdown li a {
    display: block;
    padding: 2px 16px;
    color: white;
  }

  .dropdown li a:hover {
    background: none;
  }
}
