body {
    margin: 0;
    padding-top: 60px; /* ヘッダー高さ分の余白 */
    font-family: "Futura", Helvetica, sans-serif;
  }
  

.main-header {
    background-color: #2c3e50;
    color: white;
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  /* ナビゲーション中央寄せ */
  .nav-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
  }
  
  .nav-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.3s;
  }
  
  .nav-bar a:hover {
    background-color: #34495e;
  }
  
  /* ハンバーガーは右上に絶対配置 */
  .hamburger {
    position: absolute;
    top: 16px;
    right: 16px;
    cursor: pointer;
    width: 32px;
    height: 24px;
    z-index: 1010;
  }
  
  .hamburger span {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* 初期位置 */
  .hamburger span:nth-of-type(1) {
    top: 4px;
  }
  .hamburger span:nth-of-type(2) {
    top: 10px;
  }
  .hamburger span:nth-of-type(3) {
    top: 16px;
  }
  
  /* 開いたとき（バツ印） */
  .hamburger.open span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 10px;
  }
  .hamburger.open span:nth-of-type(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 10px;
  }
  
  
  /* メニュー */
  #menuPanel {
    position: absolute;
    top: 60px;
    right: 1px;
    width: 200px;
    background-color: #2c3e50;
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease;
    z-index: 999;
    padding: 0; /* これ重要！開いてない時の余白を潰す */
    font-size: 18px;
  }
  
  /* .openクラスでは height はJSで制御するため、追加CSSは不要 */
  #menuPanel ul {
    margin: 0;
    padding: 10px;
    list-style: none;
  }
  
  
  #menuPanel li {
    padding: 0.5em 0;
  }
  
  #menuPanel a {
    color: #fff;
    text-decoration: none;
    display: block;
  }
