
    /* =========================================
       キャンペーンフロー 全体設定
       ========================================= */
    #campaign-flow-container .campaign-flow {
      max-width: 480px;
      margin: 0 auto;
      padding: 16px;
      /* background-color: #f8f9fa; */
      font-family: sans-serif;
    }

    /* =========================================
       グリッドレイアウト設定
       ========================================= */
    #campaign-flow-container .steps-grid {
      display: grid;
      --columns: 1; 
      grid-template-columns: repeat(var(--columns), 1fr);
      gap: 32px 16px; /* 縦gap 32px, 横gap 16px */
    }

    /* PC・タブレット時のレスポンシブ設定 (画面幅768px以上) */
    @media (min-width: 768px) {
            #campaign-flow-container .flow-title {
      text-align: center;
      color: #ff6600;
      font-size: 35px;
      font-weight: bold;
      margin-bottom: 24px;
    }
        
      #campaign-flow-container .campaign-flow {
        max-width: 1140px;
        padding: 35px 0;
      }
      #campaign-flow-container .steps-grid {
        --columns: 3;
        gap: 45px 24px; /* 横gap 24px */
      }
    }

    @media (max-width: 768px) {
    #campaign-flow-container .flow-title {
      text-align: center;
      color: #ff6600;
      font-size: 25px;
      font-weight: bold;
      margin-bottom: 24px;
    }
}

    /* =========================================
       ステップコンテナ（各枠）
       ========================================= */
    #campaign-flow-container .step-box {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      position: relative; 
      display: flex;
      flex-direction: column;
    }
    
    #campaign-flow-container .step-box.referrer {border: 2px solid #ff6600;}
    #campaign-flow-container .step-box.friend   {border: 2px solid #06c755;}
    #campaign-flow-container .step-box.complete { border: 2px solid #ffb700; background: #fffdf5; }

    /* =========================================
       矢印アイコン (CSSで自動付与)
       ========================================= */
    /* スマホ用：全ステップ基本は下向き矢印(▼) */
    #campaign-flow-container .step-box:not(:last-child)::after {
      content: '▼';
      position: absolute;
      bottom: -26px;
      left: 50%;
      transform: translateX(-50%);
      color: #ccc;
      font-size: 20px;
      line-height: 1;
    }

    /* ▼▼ 追加：STEP 6 から STEP 7 への下向き矢印 ▼▼ */
    #campaign-flow-container .steps-grid .step-box:last-child::after {
      content: '';
      position: absolute;
      bottom: -26px;
      left: 50%;
      transform: translateX(-50%);
      color: #ccc;
      font-size: 20px;
      line-height: 1;
    }

    @media (min-width: 768px) {
      /* PC用：基本は右向き矢印(▶)に変化 */
      #campaign-flow-container .step-box:not(:last-child)::after {
        content: '▶';
        bottom: auto;
        top: 50%;
        left: auto;
        right: -12px; /* 横gap(24px)の中央に配置 */
        transform: translate(50%, -50%);
      }

      /* ▼▼ PC用：STEP 4(右端)からSTEP 5(左端)への折り返し矢印 ▼▼ */
      /* STEP 4から左下へ向かう線を描画 */
      #campaign-flow-container .step-box:nth-child(3):not(:last-child)::after {
        content: '';
        top: 102%;
        right: 50%; /* STEP4の中央からスタート */
        width: calc(193% + 75px); /* 左端(STEP5)まで伸ばす (3列分+gap3つ分) */
        height: 17px; /* 縦gap(32px)の半分 */
        border-right: 2px solid #ccc;
        border-bottom: 2px solid #ccc;
        /* border-bottom-right-radius: 8px; */
        transform: none;
      }
      /* 線の左端(STEP5の上)に下向き矢印(▼)を配置 */
      #campaign-flow-container .step-box:nth-child(4):not(:last-child)::before {
        content: '▼';
        position: absolute;
        top: calc(-8% + 18px);
        right: calc(27% + 71px - 10px); /* STEP5の中央位置の計算式 */
        color: #ccc;
        font-size: 20px;
        line-height: 1;
      }

      /* ▼▼ 追加：PC用 STEP 6 から STEP 7 への下向き矢印の位置補正 ▼▼ */
      #campaign-flow-container .steps-grid .step-box:last-child::after {
        content: '';
        top: auto;
        bottom: -26px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
      }
    }

    /* =========================================
       ヘッダー・バッジ・テキスト周り
       ========================================= */
    #campaign-flow-container .step-header {display: flex;align-items: center;margin: 15px auto;justify-content: center;}
    #campaign-flow-container .step-header.center { justify-content: center; }

    #campaign-flow-container .step-badge {color: #fff;font-weight: bold;font-size: 15px;padding: 4px 8px;border-radius: 4px;margin-right: 8px;}
    #campaign-flow-container .step-badge.referrer { background: #ff6600; }
    #campaign-flow-container .step-badge.friend   { background: #06c755; }

    #campaign-flow-container .user-badge {font-size: 15px;padding: 2px 6px;border-radius: 4px;}
    #campaign-flow-container .user-badge.referrer { background: #fff0e6; color: #ff6600; }
    #campaign-flow-container .user-badge.friend   { background: #e6f9ed; color: #06c755; }

    #campaign-flow-container .complete-badge { background: #ffb700; color: #fff; font-weight: bold; font-size: 12px; padding: 4px 12px; border-radius: 20px; }

    #campaign-flow-container .step-title { font-size: 16px; font-weight: bold; margin: 0 0 8px 0; color: #333; }
    #campaign-flow-container .step-title.center { text-align: center; }

    #campaign-flow-container .step-desc { font-size: 13px; color: #666; line-height: 1.5; margin: 0 0 12px 0; flex-grow: 1; }
    #campaign-flow-container .step-desc.no-margin { margin-bottom: 0; }
    #campaign-flow-container .step-desc.center { text-align: center; }

    /* =========================================
       画像コンテナ・仮枠
       ========================================= */
    #campaign-flow-container .img-container { background: #f0f0f0; padding: 8px; border-radius: 8px; text-align: center; }
    #campaign-flow-container .img-container.flex {display: flex;justify-content: center;gap: 8px;}

    #campaign-flow-container .step-img {
      max-width: 100%;
      width: 45%;
      height: auto;
      border-radius: 6px;
      border: 1px solid #ddd;
      box-sizing: border-box;
      /* ▼ 拡大可能であることを示すカーソルとホバーアニメーションを追加 ▼ */
      cursor: pointer;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }
    #campaign-flow-container .step-img:hover {
      opacity: 0.8;
      transform: scale(1.02);
    }

    #campaign-flow-container .img-140 { max-width: 140px; }
    #campaign-flow-container .img-120 { max-width: 120px; }
    #campaign-flow-container .img-110 {/* max-width: 110px; */}

    /* イラスト用仮枠スタイル */
    #campaign-flow-container .dummy-img-box {
      margin-top: 12px;
      border: 2px dashed #ffb700;
      background: #fff;
      padding: 32px 8px;
      border-radius: 8px;
    }
    #campaign-flow-container .dummy-text {
      color: #ffb700;
      font-size: 14px;
      font-weight: bold;
      line-height: 1.5;
    }
    #campaign-flow-container .dummy-sub {
      font-size: 11px;
      color: #cda335;
      font-weight: normal;
    }

    /* =========================================
       画像拡大（ライトボックス）用スタイル
       ========================================= */
    #lightbox-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.8);
      z-index: 99999;
      display: flex;
      justify-content: center;
      align-items: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      cursor: pointer;
    }
    #lightbox-overlay.show {
      opacity: 1;
      visibility: visible;
    }
    #lightbox-img {
      max-width: 90%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.5);
      transition: transform 0.3s ease;
      transform: scale(0.9);
    }
    #lightbox-overlay.show #lightbox-img {
      transform: scale(1);
    }




 /* QRとボタン追加案内
---------------------------------------------------------------*/
 

  /* 外枠のラッパー */
  #campaign-flow-container .line-invite-wrapper {
    width: 100%;
    /* padding: 60px 20px; */
    box-sizing: border-box;
    /* background-color: #f4f5f7; */
  }

  /* 幅1140pxに収めるコンテナ */
  #campaign-flow-container .line-invite-container {
    max-width: 1140px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    /* padding: 30px 20px; */
    text-align: center;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
    box-sizing: border-box;
  }

  /* -------------------------
     PC用のスタイル（吹き出し[QR+テキスト] + イラスト）
  ------------------------- */
  @media screen and (min-width: 768px) {

#campaign-flow-container .line-invite-container {
       padding: 40px 20px; 
    }  

#campaign-flow-container .line-content-pc {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  /* 中央：吹き出し (Flex化してQRとテキストを横並びに) */
  #campaign-flow-container .line-speech-bubble {
    position: relative;
    background-color: #e1f7e7;
    border: 3px solid #06C755;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px; /* QRとテキストの間の余白 */
  }

  /* QRコード（吹き出し内） */
  #campaign-flow-container .line-qr-box {
    flex-shrink: 0;
  }
  #campaign-flow-container .line-qr-box img {
    width: 140px; /* 吹き出し内に収まるよう少しサイズ調整 */
    height: auto;
    border: 2px solid #e5e5e5;
    padding: 8px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  #campaign-flow-container .line-speech-text {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #333333;
    line-height: 1.5;
    text-align: left; /* QRの横なので左揃えに */
  }
  
  #campaign-flow-container .line-speech-text span {
    color: #06C755;
  }

  /* 吹き出しの右向き三角（イラスト側） */
  #campaign-flow-container .line-speech-bubble::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #06C755;
  }

  #campaign-flow-container .line-speech-bubble::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 13px solid #e1f7e7;
  }

  /* 右側：イラスト画像 */
  #campaign-flow-container .line-illust-box {
    flex-shrink: 0;
  }
  #campaign-flow-container .line-illust-box img {
    width: 150px;
    height: auto;
  }

  /* SP用コンテンツはPCでは非表示 */
  #campaign-flow-container .line-content-sp {
    display: none;
  }
  }

  /* -------------------------
     スマホ(SP)用のスタイル (768px以下)
  ------------------------- */
  @media screen and (max-width: 768px) {
    #campaign-flow-container .line-content-pc {
      display: none;
    }

    /* SP用コンテナのフレックスボックス設定（縦並び） */
    #campaign-flow-container .line-content-sp {
      display: flex;
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center;
    }

    #campaign-flow-container .line-invite-container {
      /* padding: 40px 20px; */
    }

    /* SP用イラスト */
    #campaign-flow-container .line-illust-box-sp {
      margin-bottom: 12px;
    }
    #campaign-flow-container .line-illust-box-sp img {
      width: 120px; /* スマホ用に少し小さめ */
      height: auto;
      margin: 20px 0;
    }

    /* SP用：上向き吹き出し */
    #campaign-flow-container .line-speech-bubble-sp {
      position: relative;
      background-color: #e1f7e7;
      border: 3px solid #06C755;
      border-radius: 12px;
      padding: 15px 25px;
      margin-bottom: 30px; /* ボタンとの余白 */
      box-shadow: 0 4px 10px rgba(6, 199, 85, 0.15);
    }

    #campaign-flow-container .line-sp-text {
      font-size: 18px;
      font-weight: bold;
      color: #333333;
      margin: 0;
    }

    /* 吹き出しの上向き三角（イラスト側） */
    #campaign-flow-container .line-speech-bubble-sp::before {
      content: "";
      position: absolute;
      top: -15px; /* 上へはみ出す */
      left: 50%;
      transform: translateX(-50%);
      border-left: 14px solid transparent;
      border-right: 14px solid transparent;
      border-bottom: 14px solid #06C755;
    }

    #campaign-flow-container .line-speech-bubble-sp::after {
      content: "";
      position: absolute;
      top: -11px; /* 線の太さ分ずらす */
      left: 50%;
      transform: translateX(-50%);
      border-left: 11px solid transparent;
      border-right: 11px solid transparent;
      border-bottom: 11px solid #e1f7e7;
    }

    /* LINEボタン */
    #campaign-flow-container .line-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: #06C755;
      color: #ffffff;
      text-decoration: none;
      font-weight: bold;
      font-size: 18px;
      padding: 18px 40px;
      border-radius: 40px;
      box-shadow: 0 6px 12px rgba(6, 199, 85, 0.3);
      transition: background-color 0.3s ease, transform 0.2s ease;
      width: 100%;
      max-width: 300px;
      box-sizing: border-box;
    }

    #campaign-flow-container .line-btn:active {
      transform: translateY(2px);
      box-shadow: 0 2px 6px rgba(6, 199, 85, 0.3);
    }
  }


    