/* ==============================
   共通ヘッダー専用CSS
   他ページのCSSに影響されないよう #header 内に限定
   ============================== */

/* Google Font：ロゴ用 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* ヘッダー差し込み領域 */
#header {
  position: relative;
  z-index: 100;
}

/* ヘッダー全体 */
#header .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f56918;
  z-index: 100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  /* ★ここが重要：ページ側のbodyフォントを継承させない */
  font-family: 'Segoe UI', Tahoma, sans-serif;

  padding: 0;
  margin: 0;
  line-height: 1.6;
}

/* nav */
#header .nav {
  width: 100%;
}

/* 内部コンテナ */
#header .nav-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  box-sizing: border-box;
}

/* ロゴ */
.logo a {
  font-size: 1.3rem;
  font-family: 'Cormorant Garamond', serif;
  color: #005d30;
  text-decoration: none;
  font-weight: bold;
}

/* ナビゲーションリスト */
#header .nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

#header .nav-list li {
  margin: 0;
  padding: 0;
}

#header .nav-list li a {
  color: #cce9db;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  padding: 6px 12px;
  transition: background 0.3s, color 0.3s;
  display: block;
  line-height: 1.6;
}

#header .nav-list li a:hover {
  background: #820073;
  color: rgb(8, 152, 193);
  border-radius: 4px;
}

/* メニューボタン */
#header .menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  color: #005d30;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

/* スマホ対応 */
@media (max-width: 768px) {
  #header .nav-list {
    position: absolute;
    top: 60px;
    right: 20px;
    color: #f56918;
    background: #5c1b4e;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    display: none;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
  }

  #header .nav-list.open {
    display: flex;
  }

  #header .menu-toggle {
    display: block;
  }
}