/* shousai-style.css */

body {
  font-family: 'Noto Serif JP', serif;
  background: #fcf5f1;
  padding-top: 90px; /* ヘッダーの高さに合わせて調整 */
  min-height: 100vh; /* 画面の高さいっぱいに */
  display: flex; /* 追加 */
  flex-direction: column; /* 追加 */
}

/* 商品詳細ページ専用スタイル */

/* メインコンテンツ: 全体のレイアウトと余白設定 */
.product-detail {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* パンくずリスト: ナビゲーションのスタイル */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #ff6b6b;
  font-weight: bold;
}

/* 商品メインセクション: フレックスボックスを使用したレイアウト */
.product-main {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0;
  gap: 10vw;

}

/* 商品ギャラリー: メイン画像とサムネイルのスタイル */
.product-gallery {
  flex: 1;
  min-width: 300px;
  /* 以下のプロパティを追加 */
  display: flex;
  flex-direction: column;
  align-items: center;
}


.main-image {
  width: 45vw;
  height: 35vw;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5; /* 余白部分の背景色 */
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像のアスペクト比を維持 */
  transition: transform 0.3s ease; /* ホバー時のアニメーション */
}

.main-image:hover img {
  transform: scale(1.03); /* ホバー時に少し拡大 */
}

/* サムネイルコンテナ: 画像選択用の小さなサムネイル */
.thumbnail-container {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail.active {
  border-color: #ff6b6b; /* アクティブなサムネイルを強調 */
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 商品情報セクション: 価格、説明などのスタイル */
.product-info {
  flex: 1;
  min-width: 300px;
}

.product-info h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
}

.price {
  font-size: 1.8rem;
  color: #ff6b6b; /* 価格を目立たせる色 */
  font-weight: bold;
  margin-bottom: 15px;
}

.tax-in {
  font-size: 0.9rem;
  color: #666;
}

.description {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #333;
}

.details {
  margin-bottom: 30px;
}

.details h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 20px 0 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee; /* 見出しの下線 */
}

.details ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.details li {
  margin-bottom: 5px;
}

.note {
  font-size: 0.8em;
  color: #666;
  margin-top: 0.5em;
  font-style: italic;
}

/* レスポンシブデザイン: モバイル対応 */
@media (max-width: 768px) {
  .product-main {
      flex-direction: column; /* モバイルでは縦並び */
      gap: 25px;
  }

  .main-image {
    width: 80vw; /* モバイルでも同じサイズを維持 */
    height: 65vw;
  }

  .thumbnail {
      width: 60px;
      height: 60px;
  }
}
