/* ========== Header ========== */

/* 全体 */
.site-header {
  background-color: var(--color-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* コンテナレイアウト */
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.header-logo img {
  height: 40px;
}

/* ナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.header-nav a:hover {
  opacity: 0.7;
}

/* CTAボタン */
.header-cta {
  display: flex;
  gap: 1rem;
}

.header-cta a {
  background-color: var(--color-accent);
  color: var(--color-bg);
  padding: 0.6em 1.5em;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.header-cta a:hover {
  background-color: #cc7a00; /* → var(--color-accent-hover) を定義してもOK */
}

/* ハンバーガー */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* メニュー全体ラッパー */
.header-menu-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex-wrap: nowrap;
}

/* ========== Responsive ========== */

/* モバイル */
@media (max-width: 767px) {
  .header-nav {
    display: none;
    flex-direction: column;
    background-color: var(--color-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .header-nav.active {
    display: flex;
  }

  .header-cta {
    display: none !important;
  }

  .header-menu-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
  }
}

/* PC */
@media (min-width: 768px) {
  .header-nav,
  .header-cta {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .hamburger {
    display: none;
  }

  .header-menu-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
  }

  .header-nav {
    gap: 2rem;
  }

  .header-cta {
    gap: 1rem;
  }
}
