/* 共通外枠 */
.slideshow-wrapper {
  max-width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

/* PC用スライドショー */
.slideshow-pc {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.slide-pc {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fadeZoom 36s infinite;
}
.slide-pc:nth-child(1) { animation-delay: 0s; }
.slide-pc:nth-child(2) { animation-delay: 6s; }
.slide-pc:nth-child(3) { animation-delay: 12s; }
.slide-pc:nth-child(4) { animation-delay: 18s; }
.slide-pc:nth-child(5) { animation-delay: 24s; }
.slide-pc:nth-child(6) { animation-delay: 30s; }

.overlay-pc {
  position: absolute;
  max-width: 100%;
  z-index: 10;
}

/* スマホ用スライドショー */
.slideshow-sp {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 8;
  overflow: hidden;
}

.slide-sp {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: fadeZoom 36s infinite;
}
.slide-sp:nth-child(1) { animation-delay: 0s; }
.slide-sp:nth-child(2) { animation-delay: 6s; }
.slide-sp:nth-child(3) { animation-delay: 12s; }
.slide-sp:nth-child(4) { animation-delay: 18s; }
.slide-sp:nth-child(5) { animation-delay: 24s; }
.slide-sp:nth-child(6) { animation-delay: 30s; }

.overlay-sp {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 10;
}

/* ズーム＆フェードアニメーション */
@keyframes fadeZoom {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; transform: scale(1.05); }
  30%  { opacity: 1; transform: scale(1.1); }
  35%  { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1); } }

/* PC・スマホ表示切り替え */
.pc-only { display: block; }
.sp-only { display: none; }

@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}



.text-section {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  text-align: center;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.fade-line {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-line.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ▼ 画像3枚用レイアウト */
.slide-images {
  max-width: 600px;
  margin: 80px auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.slide-image {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 1.2s ease, transform 1.2s ease;
  width: 80%;
  max-width: 960px;
}

/* 表示アニメーション：左から */
.slide-from-left {
  transform: translateX(-50px);
}

.slide-from-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 表示アニメーション：右から */
.slide-from-right {
  transform: translateX(50px);
}

.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 位置調整 */
.center {
  margin-left: auto;
  margin-right: auto;
}

.left-shift {
  margin-left: 15%;
}

/* ▼ 背景色付きセクション */
.bg-section {
  background-color: #eaf4fc;
  padding: 70px 20px;
  text-align: center;
}

/* ▼ 背景色無しセクション */
.bg-section2 {
  
  padding: 70px 20px;
  text-align: center;
}

/* ▼ 背景色無しセクション */
.bg-section3 {
  background-color: #FFE2EA;
  padding: 70px 20px;
  text-align: center;
}


/* ▼ 中央画像のフェードアニメーション */
.fade-image {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  max-width: 70%;
  height: auto;
  display: inline-block;
}

.fade-image.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ▼ 背景と全体レイアウト */
.product-section {
  background-color: #eaf4fc;
  padding: 40px 20px;
  text-align: center;
}

/* ▼ 背景と全体レイアウト */
.product-section2 {
    padding: 40px 20px;
  text-align: center;
}

/* ▼ 背景と全体レイアウト */
.product-section3 {
  background-color: #FFE2EA;
  padding: 40px 20px;
  text-align: center;
}




/* ▼ 中央画像（既にfade-imageにアニメあり） */
.product-section .fade-image {
  max-width: 80%;
  margin-bottom: 60px;
}

/* ▼ テキストエリアを中央に固定（画像の下） */
.product-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* ▼ 明朝体タイトル */
.product-title {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  font-size: 27px;
  margin-bottom: 20px;
}

/* ▼ 明朝体説明文 */
.product-desc {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ▼ ゴシック体商品名 */
.product-name {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ▼ ボタン（中央揃え） */
.product-button {
  text-align: center;
}

.shop-button {
  display: inline-block;
  background-color: #888;
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

/* ▼ ホバー時に色を反転 */
.shop-button:hover {
  background-color: #fff;
  color: #888;
  border: 1px solid #888;
}


@media (max-width: 768px) {
  /* セクション全体のパディング調整 */
  .product-section {
    padding-top:20px;
    padding: 30px 16px;
  }

  /* 画像サイズ調整 */
  .product-section .fade-image {
    max-width: 100%;
    margin-bottom: 40px;
    margin-top:-20px !important;
    display:block;
  }


 /* セクション全体のパディング調整 */
  .product-section2 {
    padding-top:20px;
    padding: 30px 16px;
  }

  /* 画像サイズ調整 */
  .product-section2 .fade-image {
    max-width: 100%;
    margin-bottom: 40px;
    margin-top:-20px !important;
    display:block;
  }


/* セクション全体のパディング調整 */
  .product-section3 {
    padding-top:20px;
    padding: 30px 16px;
  }

  /* 画像サイズ調整 */
  .product-section3 .fade-image {
    max-width: 100%;
    margin-bottom: 40px;
    margin-top:-20px !important;
    display:block;
  }





  /* テキスト部分の幅と余白調整 */
  .product-info {
    max-width: 95%;
  }

  .product-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .product-desc {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
  }

  .product-name {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .shop-button {
    font-size: 15px;
    padding: 12px 28px;
  }
}

/* ▼ グリッド全体 */
.product-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 100px auto;
  flex-wrap: wrap;
}

/* ▼ 各カード */
.product-card {
  flex: 1 1 300px;
  max-width: 360px;
  text-align: left;
}

/* ▼ 商品画像 */
.product-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

/* ▼ テキストエリア */
.product-text {
  padding: 0 10px;
}

/* ▼ コピー（明朝体・大きめ） */
.product-copy {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  font-size: 18px; /* ← 説明文より少し大きめ */
  margin-bottom: 8px;
  font-weight: bold;
  line-height: 1.5;
}

/* ▼ 説明文（明朝体・やや控えめ） */
.product-desc {
  font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.7;
}
/* ▼ 商品名（ゴシック） */
.product-name {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  
  font-size: 15px;
  margin: 20px 0;
}

/* ▼ ボタン */
.product-button {
  text-align: center;
}

.shop-button {
  display: inline-block;
  background-color: #888;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.shop-button:hover {
  background-color: #fff;
  color: #888;
  border: 1px solid #888;
}



@media (max-width: 768px) {
  .product-grid {
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 0 16px;
  }

  .product-card {
    max-width: 90%;
  }

  .product-text {
    padding: 0;
  }
}
