

.category-ttl {
  font-family: "Betania Patmos GDL", cursive;
  font-weight: 400;
  font-style: normal;
}

.main-hero-section {
  text-align: center;
  padding: 60px 20px 20px; /* 上60px、左右20px、下20pxの余白 */
}

/* アイコンと画像をまとめる枠 */
.hero-title-wrapper {
  position: relative;
  display: inline-block; 
  max-width: 600px; /* 画像の大きさに合わせて調整してください */
  margin: 0 auto;
}
@media (max-width: 768px) {
  .hero-title-wrapper {
    width: 100%;
    display: block;
  }
  .hero-image-container {
    width: calc(100% - 40px); 
    max-width: 100%;
    margin: 0 auto 30px; 
    padding: 0;
  }

  .icon-1 { top: -10px; left: 5%; }
  .icon-2 { bottom: 50px; right: 5%; }
  .icon-3 { top: -5px; right: 8%; }
  .icon-4 { bottom: 20px; left: 2%; }
  .icon-5 { top: 40px; right: 2%; }
}



/* --- リード文 --- */
.hero-lead {
    font-size: 20px;
    line-height: 1.8;
    color: #333;
    margin: 0 auto;
    letter-spacing: 1px;
    font-family: san-serif;

}

.deco-icon {
  position: absolute;
  z-index: -1; 
  font-size: 20px;
  line-height: 1;
  animation: twinkle 2s ease-in-out infinite alternate;
}

/* 各アイコンの配置位置（タイトルの枠からの距離）と色 */
.icon-1 { top: -20px; left: -10px; color: #ff6b81; animation-delay: 0s; }
.icon-2 { bottom: 60px; right: -30px; font-size: 24px; color: #eccc68; animation-delay: 0.4s; }
.icon-3 { top: -10px; right: 20px; color: #ff9ff3; animation-delay: 0.8s; }
.icon-4 { bottom: 30px; left: -20px; color: #7bed9f; font-size: 16px; animation-delay: 1.2s; }
.icon-5 { top: 30px; right: -40px; color: #eccc68; animation-delay: 1.6s; }

/* アイコンが瞬くアニメーション */
@keyframes twinkle {
  0% {
    opacity: 0.2;
    transform: scale(0.7) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1.1) rotate(10deg);
  }
}
/* タイトル周り */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-size: 24px;
  font-weight: normal; /* 細字でおしゃれに */
  letter-spacing: 2px;
  margin: 0 0 5px 0;
}
.section-subtitle {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* リンクの基本スタイル（下線なし、ホバーで透過） */
.shop-section a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}
.shop-section a:hover {
  opacity: 0.7;
}

/* 共通：画像のレスポンシブ対応 */
.shop-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* 画像が歪まないようにする */
}



/* セクション全体（淡い黄色の背景） */
.bestseller-section {
  background-color: #f2f6ff;
  padding: 60px 0 40px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 24px;
  letter-spacing: 2px;
}
/* --- 画像切り替えアニメーション --- */
.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px; /* タイトル画像の最大幅 */
  margin: 0 auto 
}

.title-img-base {
  display: block;
  width: 100%;
  height: auto;
}

.title-img-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 1.5秒かけて「透明⇔表示」を繰り返す */
  animation: colorBlink 1.5s ease-in-out infinite alternate;
}

/* ♡に色がつく（上の画像がフワッと現れる）アニメーション */
@keyframes colorBlink {
  0%, 20% { opacity: 0; }
  80%, 100% { opacity: 1; }
}
.text-reveal {
  font-family: sans-serif;
  font-size: 1.8em;
  font-weight: bold;
}

.text-reveal span {
  opacity: 0;
  /* 1回のループを4秒（長め）に設定し、infinite を指定 */
  animation: loopFade 4s infinite;
  /* delayは前回と同じくHTML側の変数(--delay)を使用 */
  animation-delay: var(--delay);
}

@keyframes loopFade {
  0% {
    opacity: 0;
  }
  10%, 75% {
    opacity: 1; /* すぐにフワッと表示され、しばらく状態をキープ */
  }
  100% {
    opacity: 0; /* 最後にフワッと消えて次へ */
  }
}
/* スライダー本体 */
.bestseller-slider {
  display: flex;
  gap: 30px;               /* アイテム間の余白 */
  padding: 0 40px;         /* 左右の端の余白 */
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}
.bestseller-slider::-webkit-scrollbar {
  display: none; 
}

/* アイテム（li）の幅を固定してはみ出させる */
.bestseller-slider li {
  flex: 0 0 285px; /* ここを調整すると一度に見える数が変わります */
}

/* 画像 */
.item-img {
  margin-bottom: 20px;
}
.item-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル（白背景のハイライト） */
.item-title {
  font-size: 14px;
  margin: 0 0 12px 0;
  line-height: 1.6;
}
.item-title span {
  background-color: #fff; /* テキストの背景だけを白くする */
  padding: 4px 8px;       /* 白背景の面積を少し広げる */
  display: inline;        /* 複数行になった時も文字に沿って背景がつくようにする */
}

/* 説明文 */
.item-desc {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
/* スライダーを囲む枠（はみ出た部分を隠す） */
.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

/* スライダー本体（無限スクロール用） */
.bestseller-slider {
  display: flex;
  gap: 30px;            
  padding: 0;           
  margin: 0;
  list-style: none;
  width: max-content;   
  animation: infinite-slide 50s linear infinite; 
}

.bestseller-slider:hover {
  animation-play-state: paused;
}

/* アニメーションの動きの定義 */
@keyframes infinite-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 半分（オリジナル要素分）＋ gapの半分(15px) 移動すると、完璧にループが繋がります */
    transform: translateX(calc(-50% - 15px)); 
  }
}

.product-itemlist .product-item {
    position: relative;
width:100%;
    margin: 0 20px 35px 0;
}
/* --- 全体のレイアウト設定 --- */
.all-product {
  width: 100%;
  padding: 60px 20px;     /* 上下余白60px、左右余白20px（画面端にくっつかないため） */
  box-sizing: border-box; 
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.card-inner {
  max-width: 1140px;      /* ここで全体の最大幅を指定！ */
  margin: 0 auto;         /* 1140pxを超えた画面では中央に配置 */
}

/* --- グリッド設定（PC：4列） --- */
.product-itemlist {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 1fr（均等な幅）を4つ並べる */
  gap: 30px;                             /* カード同士の縦横の隙間 */
  list-style: none;
  padding: 0;
  margin: 0 auto;
justify-content: center;
}

/* --- カードのデザイン --- */
.product-itemlist a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}
.product-itemlist a:hover {
  opacity: 0.7; /* マウスオーバーで少し薄くする */
}


@media (max-width: 768px) {

  .product-itemlist {
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
  }
  
  .main-hero-section {
    padding: 40px 15px 20px; 
  }
  
  .all-product {
    padding: 40px 15px;     
  }
  

  .bestseller-section {
    padding: 40px 0; 
  }
  .bestseller-section .section-header {
    padding: 0 15px; 
  }
  .bestseller-slider li {
    flex: 0 0 220px; 
  }
}
