/* /css/header.css */

/* 1. ページ全体の余白とボックスサイズリセット */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* 2. スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* 3. ボディのベーススタイル＋左右20px余白 */
body {
  font-family: sans-serif;
  color: #333;
  margin: 0;
  padding: 0 20px; /* 上は0、左右に20px */
}

/* 4. メインコンテンツの上余白（ヘッダーの高さ分） */
main {
  padding-top: 60px; /* ヘッダー 60px のぶんだけ余白を確保 */
}

/* 5. スクロール追従ヘッダー */
.site-header {
  position: sticky;  /* 常に画面上部に貼り付く */
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #0078D4;
  display: flex;
  align-items: center;
  z-index: 1000;     /* モーダルなどより前面に */
  box-sizing: border-box;
}

/* 6. ヘッダー内部のコンテナ幅制限＋左右パディング */
.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;   /* 内側左右パディング */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 7. ロゴ */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

/* 8. グローバルナビリストのリセット */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* 9. リストアイテム間隔 */
.global-nav li {
  margin: 0;
}
.global-nav li + li {
  margin-left: 20px;
}

/* 10. グローバルナビリンク */
.global-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 5px;
}
.global-nav a:hover,
.global-nav a:focus {
  text-decoration: underline;
}