:root {
  --base-color: #ffffff;
  /* 白いベースカラー */
  --main-color: #1e3a8a;
  /* ネイビー系のメインカラー */
  --accent-color: #eab308;
  /* 黄色のアクセントカラー */
  --text-color: #333333;
  /* 標準のテキストカラー */
  --light-bg: #f8f9fa;
  /* 明るいセクションの背景色 */
  --japanese-font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --sf-font: 'Orbitron', sans-serif;
}

/* 全体のスタイルリセットと基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--japanese-font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--base-color);
  scroll-behavior: smooth;
  /* スムーズスクロールを有効化 */
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダーセクション */
.header {
  background-color: var(--main-color);
  color: var(--base-color);
  padding: 1rem 15px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

/* ナビゲーションメニュー */
.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-list a {
  color: var(--base-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--accent-color);
}

/* ハンバーガーメニュー（モバイル用） */
.hamburger {
  display: none;
  /* デフォルトでは非表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--base-color);
  margin: 5px 0;
  transition: 0.3s;
}

/* ハンバーガーメニューがクリックされた時のスタイル */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* トップ画像セクション */
.hero {
  position: relative;
  text-align: center;
  color: var(--base-color);
  padding-bottom: 20px;
}

.hero-title {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  font-family: var(--sf-font);
  /* SFフォントを適用 */
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 各セクション共通のスタイル */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--main-color);
  position: relative;
  font-family: var(--sf-font);
  /* SFフォントを適用 */
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

.bg-light {
  background-color: var(--light-bg);
}

/* プロフィールリスト */
.profile-list,
.history-list {
  list-style-type: none;
  max-width: 600px;
  margin: 0 auto;
}

.profile-list li,
.history-list li {
  background-color: var(--base-color);
  border-left: 5px solid var(--main-color);
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-list li strong {
  color: var(--main-color);
}

/* ギャラリーセクション */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  /* 画像の高さを固定 */
  object-fit: cover;
  /* 縦横比を維持し、要素を埋めるように調整 */
  display: block;
  transition: transform 0.3s;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* お問い合わせセクション */
.contact-text {
  text-align: center;
  margin-bottom: 10px;
}

.contact-link {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
}

.contact-link:hover {
  text-decoration: underline;
}

/* フッターセクション */
.footer {
  background-color: var(--main-color);
  color: var(--base-color);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.8rem;
}

.footer .container {
  max-width: 800px;
}

.copyright,
.disclaimer,
.compatibility {
  margin-bottom: 5px;
}

/* レスポンシブデザイン（モバイル対応） */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    /* デフォルトでナビメニューを非表示 */
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .nav.active {
    display: block;
    /* activeクラスが付いている時だけ表示 */
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .hamburger {
    display: block;
    /* ハンバーガーメニューを表示 */
  }

  .hero-title {
    font-size: 2rem;
  }
}