/* =====================================================
ショップ全体の基本設定
===================================================== */
.scroll-section {
  margin: 16px 0;
}

/* 上部タイトル＋もっと見る */
.scroll-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-top: 30px;
}

/* もっと見る＞ */
.more-link {
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  color: #2b6cff;
}

/* 横スクロール（index.html用） */
.shop-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 8px;

  /* スマホでスワイプしやすく */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;

  /* スクロールバー非表示（主要ブラウザ対応） */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / Edge */
}

/* 2列グリッド（shop-lists.html用） */
.shop-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 50px 0;
  /* justify-items: center; */
}

/* 左列（奇数）→右寄せ */
.shop-column .card:nth-child(odd) {
  justify-self: end;
}

/* 右列（偶数）→左寄せ */
.shop-column .card:nth-child(even) {
  justify-self: start;
}

.card {
  width: 100%;
}



/* カード：本体 */
.card {
  flex: 0 0 auto;
  width: 85%;
  /* 85% ORG:200px 150px */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  scroll-snap-align: start;
  display: flex;
  /* 縦並びに変更 */
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.width150 .card {
  width: 150px;
  /* index.html のみ width を狭くする */
}


/* カード：画像エリア */
.card-img {
  position: relative;
  width: 100%;
}

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

/* カード：画像の下部にグラデーション */

.card-img::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  /* グラデーションの高さ */

  background: linear-gradient(to top,
      rgba(0, 0, 0, 1.0),
      rgba(0, 0, 0, 0));
}

/* カード：画像の上にタイトル */
.card-img .title {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  /* 中央寄せ */
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  z-index: 2;
  white-space: nowrap;
  /* 1行固定 */
  text-align: center;
}

/* カード：下のテキスト */
.card-text {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.caption {
  font-size: 14px;
  color: #666;
  text-align: left;
  line-height: 18px;
}

/* 1行に収まらないときの省略記号（…）｜caption に適応 */
.ellipsis-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  font-size: 14px;
  font-weight: 700;
  background: #2f80ff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #fff;
}

a.benefits {
  color: #fff;
}

/* 戻るボタン */
.back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  color: #333;
  z-index: 9999;
}

/* 矢印（CSSで再現） */
.back-btn .arrow {
  width: 12px;
  height: 12px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  margin-left: 6px;
  transform: rotate(45deg);
}


/* 使用済み表示 */
.benefits.used {
  background: #999999;
  color: #ffffff;
}

/* 使用済みバッジ */
.coupon-used-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 9px;
  border-radius: 999px;
  z-index: 2;
}


