/* ヘッダー全体 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 16px 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* ← 横に余白を追加（上下16px, 左右24px） */
}

@media screen and (min-width: 501px) {
  .header-inner {
    padding: 0 300px 0 300px;
  }
}

/* ロゴ */
.logo {
  img {
    width: 100px;
  }
}

/* ナビゲーション */
.nav {
  display: none;
  
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* ハンバーガーメニュー内 */
.nav-label {
  display: block;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
  font-size: 12px;
}

/* メニューボタン（モバイル用） */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* アコーディオンメニュー*/
summary {
  display: grid;
  grid-template-columns: 1fr 16px;
  gap: 6px;
  align-items: center;
  padding: 5px 24px;
  cursor: pointer;
  list-style: none; /* ← これで三角を完全に非表示 */
}

.icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #D0A933; /* ← ここで色を指定 */
  transition: transform 0.3s ease;
}

/* 開いたときに回転 */
details[open] .icon {
  transform: rotate(180deg);
}

.nav ul, .nav li {
  list-style: none;
  
}

/* モバイル表示対応 */
@media (max-width: 768px) {
  .nav {
    display: none;
    gap: 12px;
    background: #fff;
    position: absolute;
    top: 64px;
    right: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 16px;
    border-radius: 8px;
    z-index: 1000;

    /* スクロール対応の追加 */
    max-height: 80vh;      /* 表示領域の高さを制限 */
    overflow-y: auto;      /* 垂直スクロールを有効にする */
    overscroll-behavior: contain;  /* スクロール時のページ全体のスクロール抑制 */
    -webkit-overflow-scrolling: touch; /* iOSの慣性スクロール対応 */
  }

  .nav.active {
    display: flex;

  }

  .menu-toggle {
    display: block;
    font-size: 34px;
    color: #D0A933;
  }

  .nav-section {
    margin-top: 10px;
    padding: 10px;
    /*border-top: 1px solid #ccc;*/
  }
}