/* ===== 全体の基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #333;
  background: #fff;
}

/* ===== ナビゲーションバー ===== */
header {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* ===== ハンバーガーボタン（スマホのみ表示） ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* ===== ページヘッダー（各ページのタイトルエリア） ===== */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 60px 24px;
}

.page-hero h1 {
  font-size: 2.5rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.page-hero p {
  color: #aac4ff;
  font-size: 1rem;
}

/* ===== ページヘッダー（画像背景版） ===== */
.page-hero-img {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 0;
  height: 320px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-hero-content h1 {
  font-size: 2.5rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
  color: #fff;
}

.page-hero-content p {
  color: #aac4ff;
  font-size: 1rem;
}

/* ===== セクション共通 ===== */
section {
  padding: 64px 24px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 2px;
}

.section-title span {
  border-bottom: 3px solid #0f3460;
  padding-bottom: 8px;
}

/* ===== フッター ===== */
footer {
  background: #0d0d1a;
  color: #666;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

/* ===== タブレット対応（768px以下） ===== */
@media (max-width: 768px) {
  .logo { font-size: 1rem; }
  section { padding: 48px 20px; }
  .section-title { font-size: 1.6rem; }
  .page-hero-img { height: 240px; }
  .page-hero-content h1 { font-size: 2rem; }
}

/* ===== スマホ対応（600px以下） ===== */
@media (max-width: 600px) {
  /* ハンバーガーボタンを表示 */
  .hamburger { display: flex; }

  /* ナビリンクを縦メニューに変更 */
  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .page-hero h1 { font-size: 1.6rem; }
  .page-hero-img { height: 200px; }
  .page-hero-content h1 { font-size: 1.5rem; letter-spacing: 2px; }
  section { padding: 40px 16px; }
  .section-title { font-size: 1.4rem; margin-bottom: 28px; }
}
