/* =========================================================
   駅家店：初売りSALE（スコープ：.ekya-sale）
   目的：
   - THE THORの装飾と衝突しない（全部 .ekya-sale 配下に限定）
   - 「目玉ソフト＆本体」だけ右寄りになる現象を潰す
   - .ekya-price の衝突（別用途）をスコープで解決
   - CSSの構文崩れ（余計な } や未完成セレクタ）をゼロにする
========================================================= */

/* -------------------------
  ベース（外枠フレーム）
------------------------- */
.ekya-sale{
  --r:#e60012;
  --y:#f6c14b;
  --ink:#111;
  --cream:#fff7df;
  --shadow:0 10px 26px rgba(0,0,0,.12);
  --rad:18px;

  box-sizing:border-box;
  position:relative;
  border-radius:20px;
  border:2px solid rgba(246,193,75,.55);
  box-shadow:0 14px 34px rgba(0,0,0,.10);
  overflow:hidden;

  /* 枠のサイズ（960にしたいなら 960px に） */
  max-width:980px;
  margin:18px auto;
  padding:18px;

  /* フレーム（淡いグラデーション） */
  background: linear-gradient(180deg,
    rgba(255, 214, 214, .55),
    rgba(255, 238, 206, .55)
  );
}

/* 中身は通常幅100% */
.ekya-sale__inner{
  position:relative;
  padding:clamp(18px,3.2vw,28px);
  margin:0;
  box-sizing:border-box;
}

/* 装飾ドット（任意） */
.ekya-sale::before{
  content:"";
  position:absolute;
  inset:-80px -80px auto -80px;
  height:220px;
  background:
    radial-gradient(circle, rgba(230,0,18,.18) 0 3px, transparent 3px 100%),
    radial-gradient(circle, rgba(22,102,255,.18) 0 3px, transparent 3px 100%),
    radial-gradient(circle, rgba(246,193,75,.18) 0 3px, transparent 3px 100%);
  background-size:42px 42px;
  transform:rotate(-8deg);
  opacity:.22;
  pointer-events:none;
}

/* 念のため：THE THOR側の float などを局所無効化 */
.ekya-sale,
.ekya-sale *{
  box-sizing:border-box;
}
.ekya-sale *{
  float:none !important;
}

/* -------------------------
  上部（バッジ・開催日）
------------------------- */
.ekya-sale__top{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.ekya-sale__badge,
.ekya-sale__date{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:.03em;
}

.ekya-sale__badge{
  background:linear-gradient(90deg,var(--r), #ff4a57);
  color:#fff;
  box-shadow:0 10px 18px rgba(230,0,18,.18);
}
.ekya-sale__badge small{
  font-weight:800;
  opacity:.95;
  background:rgba(255,255,255,.18);
  padding:3px 10px;
  border-radius:999px;
}

.ekya-sale__date{
  background:#111;
  color:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.10);
}
.ekya-sale__date span{
  color:var(--y);
  font-weight:1000;
}

/* -------------------------
  タイトル赤帯
------------------------- */
.ekya-sale__title{
  margin:16px 0 10px;
  padding:18px 16px;
  border-radius:14px;
  border:2px solid rgba(0,0,0,.08);
  box-shadow:0 10px 18px rgba(230,0,18,.18);
  background:linear-gradient(90deg,var(--r), #ff3b4a);

  color:#fff;
  font-size:clamp(22px,3.8vw,38px);
  font-weight:1000;
  line-height:1.15;
  text-align:center;

  display:grid;
  justify-items:center;
  align-content:center;
  row-gap:10px;
}

/* 赤帯の中は強制で白（読みやすさ） */
.ekya-sale .ekya-sale__title,
.ekya-sale .ekya-sale__title *{
  color:#fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.35) !important;
}

/* “最大30%OFF”などの白タグ */
.ekya-sale__title strong{
  background:rgba(255,255,255,.18);
  padding:.08em .35em;
  border-radius:10px;
  white-space:nowrap;
}

.ekya-break{ display:inline; }
@media (max-width:560px){
  .ekya-break{ display:block; }
  .ekya-sale__title{ padding:16px 14px; }
}

/* -------------------------
  リード文
------------------------- */
.ekya-sale__lead{
  margin:0 0 16px;
  font-size:clamp(15px,2.1vw,17px);
  line-height:1.85;
  color:rgba(0,0,0,.92);
}

/* -------------------------
  CTA（ボタン）
------------------------- */
.ekya-sale__cta{ margin-top:12px; }

@media (min-width:561px){
  .ekya-sale__cta{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:14px;
    justify-items:center;
    align-items:center;
  }
}
@media (max-width:560px){
  .ekya-sale__cta{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
  }
}

.ekya-btn{
  appearance:none;
  cursor:pointer;
  text-decoration:none;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  height:56px;
  width:320px;
  max-width:100%;
  padding:0 18px;

  border-radius:14px;
  border:2px solid transparent;

  font-weight:1000;
  letter-spacing:.02em;
  line-height:1;
  white-space:nowrap;

  box-shadow:0 10px 18px rgba(0,0,0,.10);
  transition:transform .08s ease, box-shadow .12s ease, filter .12s ease;
}
.ekya-btn:active{ transform:translateY(1px); }
@media (max-width:560px){ .ekya-btn{ width:100%; } }

.ekya-btn--primary{
  background:linear-gradient(90deg,var(--r), #ff4a57);
  color:#fff !important;
  border: 2px solid rgba(255,255,255,.25);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
  box-shadow: 0 12px 26px rgba(230,0,18,.22);
}
.ekya-btn--primary *{ color:#fff !important; }

.ekya-btn--ghost{
  background:#fff;
  color:#111;
  border-color:rgba(0,0,0,.18);
  box-shadow:0 10px 18px rgba(0,0,0,.08);
}

/* -------------------------
  まとめ買いブロック（そのまま）
------------------------- */
.ekya-sale__hero{
  margin-top:14px;
  padding:14px;
  border-radius:14px;
  background:#fff;
  border:2px solid rgba(0,0,0,.08);
}
.ekya-hero__title{ margin:10px 0 10px; font-weight:1000; font-size:18px; }

.ekya-dealgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
@media (max-width:560px){ .ekya-dealgrid{ grid-template-columns:1fr; } }

.ekya-deal{
  border-radius:14px;
  border:2px solid rgba(0,0,0,.10);
  background:linear-gradient(180deg,#fff, rgba(246,193,75,.10));
  padding:12px;
}
.ekya-deal--big{
  background:linear-gradient(180deg, rgba(230,0,18,.06), rgba(246,193,75,.10));
  border-color:rgba(230,0,18,.22);
}
.ekya-deal__label{ font-weight:900; color:rgba(0,0,0,.82); }
.ekya-deal__main{ margin-top:6px; font-size:clamp(18px,2.6vw,22px); font-weight:1000; }
.ekya-deal__main b{ color:var(--r); }

.ekya-hero__note{
  margin:10px 0 0;
  color:rgba(0,0,0,.75);
  font-size:14px;
  line-height:1.7;
}

/* -------------------------
  サブカード
------------------------- */
.ekya-sale__subgrid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:10px;
}
@media (max-width:900px){ .ekya-sale__subgrid{ grid-template-columns:1fr; } }

.ekya-subcard{
  background:#fff;
  border:2px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:12px;
}
.ekya-subcard h3{ margin:8px 0 6px; font-weight:1000; }
.ekya-subcard__big{ font-size:20px; font-weight:1000; margin:0; }
.ekya-subcard__big b{ color:var(--r); }
.ekya-subcard__note{ margin:6px 0 0; color:rgba(0,0,0,.75); line-height:1.7; font-size:14px; }

/* =========================
   数量限定（目玉ソフト＆本体）
   スコープ：#ekya-picks（このブロックの中だけ）
========================= */

#ekya-picks{
  width: 100%;
  max-width: 980px;          /* 960にしたいならここを960px */
  margin: 0 auto;
}

/* 見出し */
#ekya-picks .ekya-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background: rgba(246,193,75,.22);
  border: 1px solid rgba(0,0,0,.12);
  font-weight: 900;
}

#ekya-picks .ekya-picks__title{
  margin: 10px 0 6px;
  font-weight: 1000;
  font-size: 18px;
}

#ekya-picks .ekya-picks__lead{
  margin: 0 0 12px;
  color: rgba(0,0,0,.78);
  font-size: 14px;
  line-height: 1.7;
}

/* 注意書き */
#ekya-picks .ekya-note--limit{
  margin: 6px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
  font-weight: 800;
}

/* 商品一覧：PC 2カラム／スマホ 1カラム */
#ekya-picks .ekya-picks__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin: 0 auto;
}

/* PCで先頭（PS5）を全幅にする */
@media (min-width: 721px){
  #ekya-picks .ekya-picks__grid > *:first-child{
    grid-column: 1 / -1;
  }
}

/* 980px以下は1カラム */
@media (max-width: 980px){
  #ekya-picks .ekya-picks__grid{
    grid-template-columns: 1fr;
  }
}

/* カード本体 */
#ekya-picks .ekya-item{
  background: #fff;
  border: 2px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 14px;
}

/* ヘッダー（PCは横並び、スマホは縦積みで崩れ防止） */
#ekya-picks .ekya-item__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#ekya-picks .ekya-item__name{
  margin: 0;
  font-weight: 1000;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(0,0,0,.92);
  /* 変な縦割れ防止：基本は普通に折り返し */
  overflow-wrap: break-word;
  word-break: normal;
}

#ekya-picks .ekya-badges{
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

#ekya-picks .ekya-badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: 12px;
  letter-spacing: .02em;
  border: 1px solid rgba(0,0,0,.12);
  white-space: nowrap;
}

#ekya-picks .ekya-badge.is-new{
  background: rgba(246,193,75,.25);
  border-color: rgba(246,193,75,.55);
}

#ekya-picks .ekya-badge.is-used{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.18);
}

#ekya-picks .ekya-badge.is-limit{
  background: rgba(230,0,18,.10);
  border-color: rgba(230,0,18,.28);
  color: #b3000e;
}

/* スマホ：タイトル縦割れ防止の本丸（バッジを下へ） */
@media (max-width: 560px){
  #ekya-picks .ekya-item__head{
    flex-direction: column;
    align-items: flex-start;
  }
  #ekya-picks .ekya-badges{
    justify-content: flex-start;
  }
}

/* 価格ブロック */
#ekya-picks .ekya-price{
  margin-top: 12px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid rgba(0,0,0,.10);
  text-align: right;
}

/* 税別（大きく、数字も円も赤） */
#ekya-picks .ekya-price__taxout{
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  font-size: clamp(34px, 3.2vw, 52px);
  color: #e60012;
}

#ekya-picks .ekya-price__taxout .yen{
  color: inherit;
  font-size: .65em;
  margin-left: .05em;
}

#ekya-picks .ekya-price__taxout small{
  font-size: .45em;
  font-weight: 900;
  color: rgba(0,0,0,.65);
  margin-left: .25em;
  white-space: nowrap; /* （税別）が途中で割れない */
}

/* 税込：途中改行を防ぐ（ここが今の悩みポイント） */
#ekya-picks .ekya-price__taxin{
  margin-top: 10px;
  font-size: 15px;
  font-weight: 900;
  color: rgba(0,0,0,.65);
  line-height: 1.2;
  white-space: nowrap;   /* ← どのスマホでも “税込 59,398円” を割らない */
}

/* 種別 */
#ekya-picks .ekya-item__type{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0,0,0,.62);
}

/* 最後の注意 */
#ekya-picks .ekya-picks__note{
  margin: 12px 0 0;
  color: rgba(0,0,0,.75);
  font-size: 14px;
  line-height: 1.7;
}

#ekya-picks .ekya-picks__note strong{
  background: linear-gradient(transparent 62%, rgba(230,0,18,.18) 62%);
  padding: 0 .15em;
  border-radius: 6px;
}

/* =========================
   上部バッジ（店名/開催日）＆CTAの崩れを最小変更で修正（追記用パッチ）
   ※必ずCSSの一番最後に貼る
========================= */

/* 上段の2つ（赤バッジ＋黒日付）は折り返し前提で安全に */
.ekya-sale__top{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

/* 赤い店名バッジ：中身が変な改行をしないように */
.ekya-sale__badge{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  max-width:100%;
  min-width:0;
}
.ekya-sale__badge small{
  white-space:nowrap; /* 「初売り」などの小バッジは割らない */
}

/* 黒い開催日：PCでは基本1行、狭い時だけ綺麗に折る */
.ekya-sale__date{
  max-width:100%;
  min-width:0;
  white-space:nowrap;         /* PCでは1行を優先 */
  overflow:hidden;            /* はみ出し保険 */
  text-overflow:ellipsis;     /* 万一の保険（基本ここまで行かない想定） */
}

/* CTA（チラシ/アクセス/電話）：
   3つ並べた時に「320px固定」が原因で右が貫通しやすいので、PCは幅100%に寄せる */
@media (min-width:561px){
  .ekya-sale__cta{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ekya-sale__cta .ekya-btn{
    width:100% !important;    /* 320px固定を殺す */
    min-width:0;
  }
}

/* スマホ：上段は縦積み＆中央寄せ、日付は折り返しOKにして読みやすく */
@media (max-width:560px){
  .ekya-sale__top{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }
  .ekya-sale__badge,
  .ekya-sale__date{
    width:100%;
    justify-content:center;
    text-align:center;
  }

  /* 日付はスマホで折り返し許可（ただし変に小さくならないよう調整） */
  .ekya-sale__date{
    white-space:normal;
    line-height:1.25;
    padding:10px 12px;
    font-size:14px;
  }

  /* 赤バッジもスマホで見やすいサイズに */
  .ekya-sale__badge{
    padding:10px 12px;
    font-size:14px;
  }
  .ekya-sale__badge small{
    padding:3px 8px;
  }
}

/* ? 注意事項：確実にブロック（箱）として表示させる最終上書き */
.ekya-sale .ekya-sale__notes{
  display:block !important;
  margin-top:14px !important;
  padding:12px 14px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.72) !important;
  border:1px dashed rgba(0,0,0,.18) !important;
  color:rgba(0,0,0,.82) !important;
  font-size:14px !important;
  line-height:1.7 !important;
}

/* 見出し（注意事項） */
.ekya-sale .ekya-sale__notes > strong{
  display:block !important;
  font-weight:1000 !important;
  margin-bottom:8px !important;
}

/* 箇条書き（THE THOR側の装飾を無効化して統一） */
.ekya-sale .ekya-sale__notes ul{
  list-style:none !important;
  padding-left:0 !important;
  margin:6px 0 0 !important;
}
.ekya-sale .ekya-sale__notes li{
  position:relative !important;
  padding-left:1.2em !important;
  margin:6px 0 !important;
}
.ekya-sale .ekya-sale__notes li::before{
  content:"・" !important;
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  color:rgba(0,0,0,.75) !important;
}

/* 強調だけ薄赤ライン */
.ekya-sale .ekya-sale__notes li strong{
  background:linear-gradient(transparent 62%, rgba(230,0,18,.18) 62%) !important;
  padding:0 .15em !important;
  border-radius:6px !important;
}

/* ? 注意事項：変な記号（テーマの疑似要素/マーカー）を完全に消す */
.ekya-sale .ekya-sale__notes li::before,
.ekya-sale .ekya-sale__notes li:before,
.ekya-sale .ekya-sale__notes li::marker{
  content: "" !important;
  display: none !important;
}

/* ? 代わりに「・」だけをこちらで付ける（見た目を統一） */
.ekya-sale .ekya-sale__notes li{
  position: relative !important;
  padding-left: 1.2em !important;
}
.ekya-sale .ekya-sale__notes li::after{
  content: "・" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: rgba(0,0,0,.75) !important;
}

/* ? 注意事項：先頭の謎アイコン(◆?)を「・」に固定（最終上書き） */
.ekya-sale .ekya-sale__notes ul{
  list-style: none !important;
}

.ekya-sale .ekya-sale__notes li{
  position: relative !important;
  padding-left: 1.2em !important;
}

/* 「・」は文字化けしないようにUnicode指定（\30FB） */
.ekya-sale .ekya-sale__notes li::before{
  content: "\30FB" !important; /* ・ */
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  font-family: inherit !important;
  font-size: 1em !important;
  line-height: 1 !important;
  color: rgba(0,0,0,.75) !important;
}

/* さっきの対策で ::after を使ってた場合の保険（2重防止） */
.ekya-sale .ekya-sale__notes li::after{
  content: none !important;
  display: none !important;
}


/* PCだけ「アミューズメント」で改行。スマホは改行させない */
br.ekya-br-pc{ display:none; }

@media (min-width:901px){
  br.ekya-br-pc{ display:block; }
}

.ekya-sale__banner{
  margin: 12px 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}
.ekya-sale__banner img{
  display:block;
  width:100%;
  height:auto;
}


/* 初売りバナー：PC/スマホ両方表示 */
.ekya-sale .ekya-hero-banner{
  margin: 16px auto 18px;
  max-width: 980px;
}

.ekya-sale .ekya-hero-banner img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

/* スマホ最適化：横幅いっぱいで見せる */
@media (max-width: 560px){
  .ekya-sale .ekya-hero-banner{
    margin: 12px 0 14px;
    max-width: none;
  }
  .ekya-sale .ekya-hero-banner img{
    border-radius: 14px;
  }
}

/* バナー：スマホでも必ず横幅いっぱいにする（最終上書き） */
.ekya-hero-banner{
  width: 100% !important;
  max-width: none !important;
  margin: 12px 0 14px !important;
}

.ekya-hero-banner img{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
}

/* PCでは中央寄せ＆最大幅 */
@media (min-width: 561px){
  .ekya-hero-banner{
    max-width: 980px !important;
    margin: 16px auto 18px !important;
  }
  .ekya-hero-banner img{
    border-radius: 18px;
  }
}

/* 1) バナー自体を確実に横幅いっぱいに（スマホ最優先） */
@media (max-width: 560px){
  .entry-content .ekya-hero-banner{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    margin: 12px 0 14px !important;

    /* もし親がflexの中でも「1行ぶち抜き」にする */
    flex: 0 0 100% !important;
  }

  .entry-content .ekya-hero-banner img{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
  }
}

/* 2) PCは中央寄せ（必要なら） */
@media (min-width: 561px){
  .entry-content .ekya-hero-banner{
    max-width: 980px !important;
    margin: 16px auto 18px !important;
  }
  .entry-content .ekya-hero-banner img{
    border-radius: 18px;
  }
}

/* バナーが ekya-sale__top (flex) の中にいる場合の最終固定 */
@media (max-width: 560px){
  .ekya-sale__top .ekya-hero-banner{
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
  }
}


/* スマホ：トップ周りを縦積みにして、バナーを幅100%で確保 */
@media (max-width: 560px){
  .ekya-sale .ekya-sale__top{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .ekya-sale .ekya-hero-banner{
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }

  .ekya-sale .ekya-hero-banner img{
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}


/* ?スマホ：上部の横並びを縦積みにして、バナーを100%幅に固定 */
@media (max-width: 560px){
  .ekya-sale .ekya-sale__top{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  /* バナーを「1行ぶち抜き」にする */
  .ekya-sale .ekya-sale__top .ekya-hero-banner{
    order: 99 !important;             /* 最後に回して崩れ防止 */
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin: 10px 0 0 !important;
  }

  .ekya-sale .ekya-sale__top .ekya-hero-banner img{
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* =========================
   ヒーローバナー：確実に効かせる最終版
   HTML上、.ekya-sale__top の外にいるので .ekya-sale 直下で指定
========================= */

/* 共通：まずは崩れない安全設定 */
.ekya-sale .ekya-hero-banner{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 12px 0 14px !important;
}

.ekya-sale .ekya-hero-banner > img{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
}

/* PC：中央寄せ＆最大幅（お好みで980px） */
@media (min-width: 561px){
  .ekya-sale .ekya-hero-banner{
    max-width: 980px !important;
    margin: 16px auto 18px !important;
  }
  .ekya-sale .ekya-hero-banner > img{
    border-radius: 18px;
  }
}

/* スマホ：画面幅いっぱい(100vw)に“必ず”広げる（枠の内側paddingを突き抜ける） */
@media (max-width: 560px){
  .ekya-sale .ekya-hero-banner{
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .ekya-sale .ekya-hero-banner > img{
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* 金枠の内側に余白を確保（スマホだけ） */
@media (max-width: 560px){
  .ekya-sale__inner{
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  /* 念のため、バナー側の左右paddingは0に */
  .ekya-sale .ekya-hero-banner{
    padding: 0 !important;
  }
}


.ekya-hero-banner{
  margin: 12px calc(-1 * clamp(18px,3.2vw,28px)) 14px;
}
.ekya-hero-banner img{
  display:block;
  width:100%;
  height:auto;
}

.ekya-sale{
  /* padding:18px; ← これを消す or 0に */
  padding:0;
}

.sale-limit-badge{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  margin:10px 0 6px;
  flex-wrap:wrap;
}

.sale-limit-badge__tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#e60012;
  color:#fff;
  font-weight:800;
  font-size:14px;
  line-height:1;
}

.sale-limit-badge__date{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(230,0,18,.08);
  border:1px solid rgba(230,0,18,.22);
  color:#111;
  font-weight:800;
  font-size:14px;
  line-height:1;
}

/* スマホは中央寄せにすると視認性UP */
@media (max-width:600px){
  .sale-limit-badge{
    justify-content:center;
  }
}

/* 3日間限定バッジ行 */
.ekya-sale__limit{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-start; /* ←左揃え */
  align-items: center;
  text-align: left;            /* 親の text-align:center 対策 */
}

/* もし span に margin: 0 auto; が当たってたら無効化 */
.ekya-sale__limit .ekya-badge{
  margin: 0;
}

/* バッジの共通見た目（この行だけでも整う） */
.ekya-sale__limit .ekya-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}

/* 赤い方：3日間限定 */
.ekya-sale__limit .ekya-badge--hot{
  background: #e60012;
  color: #fff;
  border-color: rgba(230,0,18,.35);
}

/* 日付の方：白チップで上品に */
.ekya-sale__limit .ekya-badge--date{
  background: #fff;
  color: #111;
}

/* 3日間限定：サブグリッド（カード群）の前に出すバッジ */
.ekya-limit{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  margin: 6px 0 14px;
}

.ekya-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ekya-chip--hot{
  background: #e60012;
  color: #fff;
  border-color: rgba(230,0,18,.35);
}





