/*
 header.css
 サイト全体のヘッダー（PC/SP共通と切り替え）
*/

/* 共通レイアウト */
.site-header {
  width: 100%;
  position: relative;
  z-index: 1000;
}
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* サイトロゴ */
.site-logo a {
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-primary);
  line-height: 1;
}

/* グローバルナビ */
.header-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.header-nav .nav-list li a {
  color: var(--color-white);
  transition: opacity var(--transition-speed);
}
.header-nav .nav-list li a:hover {
  opacity: 0.8;
}

/* CTA ボタン */
.header-cta .btn-download {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  background-color: #000;
  color: #fff;
}

/* ハンバーガーメニュー */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  position: relative;
  z-index: 1100;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  margin: 4px 0;
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* PC用（幅768px以上） */
@media screen and (min-width: 768px) {
  .site-header {
    background-color: var(--color-primary);
  }
  .site-logo a,
  .header-nav .nav-list li a {
    color: #fff;
  }

  /* メニュー中央寄せ */
  .header-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ハンバーガー非表示 */
  .hamburger {
    display: none;
  }
}

/* SP用（幅767px以下） */
@media screen and (max-width: 767px) {
  /* 背景・ボーダー */
  .site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
  }

  /* ロゴ */
  .site-logo a {
    color: #333;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* コンテナ折り返し */
  .site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* ハンバーガーメニュー表示 */
  .hamburger {
    display: inline-block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
  }

  /* ナビリストの初期非表示 */
  .header-nav .nav-list {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.75rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  /* 開いた時に表示 */
  .header-nav .nav-list.is-active {
    display: flex;
  }
  .header-nav .nav-list.is-active li a {
    color: #333;
  }

  /* 資料ボタン */
  .header-cta {
    order: 2;
    width: 100%;
    margin-top: 0.5rem;
  }
}
