@charset "UTF-8";
/* ============================================================
   共通設定
   ============================================================ */
:root {
  --footer-base-padding: 16px;
  --footer-height: 180px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --footer-total-padding: calc(var(--footer-base-padding) + var(--safe-area-bottom));
}
/* ============================================================
   ページ別 body padding-bottom（SP固定フッター用）
   - カートと購入手続き画面で共通の仕組み
   - ページIDで制御することでインラインCSS不要
   ============================================================ */
@media (max-width: 991px) {
  /* 共通レイアウト調整 */
  #page_cart .ec-layoutRole .ec-layoutRole__contents,
  #page_shopping .ec-layoutRole .ec-layoutRole__contents,
  #page_shopping_confirm .ec-layoutRole .ec-layoutRole__contents {
    padding-top: 38px;
    padding-bottom: 20px;
  }
  #page_cart .ec-layoutRole__header,
  #page_shopping .ec-layoutRole__header,
  #page_shopping_confirm .ec-layoutRole__header {
    position: static !important;
  }
  /* フッター非表示（詳細度を上げて確実に適用） */
  body#page_cart .ec-layoutRole__footer,
  body#page_cart .ec-footerRole,
  body#page_cart footer.ec-layoutRole__footer,
  body#page_cart footer,
  body#page_shopping .ec-layoutRole__footer,
  body#page_shopping .ec-footerRole,
  body#page_shopping footer.ec-layoutRole__footer,
  body#page_shopping footer,
  body#page_shopping_confirm .ec-layoutRole__footer,
  body#page_shopping_confirm .ec-footerRole,
  body#page_shopping_confirm footer.ec-layoutRole__footer,
  body#page_shopping_confirm footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  #page_cart .ec-cartRole__side,
  #page_shopping .ec-cartRole__side,
  #page_shopping_confirm .ec-cartRole__side {
    display: none !important;
  }
  #page_cart .ec-cartRole,
  #page_cart .ec-cartRole__wrap,
  #page_cart .ec-cartRole__main,
  #page_shopping .ec-cartRole,
  #page_shopping .ec-cartRole__wrap,
  #page_shopping .ec-cartRole__main,
  #page_shopping_confirm .ec-cartRole,
  #page_shopping_confirm .ec-cartRole__wrap,
  #page_shopping_confirm .ec-cartRole__main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}
/* safe-area対応（iPhone X以降） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 991px) {
    #page_cart.has-trial-box {
      padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #page_cart.has-regular-cart,
    #page_cart {
      padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #page_shopping {
      padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #page_shopping_confirm {
      padding-bottom: calc(200px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .ec-layoutRole {
      min-height: auto;
    }
  }
}
/* クーポン適用済みボックス（購入手続き画面用） */
.cart-sticky-coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f0f7f0;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #2d7a2d;
}
.cart-sticky-coupon-applied i {
  font-size: 14px;
}
.cart-sticky-coupon-applied strong {
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  .cart-sticky-checkout-btn,
  .cart-sticky-toggle-btn,
  .cart-sticky-toggle-btn .arrow,
  .delete-all-btn,
  .coupon-apply-btn,
  .sticky-footer-option,
  .sticky-footer-cart,
  .segment-btn,
  .segment-btn::before,
  .pack-card,
  .pack-card::before,
  .footer-btn-add,
  .ec-productRole__bottomSheet__close,
  .sticky-purchase-type {
    transition: none !important;
  }
}
/* ============================================================
   固定フッター共通スタイル
   ============================================================ */
.ec-cartRole__stickyFooter,
.ec-productRole__stickyFooter,
.ec-shoppingRole__stickyFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
/* ============================================================
   カートページ：固定フッター
   ============================================================ */
.ec-cartRole__stickyFooter {
  background: #fff;
  border-top: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  max-height: 80dvh;
  overflow-y: auto;
}
@media screen and (min-width: 992px) {
  .ec-cartRole__stickyFooter {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .ec-cartRole {
    padding-bottom: 320px;
    padding-bottom: calc(var(--footer-height) + var(--safe-area-bottom) + 100px);
  }
}
.cart-sticky-inner {
  padding: 16px;
  /* iOS Safari対応: safe-areaをinner側で確保 */
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  padding-bottom: calc(16px + constant(safe-area-inset-bottom, 0px)) !important;
}
/* ===== カート固定フッター：ヘッダー行（商品詳細と統一） ===== */
.cart-sticky-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
/* トライアルBOXの場合は境界線なし */
.cart-sticky-inner:not(:has(.cart-sticky-details)) .cart-sticky-header-row {
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}
.cart-sticky-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0;
}
.cart-sticky-title .purchase-type-text,
.cart-sticky-title .purchase-sub-text {
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.cart-sticky-price {
  flex-shrink: 0;
  text-align: right;
}
.cart-sticky-price .price-inline {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.cart-sticky-price .price-symbol {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}
.cart-sticky-price .price-amount,
.shopping-sticky-price .price-amount {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.cart-sticky-price .price-note-inline {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
  white-space: nowrap;
}
/* トライアルBOX用：1行表示・SP最適化 */
.cart-sticky-header-row.-trial {
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.cart-sticky-header-row.-trial .cart-sticky-title .purchase-type-text {
  font-size: 14px;
}
/* ===== カート固定フッター：詳細セクション ===== */
.cart-sticky-details {
  margin-bottom: 12px;
}
/* アコーディオン */
.cart-sticky-accordion {
  margin-bottom: 8px;
}
.cart-sticky-accordion .accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cart-sticky-accordion .accordion-trigger:hover {
  border-color: #b88b2d;
}
.cart-sticky-accordion .accordion-trigger.active {
  background: #fff;
  border-color: #b88b2d;
  border-radius: 10px 10px 0 0;
}
.cart-sticky-accordion .accordion-icon {
  font-size: 16px;
  color: #666;
  font-weight: 400;
}
.cart-sticky-accordion .accordion-content {
  padding: 8px 14px 12px;
  border: 1px solid #b88b2d;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
}
/* クーポンフォーム */
.cart-sticky-accordion .coupon-form {
  margin-bottom: 8px;
}
.cart-sticky-accordion .coupon-input-group {
  display: flex;
  gap: 8px;
}
.cart-sticky-accordion .coupon-input-group input[type=text] {
  flex: 2;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
}
.cart-sticky-accordion .coupon-input-group input[type=text]:focus {
  outline: none;
  border-color: #b88b2d;
}
.cart-sticky-accordion .coupon-apply-btn {
  flex: 1;
  padding: 10px 20px;
  background: #b88b2d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.cart-sticky-accordion .coupon-apply-btn:hover {
  background: #2d5a8f;
}
/* 適用済みクーポン */
.cart-sticky-accordion .applied-coupon-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f0f7ff;
  border: 1px solid #b88b2d;
  border-radius: 8px;
}
.cart-sticky-accordion .coupon-tag-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-sticky-accordion .coupon-name {
  font-size: 13px;
  color: #1a1a1a;
}
.cart-sticky-accordion .coupon-discount {
  font-size: 12px;
  color: #b88b2d;
  font-weight: 600;
}
.cart-sticky-accordion .coupon-close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cart-sticky-accordion .coupon-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #666;
}
/* 未ログイン時のクーポンログイン案内 */
.cart-sticky-login-hint {
  text-align: center;
  font-size: 14px;
  color: #666;
  padding: 10px 0;
}
.cart-sticky-login-hint a {
  color: #b88b2d;
  font-weight: 600;
  text-decoration: underline;
}
/* 価格詳細リスト */
.price-detail-list {
  padding: 0;
}
.price-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.price-detail-label {
  color: #333;
  font-weight: 500;
}
.price-detail-value {
  text-align: right;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 18px;
}
.price-detail-discount {
  display: inline-block;
  background: #db5331;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 6px;
  font-weight: 500;
}
.price-detail-original {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
  margin-right: 6px;
}
.price-detail-current {
  font-weight: 600;
  color: #1a1a1a;
}
.price-detail-coupon {
  color: #2d7a2d;
  font-size: 18px;
}
/* クーポンセクション（価格詳細との区切り） */
.coupon-section {
  margin-top: 8px;
  padding-top: 8px;
}
/* PC版：クーポンログイン案内 */
.coupon-login-hint {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}
.coupon-login-hint a {
  color: #b88b2d;
  font-weight: 600;
  text-decoration: underline;
}
/* クーポンエラー */
.cart-sticky-accordion .coupon-error-message {
  padding: 10px 12px;
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  margin-bottom: 8px;
}
.cart-sticky-accordion .coupon-error-content {
  font-size: 13px;
  color: #dc3545;
}
/* ===== 旧スタイル（互換性のため残す） ===== */
.cart-sticky-product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px;
  background: #f6f2e8;
  margin-bottom: 12px;
}
.product-info {
  flex: 1;
}
.product-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.type-label {
  font-size: 14px;
  font-weight: bold;
  color: #b88b2d;
}
.type-label.subscription,
.type-label.onetime {
  color: #b88b2d;
}
.frame-size {
  font-size: 13px;
  color: #666;
}
.trial-badge {
  display: inline-block;
  background: #e94f2a;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}
.selection-info {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 16px;
  color: #111111;
  justify-content: center;
  font-weight: 500;
}
.selection-info .label {
  font-size: 14px;
  font-weight: 400;
}
.selected-count,
.capacity-count {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
}
.separator {
  margin: 0 2px;
}
.delete-all-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: white;
  border: 1px solid #dc3545;
  color: #dc3545;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.09s cubic-bezier(0, 0.43, 0.5, 1), color 0.09s cubic-bezier(0, 0.43, 0.5, 1);
  white-space: nowrap;
}
.delete-all-btn:hover {
  background: #dc3545;
  color: white;
}
.delete-all-btn svg {
  width: 16px;
  height: 16px;
}
.cart-sticky-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.cart-sticky-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  color: #1a1a1a;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.cart-sticky-toggle-btn:hover {
  background: #f0f0f0;
}
.cart-sticky-toggle-btn.active {
  background-color: #b88b2d !important;
  color: white;
  border-color: #b88b2d !important;
}
.cart-sticky-toggle-btn svg {
  width: 16px;
  height: 16px;
}
.cart-sticky-toggle-btn .arrow {
  transition: transform 0.3s;
  display: inline-block;
}
.cart-sticky-toggle-btn.active .arrow {
  transform: rotate(180deg);
}
.cart-sticky-expandable {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.cart-sticky-coupon {
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 16px;
}
/* クーポンアコーディオン */
.cart-sticky-coupon-accordion {
  margin-bottom: 12px;
}
.coupon-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #b88b2d;
  cursor: pointer;
}
.coupon-accordion-toggle .coupon-link-text {
  text-decoration: underline;
}
.coupon-accordion-toggle:hover {
  color: #2a4a7a;
}
.coupon-accordion-toggle .accordion-icon {
  font-size: 14px;
  font-weight: normal;
  text-decoration: none !important;
}
.coupon-accordion-toggle.active .accordion-icon {
  content: "−";
}
.coupon-row {
  border-top: 1px solid #eee;
  margin-top: 8px;
  padding-top: 8px;
}
.coupon-accordion-content {
  padding: 12px 0;
}
.cart-sticky-coupon__title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.coupon-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.coupon-input-group input[type=text] {
  flex: 1;
  min-width: 0; /* これが重要！ */
  font-size: 16px !important;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.coupon-input-group button,
.coupon-apply-btn {
  flex-shrink: 0; /* ボタンが縮まないように */
  white-space: nowrap; /* テキストを折り返さない */
  padding: 10px 16px;
}
/* スマホ・タブレット用の調整 */
@media (max-width: 991px) {
  .coupon-input-group {
    gap: 6px;
  }
  .coupon-input-group input[type=text] {
    font-size: 16px !important;
    padding: 10px 12px;
  }
  .coupon-input-group button,
  .coupon-apply-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
}
.coupon-apply-btn {
  padding: 10px 16px;
  background: #b88b2d;
  color: white;
  border: 1px solid #b88b2d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.09s cubic-bezier(0, 0.43, 0.5, 1), border-color 0.09s cubic-bezier(0, 0.43, 0.5, 1);
}
.coupon-apply-btn:hover {
  background: #2d5a8f;
  border-color: #1b3a60;
}
.coupon-apply-btn:active {
  background: #173251;
  border-color: #142a44;
}
.applied-coupon-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #d4c9b8;
}
.coupon-name {
  flex: 1;
  font-size: 13px;
}
.coupon-name strong {
  color: #b88b2d;
}
.coupon-discount {
  color: #666;
  font-size: 12px;
  margin-left: 6px;
}
.coupon-remove-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 20px;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  transition: color 0.3s;
}
.coupon-remove-btn:hover {
  color: #c82333;
}
.cart-sticky-detail {
  padding: 16px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 16px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
}
.detail-row:last-child {
  margin-bottom: 0;
}
.detail-label {
  color: #111111;
  font-weight: 500;
}
.detail-value {
  text-align: right;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.discount-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
}
.discount-badge {
  color: #e94f2a;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
}
.original-price {
  text-decoration: line-through;
  color: #999;
}
.sale-price {
  font-size: 16px;
  color: #b88b2d;
}
.text-primary {
  color: #b88b2d;
}
.cart-sticky-total {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  justify-content: center;
}
.total-label {
  font-size: 14px;
  color: #666;
}
.total-price {
  font-size: 26px;
  font-weight: bold;
  color: #b88b2d;
}
.total-tax {
  font-size: 12px;
  color: #666;
}
.cart-sticky-button-area {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-sticky-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  background: #b88b2d;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}
.cart-sticky-button-area .cart-sticky-checkout-btn {
  flex: 1;
  white-space: nowrap;
}
.cart-sticky-checkout-btn:hover:not(:disabled) {
  background: #2d5a8f;
}
.cart-sticky-checkout-btn:active:not(:disabled) {
  background: #173251;
}
.cart-sticky-checkout-btn:focus-visible {
  outline: 3px solid rgba(29, 56, 92, 0.3);
  outline-offset: 3px;
}
.cart-sticky-checkout-btn:disabled {
  background-color: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  pointer-events: none;
}
.cart-sticky-checkout-btn.loading {
  pointer-events: none;
  justify-content: center;
}
.cart-sticky-checkout-btn .spinner-border {
  display: none;
  width: 20px;
  height: 20px;
  border-width: 2px;
  vertical-align: middle;
}
.cart-sticky-checkout-btn.loading .spinner-border {
  display: inline-block !important;
}
.cart-sticky-checkout-btn.loading .btn-label {
  display: none;
}
.cart-sticky-warning {
  margin-top: 8px;
  text-align: center;
  color: #dc3545;
  font-size: 12px;
  width: 100%;
}
.cart-sticky-coupon .alert {
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}
.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
@media (max-width: 991px) {
  .ec-cartRole__side__coupon {
    display: none;
  }
}
.ec-cartRole__clearLink {
  max-width: 1130px;
  margin: 0 auto 10px;
  padding: 0 15px;
}
.ec-cartRole__clearLink__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.ec-cartRole__clearLink .product-name {
  color: #333;
  font-size: 16px;
  font-weight: 600;
}
.ec-cartRole__clearLink .clear-link {
  color: #333;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}
.ec-cartRole__clearLink .clear-link:hover {
  color: #666;
  text-decoration: none;
}
@media (max-width: 991px) {
  .ec-cartRole__clearLink {
    padding: 0;
  }
}
@media (max-width: 991px) and (orientation: landscape) {
  :root {
    --footer-base-padding: 16px;
  }
  .cart-sticky-inner {
    padding-top: 8px;
  }
  .cart-sticky-product-header {
    padding: 8px;
    margin-bottom: 8px;
  }
  .cart-sticky-total .total-price {
    font-size: 22px;
  }
}
/* ============================================================
   商品詳細ページ：固定フッター
   ============================================================ */
.ec-productRole__stickyFooter {
  display: none;
  background: #f6f2e8;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 16px 12px;
  border-top: 1px solid #f6f2e8;
}
.ec-productRole__stickyFooter.-trial {
  background: #f6f2e8;
  padding: 20px 12px;
}
@media screen and (max-width: 991px) {
  .ec-productRole__stickyFooter {
    display: block;
  }
}
.ec-productRole__stickyFooter__inner {
  max-width: 600px;
  margin: 0 auto;
}
.sticky-footer-title {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
  text-align: center;
}
.sticky-footer-layout {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.sticky-footer-option {
  flex: 1;
  background: #fff;
  border: 1px solid #111111;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  color: #111111;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
}
.sticky-footer-option:hover {
  color: #111111;
  background: #ebebeb;
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.sticky-footer-option:active {
  background: #e0e0e0;
  color: #111111;
}
.sticky-footer-option:focus-visible {
  outline: 2px solid rgba(33, 37, 41, 0.35);
  outline-offset: 3px;
  color: #111111;
}
.option-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}
.option-label .arrow {
  font-size: 10px;
  margin-left: 4px;
}
.option-detail {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
.sticky-footer-cart {
  flex: 0 0 auto;
  min-width: 120px;
  background: #b88b2d;
  border: 1px solid #b88b2d;
  border-radius: 8px;
  padding: 10px 16px;
  color: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: none !important;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
}
.sticky-footer-cart:hover:not(:disabled) {
  background: #2d5a8f;
  border-color: #1b3a60;
  box-shadow: none !important;
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.sticky-footer-cart:active:not(:disabled) {
  background: #173251;
  border-color: #142a44;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset !important;
}
.sticky-footer-cart:focus-visible {
  outline: 2px solid rgba(29, 56, 92, 0.45);
  outline-offset: 3px;
}
.sticky-footer-cart:disabled {
  background-color: #9aa7b8;
  border-color: #9aa7b8;
  color: #eef2f6;
  cursor: not-allowed;
  pointer-events: none;
}
.cart-label {
  font-size: 11px;
  margin-bottom: 2px;
  font-weight: 500;
}
.cart-price {
  font-size: 16px;
  font-weight: bold;
}
.sticky-footer-select-mode {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.sticky-purchase-type {
  flex: 1;
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
}
.sticky-purchase-type:hover {
  background: #f9f9f9;
  border-color: #666;
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.sticky-purchase-type:active {
  transform: scale(0.98);
}
.sticky-purchase-type:focus-visible {
  outline: 2px solid rgba(233, 79, 42, 0.45);
  outline-offset: 3px;
}
.sticky-purchase-type.-recommend {
  overflow: visible;
}
.purchase-type-badge {
  position: absolute;
  top: -12px;
  right: -5px;
  z-index: 1;
  pointer-events: none;
}
.purchase-type-badge img {
  display: block;
  width: 89px;
  height: 28px;
}
.purchase-type-label {
  display: block;
}
.sticky-footer-detail-mode {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
/* ============================================================
   商品詳細ページ：ボトムシート
   ============================================================ */
.ec-productRole__bottomSheet {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}
.ec-productRole__bottomSheet__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ec-productRole__bottomSheet.is-open .ec-productRole__bottomSheet__overlay {
  opacity: 1;
}
.ec-productRole__bottomSheet__content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 0;
  /* 全画面表示 - クロスブラウザ対応 */
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
  /* safe-area対応（iOS/Android/In-App Browser） */
  padding-top: 0;
  padding-top: constant(safe-area-inset-top); /* iOS 11.0-11.1 */
  padding-top: env(safe-area-inset-top, 0px); /* iOS 11.2+, Android */
}
.ec-productRole__bottomSheet.is-open .ec-productRole__bottomSheet__content {
  transform: translateY(0);
}
.ec-productRole__bottomSheet__handle {
  display: none; /* 全画面では不要 */
}
.ec-productRole__bottomSheet__handle::before {
  display: none;
}
.ec-productRole__bottomSheet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.ec-productRole__bottomSheet__title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}
.ec-productRole__bottomSheet__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
}
.ec-productRole__bottomSheet__close:hover {
  background-color: rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.ec-productRole__bottomSheet__close:active {
  background-color: rgba(0, 0, 0, 0.1);
}
.ec-productRole__bottomSheet__close:focus-visible {
  outline: 2px solid rgba(29, 56, 92, 0.45);
  outline-offset: 2px;
}
.ec-productRole__bottomSheet__fixed-area {
  padding: 20px 20px 0;
  padding-top: 30px;
  flex-shrink: 0;
  background: #f6f2e8;
  position: relative;
  z-index: 1;
}
.ec-productRole__bottomSheet__scroll-area {
  padding: 20px 20px 120px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
  background: #f6f2e8;
}
.ec-productRole__bottomSheet__body {
  padding: 20px;
  min-height: 300px;
}
@media screen and (min-width: 992px) {
  .ec-productRole__bottomSheet {
    display: none !important;
  }
}
.purchase-segment {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: transparent;
  padding: 0;
  border: 1px solid #111111;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.subscription-info {
  margin-top: 18px;
}
.segment-btn {
  flex: 1;
  padding: 16px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
  position: relative;
  color: #111111;
}
/* 外枠は border-radius: 8px + overflow: hidden。仕切り線を 1px の border で
   引くと角丸のクリップ端と重なり、境目が滲んで見える。
   内側に収まる擬似要素で引き、上下を少し空ける */
.segment-btn:first-child {
  border-right: 0;
}
.segment-btn:first-child::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  width: 1px;
  background: #111111;
  pointer-events: none;
}
/* 選択中の側は金色の枠が付くため、仕切り線と重なって二重に見える。
   どちらかが選ばれている以上、仕切りは不要 */
.segment-btn:first-child.active::after,
.segment-btn:first-child:has(+ .segment-btn.active)::after {
  display: none;
}
.segment-btn:hover:not(.active) {
  background: #f9f9f9;
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.segment-btn.active {
  background: #ffffff;
  box-shadow: none;
}
.segment-btn::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="9" fill="white" stroke="%23cccccc" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
}
.segment-btn:hover::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="9" fill="%23f7f7f7" stroke="%23aaaaaa" stroke-width="2"/></svg>');
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.segment-btn.active::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="9" fill="white" stroke="%23e94f2a" stroke-width="2"/><circle cx="10" cy="10" r="4.5" fill="%23e94f2a"/></svg>');
}
.segment-btn:focus-visible {
  outline: 2px solid rgba(233, 79, 42, 0.45);
  outline-offset: 2px;
}
.segment-btn[data-type=subscription]::after {
  content: "";
  display: block;
  width: 89px;
  height: 28px;
  background: url(../icon/icon_recommend.svg) no-repeat;
  background-size: contain;
  position: absolute;
  top: -30px;
  right: 8px;
  z-index: 2;
  pointer-events: none;
}
.pack-selection {
  margin-bottom: 0;
}
.pack-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 上のセグメントと下の説明にカードが接していた。
     セグメント側に margin-bottom: 20px があるので上は足さない
     （足すと 40px になり、セグメント上の 18px と釣り合わない） */
  margin: 0 0 20px;
}
.pack-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  /* ラジオ（::before）は left: 18px / 幅 24px なので右端は 42px。
     50px では「10パック」やバッジに掛かる。余白を足して逃がす */
  padding-left: 58px;
  margin-bottom: 0;
  cursor: pointer;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
  position: relative;
  border: 1px solid #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.pack-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="white" stroke="%23cccccc" stroke-width="2"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
}
.pack-card:hover::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="%23f7f7f7" stroke="%23aaaaaa" stroke-width="2"/></svg>');
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.pack-card.active::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="white" stroke="%23db5331" stroke-width="2"/><circle cx="12" cy="12" r="5" fill="%23db5331"/></svg>');
}
.pack-card::after,
.pack-card.active::after {
  display: none;
}
.pack-card:active {
  transform: scale(0.98);
}
.pack-card:focus-visible {
  outline: 2px solid rgba(233, 79, 42, 0.45);
  outline-offset: 3px;
}
.pack-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 4px;
}
.pack-label {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}
.pack-price {
  display: flex;
  align-items: baseline;
  font-size: 24px;
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  justify-content: flex-end;
}
.pack-discount {
  /* #e94f2a に白 10px は輪郭が潰れて読めない。地を濃くし字も大きくする */
  background: #c33c1a;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 16px;
  margin-bottom: 4px;
  width: -moz-fit-content;
  width: fit-content;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.pack-price .original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
  line-height: 1.2;
}
.pack-price .sale-price {
  display: flex;
  align-items: baseline;
  font-size: 20px;
  color: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.price-extended .default {
  color: #888;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price-extended .default span {
  text-decoration: line-through;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
}
.pack-price .yen {
  font-size: 16px;
  margin-right: 2px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
}
.pack-tax {
  font-size: 11px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  margin-left: 4px;
}
.price-extended {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pack-custom {
  font-size: 11px;
  border: 1px solid #000;
  color: #111111;
  border-radius: 24px;
  padding: 2px 10px;
  letter-spacing: 0;
  margin-top: 0px;
  width: -moz-fit-content;
  width: fit-content;
  white-space: nowrap;
}
.ec-productRole__bottomSheet__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 16px 20px;
  /* safe-area対応（iOS/Android/In-App Browser） */
  padding-bottom: 16px;
  padding-bottom: calc(16px + constant(safe-area-inset-bottom)); /* iOS 11.0-11.1 */
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); /* iOS 11.2+, Android */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}
.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.footer-selection {
  font-size: 14px;
  color: #666;
}
.footer-price {
  font-size: 18px;
  font-weight: bold;
  color: #e94f2a;
}
.footer-btn-add {
  width: 100%;
  padding: 16px 24px;
  background: #b88b2d;
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 14px;
  box-shadow: none;
  transition: background-color 0.15s ease;
  letter-spacing: 0.02em;
}
.footer-btn-add:hover:not(:disabled) {
  background: #2d5a8f;
}
.footer-btn-add:active:not(:disabled) {
  background: #173251;
}
.footer-btn-add:focus-visible {
  outline: 3px solid rgba(29, 56, 92, 0.3);
  outline-offset: 3px;
}
.footer-btn-add:disabled {
  background-color: #9aa7b8;
  color: #eef2f6;
  cursor: not-allowed;
  pointer-events: none;
}
/* プラスアイコンを非表示 */
.footer-btn-add .btn-label::before,
.ec-productRole__bottomSheet .footer-btn-add .btn-label::before {
  display: none !important;
  content: none !important;
}
.subscription-info {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
}
.subscription-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.subscription-points li {
  padding-left: 32px;
  margin: 12px 0px;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}
.subscription-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #4a7c59;
  border-radius: 50%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M3 8L6.5 11.5L13 5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
}
.subscription-detail {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
}
.subscription-detail-title {
  border-radius: 32px;
  background: #378a69;
  width: -moz-fit-content;
  width: fit-content;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  margin-bottom: 16px;
}
.subscription-detail-text {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 500;
}
.subscription-detail-text br {
  display: block;
  content: "";
  margin-top: 8px;
}
/* ============================================================
   トライアル商品：固定フッター
   ============================================================ */
.sticky-footer-trial-layout {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sticky-footer-trial-price {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trial-badge-limited {
  display: inline-block;
  background: #e94f2a;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  width: -moz-fit-content;
  width: fit-content;
}
.trial-discount-badge {
  display: inline-block;
  background: #e94f2a;
  color: white;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  width: -moz-fit-content;
  width: fit-content;
}
.trial-price-container {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
}
.trial-original-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.trial-sale-price {
  font-size: 26px;
  font-weight: bold;
  color: #b88b2d;
  line-height: 1;
}
.trial-sale-price .yen {
  font-size: 18px;
  margin-right: 2px;
}
.trial-tax-note {
  font-size: 11px;
  color: #666;
}
.sticky-footer-trial-button {
  flex: 0 0 auto;
  min-width: 130px;
  background: #b88b2d;
  border: 1px solid #b88b2d;
  padding: 14px 20px;
  color: white;
  cursor: pointer;
  font-size: 15px;
  box-shadow: none !important;
  transition: 0.45s cubic-bezier(0.23, 0.2, 0.35, 0.89) !important;
  white-space: nowrap;
  border-radius: 48px;
  font-weight: 700;
}
.sticky-footer-trial-button:hover:not(:disabled) {
  background: #2d5a8f;
  border-color: #1b3a60;
  box-shadow: none !important;
  transition: 0.09s cubic-bezier(0, 0.43, 0.5, 1) !important;
}
.sticky-footer-trial-button:active:not(:disabled) {
  background: #173251;
  border-color: #142a44;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset !important;
}
.sticky-footer-trial-button:focus-visible {
  outline: 2px solid rgba(29, 56, 92, 0.45);
  outline-offset: 3px;
}
.sticky-footer-trial-button:disabled {
  background-color: #9aa7b8;
  border-color: #9aa7b8;
  color: #eef2f6;
  cursor: not-allowed;
  pointer-events: none;
}
/* 適用されたクーポンタグのスタイル */
.cart-sticky-coupon .alert a {
  color: #111111;
  font-weight: 500;
  text-decoration: underline;
}
.cart-sticky-coupon .applied-coupon-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 5px 8px 5px 28px;
  background: #e94f2a;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}
.cart-sticky-coupon .applied-coupon-tag::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
}
.cart-sticky-coupon .coupon-tag-content {
  flex-shrink: 0;
  min-width: 0;
}
.cart-sticky-coupon .coupon-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.cart-sticky-coupon .coupon-name {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cart-sticky-coupon .coupon-discount {
  color: #ffd700;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.cart-sticky-coupon .coupon-remove-form {
  margin: 0;
  margin-left: 8px;
}
.cart-sticky-coupon .coupon-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.cart-sticky-coupon .coupon-close-btn::before {
  content: "\f00d" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  margin-right: 0 !important;
  display: inline-block !important;
}
.cart-sticky-coupon .coupon-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.cart-sticky-coupon .coupon-close-btn:active {
  transform: scale(0.95);
}
/* ============================================================
   注文手続きページ：固定フッター（Uber風コンテナ）
   ============================================================ */
@media (max-width: 991px) {
  /* 購入手続き画面のbodyに余白を追加 */
  body.shopping_page {
    padding-bottom: 180px !important;
  }
  /* 購入手続き画面のメインコンテンツに余白を追加 */
  body.shopping_page .ec-cartRole__wrap,
  body.shopping_page .ec-cartRole__main {
    padding-bottom: 40px !important;
  }
  .ec-shoppingRole__stickyFooter {
    background: #fff;
    border-top: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    max-height: 80dvh;
    overflow-y: auto;
  }
  /* トライアルBOX時：余白少なめ */
  body.has-trial-box .ec-cartRole__wrap {
    padding-bottom: 20px;
  }
  /* 通常商品時：余白多め */
  body.has-regular-cart .ec-cartRole__wrap {
    padding-bottom: 160px;
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 16px));
  }
  /* デスクトップ用のサイドバーを非表示 */
  .ec-cartRole__side {
    display: none !important;
  }
  .shopping-sticky-inner {
    padding: 16px;
  }
  /* ===== ヘッダー行：カートと統一 ===== */
  .shopping-sticky-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  /* 詳細セクションがない場合（トライアルBOX） */
  .shopping-sticky-header-row:has(+ .shopping-sticky-button-area) {
    margin-bottom: 12px;
    padding-bottom: 0;
  }
  .shopping-sticky-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0;
  }
  .shopping-sticky-title .purchase-type-text,
  .shopping-sticky-title .purchase-sub-text {
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.4;
  }
  /* ===== 価格表示：カートと統一 ===== */
  .shopping-sticky-price {
    flex-shrink: 0;
    text-align: right;
  }
  .shopping-sticky-price .price-inline {
    display: flex;
    align-items: baseline;
    gap: 0;
  }
  .shopping-sticky-price .price-symbol {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
  }
  .shopping-sticky-price .price-note-inline {
    font-size: 12px;
    color: #666;
    margin-left: 4px;
    white-space: nowrap;
  }
  /* ===== クーポン適用済みボックス ===== */
  .shopping-sticky-coupon-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.4;
  }
  .shopping-sticky-coupon-applied i {
    color: #4caf50;
    font-size: 16px;
    flex-shrink: 0;
  }
  .shopping-sticky-coupon-applied strong {
    color: #2e7d32;
  }
  /* ===== 詳細セクション ===== */
  .shopping-sticky-details {
    margin-bottom: 12px;
  }
  /* ===== アコーディオン：カートと統一 ===== */
  .shopping-sticky-accordion {
    margin-bottom: 8px;
  }
  .shopping-sticky-accordion .accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .shopping-sticky-accordion .accordion-trigger:hover {
    border-color: #b88b2d;
  }
  .shopping-sticky-accordion .accordion-trigger.active {
    background: #fff;
    border-color: #b88b2d;
    border-radius: 10px 10px 0 0;
  }
  .shopping-sticky-accordion .accordion-icon {
    font-size: 16px;
    color: #666;
    font-weight: 400;
  }
  .shopping-sticky-accordion .accordion-content {
    padding: 8px 14px 12px;
    border: 1px solid #b88b2d;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
  }
  /* ===== ボタンエリア：カートと統一 ===== */
  .shopping-sticky-button-area {
    margin-top: 4px;
  }
  .shopping-sticky-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: #b88b2d;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
  }
  .shopping-sticky-checkout-btn:hover:not(:disabled) {
    background: #2d5a8f;
  }
  .shopping-sticky-checkout-btn:active:not(:disabled) {
    background: #173251;
  }
  .shopping-sticky-checkout-btn:focus-visible {
    outline: 3px solid rgba(29, 56, 92, 0.3);
    outline-offset: 3px;
  }
  .shopping-sticky-checkout-btn:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
  }
  .shopping-sticky-checkout-btn.loading {
    pointer-events: none;
    justify-content: center;
  }
  .shopping-sticky-checkout-btn .spinner-border {
    display: none;
    width: 20px;
    height: 20px;
    border-width: 2px;
    vertical-align: middle;
  }
  .shopping-sticky-checkout-btn.loading .spinner-border {
    display: inline-block !important;
  }
  .shopping-sticky-checkout-btn.loading .btn-label {
    display: none;
  }
  /* 旧クラス互換 */
  .shopping-sticky-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: #b88b2d;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
  }
  .shopping-sticky-submit-btn:hover:not(:disabled) {
    background: #2d5a8f;
  }
  .shopping-sticky-submit-btn:active:not(:disabled) {
    background: #173251;
  }
  .shopping-sticky-submit-btn:focus-visible {
    outline: 3px solid rgba(29, 56, 92, 0.3);
    outline-offset: 3px;
  }
  .shopping-sticky-submit-btn:disabled {
    background-color: #9aa7b8;
    color: #eef2f6;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    transform: none;
  }
  /* ローディング中 */
  .shopping-sticky-submit-btn.loading {
    pointer-events: none;
    justify-content: center;
  }
  .shopping-sticky-submit-btn .spinner-border {
    display: none;
    width: 20px;
    height: 20px;
    border-width: 2px;
    vertical-align: middle;
  }
  .shopping-sticky-submit-btn.loading .spinner-border {
    display: inline-block !important;
  }
  .shopping-sticky-submit-btn.loading .btn-label {
    display: none;
  }
}
@media (max-width: 991px) and (orientation: landscape) {
  .shopping-sticky-inner {
    padding-top: 8px;
  }
  .shopping-sticky-header-row {
    padding: 8px 0;
    margin-bottom: 8px;
  }
  .shopping-sticky-total-price .price-value {
    font-size: 20px;
  }
}
/* 固定フッターのローディングオーバーレイ */
.sticky-footer-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85); /* 白色系の半透明 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 8px;
}
.sticky-footer-loading-overlay .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.25em;
  border-color: #b88b2d; /* メインカラー */
  border-right-color: transparent; /* 回転効果のため右側を透明に */
}
/* ローディング中はボタンを無効化 */
.sticky-footer-detail-mode.loading .sticky-footer-option,
.sticky-footer-detail-mode.loading .sticky-footer-cart {
  pointer-events: none;
  opacity: 0.6;
}
/* ============================================================
   通常商品用固定フッター（-normal）
   ============================================================ */
@media (max-width: 991px) {
  .ec-shoppingRole__stickyFooter.-normal {
    background: #fff;
    border-radius: 20px 20px 0 0;
    /* safe-area対応（iOS/Android/In-App Browser） */
    padding-bottom: 0;
    padding-bottom: constant(safe-area-inset-bottom); /* iOS 11.0-11.1 */
    padding-bottom: env(safe-area-inset-bottom, 0px); /* iOS 11.2+, Android */
  }
  .ec-shoppingRole__stickyFooter.-normal .shopping-sticky-inner {
    padding: 16px;
  }
  /* ボタンエリアの余白調整 */
  .ec-shoppingRole__stickyFooter.-normal .shopping-sticky-button-area {
    margin-bottom: 0;
  }
  /* 詳細表示モード */
  .ec-shoppingRole__stickyFooter.-normal .shopping-sticky-detail-mode {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 0;
  }
  .ec-shoppingRole__stickyFooter.-normal .shopping-sticky-option-btn {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 16px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 14px;
    box-shadow: none;
  }
  .ec-shoppingRole__stickyFooter.-normal .shopping-sticky-option-btn:active {
    background: #f5f5f5;
  }
  .ec-shoppingRole__stickyFooter.-normal .option-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
  }
  .ec-shoppingRole__stickyFooter.-normal .option-arrow {
    font-size: 10px;
    color: #888;
    flex-shrink: 0;
  }
  .ec-shoppingRole__stickyFooter.-normal .shopping-sticky-detail-mode .shopping-sticky-submit-btn {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
  }
}
/* ============================================================
   クロスブラウザ対応（iOS Safari / Android Chrome / In-App Browser）
   ============================================================ */
/* 
 * safe-area-inset対応ブラウザ:
 * - iOS Safari 11.0+ (constant: 11.0-11.1, env: 11.2+)
 * - Android Chrome 69+
 * - Instagram/Facebook/LINE等のIn-App Browser
 * - Google App (iOS/Android)
 *
 * viewport-fit=cover が必要（product_frame.twigで設定済み）
 */
/* In-App Browser用フォールバック（safe-areaが効かない場合の最低余白） */
@supports not (padding-bottom: env(safe-area-inset-bottom)) {
  .ec-shoppingRole__stickyFooter.-normal,
  .ec-shoppingRole__stickyFooter.-trial,
  .ec-productRole__bottomSheet__footer {
    padding-bottom: 20px;
  }
}
/* 購入手続き画面：safe-area対応 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 991px) {
    body.shopping_page {
      padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }
}
/* ボトムシート表示時：背景スクロール停止（iOS Safari対応） */
body.bottomsheet-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
/* ============================================================
   トライアル商品用固定フッター（-trial）
   ============================================================ */
@media (max-width: 991px) {
  .ec-shoppingRole__stickyFooter.-trial {
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    /* safe-area対応（iOS/Android/In-App Browser） */
    padding-bottom: 8px;
    padding-bottom: calc(8px + constant(safe-area-inset-bottom)); /* iOS 11.0-11.1 */
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); /* iOS 11.2+, Android */
  }
  .ec-shoppingRole__stickyFooter.-trial .shopping-sticky-inner {
    padding: 20px 16px 16px 16px;
  }
  .ec-shoppingRole__stickyFooter.-trial .shopping-sticky-button-area {
    margin-bottom: 0;
  }
  .ec-shoppingRole__stickyFooter.-trial .shopping-sticky-submit-btn {
    width: 100%;
    padding: 18px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
  }
}
@media (max-width: 991px) {
  #page_shopping .ec-cartRole__stickyFooter .cart-sticky-title .purchase-type-text,
  #page_shopping .ec-cartRole__stickyFooter .cart-sticky-title .purchase-sub-text {
    font-size: 16px !important;
    font-weight: 700 !important;
  }
  #page_shopping .ec-cartRole__stickyFooter .cart-sticky-price .price-symbol {
    font-size: 20px !important;
    font-weight: 700 !important;
  }
  #page_shopping .ec-cartRole__stickyFooter .cart-sticky-price .price-amount {
    font-size: 20px !important;
    font-weight: 700 !important;
  }
  #page_shopping .ec-cartRole__stickyFooter .price-detail-value {
    font-size: 14px !important;
    font-weight: 600 !important;
  }
}
#page_shopping .ec-cartRole__stickyFooter .cart-sticky-checkout-btn {
  border-radius: 48px !important;
  background: #c39d4a !important;
}
#page_shopping .ec-cartRole__stickyFooter .cart-sticky-checkout-btn:hover:not(:disabled) {
  background: #b88b2d !important;
}
#page_shopping_confirm .ec-cartRole__stickyFooter .cart-sticky-checkout-btn {
  border-radius: 48px !important;
  background: #c39d4a !important;
}
#page_shopping_confirm .ec-cartRole__stickyFooter .cart-sticky-checkout-btn:hover:not(:disabled) {
  background: #b88b2d !important;
}