*,
*::before,
*::after {
  box-sizing: border-box;
}
body, html {
  overflow-x: hidden;
  margin: 0;
}


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 16px 32px;   
  backdrop-filter: blur(4px); /* オプション：背景ぼかし効果 */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  width: 100%;
}
.logo {
  z-index: 1200;
}
.logo img {
  height: 48px;
  width: auto;
}


.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #FF9100;
}

.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #FF9100;
}

/* headerここまで */


/* ===== ハンバーガー：大きめ＆中央でクロス ===== */
.hamburger {
  display: none;           /* PCでは非表示。SPメディアクエリで表示 */
  position: relative;
  z-index: 1100;
  width: 48px;             /* クリック範囲を広く */
  height: 48px;
  padding: 10px;           /* 当たり判定を確保 */
  cursor: pointer;

  /* 中央に3本を重ねる土台にする */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3本線 */
.hamburger span {
  position: absolute;
  left: 50%;
  width: 28px;             /* 実際の線の長さ */
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%); /* 水平方向を中央基準へ */
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
  transform-origin: center;     /* 回転の基点を中央に */
}

/* 上・中・下の位置（中央から±オフセット） */
.hamburger span:nth-child(1) { top: calc(50% - 8px); }
.hamburger span:nth-child(2) { top: 50%;             }
.hamburger span:nth-child(3) { top: calc(50% + 8px); }

/* アクティブ（×状態）：中央に集めてクロス */
.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* PCデフォルト */
.main-nav { display: flex; }
.main-nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hamburger {
  display: none;
}

/* SPで表示＆メニューをオフキャンバスに */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(4px);
    transition: right .3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav.open { right: 0; }

  .main-nav ul {
    flex-direction: column;  /* 縦並びに */
    align-items: center;
    gap: 50px;
  }
  .main-nav a { font-size: 1.5rem; }
  .site-header {
    padding: 16px 10px;   
    backdrop-filter: blur(4px); /* オプション：背景ぼかし効果 */
  }
  .header-inner {
    padding: 0;
  }
  .logo a img {
    width: 130px;
    height: auto;
  }
}