/* =============================================
   MHF カート改善 モダンチェックアウトCSS v3
   Shopify / Apple / Stripe のベストプラクティス統合
   コンバージョン最大化デザイン
   ============================================= */

/* --- Google Fonts --- */
/* HTMLの<link>タグで読み込み済み（@importはレンダリングブロックのため削除） */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif !important;
  background: #f7f7f7 !important;
  color: #1a1a1a !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- 旧テンプレートの固定幅を無効化（テーブルのみ） --- */
table, table[width] {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse !important;
}
/* PC: td/thは通常のテーブルセル表示を維持 */
td, th {
  padding: 8px 12px !important;
  vertical-align: top !important;
}

/* 固定幅クラスの強制上書き */
.spitemtable {
  width: 100% !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}
.error {
  width: 100% !important;
  max-width: 800px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}
.mem {
  width: 100% !important;
  max-width: 600px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}
.attention {
  width: 100% !important;
  max-width: 850px !important;
  box-sizing: border-box !important;
}
.onegai {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}

/* center タグ・align属性の上書き */
center {
  max-width: 100% !important;
}

/* hr の固定幅上書き */
hr[width], hr {
  width: 100% !important;
  max-width: 700px !important;
  border: none !important;
  border-top: 1px solid #e8e8e8 !important;
  margin: 16px auto !important;
}

/* bgcolor属性の上書き */
td[bgcolor], th[bgcolor] {
  background-color: transparent !important;
}
td[bgcolor="#FF6600"],
td[bgcolor="#ff6600"] {
  background: transparent !important;
}

/* テストページナビゲーション */
.test-nav {
  display: flex !important;
  justify-content: space-between !important;
  padding: 16px 24px !important;
  max-width: 1100px !important;
  margin: 16px auto !important;
  gap: 12px !important;
}
.test-nav a {
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
}
.nav-back {
  color: #666 !important;
  background: #fff !important;
  border: 1.5px solid #d0d0d0 !important;
}
.nav-next {
  color: #fff !important;
  background: #FF6600 !important;
  font-weight: 600 !important;
}

/* 旧CSSクラスのリセット */
.headmenu {
  display: none !important;
}
.linecolor {
  background: transparent !important;
}
.line {
  border: none !important;
}

/* =============================================
   ヘッダー
   ============================================= */
.mhf-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 24px;
  text-align: center;
}
.mhf-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

/* =============================================
   ステッププログレスバー（コンバージョン向上）
   ============================================= */
.step-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.step-progress .step {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #999;
  font-weight: 400;
  white-space: nowrap;
}
.step-progress .step::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #ddd;
  margin: 0 8px;
}
.step-progress .step:last-child::after {
  display: none;
}
.step-progress .step.active {
  color: #FF6600;
  font-weight: 600;
  background: none;
}
.step-progress .step.active::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF6600;
  margin-right: 6px;
  flex-shrink: 0;
}
.step-progress .step.done {
  color: #4CAF50;
  font-weight: 500;
  background: none;
}
.step-progress .step.done::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4CAF50;
  color: #fff;
  font-size: 10px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* =============================================
   メインコンテナ（2カラムレイアウト）
   ============================================= */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px;
  align-items: start;
}
.checkout-main {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 32px;
}
.checkout-sidebar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 24px;
  position: sticky;
  top: 80px;
}

/* =============================================
   カードスタイル（セクション区切り）
   ============================================= */
.section-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 16px;
}
.section-card h2,
.section-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* =============================================
   フォーム入力（コンバージョン最適化）
   ============================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="input"],
input[type="number"],
textarea {
  width: 100% !important;
  height: 48px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  border: 1.5px solid #d0d0d0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1a1a1a !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #FF6600 !important;
  box-shadow: 0 0 0 3px rgba(255,102,0,0.12) !important;
}
textarea {
  height: auto !important;
  min-height: 80px !important;
  resize: vertical !important;
}
select {
  width: 100% !important;
  height: 48px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  border: 1.5px solid #d0d0d0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1a1a1a !important;
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
}

/* 数量入力は小さく */
input[name^="quantity:"] {
  width: 60px !important;
  height: 40px !important;
  text-align: center !important;
  display: inline-block !important;
}
/* 郵便番号は半幅 */
input[name*="yuubin"] {
  width: 120px !important;
  display: inline-block !important;
}

/* ラベル（PCではテーブルセル表示を維持） */
.midasi {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #555 !important;
  background: #fafafa !important;
  padding: 10px 12px !important;
  border: none !important;
}
.data {
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: #1a1a1a !important;
  background: transparent !important;
  border: none !important;
}

/* 必須バッジ */
.required-badge,
span[style*="color:#F00"],
span[style*="color: #F00"],
font[color="#FF0000"] {
  color: #e53935 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* =============================================
   ボタン（CTA最適化 - 売上直結）
   ============================================= */

/* プライマリCTA */
.consent-btn,
.confirm-order-btn,
.cartsubmitbutton,
input[type="submit"][value*="確定"],
input[type="submit"][value*="進む"],
input[type="submit"][value*="確認"] {
  display: block !important;
  width: 100% !important;
  max-width: 440px !important;
  margin: 24px auto !important;
  padding: 18px 32px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  color: #fff !important;
  background: linear-gradient(135deg, #FF6600 0%, #FF8534 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 14px rgba(255,102,0,0.35) !important;
  text-indent: 0 !important;
  height: auto !important;
  letter-spacing: 0.5px !important;
  -webkit-appearance: none !important;
}
.consent-btn:hover,
.confirm-order-btn:hover,
.cartsubmitbutton:hover {
  background: linear-gradient(135deg, #E55A00 0%, #FF6600 100%) !important;
  box-shadow: 0 6px 20px rgba(255,102,0,0.45) !important;
  transform: translateY(-1px) !important;
}
.consent-btn:active,
.confirm-order-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(255,102,0,0.3) !important;
}
.consent-btn-skip {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
  box-shadow: 0 4px 14px rgba(76,175,80,0.35) !important;
}

/* セカンダリボタン */
input[type="button"],
button:not(.consent-btn):not(.confirm-order-btn),
.back-btn {
  display: inline-block !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  color: #555 !important;
  background: #fff !important;
  border: 1.5px solid #d0d0d0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: auto !important;
  -webkit-appearance: none !important;
}
input[type="button"]:hover,
.back-btn:hover {
  background: #f5f5f5 !important;
  border-color: #999 !important;
}

/* 削除・変更ボタンは小さく */
input[name^="SUBdel_"],
input[value="変更"] {
  width: auto !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  margin: 4px !important;
}
input[name^="SUBdel_"] {
  color: #e53935 !important;
  border-color: #e53935 !important;
  background: #fff5f5 !important;
}

/* =============================================
   決済方法（.pay スタイル）
   ============================================= */
.pay {
  padding: 16px !important;
  border: 1.5px solid #e8e8e8 !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
  background: #fff !important;
  transition: all 0.2s !important;
  cursor: pointer !important;
}
.pay:hover {
  border-color: #FF6600 !important;
  background: #FFF8F2 !important;
}
.pay label {
  font-size: 15px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}
.pay input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  accent-color: #FF6600 !important;
  flex-shrink: 0 !important;
}
.pay2 {
  padding: 12px 16px !important;
  font-size: 13px !important;
  color: #666 !important;
  background: #fafafa !important;
  border-radius: 8px !important;
  margin: 8px 0 !important;
  line-height: 1.6 !important;
}

/* =============================================
   カート商品一覧
   ============================================= */
.linecolor table {
  background: #fff !important;
}
.linecolor table tr {
  border-bottom: 1px solid #f0f0f0 !important;
}
.linecolor table tr:first-child {
  background: #fafafa !important;
  border-bottom: 2px solid #e8e8e8 !important;
}
.linecolor table td {
  padding: 12px 8px !important;
  font-size: 14px !important;
  background: transparent !important;
  border: none !important;
}
.linecolor table td.midasi {
  background: #fafafa !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #888 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 10px 8px !important;
}

/* =============================================
   合計金額（最も目立たせる - 売上直結）
   ============================================= */
.price-total {
  font-size: 28px;
  font-weight: 700;
  color: #e53935;
}
font[color="#FF6600"],
font[color="#ff6600"] {
  color: #FF6600 !important;
  font-weight: 700 !important;
}

/* =============================================
   保証規約・注意事項
   ============================================= */
.hosho-tekiyou,
.hosho-tekiyou2 {
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 20px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 14px !important;
  margin: 12px 0 !important;
}
.hosho-tekiyou .link {
  font-size: 14px !important;
  line-height: 1.8 !important;
}

/* =============================================
   同意セクション
   ============================================= */
.consent-section {
  text-align: center;
  margin: 24px auto;
  max-width: 600px;
  padding: 0 16px;
}
.consent-links {
  margin-bottom: 16px;
  font-size: 14px;
}
.consent-links a {
  margin: 0 12px;
  color: #0066cc;
  text-decoration: underline;
}
.consent-note {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

/* =============================================
   アコーディオン
   ============================================= */
.accordion-header {
  cursor: pointer;
  padding: 14px 20px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.2s;
}
.accordion-header:hover {
  background: #f0f0f0;
}
.accordion-header::after {
  content: "▼";
  font-size: 10px;
  color: #999;
  transition: transform 0.3s;
}
.accordion-header.open::after {
  transform: rotate(180deg);
}
.accordion-body {
  display: none;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  font-size: 13px;
  line-height: 2;
  background: #fff;
  color: #555;
}
.accordion-body.open {
  display: block;
}

/* =============================================
   信頼バッジ（コンバージョン+3〜5%向上）
   ============================================= */
.trust-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid #f0f0f0;
  color: #999;
  font-size: 12px;
}
.trust-badges span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   改善ノート（テスト用）
   ============================================= */
.improvement-note {
  background: #FFFDE7;
  border: 1px solid #FFF176;
  border-left: 4px solid #FF6600;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
}
.improvement-note b {
  color: #E65100;
}
.improvement-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #E53935;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

/* =============================================
   フッター
   ============================================= */
.checkout-footer {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 12px;
}
.nav-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-footer a {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-footer a.back {
  color: #666;
  background: #fff;
  border: 1.5px solid #d0d0d0;
}
.nav-footer a.forward {
  color: #fff;
  background: #FF6600;
  font-weight: 600;
}

/* =============================================
   画像
   ============================================= */
img {
  max-width: 100% !important;
  height: auto !important;
}

/* =============================================
   フォームテーブル（PCでは通常テーブル表示を維持）
   ============================================= */
form table {
  border: none !important;
}
form table td {
  border: none !important;
}

/* Amazon Pay ボタン */
#PayWithAmazonButton {
  width: 100% !important;
  max-width: 320px !important;
  margin: 8px auto !important;
}

/* =============================================
   モバイル対応 (768px以下)
   ============================================= */
@media screen and (max-width: 768px) {
  body {
    background: #f5f5f5 !important;
  }

  /* 2カラム → 1カラム */
  .checkout-container {
    grid-template-columns: 1fr !important;
    padding: 0 12px !important;
    gap: 12px !important;
    margin: 12px auto !important;
  }
  .checkout-main {
    padding: 20px 16px !important;
    border-radius: 10px !important;
  }
  .checkout-sidebar {
    position: static !important;
    padding: 16px !important;
    border-radius: 10px !important;
  }
  .section-card {
    padding: 16px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
  }

  /* ステッププログレス */
  .step-progress {
    padding: 12px 8px !important;
    gap: 0 !important;
    position: sticky !important;
    top: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .step-progress .step {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .step-progress .step::after {
    width: 16px !important;
    margin: 0 4px !important;
  }

  /* テーブル完全ブロック化 */
  table, tbody, tr, td, th {
    display: block !important;
    width: 100% !important;
  }
  tr {
    margin-bottom: 2px !important;
  }
  td[align], th[align] {
    text-align: left !important;
  }

  /* linecolorテーブル */
  .linecolor {
    background: transparent !important;
    border: none !important;
  }
  .linecolor table tr {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 12px 8px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #fff !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  }
  .linecolor table tr:first-child {
    display: none !important; /* ヘッダー行を非表示 */
  }
  .linecolor table td {
    display: inline-block !important;
    width: auto !important;
    padding: 2px 6px !important;
    font-size: 14px !important;
  }
  .linecolor table td:first-child {
    width: 100% !important;
    text-align: center !important;
    padding-bottom: 8px !important;
  }

  /* フォームテーブル */
  form table tr {
    display: block !important;
    margin-bottom: 0 !important;
  }
  form table td {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 !important;
  }

  /* ラベル・データセルのブロック化（モバイルのみ） */
  .midasi {
    display: block !important;
    width: 100% !important;
    background: transparent !important;
    padding: 10px 0 4px 0 !important;
  }
  .data {
    display: block !important;
    width: 100% !important;
    padding: 4px 0 8px 0 !important;
  }

  /* 入力フィールド */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="input"],
  select,
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
  }

  /* ボタン */
  .consent-btn,
  .confirm-order-btn,
  .cartsubmitbutton {
    max-width: 100% !important;
    padding: 16px 24px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
  }

  /* 決済方法 */
  .pay {
    padding: 14px 12px !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
  }
  .pay label {
    font-size: 14px !important;
  }

  /* 保証ボックス */
  .hosho-tekiyou,
  .hosho-tekiyou2 {
    padding: 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  /* ナビフッター */
  .nav-footer {
    padding: 16px 12px !important;
    gap: 8px !important;
  }
  .nav-footer a {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* フォント */
  .normal { font-size: 14px !important; }
  .large { font-size: 18px !important; }
  .mini_font { font-size: 12px !important; }
  .mini_tyui { font-size: 12px !important; padding: 8px !important; }
  .attention { font-size: 13px !important; }

  /* 非表示要素 */
  .headmenu { display: none !important; }
  .spitemtable_img img { max-width: 50px !important; }

  /* align属性リセット */
  [align="center"] { text-align: left !important; }
  [align="right"] { text-align: left !important; }

  /* 確定ボタン赤背景 */
  td[bgcolor] { background: transparent !important; }

  /* テストページナビ */
  .test-nav {
    flex-direction: column !important;
    padding: 12px !important;
    gap: 8px !important;
  }
  .test-nav a {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }

  /* 信頼バッジ */
  .trust-badges {
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    padding: 16px 12px !important;
  }

  /* center要素 */
  center {
    text-align: left !important;
  }

  /* 固定幅クラスのモバイル対応 */
  .spitemtable,
  .error,
  .mem,
  .attention,
  .onegai {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* imgの中央揃え */
  td img {
    display: block !important;
    margin: 4px auto !important;
  }
}

/* =============================================
   小さいスマホ (400px以下)
   ============================================= */
@media screen and (max-width: 400px) {
  .step-progress .step {
    font-size: 10px !important;
  }
  .step-progress .step.done::before {
    width: 16px !important;
    height: 16px !important;
    font-size: 8px !important;
  }
  .consent-btn, .confirm-order-btn {
    font-size: 16px !important;
    padding: 14px 20px !important;
  }
  .pay label {
    font-size: 13px !important;
  }

  /* 離脱防止ポップアップ */
  .exit-popup {
    width: 92% !important;
    max-width: 360px !important;
    padding: 24px 20px !important;
  }
  .exit-title {
    font-size: 18px !important;
  }

  /* ミニサマリー */
  .mini-summary {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }

  /* 購入通知 */
  .purchase-toast {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    max-width: 100% !important;
  }
}

/* =============================================
   🔥 売上向上機能のスタイル
   ============================================= */

/* --- 当日発送カウントダウンタイマー --- */
.shipping-timer {
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  transition: all 0.3s;
}
.shipping-timer-active {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  color: #E65100;
  font-weight: 500;
}
.shipping-timer-next {
  background: #f8fdf8;
  color: #2E7D32;
}
.timer-icon {
  margin-right: 6px;
}
.timer-countdown {
  font-size: 16px;
  color: #D84315;
  letter-spacing: 0.5px;
  animation: timerPulse 1s ease-in-out infinite;
}
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.timer-sub {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

/* --- リアルタイム閲覧者数 --- */
.viewer-count {
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  color: #666;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.viewer-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  margin-right: 6px;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- 送料無料プログレスバー --- */
.free-shipping-bar {
  text-align: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.fs-message {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}
.fs-message.fs-complete {
  color: #2E7D32;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0;
}
.fs-icon {
  margin-right: 4px;
}
.fs-progress-track {
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  max-width: 300px;
  margin: 0 auto;
  overflow: hidden;
}
.fs-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* --- 離脱防止ポップアップ --- */
.exit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.exit-overlay.show {
  opacity: 1;
  visibility: visible;
}
.exit-popup {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  position: relative;
}
.exit-overlay.show .exit-popup {
  transform: translateY(0);
}
.exit-close {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  background: #f0f0f0 !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  color: #999 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
.exit-close:hover {
  background: #e0e0e0 !important;
  color: #333 !important;
}
.exit-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.exit-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.exit-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}
.exit-benefits {
  text-align: left;
  max-width: 280px;
  margin: 0 auto 24px;
}
.exit-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #333;
}
.exit-benefit span {
  color: #4CAF50;
  font-weight: 700;
  flex-shrink: 0;
}
.exit-cta {
  display: block !important;
  width: 100% !important;
  padding: 16px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: linear-gradient(135deg, #FF6600 0%, #FF8534 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(255,102,0,0.35) !important;
  transition: all 0.3s !important;
}
.exit-cta:hover {
  background: linear-gradient(135deg, #E55A00 0%, #FF6600 100%) !important;
  box-shadow: 0 6px 20px rgba(255,102,0,0.45) !important;
  transform: translateY(-1px) !important;
}

/* --- フォーム入力プログレスバー --- */
.form-progress {
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fp-text {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.fp-track {
  flex: 1;
  height: 6px;
  background: #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
}
.fp-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6600, #FF8534);
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
  min-width: 0;
}

/* --- ミニサマリー（スクロール時の固定表示） --- */
.mini-summary {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: bottom 0.3s ease;
  white-space: nowrap;
}
.mini-summary.show {
  bottom: 20px;
}
.ms-total {
  color: #FFB74D;
  font-weight: 700;
}
.ms-items {
  font-size: 12px;
  color: #aaa;
}

/* --- 最近の購入通知（トースト） --- */
.purchase-toast {
  position: fixed;
  bottom: -100px;
  left: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 14px 18px;
  z-index: 999;
  transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  border-left: 4px solid #4CAF50;
}
.purchase-toast.show {
  bottom: 20px;
}
.pt-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pt-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.pt-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}
.pt-text strong {
  color: #1a1a1a;
}
.pt-time {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* =============================================
   ベストプラクティス追加 (2026/3/9)
   Baymard / NNGroup / Stripe 準拠
   ============================================= */

/* --- 1. CTA直近の信頼性指標 (Baymard: CTA付近の信頼指標で+3-5% CVR) --- */
.cta-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: #888;
}
.cta-trust span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- 2. モバイル スティッキーCTA (Baymard: 常時可視CTAで離脱-8%) --- */
@media screen and (max-width: 768px) {
  .sticky-cta-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sticky-cta-wrap .btn-primary,
  .sticky-cta-wrap .btn-primary-lg {
    width: 100%;
    margin: 0;
  }
  .sticky-cta-wrap .cta-trust {
    margin-top: 4px;
  }
  /* スティッキーCTAの高さ分のパディング */
  body.has-sticky-cta {
    padding-bottom: 100px;
  }
}

/* --- 3. 進捗バー クリック可能 (NNGroup: 戻れるステップで安心感) --- */
.step-progress .step.done {
  cursor: pointer;
  transition: opacity 0.2s;
}
.step-progress .step.done:hover {
  opacity: 0.7;
}
.step-progress a.step-link {
  text-decoration: none;
  color: inherit;
}

/* --- 4. ARIA / アクセシビリティ補助 --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
