/* ------------------------------------------------------------------ *
 * カート（下書きテーマ ID 7 専用）
 *
 * Figma 実測ノード
 *   PC          13:4418   / SP          13:5378
 *   PC 空カート  13:4777   / SP 空カート  13:5503
 *
 * 数値はすべて Figma の 1:1 PNG をピクセル計測して取った実測値。
 * コメントの「Figma:」は測定元の座標を示す。
 *
 * ■ 他ページの確定仕様に寄せた箇所（Figma と意図的に変えている）
 *   1) 見出しの飾り線: Figma は 16.5 × 0.5px #717171・文字との間隔 8〜15.5px だが、
 *      商品一覧・検索結果・会員登録で確定済みの 17 × 2px #dcdcdc・間隔 6px に統一した。
 *      「見出し・パンくず・ボタンは他ページと同様に」という 2026-08-24 の指示による。
 *   2) パンくず: Figma は現在地 #333・区切り #C9C9C9 だが、確定仕様の #000・
 *      currentColor のシェブロンに統一。サイズ（PC 16px / SP 10px）と余白は Figma と一致。
 *   3) ボタン文字: Figma は一部 Noto Sans JP 指定だが、サイト全体の Zen Kaku Gothic New に統一。
 *   4) アコーディオンの＋: Figma は PC だけ #0098a6、SP は #4bbdc3。枠線と揃う #4bbdc3 に統一。
 *
 * ■ Figma 側の作図ズレとして直した箇所
 *   - 明細/合計ボックスが 462〜1459 とコンテンツ幅 460〜1460 から 1〜2px 内側 → 460/1460 に揃えた
 *   - グレー地の左右インセット 47/45 → 46/46
 *   - 特典アイコンとラベルの中心が最大9pxズレ → 4等分カラムに統一
 *     （※おすすめ製品の「中心から130.7px左寄り」は作図ズレではなく、帯の左端から
 *       86px の左揃え＝商品詳細の帯と同じ設計だった。左揃えのまま実装している）
 *
 * ■ Figma に無いもの
 *   - LINE の2ボタン（現行テーマから引き継ぐ指示）。CTA と同寸法で、
 *     ブランド色を反転させた白地＋ティール枠にしている。
 * ------------------------------------------------------------------ */

.r-cart {
  color: #000;
  font-family: var(--renewal-font-japanese);
}

/* おすすめ製品: TOPページと同じカード／共通スライダー */
.r-cart-reco {
  width: min(calc(100% - (var(--renewal-page-gutter) * 2)), var(--renewal-content-width));
  margin: 94px auto 0;
  padding: 46px 0 51px;
  background: rgba(0, 152, 166, 0.05);
}

.r-cart-reco__scroller {
  margin-top: 38px;
  padding: 0 46px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.r-cart-reco__scroller::-webkit-scrollbar { display: none; }

.r-cart-reco__list {
  display: flex;
  gap: 22.17px;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-cart-reco__item {
  display: flex;
  flex-direction: column;
  flex: 0 0 210.678px;
  width: 210.678px;
}

.r-cart-reco__link {
  display: grid;
  place-items: center;
  width: 210.678px;
  height: 231px;
  overflow: hidden;
  background: #fff;
}

.r-cart-reco__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.r-cart-reco__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 14px;
}

.r-cart-reco__spacer {
  display: block;
  flex: 1 1 8px;
  min-height: 8px;
}

.r-cart-reco__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--r-type-color, #aacbea);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.r-cart-reco__name {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.r-cart-reco__price {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.r-cart-reco__yen {
  font-family: var(--renewal-font-latin);
  font-size: 14px;
  line-height: 1.1;
}

.r-cart-reco__yen small { font-size: 10px; }

@media only screen and (max-width: 960px) {
  .r-cart-reco {
    width: 100%;
    margin-top: 39px;
    padding: 28px 0 40px;
  }

  .r-cart-reco__scroller {
    margin-top: 21px;
    padding-left: 33px;
    padding-right: 32px;
  }

  .r-cart-reco__list { gap: 8px; }
  .r-cart-reco__item { flex: 0 0 76px; width: 76px; }

  .r-cart-reco__link {
    width: 76px;
    height: 76px;
  }

  .r-cart-reco__body { margin-top: 9px; }

  .r-cart-reco__tag {
    height: 14px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 8px;
  }

  .r-cart-reco__name {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
  }

  .r-cart-reco__price { flex-wrap: nowrap; }

  .r-cart-reco__yen {
    font-size: 11px;
    white-space: nowrap;
  }

  .r-cart-reco__yen small { font-size: 8px; }
}

.r-cart *,
.r-cart *::before,
.r-cart *::after {
  box-sizing: border-box;
}

/* ベーステーマ（bundle.css / theme.css）が h1・h2・h3・button・input などに
   font-family を直接指定しているため、.r-cart の継承では負けて見出しだけ別書体になる。
   ここでまとめて明示する。:where() は詳細度0なので、この規則の詳細度は .r-cart と同じ(0,1,0)。
   金額の Tenor Sans など個別指定はこれより後ろに書いてあるクラス指定が勝つ。 */
.r-cart :where(h1, h2, h3, p, a, span, dt, dd, li, label, button, input, summary) {
  font-family: var(--renewal-font-japanese);
}

/* 各ブロックをコンテンツ幅 1000px に載せる器。
   ページ左右のガターは renewal.css の --renewal-page-gutter（PC最大64px / SP18px）。 */
.r-cart__flash,
.r-cart__head,
.r-cart__content,
.r-cart__account,
.r-cart__perks,
.r-cart__info,
.r-cart__empty,
.r-cart__recommend-wrap {
  width: min(100%, calc(var(--renewal-content-width) + (var(--renewal-page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--renewal-page-gutter);
}

/* エラー・お知らせは何も無ければ高さ0。旧実装の .l-container__row は
   このテーマに CSS 定義が無く、版面から外れて全幅表示されていた */
.r-cart__flash:empty { display: none; }

/* ------------------------------------------------------------------ *
 * パンくず・見出し（他ページと共通の確定仕様）
 * ------------------------------------------------------------------ */

.r-cart__head {
  padding-top: 25px; /* Figma: ヘッダー下端132 → パンくず枠上端157 */
}

.r-cart__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 35px; /* Figma: パンくず行下端181 → 見出し上端216 */
  color: #c1c1c1;
  font-family: var(--renewal-font-latin);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.04em;
}

.r-cart__breadcrumbs a {
  color: inherit;
  font-family: var(--renewal-font-latin);
  text-decoration: none;
}

/* 現在地が「SHOPPING CART」(欧文)になったため、HOMEと同じ書体を明示する
   (2026-09-17: 「カート」から変更した際、フォント指定が抜けていた)。 */
.r-cart__breadcrumbs-current {
  color: #000;
  font-family: var(--renewal-font-latin);
}

/* Figma node 125:6129（商品詳細ページと同一）4.5x12のSVGシェブロン。
   border+rotate(45deg)は極小サイズだと線が欠けて見えることがあるため、
   商品詳細ページと同じbackground-image + em単位の方式にそろえる。 */
.r-cart__breadcrumbs-sep {
  display: block;
  flex: none;
  width: .28125em;
  height: .75em;
  font-size: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4.5' height='12' viewBox='0 0 4.5 12'%3E%3Cpath d='M.5.75 3.75 6 .5 11.25' fill='none' stroke='%23c1c1c1' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.r-cart__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: #000;
  font-size: 18px; /* Figma: テキスト枠 56×26＝18px・Regular */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.r-cart__title::before,
.r-cart__title::after {
  flex: 0 0 17px;
  height: 2px;
  background: #dcdcdc;
  content: "";
}

/* 見出しの飾り線つきパーツ（カート見出し以外にも使う） */
.r-cart__account-title,
.r-cart__perks-title,
.r-cart__recommend-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  color: #000;
  font-weight: 500; /* Figma: カート見出しだけ Regular、他の見出しは Medium */
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.r-cart__account-title::before,
.r-cart__account-title::after,
.r-cart__perks-title::before,
.r-cart__perks-title::after,
.r-cart__recommend-title::before,
.r-cart__recommend-title::after {
  flex: 0 0 17px;
  height: 2px;
  background: #dcdcdc;
  content: "";
}

/* TOPページの .r-top-perks__title と全く同じ見た目に統一する
   （フォント指定・行間・左右の線の寸法/色が微妙にずれていたため。2026-09-14指示）。
   <br class="sp"> 以外での意図しない折り返しも防ぐ。 */
.r-cart__perks-title {
  font-family: var(--renewal-font-japanese);
  gap: 16.5px;
  line-height: 26px;
  white-space: nowrap;
  text-align: center;
}
.r-cart__perks-title::before,
.r-cart__perks-title::after {
  flex-basis: 16.5px;
  height: 1px;
  background: #d3d6d9;
}

/* <br class="sp"> はSPのみで改行させる（2026-09-14指示） */
br.sp {
  display: none;
}

/* ------------------------------------------------------------------ *
 * 明細＋金額（PC = 2カラム / SP = 1枚のカードに縦積み）
 * ------------------------------------------------------------------ */

.r-cart__content {
  margin-top: 57px; /* Figma: 見出し下端243 → ボックス上端300 */
}

.r-cart__layout {
  display: flex;
  align-items: flex-start;
  gap: 14px; /* Figma: 明細ボックス右端1072 → 合計ボックス左端1086 */
}

/* 影が上下左右に約9px はみ出すので、親に overflow を付けないこと */
.r-cart__items,
.r-cart__summary {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
}

/* Figma のボックスは 462〜1072 とコンテンツ幅 460〜1460 から2px内側にズレているので、
   ボックス自体は 460 に揃え、内側のパディングで中身を Figma の 497〜1035 に合わせている
   （実測: padding 35px だと中身が 495 に来て2pxズレた） */
.r-cart__items {
  flex: 1;
  min-width: 0;
  padding: 37px 38px 38px 37px;
}

.r-cart__item-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-cart__item {
  display: grid;
  grid-template-columns: 126.8px 1fr;
  column-gap: 16.2px; /* Figma: 画像右端623.8 → 商品名640 */
  align-items: start;
}

.r-cart__item + .r-cart__item {
  margin-top: 26px;  /* Figma: 行下端471 → 区切り線497 */
  padding-top: 24px; /* Figma: 区切り線497 → 次の行上端521 */
  border-top: 0.5px solid #c1c1c1;
  /* Figma の区切り線は本文（497〜1035）より外に出て 495〜1039。その分だけ左右に広げる */
  margin-left: -2px;
  margin-right: -4px;
  padding-left: 2px;
  padding-right: 4px;
}

.r-cart__item-thumb { display: block; }

/* object-fit は商品一覧と同じ contain。cover にすると縦長のサムネイル
   （実測で 3276×5702 の商品がある）が上下で見切れる */
.r-cart__item-image {
  display: block;
  width: 126.8px;
  height: 126.8px;
  object-fit: contain;
}

.r-cart__item-body { min-width: 0; }

.r-cart__item-name {
  display: block;
  /* Figma の商品名は 171px 幅で折り返している（枠 171×58＝2行）。
     数量コントロール（107px）より狭いので、名前だけに最大幅を掛ける。
     min-height で2行ぶんを確保し、1行の商品でも下の要素の位置がズレないようにする。 */
  max-width: 171px;
  min-height: 58px;
  color: #000;
  font-size: 16px;
  line-height: 29px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.r-cart__item-qty-form {
  display: flex;
  align-items: center;
  margin-top: 8px; /* Figma: 商品名枠下端395 → 数量403 */
}

/* 数量ステッパー。−・入力・＋ で枠線を共有するので、間を詰めて重ねる */
.r-cart__qty {
  display: flex;
  align-items: center;
}

.r-cart__qty-step {
  position: relative;
  width: 27.8px; /* Figma: マイナス 27.791×30 */
  height: 30px;
  padding: 0;
  border: 0.5px solid #c1c1c1;
  background: #f7f7f7;
  cursor: pointer;
}

.r-cart__qty-step--minus { border-radius: 2px 0 0 2px; }

.r-cart__qty-step--plus {
  width: 29px; /* Figma: プラス 29×30 */
  border-radius: 0 2px 2px 0;
  margin-left: -1px; /* Figma: 入力枠右端719 にプラス左端718 が1px重なる */
}

/* −と＋のグリフ。Figma は −が1pxストローク、＋がアウトライン文字（約1.34px）で
   太さが揃っていないため、1px の十字に統一している */
.r-cart__qty-step::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9.67px;
  height: 1px;
  background: #717171;
  transform: translate(-50%, -50%);
  content: "";
}

.r-cart__qty-step--plus::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 9.67px;
  background: #717171;
  transform: translate(-50%, -50%);
  content: "";
}

.r-cart__qty-input {
  width: 52px;
  height: 30px;
  margin-left: -0.8px; /* Figma: マイナス右端667.79 に入力枠左端667 が0.79px重なる。合計107px */
  border: 0.5px solid #c1c1c1;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: var(--renewal-font-japanese);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.r-cart__qty-input::-webkit-outer-spin-button,
.r-cart__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.r-cart__qty-unit {
  margin-left: 11px; /* Figma: ステッパー右端747 → 個758 */
  color: #000;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.r-cart__qty-update {
  width: 50px;
  height: 30px;
  margin-left: 31px; /* Figma: 個の枠右端772 → 更新803 */
  padding: 0;
  border: 0.5px solid #4bbdc3;
  border-radius: 3px;
  background: rgba(75, 189, 195, 0.05);
  color: #4bbdc3;
  font-family: var(--renewal-font-japanese);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* 削除リンクと金額は同じ行の左右端。PC は本文カラム 640〜1035、SP は 146〜361 で、
   どちらも「本文カラムいっぱいに広げて両端揃え」で Figma と一致する */
.r-cart__item-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px; /* Figma: 数量下端433 → 金額の枠上端445 */
}

.r-cart__item-delete {
  color: #4bbdc3;
  font-size: 14px;
  line-height: 20px; /* Figma: ×削除する の枠 20px */
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* line-height を明示しないと Tenor Sans の normal（22px→33px）で行が7px高くなり、
   行全体の高さが Figma の134pxに収まらない */
.r-cart__item-price {
  margin: 0;
  color: #000;
  font-family: var(--renewal-font-latin);
  font-size: 22px;
  line-height: 26px; /* Figma: 金額の枠 26px */
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

/* --- 金額サマリー ---
   2026-08-26 指摘No.5〜7でFigma実寸に更新（PC node 123:2707 Group332=125:9452 / SP node 123:3389）。
   「小計/消費税/合計」3行 → 「ご注文金額(税込)」1行＋送料注記＋ボタン、の構成に変更。 */

.r-cart__summary {
  flex: 0 0 373px;
  padding: 37px 33px 29px 34px; /* Figma実測: 上37 / 右33 / 下29(129+46=175, 204-175=29) / 左34 */
}

.r-cart__summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.r-cart__summary-label {
  margin: 0;
  color: #000;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.r-cart__summary-value {
  margin: 0;
  color: #000;
  font-family: var(--renewal-font-latin);
  font-size: 24px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.r-cart__summary-note {
  margin: 10px 0 0; /* Figma: 見出し枠下端60 → 注記70 */
  color: #717171;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.r-cart__summary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; /* Figma: 306px＝合計ボックスの内側いっぱい */
  height: 46px;
  margin-top: 39px; /* Figma: 注記枠下端90 → ボタン129 */
  border-radius: 3px;
  background: #4bbdc3;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * 初めて / 過去にご注文（薄ティール地の2カラム）
 * ------------------------------------------------------------------ */

.r-cart__account {
  margin-top: 60px; /* Figma: 明細ボックス下端878 → 地の上端938 */
  /* 金額カードの「ご購入手続きへ」からページ内リンクで飛んでくる先。
     画面の一番上に貼り付かないよう少し余白を残す */
  scroll-margin-top: 24px;
}

.r-cart__account-inner {
  display: flex;
  justify-content: center;
  gap: 96px; /* Figma: 左カラム右端913 → 右カラム左端1009 */
  padding: 58px 46px 62px; /* Figma: 地 938→見出し996 / 下線1356→地下端1418 */
  background: rgba(75, 189, 195, 0.05);
}

.r-cart__account-col {
  width: 406px;
  max-width: 100%;
  margin: 0;
}

.r-cart__account-title { font-size: 12px; }

.r-cart__account-lead {
  /* Figma の説明文は 363px 幅の箱で2行に折り返している */
  width: 363px;
  max-width: 100%;
  margin: 33px auto 0; /* Figma: 見出し枠下端1013 → 説明文1046 */
  color: #000;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: left;
}

/* --- ボタン（他ページの確定仕様: 高さ46 / 角丸3 / #4bbdc3 / 16px 500） --- */

.r-cart__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 3px;
  font-family: var(--renewal-font-japanese);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.r-cart__btn--new {
  margin-top: 41px; /* Figma: 説明文下端1091 → ボタン1132 */
  background: #4bbdc3;
  color: #fff;
}

.r-cart__btn--login {
  margin-top: 28px; /* Figma: チェック行下端1238 → ボタン1266 */
  background: #4bbdc3;
  color: #fff;
}

/* LINE の2ボタンは Figma に無い。現行テーマから引き継ぐ指示。
   色は 2026-08-24 指示（背景 #31ae36 / 文字 白 / 枠線なし）。 */
.r-cart__btn--line {
  margin-top: 12px;
  border: 0;
  background: #31ae36;
  color: #fff;
}

/* 「パスワードをお忘れの方はこちら」と「LINEでログイン」の間隔（2026-08-24 指示） */
.r-cart__forgot + .r-cart__btn--line {
  margin-top: 50px;
}

.r-cart__btn-line-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* --- ログインフォーム --- */

.r-cart__account-title + .r-cart__field {
  margin-top: 29px; /* Figma: 見出し枠下端1013 → ラベル1042 */
}

.r-cart__field + .r-cart__field {
  margin-top: 13px; /* Figma: メール入力下端1109 → パスワードラベル1122 */
}

.r-cart__field-label {
  display: block;
  margin: 0 0 6px; /* Figma: ラベル枠下端1059 → 入力枠1065 */
  color: #000;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.r-cart__field-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0.5px solid #4bbdc3;
  border-radius: 2px;
  background: #fff;
  color: #000;
  font-family: var(--renewal-font-japanese);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.r-cart__field-input::placeholder {
  color: rgba(113, 113, 113, 0.75);
}

.r-cart__remember {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 33px; /* Figma: パスワード入力下端1188 → チェック行1221 */
  cursor: pointer;
}

/* ベーステーマの .c-form_table__checkbox は使わず、会員登録ページで作り直した
   ネイティブ input 方式を踏襲する（HANDOFF.md L86 の既存バグを持ち込まないため） */
.r-cart__remember-box {
  position: relative;
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 0 10px 0 0; /* Figma: □右端1146 → テキスト1156 */
  border: 0.5px solid #4bbdc3;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.r-cart__remember-box:checked::after {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.5 13.8225'%3E%3Cpath d='M0.75 6.75L6.25 12.75L18.75 0.75' fill='none' stroke='%234bbdc3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  content: "";
}

.r-cart__remember-text {
  color: #000;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.r-cart__forgot {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 27px auto 0; /* Figma: ボタン下端1312 → リンク1339 */
  color: #717171;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  /* header.liquid のグローバル指定 a { text-decoration: none !important } に勝たせる */
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}

/* ------------------------------------------------------------------ *
 * 公式ショップ限定特典
 * ------------------------------------------------------------------ */

.r-cart__perks {
  margin-top: 53px; /* Figma: 地の下端1418 → 見出し枠上端1471 */
}

.r-cart__perks-title { font-size: 18px; }

.r-cart__benefits {
  display: flex;
  justify-content: center;
  gap: 10px; /* Figma: ピッチ176px − カラム幅166px */
  margin: 48px 0 0; /* Figma: 見出し枠下端1497 → アイコン上端1545 */
  padding: 0;
  list-style: none;
}

.r-cart__benefits-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 166px;
}

.r-cart__benefits-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 86px; /* Figma: アイコン帯 1545〜1631 */
  margin-bottom: 25px; /* Figma: アイコン下端1631 → ラベル1656 */
}

/* アイコンは4つとも実寸が違う（Figma: 84×72 / 110×74 / 85×85 / 90×86）。
   下端を揃えたうえで、高さだけ個別に指定して実寸を再現する */
.r-cart__benefits-icon svg { display: block; width: auto; }
.r-cart__benefits-item:nth-child(1) .r-cart__benefits-icon svg { height: 72px; }
.r-cart__benefits-item:nth-child(2) .r-cart__benefits-icon svg { height: 74px; }
.r-cart__benefits-item:nth-child(3) .r-cart__benefits-icon svg { height: 85px; }
.r-cart__benefits-item:nth-child(4) .r-cart__benefits-icon svg { height: 86px; }

.r-cart__benefits-text {
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 27.5px; /* Figma: 2行のラベル枠 55px */
  letter-spacing: 0.04em;
  text-align: center;
}

/* ------------------------------------------------------------------ *
 * お支払い・配送について（アコーディオン）
 * ------------------------------------------------------------------ */

.r-cart__info {
  margin-top: 59px; /* Figma: 特典ラベル下端1711 → 枠1770 */
}

.r-cart__info-item {
  width: 828px; /* Figma: 827px を左右86pxインセットで中央に */
  max-width: 100%;
  margin-inline: auto;
  border: 0.5px solid #4bbdc3;
  border-radius: 2px;
  background: rgba(75, 189, 195, 0.05);
}

.r-cart__info-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 59px;
  padding: 0 28px 0 20px; /* Figma: ラベル左20 / ＋右27.8 */
  list-style: none;
  cursor: pointer;
}

.r-cart__info-summary::-webkit-details-marker { display: none; }

.r-cart__info-summary-text {
  color: #000;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ＋／−。Figma は 10.2×9.2 の十字なので 10px の十字に揃えている */
.r-cart__info-toggle {
  position: relative;
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
}

.r-cart__info-toggle::before,
.r-cart__info-toggle::after {
  position: absolute;
  left: 50%;
  top: 50%;
  background: #4bbdc3;
  transform: translate(-50%, -50%);
  content: "";
}

.r-cart__info-toggle::before { width: 10px; height: 1px; }
.r-cart__info-toggle::after  { width: 1px; height: 10px; }

.r-cart__info-item[open] .r-cart__info-toggle::after { display: none; }

/* 開いたときの中身は Figma に描かれていない（閉じた状態のみ）。
   枠の内側パディングと本文サイズは閉じた状態のラベルに揃えている */
.r-cart__info-panel {
  padding: 4px 20px 24px;
}

.r-cart__info-block + .r-cart__info-block { margin-top: 24px; }

.r-cart__info-heading {
  margin: 0 0 8px;
  color: #000;
  font-family: var(--renewal-font-japanese);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.r-cart__info-text {
  margin: 0;
  color: #000;
  font-family: var(--renewal-font-japanese);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* 本文中に <br> 以外の要素が混ざっても書体が変わらないようにする */
.r-cart__info-panel :where(a, span, strong, em, small) {
  font-family: var(--renewal-font-japanese);
}

.r-cart__info-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 12px;
}

/* ------------------------------------------------------------------ *
 * 空カート
 * ------------------------------------------------------------------ */

.r-cart__empty {
  text-align: center;
}

.r-cart__empty-text {
  margin: 84px 0 0; /* Figma: 見出し枠下端242 → 本文326 */
  color: #000;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.r-cart__empty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 405px;
  max-width: 100%;
  height: 46px;
  margin: 109px auto 0; /* Figma: 本文下端352 → ボタン461 */
  border-radius: 3px;
  background: #4bbdc3;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * おすすめ製品（空カートのときだけ）
 * ------------------------------------------------------------------ */

.r-cart__recommend-wrap {
  margin-top: 90px; /* Figma: ボタン下端507 → セクション上端597 */
}

.r-cart__recommend {
  /* 2026-08-28 指摘: TOPと同じPCドットをここにも追加したため、下パディングを
     見直した（旧68pxは画像下端からそのまま帯下端までの値で、ドットの分だけ
     二重に空くようになっていた）。ドット自体の余白は .r-reco__dots が持つ
     （画像下端49px）ので、ここはドットの下に添える最終的な余白だけを持たせる。 */
  padding: 46px 0 24px; /* Figma: 597→見出し643 / ドット下端 → 帯下端（暫定） */
  background: rgba(0, 152, 166, 0.05);
}

.r-cart__recommend-title { font-size: 18px; }

/* 送りの矢印は置かず、収まらないときだけ横スクロールさせる（2026-08-24 指示）。
   2026-09-09: ユーザー指示で「TOPページと全く同じ見た目（画像+タグ+商品名+価格、
   1画面で最大4商品）」に変更。カード寸法・余白はTOPページ（renewal-top.css の
   .r-top-reco__*、PC: 帯1003x423・カード210.678x231・間隔22.17・パディング46px）
   をそのまま転記した。旧の86px/132px/画像のみ仕様（Figma 13:4777 の空カード）は
   運用上の一貫性を優先して置き換えている。 */
.r-cart__recommend-scroller {
  margin-top: 35px; /* Figma: 見出し枠下端669 → 画像上端704 */
  padding: 0 46px; /* TOPの.r-top-reco__scrollerと同じ。4枚がちょうど収まる値 */
  overflow-x: auto;
  overflow-y: hidden; /* 2026-08-28: TOPのおすすめ製品と同じ理由（縦スクロール誤爆の防止） */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.r-cart__recommend-scroller::-webkit-scrollbar { display: none; }

.r-cart__recommend-list {
  display: flex;
  gap: 22.17px; /* TOPの.r-top-reco__listと同じ列ピッチ */
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.r-cart__recommend-item {
  display: flex;
  flex-direction: column;
  flex: 0 0 210.678px;
  width: 210.678px;
}

/* 2026-09-16指示によりグレーのタイル地を廃止、白背景（画像本来の背景）に統一 */
.r-cart__recommend-link {
  display: grid;
  place-items: center;
  width: 210.678px;
  height: 231px;
  overflow: hidden;
  background: #fff;
}

.r-cart__recommend-image {
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
}

/* タグ・商品名・価格。TOPページ（.r-top-reco__body 等）と同じ値。 */
.r-cart__recommend-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 14px;
}

.r-cart__recommend-spacer {
  display: block;
  flex: 1 1 8px;
  min-height: 8px;
}

.r-cart__recommend-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--r-type-color, #aacbea);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.r-cart__recommend-name {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.r-cart__recommend-price {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.r-cart__recommend-yen {
  font-family: var(--renewal-font-latin);
  font-size: 14px;
  line-height: 1.1;
}

.r-cart__recommend-yen small { font-size: 10px; }

/* ------------------------------------------------------------------ *
 * SP（Figma 13:5378 / 13:5503）
 * ------------------------------------------------------------------ */

@media only screen and (max-width: 960px) {

  .r-cart__flash,
  .r-cart__head,
  .r-cart__content,
  .r-cart__account,
  .r-cart__perks,
  .r-cart__info,
  .r-cart__empty,
  .r-cart__recommend-wrap {
    --renewal-page-gutter: 18px;
  }

  .r-cart__head {
    padding-top: 14px; /* Figma: ヘッダー下端48 → パンくず62 */
  }

  .r-cart__breadcrumbs {
    gap: 10px;
    margin-bottom: 32px; /* Figma: パンくず下端74 → 見出し106 */
    font-size: 10px;
    line-height: 12px;
  }

  .r-cart__title {
    gap: 5px;
    font-size: 12px;
    font-weight: 500; /* Figma: SP の見出しは Medium */
  }

  .r-cart__title::before,
  .r-cart__title::after { flex-basis: 16.5px; }

  /* --- 明細＋金額: SP は1枚のカードに縦積み --- */

  .r-cart__content {
    margin-top: 32px; /* Figma: 見出し下端123 → カード上端155 */
  }

  .r-cart__layout {
    display: block;
    padding: 25px 13px 20px 15px; /* Figma: カード内コンテンツ 33〜361 */
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.1);
  }

  /* カード装飾は .r-cart__layout 側に移したので、中の2ブロックからは外す */
  .r-cart__items,
  .r-cart__summary {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .r-cart__item {
    grid-template-columns: 104px 1fr;
    column-gap: 9px; /* Figma: 画像右端137 → 商品名146 */
  }

  .r-cart__item + .r-cart__item {
    margin-top: 26px; /* Figma: 行下端290 → 区切り線316 */
    padding-top: 21px; /* Figma: 区切り線316 → 次の商品名337 */
    margin-inline: 0;
    padding-inline: 0;
  }

  .r-cart__item-image {
    width: 104px;
    height: 104px;
    margin-top: 3px; /* Figma: 商品名より画像が2〜4px下 */
  }

  .r-cart__item-name {
    max-width: 209px; /* Figma: SP の折り返し幅 */
    min-height: 20px; /* SP は1行の商品もあるので2行ぶんを確保しない */
    font-size: 14px;
    line-height: 20px;
  }

  .r-cart__item-qty-form {
    margin-top: 19px; /* Figma: 商品名下端200 → ステッパー219 */
  }

  .r-cart__item-foot {
    margin-top: 20px; /* Figma: ステッパー下端249 → 削除・金額 269 */
  }

  /* PC の line-height 26px が SP にも効いてしまい、削除リンクと金額の行頭が
     3pxずれていた（Figma SP は両方 446 で頭が揃っている） */
  .r-cart__item-price {
    font-size: 18px;
    line-height: 21px; /* Figma SP: 金額の枠 21px */
  }

  /* --- 金額サマリー（同じカードの中） ---
     2026-08-26 指摘No.5〜7でFigma実寸に更新（SP node 123:3389）。 */

  .r-cart__summary {
    margin-top: 22px; /* Figma: 商品2下端467 → 区切り線489 */
    padding-top: 30px; /* Figma: 区切り線489 → 見出し519 */
    border-top: 0.5px solid #c1c1c1;
  }

  .r-cart__summary-label { font-size: 14px; }
  .r-cart__summary-value { font-size: 20px; }

  .r-cart__summary-note {
    margin-top: 8px; /* Figma: 見出し枠下端384 → 注記392 */
    font-size: 12px;
  }

  /* Figma の SP はカード内にボタンが無く、CTA は下の会員セクションの2つだけ。
     ただしログイン済みだと会員セクション自体が出ないため、そのままだと
     SP の会員に進む導線が1つも無くなる。未ログインのときだけ隠す。 */
  .r-cart:not(.r-cart--member) .r-cart__summary-btn { display: none; }

  /* --- 初めて / 過去にご注文: SP は縦積み --- */

  .r-cart__account {
    margin-top: 40px; /* Figma: カード下端655 → 会員カード695 */
  }

  .r-cart__account-inner {
    display: block;
    padding: 29px 13px 39px 15px; /* Figma: 695→見出し724 / 下線1276→下端1315 */
  }

  .r-cart__account-col { width: 100%; }

  .r-cart__account-col--login {
    margin-top: 62px; /* Figma: 新規ボタン下端868 → 見出し2の930 */
  }

  .r-cart__account-lead {
    width: 100%;
    margin-top: 20px; /* Figma: 見出し下端741 → 説明文761 */
    font-size: 12px;
  }

  .r-cart__btn--new {
    margin-top: 16px; /* Figma: 説明文下端806 → ボタン822 */
  }

  .r-cart__account-title + .r-cart__field {
    margin-top: 29px; /* Figma: 見出し2下端947 → ラベル976 */
  }

  .r-cart__remember {
    margin-top: 24px; /* Figma: パスワード入力下端1122 → チェック行1146 */
  }

  .r-cart__btn--login {
    margin-top: 25px; /* Figma: チェック行下端1163 → ボタン1188 */
  }

  .r-cart__forgot {
    margin-top: 25px; /* Figma: ボタン下端1234 → リンク1259 */
  }

  /* --- 特典 --- */

  .r-cart__perks {
    margin-top: 45px; /* Figma: 会員カード下端1315 → 見出し1360 */
  }

  .r-cart__perks-title { font-size: 12px; gap: 8px; line-height: 17px; }
  .r-cart__perks-title::before,
  .r-cart__perks-title::after { flex-basis: 8px; }

  br.sp {
    display: inline;
  }

  .r-cart__benefits {
    gap: 0;
    justify-content: space-between;
    margin-top: 36px; /* Figma: 見出し下端1377 → アイコン上端1413 */
  }

  .r-cart__benefits-item { width: 85px; }

  .r-cart__benefits-icon {
    height: 44px; /* Figma: アイコン帯 1413〜1457 */
    margin-bottom: 13px; /* Figma: アイコン下端1457 → ラベル1470 */
  }

  .r-cart__benefits-item:nth-child(1) .r-cart__benefits-icon svg { height: 37px; }
  .r-cart__benefits-item:nth-child(2) .r-cart__benefits-icon svg { height: 38px; }
  .r-cart__benefits-item:nth-child(3) .r-cart__benefits-icon svg { height: 43.3px; }
  .r-cart__benefits-item:nth-child(4) .r-cart__benefits-icon svg { height: 44px; }

  .r-cart__benefits-text {
    font-size: 10px;
    font-weight: 400;
    line-height: 14px; /* Figma: 1行14px / 2行28px */
  }

  /* --- アコーディオン --- */

  .r-cart__info {
    margin-top: 62px; /* Figma: 特典ラベル下端1498 → 枠1560 */
  }

  .r-cart__info-item { width: 100%; }

  .r-cart__info-summary {
    padding: 0 16px; /* Figma: ラベル左16 / ＋右16.9 */
  }

  /* --- 空カート --- */

  .r-cart__empty-text {
    margin-top: 42px; /* Figma: 見出し下端123 → 本文165 */
    font-size: 12px;
  }

  .r-cart__empty-btn {
    /* Figma: x=33 / 幅328。ページのガター18よりさらに内側に入る */
    width: 100%;
    max-width: 328px;
    margin-top: 58px; /* Figma: 本文下端182 → ボタン240 */
  }

  /* --- おすすめ製品: SP は画面いっぱいの帯 --- */

  .r-cart__recommend-wrap {
    margin-top: 51px; /* Figma: ボタン下端286 → セクション上端337 */
  }

  .r-cart__recommend {
    /* 器のガターを打ち消して 100vw の帯にする（Figma 13:5503 は 393px 全幅） */
    margin-inline: calc(var(--renewal-page-gutter) * -1);
    padding: 20px 0 48px; /* Figma: 337→見出し357 / 画像下端471→519 */
  }

  .r-cart__recommend-title { font-size: 12px; }

  .r-cart__recommend-scroller {
    margin-top: 21px; /* Figma: 見出し下端374 → 画像395 */
    /* Figma: 画像左端33 / 右端361（＝右の余りは32）。左右とも33にすると
       中身が入る幅が327pxになり、4件（328px）が1pxだけあふれてスクロールが出てしまう */
    padding-left: 33px;
    padding-right: 32px;
  }

  /* 76px × 4 + 8px × 3 = 328px ＝ 中身が入る幅ちょうど。
     4件までは収まってスクロールせず、5件以上のときだけ横スクロールになる。 */
  .r-cart__recommend-list {
    gap: 8px; /* Figma: 画像76 + ギャップ8 = ピッチ84 */
    justify-content: flex-start;
  }

  .r-cart__recommend-item {
    flex-basis: 76px;
    width: 76px;
  }

  .r-cart__recommend-link {
    width: 76px;
    height: 76px;
  }

  /* タグ・商品名・価格。TOPページSP版（.r-top-reco__* の@media側）と同じ値。 */
  .r-cart__recommend-body {
    margin-top: 9px;
  }

  .r-cart__recommend-tag {
    height: 14px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 8px;
  }

  .r-cart__recommend-name {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
  }

  .r-cart__recommend-price {
    flex-wrap: nowrap;
  }

  .r-cart__recommend-yen {
    font-size: 11px;
    white-space: nowrap;
  }

  .r-cart__recommend-yen small {
    font-size: 8px;
  }

}
