/* 基本スタイル */
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.6;
  color: #5d4037;
  background-color: #fff8f8; /* Valentine's light pink */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 3.22C6.42 1.33 2.84 3.22 2.84 7.5c0 4.28 7.16 8.5 7.16 8.5s7.16-4.22 7.16-8.5c0-4.28-3.58-6.17-7.16-4.28z' fill='%23FFE8E8' transform='rotate(15 50 50) translate(20 20)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1100px; /* 少し狭める */
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ヘッダー */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.header .logo {
  text-align: center;
}

.header .logo img {
  width: 10%;
  max-width: 500px;
}

.saletitle {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  color: #c04050;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* メインビジュアル */
.main-visual img {
  width: 100%;
}

/* 商品セクション */
.products {
  padding: 50px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px; /* 商品間の余白を広げる */
}

.product-item {
  background-color: #fff;
  border: 1px solid #efebe9; /* 境界線を少し薄く */
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 10px 25px rgba(133, 91, 81, 0.05); /* デフォルトで少し影 */
  transition:
    box-shadow 0.3s,
    opacity 0.8s,
    transform 0.8s; /* transitionを追加 */
  opacity: 0; /* 初期状態を透明に */
  transform: translateY(30px); /* 少し下に配置 */
}

.product-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-item:hover {
  box-shadow: 0 15px 35px rgba(133, 91, 81, 0.1); /* ホバー時の影を強く */
}

.product-item:nth-child(even) {
  flex-direction: row-reverse; /* 偶数番目のアイテムを反転 */
}

.product-item:nth-child(even) .product-item-details {
  text-align: left; /* 反転したアイテムのテキストも左寄せ */
}

.product-item-image {
  flex: 1 1 45%;
  text-align: center;
  position: relative; /* アイコン配置の基準 */
}

.discount-icon {
  position: absolute;
  top: -30px;
  left: -43px;
  width: 120px; /* アイコンのサイズ */
  height: auto;
  z-index: 10;
}

.product-number {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 70px;
  height: 70px;
  z-index: 10;
}

.product-number svg {
  width: 100%;
  height: 100%;
}

.product-number .heart-text {
  font-family: "Bodoni Moda", serif;
  font-size: 10px;
  fill: #fff;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
}

.product-item-details {
  flex: 1 1 55%;
  text-align: left;
  position: relative; /* アイテム番号の配置基準 */
}

.product-image {
  margin-bottom: 20px;
}

.color-variations {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
  list-style: none;
  padding: 0;
}

.color-variations li {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-variations li:hover {
  transform: scale(1.1);
}

.color-variations li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-eng {
  font-family: "Playfair Display", serif;
  color: #e4b9a6;
  font-size: 15px;
}

.product-category {
  font-size: 60px;
  line-height: 1;
  color: #855b51;
  margin-bottom: 8px;
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
  font-family: "azote", serif;
}

.product-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #5d4037;
}

.product-description {
  font-size: 15px;
  margin-bottom: 25px;
  line-height: 1.8;
  color: #5d4037;
}

.product-price {
  font-size: 16px;
  color: #888;
  margin-bottom: 25px;
}

.product-price .sale-price {
  font-size: 24px;
  font-weight: bold;
  color: #e60012;
}

.btn {
  display: inline-block;
  background-color: #855b51;
  color: #fff;
  padding: 14px 35px;
  text-decoration: none;
  border-radius: 8px; /* 少し丸く */
  transition:
    background-color 0.3s,
    transform 0.3s;
  font-weight: bold;
  width: 25%;
  text-align: center;
}

.btn:hover {
  background-color: #a52a2a;
  transform: translateY(-2px);
}

.other {
  text-align: center;
}

.other a {
  display: block;
  margin: 0 auto;
  width: 15%;
  margin-top: 20px;
  padding: 10px;
  background-color: #c04050;
  color: #fff;
}

.other a:hover {
  background-color: #a52a2a;
  transform: translateY(-2px);
}

/* フッター */
.footer {
  padding: 50px 0;
  background-color: #fff8f8;
  color: #5d4037;
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid #eee;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .header .logo img {
    width: 30%;
  }
  .container {
    padding: 0 20px;
  }
  .saletitle {
    font-size: 40px;
  }
  .products {
    padding: 30px 0;
  }

  .product-grid {
    gap: 40px;
  }

  .product-item {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .discount-icon {
    top: -10px;
    left: -10px;
    width: 70px; /* スマホ用に少し小さく */
  }

  .product-item-details {
    text-align: center;
    width: 100%; /* 幅を100%に */
  }

  .product-item:nth-child(even) {
    flex-direction: column;
  }

  .product-item:nth-child(even) .product-item-details {
    text-align: center; /* スマホでは偶数番目も中央揃えに */
  }

  .product-category {
    font-size: 40px; /* スマホ用に調整 */
  }

  .product-description {
    text-align: left; /* 説明文は左揃えのまま */
    font-size: 14px;
  }

  .product-name {
    font-size: 18px;
  }

  .product-price .sale-price {
    font-size: 20px;
  }

  .btn {
    width: 85%;
    padding: 12px;
  }

  .other a {
    width: 70%;
  }
}
/* RECOMMEND ITEMS 直前のリード文 */
.sale-lead{
  max-width: 900px;
  margin: 50px auto 24px;
  padding: 0 20px;
  text-align: center;
  font-size: 20px;        /* ← 大きく */
  line-height: 2.0;       /* ← ゆったり */
  color: #5d4037;
  letter-spacing: 0.04em; /* ← 上品に */
  font-weight: 500;
}

/* スマホ */
@media (max-width: 767px){
  .sale-lead{
    margin: 34px auto 16px;
    font-size: 16px;      /* スマホでも“小さく見えない” */
    line-height: 2.0;
  }
}
