/* =========================================
   EC: Product list & Product card
   - PC: 4 columns
   - TB/SP(<=768): 2 columns
   - radius: 8px
   - border: #e0e0e0
   - shadow: very subtle
   - media: 1:1 cover
   - SP row5: 2段（数量+ボックス / カートに入れる）
   - NEW/予約 badge: #ff4200 (var --ec--new)
   - role pill (スポンサー/選手): #0f8200
   - limited icon: /assets/img/ec/sp.png
   ========================================= */

:root {
  --ec--new: #ff4200;
  --ec--role: #0f8200;
 --ec--role-sponsor: #0f8200;
  --ec--role-player: var(--player-dark); /* いつものピンク（btnのやつ） */
  --ec--bg: #f3f3f3;         /* common.css の body 背景に合わせる */
  --ec--card-bg: #ffffff;
  --ec--text: #404040;       /* common.css の body color に合わせる */
  --ec--muted: #666666;
  --ec--border: #e0e0e0;
  --ec--shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Page container */
.ec-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.ec-head {
  padding: 22px 0 14px;
}

.ec-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ec--text);
}

/* Grid */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; /* GAPは任せる → ここで確定 */
  padding-bottom: 28px;
}

@media (max-width: 768px) {
  .ec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px; /* SPで少し詰める */
  }
}

.ec-empty {
  grid-column: 1 / -1;
  background: var(--ec--card-bg);
  border: 1px solid var(--ec--border);
  border-radius: 8px;
  padding: 18px 16px;
  color: var(--ec--muted);
}

/* Card */
.pcard {
  background: var(--ec--card-bg);
  border: 1px solid var(--ec--border);
  border-radius: 8px;
  box-shadow: var(--ec--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 1: top row (badges left, role right) */
.pcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 8px;
}

.pcard__badges {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 22px; /* バッジ無しでも高さを安定させる */
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--ec--new); /* NEW/予約ともに同色指定 */
  line-height: 1;
  white-space: nowrap;
}

.pc-badge--new { background: var(--ec--new); }
.pc-badge--reserve { background: var(--ec--new); }

.pcard__pillWrap {
  display: inline-flex;
  justify-content: flex-end;
  min-height: 22px;
}

.pc-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  background: var(--ec--role); /* スポンサー/選手ともに同色指定 */
  line-height: 1;
  white-space: nowrap;
}

.pc-pill--sponsor { background: var(--ec--role-sponsor); }
.pc-pill--player  { background: var(--ec--role-player); }

/* 2: media (1:1 cover) */
.pcard__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-top: 1px solid var(--ec--border);
  border-bottom: 1px solid var(--ec--border);
  overflow: hidden;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  display: block;
 object-fit: contain;
  object-position: center;
}

/* 画像無し */
.pcard__ph {
  width: 100%;
  height: 100%;
  background: #f7f7f7;
}

/* limited icon overlay (asset/img/ec/sp.png) */
.pc-limited {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 44px;
  height: 44px;
  background-image: url("/assets/img/ec/sp.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;

  /* 中の「限定」テキストは視覚的に消す（DOMは残す） */
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}

/* 3: title */
.pcard__title {
  padding: 10px 12px 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ec--text);
  line-height: 1.35;
  word-break: break-word; /* 長い商品名も落とす */
}

/* 4: price (right aligned, incl tax label) */
.pcard__priceRow {
  padding: 0 12px 8px;
}

.pcard__price {
  text-align: right;
  font-size: 16px;
  font-weight: 900;
  color: var(--ec--text);
  line-height: 1.2;
  white-space: nowrap;
}

.pcard__price small {
  font-size: 12px;
  font-weight: 700;
  color: var(--ec--muted);
  margin-left: 4px;
}

/* 5: qty + add-to-cart */
.pcard__buy {
  padding: 10px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pcard__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pcard__qty span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ec--text);
}

.pcard__qty input[type="number"] {
  width: 76px;
  height: 36px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--ec--border);
  font-size: 14px;
  background: #ffffff;
  color: var(--ec--text);
  outline: none;
}

.pcard__qty input[type="number"]:focus {
  border-color: var(--player-main);
  box-shadow: 0 0 0 1px rgba(241,112,134,0.25);
}

.pcard__form {
  margin: 0;
  display: block;
}

/* 「色はいつものピンクボタン（class btn）」に寄せるため
   - Twig側で button に class="btn primary" を付ける前提にする。
   - ただし pcard__btn だけでも同じ見た目になるようにここでも定義しておく。 */
.pcard__btn,
.pcard__form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;

  background: var(--player-dark); /* “いつものピンク”系に合わせる（既存CSSの濃ピンク） */
  color: #ffffff;
}

.pcard__btn:hover,
.pcard__form .btn:hover {
  opacity: 0.92;
}

/* 6: period */
.pcard__period {
  padding: 0 12px 6px;
  font-size: 12px;
  color: var(--ec--muted);
}

/* 7: seller */
.pcard__seller {
  padding: 0 12px 10px;
  font-size: 12px;
  color: var(--ec--muted);
}

/* 8: detail link */
.pcard__detail {
  margin-top: auto;
  padding: 10px 12px 12px;
}

.pcard__detailBtn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--ec--border);
  background: #ffffff;
  color: var(--ec--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pcard__detailBtn:hover {
  background: #f7f7f7;
}
/* 画像本体 */
.pcard__media img {
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
  will-change: transform, filter;
}

/* オーバーレイ土台 */
.pcard__media {
  position: relative;
  overflow: hidden; /* 既にある前提 */
}

/* 透明レイヤー */
.pcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0); /* 初期透明 */
  transition: background 0.28s ease;
  pointer-events: none;
}

/* hover効果 */
.pcard__media:hover img {
  transform: scale(1.03);          /* 3% 拡大（1%は弱すぎる） */
  filter: brightness(1.15);       /* +15% */
}

.pcard__media:hover::after {
  background: rgba(255,255,255,0.12); /* 12% 白トランスペアレント */
}

.pcard .pcard__deadline{
  color:#e60033 !important;
  font-weight:700;
}

.pcard .pcard__shipping{
  color:#c4002f !important;
  font-weight:600;
  padding-left:12px;
}
/* =========================
   EC Detail
   ========================= */

.ec-detail{
  padding: 18px 18px 40px;
}

.ec-detail__inner{
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px){
  .ec-detail__inner{
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* LEFT media */
.ec-media__main{
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
}

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

.ec-media__thumbs{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.ec-media__thumbs::-webkit-scrollbar{
  height: 8px;
}
.ec-thumb{
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  width: 88px;
  height: 66px;
  flex: 0 0 auto;
  overflow: hidden;
  cursor: pointer;
}
.ec-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ec-thumb.is-active{
  outline: 3px solid var(--player-main); /* ピンク基調 */
  outline-offset: 0;
}

.ec-media__hint{
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

/* RIGHT info */
.ec-detail__title{
  font-size: 36px;
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
}

.ec-detail__titleline{
  margin-top: 10px;
  height: 4px;
  background: var(--player-main);
  border-radius: 999px;
}

.ec-detail__badges{
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  color: #fff;
}
.badge--new{ background: #ff3b30; }
.badge--pre{ background: #ff9500; }
.badge--lim{ background: #111; }
.badge--type{ background: var(--sponsor-dark); }

.ec-detail__meta{
  margin-top: 14px;
  color: #444;
  display: grid;
  gap: 6px;
}

.ec-detail__hr{
  margin: 16px 0;
  height: 1px;
  background: #dcdcdc;
}

.vwrap{ display: grid; gap: 12px; }
.vcat{ display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; }
.vcat__label{ font-weight: 900; }
.vcat__select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
}


.ec-detail__notice{ display: grid; gap: 6px; }
.notice--red{
  color: #e60000;
  font-weight: 900;
}

.ec-detail__priceRow{
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
}

.ec-detail__price{
  font-size: 44px;
  font-weight: 900;
  color: #222;
}
.ec-detail__price small{
  font-size: 14px;
  font-weight: 800;
  margin-left: 8px;
  color: #444;
}

.ec-detail__cta{ margin-top: 10px; }
.btn{
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
}
.btn--primary{
  background: var(--player-main);
  color: #fff;
}

.ec-detail__desc{
  margin-top: 18px;
  padding: 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  line-height: 1.8;
  color: #333;
}
.ec-detail__priceRow{
  margin-top: 18px;
}
/* =========================
   Add to cart button hover action
   ========================= */

.btn--primary{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

/* 光がスッと流れる */
.btn--primary::before{
  content: "";
  position: absolute;
  top: -30%;
  left: -60%;
  width: 40%;
  height: 160%;
  transform: skewX(-18deg);
  background: rgba(255,255,255,.35);
  filter: blur(0.2px);
  opacity: 0;
  transition: left .45s ease, opacity .25s ease;
  pointer-events: none;
}

/* hover：浮く＋ちょい濃い＋光スイープ */
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
  filter: saturate(1.08);
}
.btn--primary:hover::before{
  left: 120%;
  opacity: 1;
}

/* active：押し込み */
.btn--primary:active{
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 8px 16px rgba(0,0,0,.14);
}

/* disabled（送信中） */
.btn--primary.is-loading,
.btn--primary:disabled{
  cursor: not-allowed;
  opacity: .75;
  transform: none;
}
.btn--primary.is-loading::before{
  display: none;
}

/* 送信中のドット（任意で使う） */
.btn--primary .btn__dots{
  display: inline-flex;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}
.btn--primary .btn__dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  animation: btnDot 1.05s infinite ease-in-out;
}
.btn--primary .btn__dot:nth-child(2){ animation-delay: .12s; }
.btn--primary .btn__dot:nth-child(3){ animation-delay: .24s; }

@keyframes btnDot{
  0%, 80%, 100% { transform: translateY(0); opacity: .7; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.ec-thumbWrap{
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 3px;                 /* 枠の太さ */
  background: transparent;
}

.ec-thumbWrap.is-active{
  background: var(--player-main); /* 枠色 */
}

.ec-thumb{
  width: 88px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;              /* 角丸のために必要 */
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 0;
  cursor: pointer;
  display: block;
}
/* =========================
   Latest marquee (auto scroll left)
   ========================= */

.ec-latest{
  margin-top: 42px;
  padding: 24px 0 40px;
  border-top: 2px solid #3c3c3c;
}

.ec-latest__inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

.ec-latest__title{
  margin: 0 0 18px;
  font-size: 44px;
  font-weight: 900;
  color: #3c3c3c;
}

.ec-marquee{
  position: relative;
  overflow: hidden;
}

.ec-marquee__track{
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}



@keyframes ecMarqueeLeft{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); } /* 2周複製前提 */
}

/* カード幅：既存pcardが大きすぎるならここで固定 */
.ec-marquee .pcard{
  flex: 0 0 260px;
}
/* ドラッグ操作しやすく */
.ec-marquee{
  cursor: grab;
  user-select: none;
  touch-action: pan-y; /* 縦スクロールは生かす、横はJSで */
}
.ec-marquee.is-dragging{
  cursor: grabbing;
}
.ec-marquee:hover .ec-marquee__track{
  transform: translateX(var(--_x, 0px));
}
/* =========================
   Marquee edge fade
   ========================= */
.ec-marquee{
  position: relative;
  overflow: hidden;
}

/* 左右フェード */
.ec-marquee::before,
.ec-marquee::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;              /* フェード幅 */
  z-index: 6;               /* カードより上 */
  pointer-events: none;     /* 操作邪魔しない */
}

/* 左 */
.ec-marquee::before{
  left: 0;
  background: linear-gradient(to right,
    rgba(243,243,243,1) 0%,
    rgba(243,243,243,0) 100%
  );
}

/* 右 */
.ec-marquee::after{
  right: 0;
  background: linear-gradient(to left,
    rgba(243,243,243,1) 0%,
    rgba(243,243,243,0) 100%
  );
}
/* =======================================================
   EC Cart (Block Layout) - FIXED
   [thumb][info] | [unit][qty][subtotal] | [update][delete]
   ======================================================= */

.cart-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px;
}

.cart-list{
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

/* card */
.cart-item{ padding: 0;
  border: 1px solid rgba(0,0,0,.08); /* 今より薄く */
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.04); /* ほんのり浮かせる */


}

/* ====== main row ====== */
.cart-block{
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 16px 18px;
}

/* thumb */
.cart-block-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
}
.cart-thumb-img,
.cart-thumb-ph{
  width: 96px;
  height: 96px;
  border-radius: 14px;
}
.cart-thumb-img{ object-fit: cover; display:block; }
.cart-thumb-ph{ background:#eee; }

/* info */
.cart-block-info{ min-width: 0; }
.cart-item-title{
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  word-break: break-word;
}
.cart-item-sku{
  margin-top: 4px;
  font-size: 12px;
  opacity: .7;
}
.cart-variation{
  margin-top: 10px;
  font-size: 12px;
  opacity: .85;
}

/* ====== right area ====== */
.cart-block-right{
  display: grid;
  grid-template-columns: auto auto; /* cols | btns */
  gap: 24px;
  align-items: center;
  justify-content: end;  /* ←右端へ */
  justify-self: end;     /* ←gridのセル内でも右端へ */
  min-width: 0;
}


.cart-cols{
  display: grid;
  grid-template-columns: 200px 160px 200px;
  border-left: 2px solid rgba(0,0,0,.18);
  min-width: 0;
}

.cart-col{
  padding: 10px 12px;
  border-right: 2px solid rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  min-width: 0;
  overflow: hidden; /* ←列内でもはみ出し禁止 */
}
.cart-col:last-child{ border-right: none; }

.cart-col-label{
  font-weight: 900;
  font-size: 14px;
  opacity:.85;
  white-space: nowrap;
}
.cart-col-value{
  margin-top: 8px;
  font-weight: 900;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* qty input */
.cart-qty{
  margin: 8px auto 0;
  width: 100%;
  max-width: 120px;
  padding: 10px 10px;
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 12px;
  text-align:center;
  font-weight: 900;
  font-size: 18px;
  background: #fff;
}


/* buttons */
.cart-btns{
  display:flex;
  flex-direction:column;
  gap: 10px;
  justify-content:center;
  align-items: stretch;
}
.cart-btns{
  display:flex;
  flex-direction:column;
  gap: 10px;
  justify-content:center;
  align-items:flex-start; /* ←左寄せに変更 */
}

.cart-btns .btn{
  width: auto;                 /* ←100%をやめる */
  padding: 10px 18px;          /* 少し横余白 */
  font-weight: 900;
  font-size: 16px;
  border-radius: 12px;
  line-height: 1.1;
  white-space: nowrap;
}


.cart-btn-primary,
.cart-btn-danger{
  background: #ff2f7a;
  border: 1px solid #ff2f7a;
  color: #fff;
}
.cart-btn-danger{ opacity: .92; }

.cart-totals{
  margin-top: 28px;
  display: flex;
  justify-content: flex-end; /* 右側に寄せる */
}

.cart-totals-box{
  width: 100%;
  max-width: 420px;
  padding: 24px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
  display: grid;
  gap: 12px;
}

.cart-totals-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-totals-label{
  opacity: .7;
  font-size: 14px;
}

.cart-totals-val{
  font-weight: 700;
  font-size: 18px;
}

/* 合計を主役に */
.cart-totals-grand{
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 12px;
}

.cart-totals-grand .cart-totals-label{
  font-weight: 900;
  opacity: 1;
}

.cart-totals-grand .cart-totals-val{
  font-weight: 900;
  font-size: 24px;
}

/* 注文ボタン強化 */
.cart-checkout{
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #ff2f7a;
  color: #fff;
  text-align: center;
  font-weight: 900;
  font-size: 16px;
  display: block;
  transition: .2s ease;
}

.cart-checkout:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,47,122,.3);
}
.cart-totals-note{
  font-size:12px;
  color:#888;
  margin-top:6px;
}
.cart-totals-note{
  margin-top: 10px;
  font-size: 14px;
  color: #888;
}

.checkout-form .form-row{
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.checkout-form label{
  font-weight: 700;
  color: #555;
}
.checkout-form input{
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
/* =========================
   Checkout (2-step)
   ========================= */
.checkout-page{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.checkout-head{ margin: 6px 0 16px; }
.checkout-title{
  font-size: 32px;
  font-weight: 900;
  margin: 0;
}

.checkout-card{
  border: 1px solid #d7d7d7;   /* グレー枠 */
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

.checkout-summary-head{
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  padding: 14px 14px;
  background: #fbfbfb;
  margin-bottom: 16px;
  position: relative;
}

.checkout-summary-title{
  font-weight: 800;
  margin-bottom: 10px;
  color: #444;
}

.checkout-summary-line{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  font-size: 14px;
  color: #555;
  padding: 4px 0;
}
.checkout-summary-line .k{ color:#777; }
.checkout-summary-line .v{ font-weight: 600; color:#333; }

.checkout-summary-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #444;
}

.checkout-grid{
  display: grid;
  gap: 14px;
}

.checkout-form label{
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #555;
  margin: 0 0 6px;
}

.checkout-form input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #d7d7d7;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.checkout-note{
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

.total-box{
  margin-top: 18px;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.total-box .row{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 2px;
  color:#444;
  font-weight: 700;
}

.total-box .row.grand{
  font-size: 18px;
  font-weight: 900;
  padding-top: 10px;
}

.total-box .note{
  margin: 10px 0 0;
  font-size: 13px;
  color:#777;
}

.total-box hr{
  border: none;
  border-top: 1px solid #eee;
  margin: 12px 0;
}

.btn-sub{
  display:block;
  margin-top: 10px;
  text-align:center;
  color:#666;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 520px){
  .checkout-title{ font-size: 26px; }
  .checkout-card{ padding: 14px; }
  .checkout-summary-line{ grid-template-columns: 78px 1fr; }
}

/* =======================================================
   Confirm layout
   - PC: wide panels (not small card)
   - SP: stacked panels
   ======================================================= */

.confirm-wrap{ width: 100%; }

.confirm-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 980px){
  .confirm-grid{ grid-template-columns: 1fr; }
}

.confirm-panel{
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

.confirm-block-title{
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.ship-lines .name{
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 6px;
}

.confirm-sep{
  margin: 14px 0;
  height: 1px;
  background: rgba(0,0,0,.08);
}

.confirm-commit{ margin: 0; }

.confirm-items{ display: grid; gap: 10px; }

.confirm-item{
  display: grid;
  grid-template-columns: 76px 1fr 180px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  background: #fff;
}
@media (max-width: 820px){
  .confirm-item{
    grid-template-columns: 76px 1fr;
  }
  .confirm-item-price{
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,.06);
  }
}

.confirm-item-thumb img{
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.thumb-placeholder{
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
}

.confirm-item-title{ font-weight: 900; margin-bottom: 4px; }
.confirm-item-meta{ opacity: .75; font-size: 12px; }

.confirm-item-price .l{ opacity: .65; font-size: 12px; }
.confirm-item-price .v{ font-size: 16px; font-weight: 900; }

.confirm-bottom-cta{
  margin-top: 14px;
}

/* Confirm page container: max size + centered */
.confirm-page .confirm-wrap{
  max-width: 1240px;   /* ←この値で“最大サイズ”を固定 */
  margin: 0 auto;
  padding: 0 18px;     /* 端の余白 */
  width: 100%;
}
/* CTA visibility control */
.js-cta-ship{ display:none; }  /* PCでは配送先側CTAは消す */
.js-cta-items{ display:block; }/* PCではリスト側CTAだけ出す */

.ec-detail-shipfee{
text-align:right;
}
/* ==========================
   EC INFORMATION
   ========================== */

.ec-info{
  margin: 40px auto 50px;
}

.ec-info__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.ec-info__title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.ec-info__notes{
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.ec-info__notes li{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}

.ec-info__icon{
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3425a;
  color: #fff;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ec-info__steps{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ec-info__step{
  background: #fafafa;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid #eee;
}

.ec-info__cta{
  margin: 20px 0 28px;
  display: flex;              /* ← これ */
  justify-content: center;    /* ← これ */
}

.ec-info__register-btn{
  display: inline-flex;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  color: #e3425a;
  background: #fff;
  border: 2px solid #e3425a;
  border-radius: 999px;
  transition: all .25s ease;
    align-items: center;
  justify-content: center;
  min-width: 260px;
}

.ec-info__register-btn:hover{
  background: #e3425a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(227,66,90,.35);
}
/* marquee がカード全体を覆う事故を止める */
#ecLatestMarquee{
  position: relative;      /* 変な absolute/fixed を相殺 */
  z-index: 1;              /* 必要なら前後調整 */
  overflow: hidden;        /* はみ出しを切る */
}

/* track が暴れて全面を覆うのを止める */
#ecLatestMarquee .ec-marquee__track{
  position: relative;      /* absolute/fixed を殺す */
}

/* marquee セクション自体の高さを “見えてる分だけ” に固定 */
#ecLatestMarquee .ec-marquee__viewport,
#ecLatestMarquee .ec-marquee__inner{
  position: relative;
}







/* =====================================================================
   breakpoints
   ===================================================================== */



@media (max-width: 980px){
  .vcat{ grid-template-columns: 1fr; }
  .cart-block{
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .cart-block-right{
    grid-column: 1 / -1;
    grid-template-columns: 1fr 200px; /* cols | btns */
  }
    .js-cta-ship{ display:block; }  /* SPでは両方出す */
  .js-cta-items{ display:block; }
}
/* =====================================================================
   breakpoints
   ===================================================================== */


/* SP: row5 は 2段（数量+ボックス / カートに入れる） */
@media (max-width: 768px) {
  .pcard__buy {
    flex-direction: column;
    align-items: stretch;
  }

  .pcard__qty {
    justify-content: space-between;
  }

  .pcard__form,
  .pcard__btn,
  .pcard__form .btn {
    width: 100%;
  }
  .pcard__media:hover img {
    transform: none;
    filter: none;
  }
  .pcard__media:hover::after {
    background: none;
  }
    .ec-marquee::before,
  .ec-marquee::after{
    width: 38px;
  }

/* 右ブロックを下段フル幅 */
  .cart-block-right{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-content: stretch;
    justify-self: stretch;
  }

  /* cols自体は縦に3行 */
  .cart-block-right .cart-cols{
    display: grid;                 /* ←勝たせる */
    grid-template-columns: 1fr;    /* 3行 */
    border-left: none;
    border-top: 1px solid rgba(0,0,0,.12);
  }

  /* ★各行を「ラベル｜値」の2列に固定 */
  .cart-block-right .cart-cols .cart-col{
    display: grid;                 /* ←勝たせる（flexを潰す） */
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px 10px;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.12);
    text-align: left;              /* ここで右寄せを無効化 */
  }
  .cart-block-right .cart-cols .cart-col:last-child{
    border-bottom: none;
  }

  /* ラベルは左 */
  .cart-block-right .cart-col-label{
    text-align: left;
    font-size: 14px;
    opacity: .7;
    white-space: nowrap;
  }

  /* 値は右 */
  .cart-block-right .cart-col-value{
    text-align: right;
    justify-self: end;
    font-size: 22px;
    white-space: nowrap;
  }

  /* 数量inputも右列に寄せる */
  .cart-block-right .cart-col-qty{
    align-items: center;
  }
  .cart-block-right .cart-col-qty .cart-qty{
    justify-self: end;
    margin: 0;          /* 既存のautoマージンを潰す */
    width: 140px;
  }

  /* ボタンは2分割（そのままでOKなら触らなくていい） */
  .cart-btns{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cart-btns .btn{
    width: 100%;
    padding: 14px;
  }
    .ec-info__steps{
    grid-template-columns: 1fr;
  }
}