body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

/* ナビバーの下に余白を入れる */
main.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 40px;
  margin-top: 10px; /* ← ナビバーとの重なりを防ぐ */
}

.product-card {
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* 画像を正方形に整える */
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;  /* ← 正方形で表示する */
  object-fit: cover;
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h2 {
  font-size: 1rem;
  margin: 10px 0 5px;
  font-weight: 400;
}

.product-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ハンバーガーメニューのボタン（PCは非表示） */
.menu-toggle {
  display: none;
  font-size: 2.5em;
  color: #333;
  cursor: pointer;
  user-select: none;
  padding: 0 15px;
  z-index: 1100;
}

/* スマホ用レスポンシブ調整 */
@media (max-width: 768px) {
  main.product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 20px;
  }

  .product-card h2 {
    font-size: 0.95rem;
  }

  .product-card p {
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: block;
    color: white;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1500;
  }
  
  .navbar .right {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 0 0;
    z-index: 1400;
  }

  .navbar .right.active {
    max-height: 1000px;
    opacity: 1;
    padding: 10px 0;
    display: flex;
  }

  .navbar .right a {
    color: #333;
    padding: 12px 20px;
    font-size: 1.2em;
    border-bottom: 1px solid #ddd;
  }

  .navbar .right a:last-child {
    border-bottom: none;
  }
}