body {
  margin: 0;
  padding: 0;
  background: #fff;
  
}

.slider-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* スライド枚数に応じて調整 */
}

.slider img {
  width: 100%;
  height: auto;
  display: block;
}

.dots {
  position: absolute;
  bottom: 10px; /* 画像の下端から10px */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333;
}

.slider-container {
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.main-header img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-message {
  text-align: center;
  margin: 40px auto; /* 上下に40pxの余白 */
  max-width: 800px;
  padding: 0 20px; /* 横に少し余裕を持たせる */
  font-size: 1.2rem;
  line-height: 1.8;
}
.intro-message p {
  color: #333;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 40px auto;
  padding: 0 16px;
  word-break: break-word; /* ←追加！長文の折返し */
}

@media (max-width: 600px) {
  .product-description {
    font-size: 14px;
    line-height: 1.6;
  }
}

.video-section video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 800px; /* PC最大サイズ */
  margin: 40px auto;
  border-radius: 8px; /* 角丸も上品さに◎ */
}

.product-box {
  max-width: 800px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.product-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 20px;
}


.product-links {
   display: flex;
  flex-direction: row; /* ← 横並びに */
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap; /* スマホ時に自然に折り返し */
  margin-top: 20px;
}

.buy-button {
  display: inline-block;
  padding: 8px 16px; /* ← 小さめに */
  font-size: 0.9rem; /* ← 控えめに */
  border: 1.5px solid #000;
  text-decoration: none;
  color: #000;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.buy-button:hover {
  background-color: #000;
  color: #fff;
}

body {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; /* 上品な明朝体 */
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* 導入文・商品説明どちらもまとめて調整 */
.intro-message p,
 {
  word-break: keep-all;       /* 日本語の途中改行を避ける */
  white-space: normal;        /* 全体として自然な改行 */
  font-family: inherit;       /* bodyのフォントを継承 */
}

.product-box {
  max-width: 800px; /* ← メイン画像の最大幅 */
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.product-sub-images {
  max-width: 600px; /* ← 上の画像と合わせる！ */
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.product-sub-images img {
  width: 48%;
  height: auto;
  max-width: 100%; /* ← 親の制限に合わせて縮む */
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

/* スマホ向けレイアウト調整 */
@media (max-width: 600px) {
  .product-sub-images {
    flex-direction: column;
    align-items: center;
  }

  .product-sub-images img {
    width: 100%; /* スマホは縦並び＆横幅いっぱいに */
  }
}

.floating-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.3s ease;
  z-index: 999;
}

.floating-link:hover {
  opacity: 1;
  background-color: #111;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PCで4列 */
  gap: 20px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 16px;
}

.thumbnail-item {
  background-color: #fff;
  text-decoration: none;
  color: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  display: block;
  padding: 10px;
}

.thumbnail-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
  width: 100%;
  height: auto;
  display: block;
}

.thumb-info {
  padding: 12px;
  text-align: center;
}

.thumb-name {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.thumb-price {
  font-size: 0.85rem;
  color: #555;
}

/* スマホ対応（2列） */
@media (max-width: 600px) {
  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.thumbnail-heading {
  text-align: center;
  font-size: 1.4rem;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  margin: 60px 0 20px;
  color: #333;
  letter-spacing: 1px;
}

/* テキスト全体に効かせる折り返し設定 */
.intro-message p,
.sub-description,
.circle-description p {
  word-break: keep-all; /* ← これが重要！途中で切らない */
  overflow-wrap: break-word; /* 英語長文には対応 */
  white-space: normal;
}


.product-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
  padding: 0 16px;
  word-break: keep-all;
  white-space: normal;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  text-align: center; /* ← PC用に中央揃え維持 */
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}