/* =========================================
  商品ページセクション
========================================= */
.product-page {
  max-width: 960px; /* 少し広げてみました */
  margin: 30px auto; /* 上下のマージンを調整 */
  padding: 60px;
  font-family: 'Noto Serif JP', sans-serif; /* フォントを指定 */
  line-height: 1.7; /* 行間を少し広げました */
  background-color: #f9f9f9; /* 背景色を追加 */
  border-radius: 8px; /* 角を丸く */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* 影を追加 */
}

.product-page h2 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.image-gallery {
  display: flex;
  overflow-x: auto; /* 横スクロールを許可 */
  gap: 15px;
  padding-bottom: 15px; /* スクロールバーが隠れないように少し余白 */
  margin-bottom: 30px;
  /* スクロールバーのデザインを調整するCSS (任意) */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #ccc #f1f1f1; /* Firefox */
}

/* WebKit系ブラウザ (Chrome, Safariなど) のスクロールバー */
.image-gallery::-webkit-scrollbar {
  height: 8px; /* スクロールバーの高さ */
}

.image-gallery::-webkit-scrollbar-track {
  background: #f1f1f1; /* トラックの背景色 */
  border-radius: 10px;
}

.image-gallery::-webkit-scrollbar-thumb {
  background: #ccc; /* スクロールバーの色 */
  border-radius: 10px;
}

.image-gallery::-webkit-scrollbar-thumb:hover {
  background: #aaa; /* ホバー時の色 */
}


.image-gallery img {
  width: auto;
  height: 200px; /* 高さを固定して横並び感を強調 */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-shrink: 0; /* 画像が縮小しないように */
}

.product-info {
  margin-top: 20px;
}

.product-info h3 {
  margin-top: 25px;
  color: #333;
  border-bottom: 2px solid #eee; /* 区切り線を追加 */
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.product-info p {
  color: #555;
  margin-bottom: 15px;
}

.product-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.product-info th, .product-info td {
  padding: 12px; /* パディングを少し増やしてゆったりと */
  border-bottom: 1px solid #ddd; /* 線を少し濃く */
  text-align: left;
}

.product-info th {
  width: 30%; /* thの幅を調整 */
  font-weight: bold;
  color: #444;
  background-color: #f5f5f5; /* thに背景色 */
}

.order-section {
  text-align: center;
  margin-top: 40px;
}

.order-button {
  display: inline-block;
  padding: 15px 30px; /* ボタンを大きく */
  background-color: goldenrod;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px; /* より丸く */
  transition: background-color 0.3s ease;
  font-size: 1.1em; /* 文字サイズを少し大きく */
}

.order-button:hover {
  background-color: #b8860b;
}

/* =========================================
  ナビゲーション
========================================= */
.fixed-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴのスタイル */
.fixed-nav .logo img {
  height: 60px; /* ロゴの高さ。必要に応じて調整してください */
  width: auto; /* アスペクト比を維持 */
}

.fixed-nav ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 10px; /* paddingをリセット */
  list-style: none;
}

.fixed-nav li {
  margin: 0 20px;
}

.fixed-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.1em; /* ナビゲーションリンクの文字も少し大きく */
  transition: color 0.3s ease;
}

.fixed-nav a:hover {
    color: goldenrod; /* ホバー時の色 */
}

/* ハンバーガーメニューアイコン */
.hamburger {
  display: none; /* デフォルトでは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px; /* 線の太さ */
  background-color: #333; /* 線の色 */
  border-radius: 2px;
  transition: 0.3s;
}

/* 開いた状態のアニメーション */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* ==== レスポンシブ（モバイル対応）==== */
@media (max-width: 768px) {
  .fixed-nav {
    padding: 10px 15px; /* モバイルでのナビゲーションパディング */
  }
  .fixed-nav .logo img {
    height: 40px; /* モバイルでのロゴの高さ */
  }
  .fixed-nav ul {
    display: none; /* デフォルトでメニュー非表示 */
    position: fixed;
    top: 70px; /* ナビゲーションの高さに応じて調整 */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* モバイルメニューの背景 */
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
  }
  .fixed-nav li {
    margin: 15px 0;
  }
  .fixed-nav a {
    font-size: 1em;
  }
  .hamburger {
    display: flex; /* モバイルではハンバーガーを表示 */
    position: absolute;
    top: 15px;
    right: 50px;
  }
  .nav-menu.active {
    display: flex; /* activeクラスでメニューを表示 */
  }

  .product-page {
    padding: 20px; /* モバイルでのページ内パディング */
  }

  .image-gallery img {
    height: 150px; /* モバイルでは画像を少し小さく */
  }

  .product-info th, .product-info td {
    padding: 10px; /* モバイルでテーブルのパディングを小さく */
    font-size: 0.9em;
  }

  /* 保存方法のtdの最後の空要素を非表示に */
  /* .product-info table tr:last-child td:last-child {
      display: none; */
  /* } */
}