﻿/* ========================================
   TOP クーポンBOX 中身
======================================== */
.top-coupon-box__panel-lead{
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}

.top-coupon-box__empty{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}


/* ========================================
   一覧
======================================== */
.top-coupon-box__list{
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ========================================
   キャンペーン単位
======================================== */
.top-coupon-box__campaign{
  display: grid;
  gap: 10px;
}

.top-coupon-box__campaign-head{
  padding-bottom: 0px;
}

.top-coupon-box__campaign-title{
  margin-top: 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  
  /*-- キャンペーンボタンと色連携 --*/
  background: linear-gradient(
    90deg,
    var(--campaign-link-start, #c86f4a) 0%,
    var(--campaign-link-end, #efb08d) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/*-- ■タイトル --*/
.top-coupon-box__campaign-title::before{
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--campaign-link-start, #c86f4a);
  border-radius: 2px;
  transform: translateY(-1px);
}


/* ========================================
   商品一覧
   SP:1カラム
   PC: 1件なら1カラム全幅 / 2件以上で2カラム
======================================== */
.top-coupon-box__campaign-products{
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}


/* ========================================
   商品ごとの区切り
======================================== */
.top-coupon-box__campaign-product{
  display: grid;
  gap: 14px;
  padding: 15px 0 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.top-coupon-box__campaign-product:first-child{
  border-top: none;
}

@media (min-width: 768px){
  .top-coupon-box__campaign-product{
    padding: 16px 0;
  }

  .top-coupon-box__campaign-product-main{
    grid-template-columns: 190px 1fr;
    gap: 16px;
  }
}


/* ========================================
   商品本体
======================================== */
.top-coupon-box__campaign-product-main{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: start;
}

.top-coupon-box__campaign-thumb-link{
  display: block;
  text-decoration: none;
}

.top-coupon-box__campaign-thumb{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
}

.top-coupon-box__campaign-meta{
  min-width: 0;
}

.top-coupon-box__campaign-product-name{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #2f2a23;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.top-coupon-box__campaign-product-name a{
  color: inherit;
  text-decoration: none;
}

.top-coupon-box__campaign-product-name a:hover{
  text-decoration: underline;
}

.top-coupon-box__campaign-price,
.top-coupon-box__campaign-discount,
.top-coupon-box__campaign-limit{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.top-coupon-box__campaign-price{
  font-weight: 700;
  color: #2f2a23;
}

.top-coupon-box__campaign-discount{
  font-weight: 700;
  color: #b43a3a;
}

.top-coupon-box__campaign-limit{
  color: #7a746b;
}


/* ========================================
   商品ボタン
======================================== */
.top-coupon-box__campaign-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.top-coupon-box__campaign-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.top-coupon-box__campaign-button--detail{
  border: 1px solid #d9d0bf;
  background: #fff;
  color: #3a3124;
}

.top-coupon-box__campaign-button--use{
  border: 1px solid rgba(183, 138, 58, 0.28);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,1) 0%,
    rgba(248,244,236,1) 100%
  );
  color: #3a3124;
}

.top-coupon-box__campaign-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}


/* ========================================
   キャンペーン下部
======================================== */
.top-coupon-box__campaign-footer{
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.top-coupon-box__campaign-link{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d0bf;
  border-radius: 999px;
  background: #fff;
  color: #3a3124;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.top-coupon-box__campaign-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.top-coupon-box__campaign-note{
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7a746b;
}


/* ========================================
   特集リンクボタン
======================================== */
.top-coupon-box__event-links{
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.top-coupon-box__event-link{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d0bf;
  border-radius: 999px;
  background: #fff;
  color: #3a3124;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.top-coupon-box__event-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}


/* ========================================
   あなた限定ガイド
======================================== */
.top-coupon-box__special-guide{
  display: grid;
  gap: 10px;
  margin: 35px 0 25px 0;
  padding-top: 28px;
  border-top: 1px solid #ece7dc;
}

.top-coupon-box__special-guide-text{
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
  color: #3a3124;
  text-align: center;
}

.top-coupon-box__special-guide-link{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d0bf;
  border-radius: 999px;
  background: #fff;
  color: #3a3124;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.top-coupon-box__special-guide-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}


/* ========================================
   下部フッター
======================================== */
.top-coupon-box__footer{
  margin-top: 20px;
}

.top-coupon-box__all-link{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #3a3124;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.top-coupon-box__all-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}


/* ========================================
   PC
======================================== */
@media (min-width: 768px){
  .top-coupon-box__campaign-products.has-multiple{
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }

  .top-coupon-box__campaign-products.has-multiple::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #e5e5e5;
    transform: translateX(-0.5px);
    pointer-events: none;
  }

  .top-coupon-box__campaign-product{
    min-width: 0;
  }

  .top-coupon-box__campaign-product-main{
    grid-template-columns: 180px 1fr;
  }
}


/* ========================================
   SP
======================================== */
@media (max-width: 767px){
  .top-coupon-box__list{
    gap: 24px;
  }

  .top-coupon-box__campaign{
    gap: 12px;
  }

  .top-coupon-box__campaign-head{
    padding-bottom: 6px;
  }

  .top-coupon-box__campaign-title{
    font-size: 16px;
  }

  .top-coupon-box__campaign-product{
    gap: 12px;
    padding: 16px 0;
  }

  .top-coupon-box__campaign-product-main{
    grid-template-columns: 150px 1fr;
    gap: 12px;
    align-items: start;
  }

  .top-coupon-box__campaign-thumb{
    border-radius: 8px;
  }

  .top-coupon-box__campaign-product-name{
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .top-coupon-box__campaign-price,
  .top-coupon-box__campaign-discount,
  .top-coupon-box__campaign-limit{
    font-size: 12px;
    line-height: 1.6;
  }

  .top-coupon-box__campaign-actions{
    gap: 8px;
  }

  .top-coupon-box__campaign-button{
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .top-coupon-box__campaign-link{
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-coupon-box__campaign-note{
    font-size: 11px;
  }

  .top-coupon-box__event-links{
    gap: 8px;
    margin-top: 20px;
  }

  .top-coupon-box__event-link{
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-coupon-box__special-guide{
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .top-coupon-box__special-guide-text{
    font-size: 12px;
  }

  .top-coupon-box__special-guide-link{
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .top-coupon-box__footer{
    margin-top: 16px;
  }

  .top-coupon-box__all-link{
    min-height: 42px;
    font-size: 12px;
  }
}

/* ========================================
   色連携メモ
   campaignLinkMap の
   buttonStart / buttonEnd / textColor / borderColor を変えると
   ・キャンペーンタイトル文字
   ・タイトル前の■
   ・キャンペーンイベントボタン
   が連動して変わる
======================================== */

/* ==  キャンペーンボタン配置制御  == */

/*-- ボタンラップ --*/
.top-coupon-box__campaign-event-link-wrap{
  margin-top: 14px;
  
  /*-- ▼ 右寄せ（デフォルト） --*/
  display: flex;
  justify-content: flex-end;

  /*-- ▼ 中央100%にしたい場合は↓を有効化
  display: block;
  --*/
}

/*-- ボタン本体 --*/
.top-coupon-box__campaign-event-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;

  border: 1px solid var(--campaign-link-border, #333);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--campaign-link-start, #333) 0%,
    var(--campaign-link-end, #666) 100%
  );
  color: var(--campaign-link-color, #fff) !important;
  -webkit-text-fill-color: var(--campaign-link-color, #fff);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;

  /* ▼ 右寄せ用サイズ（デフォルト） 
  width: auto;
  max-width: 320px;
  */

  /* ▼ フル幅（クーポンBOXと同じ）*/
  width: 100%;
  max-width: none;
}

.top-coupon-box__campaign-event-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.top-coupon-box__campaign-event-link:active{
  transform: translateY(1px);
}