@charset 'utf-8';
/* CSS Document */
/* テキスト位置微調整 */
.introarea p {
  margin-left: 1%;
}
.loBox3 {
  margin-left: 1%;
}

/* 商品枠 */

.product-row {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.product-image-container {
  flex: 0 0 120px;
  margin-right: 20px;
}

.row-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-details {
  padding-left: 15px; /* 画像との間隔を確保 */
  display: flex; /* flexboxを使う */
  flex-direction: column; /* 要素を縦に並べる */
  justify-content: center; /* 垂直方向の中央に揃える */
}

.product-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.product-price {
  font-size: 1.5em; /* 価格を少し大きくする */
  font-weight: bold;
  margin: 0 0 10px;
}

.product-description {
  font-size: 0.9em;
  color: #666;
  margin: 10px 0;
}

.product-button {
  /* ボタンの背景色をオレンジに設定 */
  background-color: #ff8c00;
  /* 文字色を白に設定 */
  color: #fff !important;
  
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}

.product-button:hover {
  /* ホバー時の色を少し濃いオレンジに */
  background-color: #e57300;
}

/* 商品画像のみ */

.image-gallery-container {
  display: flex; /* 子要素を横並びにする */
  justify-content: space-between; /* 子要素を両端に寄せて均等に配置 */
  /* gap: 15px; */ /* 子要素間の余白 */
  /* max-width: 600px; */ /* 全体の最大幅を600pxに設定 */
  margin: 0 auto; /* 全体を中央に配置 */
}

.image-gallery-item {
  flex: 1 1 0; /* 各アイテムの幅を均等にする */
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.image-gallery-item:hover {
  transform: translateY(-5px); /* ホバー時に少し上に移動するエフェクト */
}

.image-gallery-item img {
  width: 100%; /* 親要素の幅に合わせて画像を100%にする */
  height: auto;
  display: block;
}

/* スライドバナー */

/* スライダーの外枠 (600x200を維持) */
.slider-container {
    width: 600px;
    height: 200px;
    overflow: hidden; /* 枠外の画像を隠す */
    margin: 20px auto;
}

/* 画像を横に並べるラッパー */
.slider-wrapper {
    /* 3枚の画像分の幅 (600px * 3 = 1800px) */
    width: 1800px;
    height: 100%;
    display: flex; /* 画像を横並びに */

    /* ----- 自動スライドの鍵となる設定 ----- */
    animation: slide-animation 9s infinite; /* 9秒で無限ループ（1枚3秒） */
}

/* 画像個別の設定 */
.slide {
    width: 600px;
    height: 200px;
    flex-shrink: 0; /* 画像の縮小を禁止 */
}

/* ----- キーフレームアニメーション ----- */
/* 3枚のスライドを9秒（3s * 3）かけて移動させるアニメーションを定義 */
@keyframes slide-animation {
    /* 0s - 3s (0% - 33.33%)：1枚目表示 (0%移動) */
    0%, 27.77% {
        transform: translateX(0);
    }
    
    /* 3s - 6s (33.33% - 66.66%)：2枚目表示 (-600px移動) */
    33.33%, 61.11% {
        transform: translateX(-600px);
    }
    
    /* 6s - 9s (66.66% - 100%)：3枚目表示 (-1200px移動) */
    66.66%, 94.44% {
        transform: translateX(-1200px);
    }

    /* 94.44% - 100% の間に1枚目に戻るための瞬時の移動を確保 */
    100% {
        transform: translateX(0);
    }
}

/* 右寄せ */
.link2 {
  display: inline-block; /* インラインブロック要素にする */
  float: right; /* 右に寄せる */
}
.link2 a {
  float: left;
  clear: left;
  display: block;
  margin: 4px 0 10px;
  padding: 9px 10px 7px 20px;
  font-size: 93%;
  text-decoration: none;
  padding: 9px 10px 7px 16px;
  color: #6B9ED3 !important;
  background-color: #FFF !important;
  background-image: url(https://www.lovecosmetic.jp/shop/images/item/common_link.png);
  background-position: 8px 50%;
  background-repeat: no-repeat;
  border: 1px solid #6B9ED3;
  -moz-box-shadow: 3px 3px #6B9ED3;
  -webkit-box-shadow: 3px 3px #6B9ED3;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}

#contents .loBox2 .mttl, #contents .loBox3 .mttl, #contents .loBox3_staff .mttl {
  background: #47B18C;
  border-radius: 5px;
  color: #FFF;
  font-size: 14px;
  padding: 15px 20px 13px;
  line-height: 140%;
}
