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

.product-detail {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 40px auto 60px;
  padding: 0 20px;
  gap: 40px;
}

.image-section {
  flex: 1 1 45%;
}

.main-image img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnail-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail-list img:hover {
  transform: scale(1.05);
  border-color: black;
}

.info-section {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px; /* 要素間のスペースを統一 */
  padding-top: 0.3rem; /* 必要に応じて微調整 */
}

.info-section h1 {
  font-size: 1.8rem;
  margin: 0;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.buy-button {
  background-color: black;
  color: white;
  padding: 10px 15px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.buy-button:hover {
  opacity: 0.8;
}

.back-link {
  display: inline-block;
  color: #333;
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: 10px;
}


/* 拡大表示のオーバーレイ */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  cursor: zoom-out;
  border: 2px solid white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}



/* ハンバーガーメニューのボタン（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-detail {
    margin: 30px auto 40px;
    gap: 20px;
    padding: 0 15px;
    flex-direction: column;
  }

  .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;
  }
}