/* ============================================================
   カートTOPページ専用スタイル
   ============================================================ */

/* ---- ヘッダー（ロゴのみ）---- */
header { border-bottom: 1px solid #E6E6E8; padding: 10px 15px; }

/* ---- ページ全体 ---- */
.cart-page {
  min-height: 100vh;
}

/* ---- ページタイトルバー ---- */
.cart-title-bar {
  background: white;
  padding: 40px 0;
}
.cart-title-bar h1 {
  font-size: 22px;
  font-weight: 900;
  padding: 0 0 20px;
  margin: 0 0 40px;
  border-bottom: 1px solid #ddd;
}

/* ---- レンタル期間セレクター（カートTOP版）---- */
.cart-period-bar {
  background: white;
}
.cart-period-bar .period-label {
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #111;
}
/* 期間セレクター本体：.mp_modal/.mp_inline_period_selector と共通CSS を利用 */
.cart-period-bar .mp_modal .select_rental_period .in {
  max-width: 480px;
}
.cart-period-bar .period-result {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #0d6efd;
}
.cart-period-bar .period-result.is-hidden { display: none; }
.cart-period-bar .period-guide {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ---- 2カラムレイアウト ---- */
.cart-body {
  background: #f6f6f6;
  margin: 0 auto;
}
.cart-body .container {
  padding: 40px 0 100px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-body .container { grid-template-columns: 1fr; }
}

/* ---- 共通カードブロック ---- */
.cart-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  margin-bottom: 30px;
}
.cart-card:last-child { margin-bottom: 0; }
.cart-card-title {
  font-size: 14px;
  font-weight: 400;
  padding: 10px 18px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border-radius: 12px 12px 0 0;
}
.cart-card-title i { color: #0d6efd; font-size: 15px; }
.cart-card-body { padding: 16px 18px; }

/* ---- カート商品行 ---- */
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item:first-child { padding-top: 0; }

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 6px;
}
.cart-item-sub {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.cart-item-qty select {
  font-size: 13px;
  padding: 4px 8px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
}
.cart-item-price-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 72px;
  text-align: right;
  white-space: nowrap;
  justify-content: center;
}

/* 右列: 小計ブロック（金額と「円」を同一行に） */
.cart-item-subtotal {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  color: #111;
  text-align: right;
  line-height: 1.3;
}
.cart-item-subtotal .cart-item-price-unit {
  font-size: 12px;
  font-weight: 400;
  color: #555;
}
.cart-item-subtotal-label {
  font-size: 10px;
  color: #aaa;
  text-align: right;
  margin-top: 1px;
}

/* 左列: 1台分の単価表示 */
.cart-item-unit-price {
  font-size: 14px;
  margin-top: 5px;
  white-space: nowrap;
}

/* 旧クラス（削除商品行で残る場合の互換用） */
.cart-item-price {
  font-size: 16px;
  color: #111;
}
.cart-item-price-unit { font-size: 12px; font-weight: 400; color: #555; }
.cart-item-price-note { font-size: 11px; color: #888; margin-top: 2px; }
.cart-item-delete {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
  margin-top: 10px;
  transition: color .15s;
  display: block;
  text-align: right;
}
.cart-item-delete:hover { color: #e74c3c; }

/* ---- オプションサービス ---- */
.option-row {
display: flex;
  justify-content: space-between;
  align-items: stretch; 
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.option-row:last-child { border-bottom: none; padding-bottom: 0; }
.option-row:first-child { padding-top: 0; }
.option-check-label {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}
.option-check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0d6efd;
  cursor: pointer;
}
.option-price-col {
  display: flex;
  align-items: center; 
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
}

.option-subtotal {
  display: none;
  font-size: 14px;
  color: #111;
}

.option-subtotal span {
  font-size: 15px;
}
.option-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 3px;
}
.option-price-tag {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 10px;
}
.option-price-tag b {
  font-weight: 900;
}
.option-desc {
  font-size: 12px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

.option-price-unit { font-size: 12px; font-weight: 400; }

/* SPレイアウト時の調整 */
@media (max-width: 767px) {
  .option-row {
    flex-direction: column; /* SPでは小計を下に */
    gap: 10px;
  }
  .option-price-col {
    width: 100%;
    border-top: 1px dashed #eee;
    padding-top: 10px;
  }
}

/* ---- お届け・返却方法 ---- */
.delivery-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
}
.delivery-row:last-child { border-bottom: none; padding-bottom: 0; }
.delivery-row:first-child { padding-top: 0; }
.delivery-row input[type="radio"] {
  width: 17px; height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #0d6efd;
  cursor: pointer;
}
.delivery-row-label {
  flex: 1;
  cursor: pointer;
}
.delivery-name { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.delivery-desc { font-size: 12px; color: #444; margin: 0; line-height: 1.6; }
.delivery-price {
  font-size: 14px;
  font-weight: 400;
}
.delivery-price b { font-weight: 400; }
.delivery-price.free { color: #198754; }
.delivery-section-title {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 8px;
}
.delivery-section-title:not(:first-child) { margin-top: 16px; border-top: 1px dashed #eee; padding-top: 16px; }

/* ---- 右カラム: 注文サマリー ---- */
.order-summary {
  position: sticky;
  top: 40px;
}
.order-summary-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
}
.order-summary-title {
  font-size: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  gap: 8px;
}
.order-summary-title i { color: #0d6efd; font-size: 15px; }
.order-summary-body { padding: 16px 18px; }
.order-summary-body hr { border-color: #ddd; opacity: 1; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0;
  font-size: 13px;
  gap: 8px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row-label { color: #111; flex: 1; }
.summary-row-label .badge {
  font-size: 10px;
  font-weight: 400;
  vertical-align: middle;
  padding: 5px 10px;
}
.summary-row-val {
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
}
.summary-row-val.muted { color: #aaa; font-size: 12px; font-weight: 400; font-family: inherit; }
.summary-row-val.zero { color: #198754; }

/* 金額と「円」の改行を防ぐ汎用クラス */
.nowrap { white-space: nowrap; }

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 15px 0 20px;
  padding-top: 5px;
  border-top: 1px solid #111;
  gap: 8px;
}
.summary-total-label {
  font-size: 15px;
  font-weight: 900;
}
.summary-total-val {
  font-size: 26px;
  color: #111;
}
.summary-total-val span { font-size: 14px; }
.summary-tax-note {
  text-align: right;
  font-size: 11px;
  color: #999;
  margin: 2px 0 0;
}

.btn-order-proceed {
  display: block;
  width: 100%;
  padding: 15px;
  background: #e30000;
  border: none;
  border-radius: 100px;
  color: white;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  margin-top: 18px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-order-proceed:hover { opacity: .85; color: white; }
.btn-order-proceed:disabled,
.btn-order-proceed.disabled {
  opacity: .3;
  pointer-events: none;
}
.btn-order-proceed i { margin-right: 6px; }

.summary-notice {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
  margin: 12px 0 0;
  text-align: center;
}

/* ---- カート空の状態 ---- */
.cart-empty {
  text-align: center;
  padding: 50px 20px;
  color: #aaa;
}
.cart-empty i { font-size: 3rem; margin-bottom: 16px; display: block; }
.cart-empty p { font-size: 15px; margin: 0 0 20px; }

/* ---- 期間未選択アラート ---- */
.period-alert {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.period-alert.is-hidden { display: none; }

@media (max-width: 767px) {
  .cart-body { padding: 16px 10px 0; gap: 14px; }
  .cart-period-bar { padding: 14px 12px 16px; }
  .cart-title-bar h1 { font-size: 18px; }
  .order-summary { position: static; }
}





.mp_modal .select_rental_period {  }
.mp_modal .select_rental_period .in { display: flex; grid-column-gap: 10px; justify-content: center; align-items: center; }
.mp_modal .select_rental_period .selected_rental_period { text-align: center; }
.mp_modal .select_rental_period .selected_rental_period.disabled { display: none; }
.mp_modal .select_rental_period .selected_rental_price { text-align: center; line-height: 1.2; }
.mp_modal .select_rental_period .selected_rental_price span { font-size: 24px; font-family: "din-2014",sans-serif; }
.mp_modal .select_rental_period .selected_rental_price small { font-size: 12px; }
.mp_modal .select_rental_period .selected_rental_price.disabled { display: none; }
.mp_modal .select_rental_period .sep { margin-top: 26px; }
.mp_modal .select_rental_period .title { margin: 0 0 7px; font-weight: 400; }
.mp_modal .select_rental_period .delively .title { font-size: 12px; margin: 0 0 5px; text-align: center; font-weight: 400; }
.mp_modal .select_rental_period .return .title { font-size: 12px; margin: 0 0 5px; text-align: center; font-weight: 400; }
.mp_modal .select_rental_period .title small { display: block; font-size: 12px; }
.mp_modal .select_rental_period .day { border: 2px solid #0d6efd; border-radius: .5rem; text-align: center; padding: 10px 0px; color: #0d6efd; font-weight: 900; font-size: 18px; color: black; }
.mp_modal .select_rental_period .day:hover { cursor: pointer; /*background: #0d6efd; color: white;*/ }
.mp_modal .select_rental_period .day.disabled { cursor: default; color: #ddd!important; font-weight: 400; border-color: #eee; }
.mp_modal .select_rental_period .day.disabled:hover { cursor: default; background: white; color: #0d6efd; }






footer { padding: 40px 15px 40px; background: #F7F7F7; }

