body {
  margin: 0;
  background-color: #b8e2f3;
  font-family: sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 70vh;
  padding: 80px 20px;
  box-sizing: border-box;
}

.fade-in-section {
  margin-bottom:0;
  padding-bottom:0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.image-box {
  width: 90%;
  max-width: 500px;
  margin:0 auto ;
}

.image-box img {
  width: 100%;
  display: block;
  border-radius: 10px;
  
}

.text-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #666666;
  font-size: 1.4rem;
  
  line-height: 2;
  width: 90%;
  max-width: 500px;
  pointer-events: none;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.text-lines span {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-section.visible .text-lines span {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section.visible .text-lines span:nth-child(1) { transition-delay: 0.3s; }
.fade-in-section.visible .text-lines span:nth-child(2) { transition-delay: 0.8s; }
.fade-in-section.visible .text-lines span:nth-child(3) { transition-delay: 1.3s; }
.fade-in-section.visible .text-lines span:nth-child(4) { transition-delay: 1.8s; }
.fade-in-section.visible .text-lines span:nth-child(5) { transition-delay: 2.3s; }


.category-block {
  width: 90%;
  max-width: 700px;
  padding-left: 8%;  
  padding-right: 0;
  margin-left: 8%;
  margin-right: 0;
}

.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

/* タイトル側 */
.category-title {
  flex: 1;
  max-width:65%;
  margin-left:0;
  padding-left:0;
}

.category-title h2 {
  font-size: 2.3rem;
  font-weight: bold;
  color: #000000;
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  letter-spacing:0.2em;
}

/* 下線 */
.underline-text {
  display: inline-block;
  position: relative;
}

.underline-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* テキストの下に線 */
  width: 100%;
  height: 8px;              /* 線の太さ */
  background-color: #ffffff;
  opacity: 0.6;
  z-index: -1;              /* テキストの下に敷く */
}


/* 画像側 */



.category-images {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.img-small {
  width: 110px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.img-wrapper {
  position: relative;
  width: fit-content;
  height: fit-content;
}

.base-img {
  width: 110px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.overlay-img {
  position: absolute;
  top: -40px;     /* ← 上方向へずらす */
  left: 60px;     /* ← 右方向へずらす */
  width: 90px;    /* サイズ調整（お好みで） */
  height: 40px;
  object-fit: contain;
  animation: blink 1s infinite;
}


/* 点滅アニメーション */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blinking {
  animation: blink 2s infinite;
}


 
@media (max-width: 600px) {
  .category-block {
    padding-left: 5%;
    margin-left: 0;
    width: 94%;
    box-sizing: border-box;
  }

  .category-title {
    max-width: 70%;
    margin-left: 0;
  }

 .category-title h2 {
    font-size: 1.8rem;
    line-height: 1.8;
    letter-spacing: 0.1em;
  }


  .category-row {
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden;
    align-items: flex-start;
  }


.category-images {
  display: flex;
  justify-content: flex-start;
  width: auto;
  padding: 0;
  margin: 0;
}


  .img-wrapper {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin-left: -12px; /* ← 画像全体を少し左に */
    margin-top: 35px;   /* ← 下方向に調整（お好みで） */
  }

  .base-img {
    width: 100px;
    height: auto;
    border-radius: 8px;
  }

  .overlay-img {
    position: absolute;
    top: -50px;
    left: 30px;
    width: 65px;
    height: 65px;
    object-fit: contain;
    animation: blink 1s infinite;
  }
}


.category-content {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin: 40px 150px 0 100px;
}

.content-img {
  width: 500px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.content-text {
  flex: 1;
  font-size: 1.4rem;
  line-height: 2.0;
  color: #333;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  transition-delay: 1.5s; /* ← タイトルより遅れて表示 */
}

.fade-in-delay.visible {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 600px) {
  .category-content {
    margin: 40px 20px 10px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .content-img {
    width: 100%;
    max-width: 500px;
  }

  .content-text {
    font-size: 1.2rem;
  }
}


.product-list {
  display: flex;
  justify-content: space-between;
  
  margin-top: 60px;
  flex-wrap: wrap; /* ← スマホ対応にも使える */
}

.product-item {
  flex: 0 1 48% ; /* 2列、間隔を空ける */
  box-sizing: border-box;
}

.product-img {
  max-width: 50%;
  height: auto;
  margin:0 auto;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #000;
  position: relative;
  display: inline-block;
  margin: 8px 0 8px 120px;
}

/* 白い下線 */
.product-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 6px;
  background-color: #ffffff;
  opacity: 0.6;
  z-index: -1;
}




@media (max-width: 600px) {
  .product-list {
    flex-direction: column;
  }

  .product-item {
    flex: 1 1 100%;
    margin-bottom: 24px;
  }
}

.product-title {
 margin-left:50px;
 margin-right:50px; 
}

.product-desc {
margin-left:50px;
 margin-right:50px; 
}

/* メイン画像を中央配置 */
.main-image-block {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
}

.main-image {
  width: 30%;
  height: auto;
}

/* 下段の画像とテキスト横並び */
.content-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap; /* スマホで縦並びになるように */
}

.sub-image {
  width: 330px;
  height: auto;
  border-radius: 8px;
}

/* 説明＋ボタン */
.text-block {
  max-width: 400px;
}

.description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ボタンのスタイル */
.detail-button {
  background-color: #fff;
  color: #666;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.3s;
}

.detail-button:hover {
  background-color: #f0f0f0;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}


@media (max-width: 600px) {
  .content-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .text-block {
    max-width: 90%;
  }

.main-image {
  width: 70%;
  
}

  .sub-image {
    width: 70%;
  }
}


.wave-container {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  margin-top: 60px; /* 上のコンテンツとの余白 */
}

.wave {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100px;
  animation: waveMove 6s linear infinite;
}

@keyframes waveMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* 商品グリッド全体 */
.product-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1000px;
  margin: 80px auto;
  flex-wrap: wrap;
}

/* 各カード */
.product-card {
  flex: 1 1 30%;
  box-sizing: border-box;
  text-align: center;
}

/* 商品画像 */
.product-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* 商品説明 */
.product-desc {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ボタン（再利用） */
.detail-button {
  background-color: #fff;
  color: #666;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.3s;
}

.detail-button:hover {
  background-color: #f0f0f0;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .product-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .product-card {
    flex: 1 1 100%;
    max-width: 90%;
  }
}



