/* --- [03. ページヘッダー] --- */
.btc-shopping-gmopg-card-pc__page-header {
    padding: 40px 25px 40px;
    text-align: center;
    position: relative;
}
.btc-shopping-gmopg-card-pc__page-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 550;
    font-size: 1.375rem;
    letter-spacing: 0.1rem;
    margin: 0;
    color: #1a2a40;
    line-height: 1.6;
    margin-bottom: 40px;
}
.btc-shopping-gmopg-card-pc__page-title span {
    display: block;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3em;
    margin-top: 10px;
    opacity: 0.6;
}

/* --- [04. コンテンツエリア基礎] --- */
.btc-shopping-gmopg-card-pc__main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 25px 100px;
}

/* --- [05. 白い枠コンテナ] --- */
.btc-shopping-gmopg-card-pc__white-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 25px;
    padding: 30px 25px;
}

/* ============================================================
   [05b. 決済情報エリア（get_token_payment_system_form_tag_card_info_area）]
   ここから下は、共通コンポーネント（.c-payment-module / .c-radio-list-group /
   .c-table 等）をこのページ専用に上書きするスタイル。
   これらのクラス名はテンプレート機能が出力するため変更できず、
   他ページ（LP・マイページ等）でも共有されているので、
   すべて .btc-shopping-gmopg-card-pc__white-container 配下にスコープする。
   ============================================================ */

/* 「登録済みのカードを使う」見出し（テンプレート自動挿入コードの直前に追加） */
.btc-shopping-gmopg-card-pc__section-heading {
    margin: 0 0 16px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a2a40;
}
/* 見出し右の注意書き（初期状態は非表示。JS側のMutationObserverで表示切り替え） */
.btc-shopping-gmopg-card-pc__quick-cvv-notice {
    display: none;
    font-size: 15px;
    font-weight: 500;
    color: #d6506d;
}

/* 登録済みカード一覧 */
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__registerd-card-list {
    margin-bottom: 30px;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group {
    gap: 15px;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item {
    width: calc(50% - 8px);
    background-color: #f9f9f7;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item label {
    padding: 18px 18px 18px 50px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    background-color: transparent;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item label div:first-child {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #1a2a40;
    margin-bottom: 4px;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item label::before {
    top: 21px;
    left: 18px;
    border-color: #a0a1a1;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item label::after {
    top: 52px;
    left: 17px;
    background-color: #d6506d;
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item:has(input[type="radio"]:checked) {
    background-color: #ffffff;
    border-color: #d6506d;
    box-shadow: 0 2px 10px rgba(214, 80, 109, 0.15);
}
.btc-shopping-gmopg-card-pc__white-container .c-radio-list-group__item:has(input[type="radio"]:checked) label::before {
    border-color: #d6506d;
}

/* 「新しいカードを使う」切り替え */
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-type {
    padding-top: 20px;
    border-top: 2px solid #cccccc;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-type .c-radio {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a2a40;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-type .c-radio label {
    padding-left: 28px;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-type .c-radio label::before {
    width: 20px;
    height: 20px;
    border-color: #a0a1a1;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-type .c-radio label::after {
    width: 12px;
    height: 12px;
    left: 4px;
    background-color: #d6506d;
    top: calc(50% - 5px);
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-type .c-radio input[type="radio"]:checked + label::before {
    border-color: #d6506d;
}

/* 新規カード入力フォーム：装飾用の「浮き上がるカード」トリック（margin:120px / margin-top:-81px等）を無効化し、
   ページのトーンに合わせたシンプルなカードとして再構築する。
   セキュリティコード等の入力項目が無い購入パターンでは中身が空になるため、
   常時パディング・背景を付けず、実際に項目（tr）がある時だけカード風にする。
   （空の灰色ボックスが表示されてしまう不具合の対策） */
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form:has(.js-toggle-payment-method-for-gmopg__type-new-item-area:not([style*="display: none"])) {
    margin: 20px 0 0;
    padding: 25px;
    background-color: #f5f5f0;
    border-radius: 12px;
}

/* 登録済みカードのセキュリティコード欄（.type-quick-item-area）：
   .c-payment-module__card-form の外側にあるため上のルールの対象外。
   新しいカードを使う側とデザインを揃えるため、同じカード風スタイルを付与する。
   非表示の時・中身が空（セキュリティコード不要な購入パターン）の時は
   何も付与しない。 */
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area:not([style*="display: none"]):has(table tr) {
    margin: 20px 0 0;
    padding: 25px;
    background-color: #f5f5f0;
    border-radius: 12px;
}
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table {
    margin-top: 0;
    padding: 0;
    background-color: transparent;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table {
    margin-top: 0;
    padding: 0;
    background-color: transparent;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .gmopg_securitycode_area .c-table {
    margin-top: 20px;
}

/* テーブルを、ラベル＋入力欄が縦に並ぶカード風フォームに変換
   （「新しいカードを使う」側の.c-payment-module__card-formと、
   「登録済みのカードを使う」側の.type-quick-item-areaの両方に適用） */
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table table,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table table {
    display: block;
    border: none;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table tbody,
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table tr,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table tbody,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table tr {
    display: block;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table tr + tr,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table tr + tr {
    margin-top: 20px;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table th,
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table td,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table th,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table td {
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table th,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table th {
    margin-bottom: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2d2d2d;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-table th label,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-table th label {
    display: inline-block;
}

/* 入力欄（テキスト・有効期限・セキュアテキスト共通） */
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-textbox,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-textbox {
    height: 54px;
    padding: 0 15px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #2d2d2d;
    background-color: #ffffff;
    border: 1px solid #a0a1a1;
    border-radius: 4px;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-secure-textbox,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-secure-textbox {
    width: 100%;
    max-width: 320px;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-secure-textbox .c-textbox,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-secure-textbox .c-textbox {
    width: 100%;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-secure-textbox::after,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-secure-textbox::after {
    top: 22px;
    right: 15px;
    width: 12px;
    height: 15px;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-date-form {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 54px;
    padding: 0 15px;
    background-color: #ffffff;
    border: 1px solid #a0a1a1;
    border-radius: 4px;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-date-form__input {
    width: 40px;
    height: auto;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-align: center;
    color: #2d2d2d;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-textbox[name$="card_name"] {
    width: 100%;
    max-width: 320px;
}

/* 注記・必須バッジ（新規カード入力欄・登録済カードのセキュリティコード欄の両方をカバー） */
.btc-shopping-gmopg-card-pc__white-container .c-form-attention {
    margin-top: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #999;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__card-form .c-form-label-required,
.btc-shopping-gmopg-card-pc__white-container .js-toggle-payment-method-for-gmopg__type-quick-item-area .c-form-label-required {
    margin-left: 8px;
    border-radius: 3px;
}

/* セキュリティコード記載位置の案内（.c-payment-module__cvv）：
   親要素にmargin-left:autoで右寄せされているのを解除 */
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__cvv {
    margin-left: unset;
}
.btc-shopping-gmopg-card-pc__white-container .c-payment-module__cvv .cvv-attention {
    font-size: 12px;
}

/* セキュリティコード未入力時の送信前チェック（gmopg_card.tpl側のJSと対）
   JS側でcvv.focus()しているため、ブラウザ既定の黒いフォーカスoutlineが
   赤枠に重なって黒っぽく見えてしまう。outlineを明示的に赤系に置き換える。 */
.btc-shopping-gmopg-card-pc__white-container .js-cvv-shake-error {
    border-color: #cc3333 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(204, 51, 51, 0.25) !important;
    animation: btc-shopping-gmopg-card-pc__shake 0.4s;
}
@keyframes btc-shopping-gmopg-card-pc__shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* --- [06. フォーム入力要素] --- */
.btc-shopping-gmopg-card-pc__input-group {
    margin-bottom: 25px;
}
.btc-shopping-gmopg-card-pc__input-group:last-child {
    margin-bottom: 0;
}
.btc-shopping-gmopg-card-pc__input-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2d2d2d;
}
.btc-shopping-gmopg-card-pc__label-required {
    color: #cc3333;
    font-size: 12px;
    margin-left: 5px;
    font-weight: 500;
}
.btc-shopping-gmopg-card-pc__input-sub-text {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}
.btc-shopping-gmopg-card-pc__form-input {
    width: 100%;
    height: 54px;
    background-color: #ffffff;
    border: 1px solid #a0a1a1;
    box-sizing: border-box;
    padding: 0 15px;
    font-size: 16px;
    color: #2d2d2d;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

/* 有効期限・セキュリティコードの横並び調整 */
.btc-shopping-gmopg-card-pc__flex-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btc-shopping-gmopg-card-pc__cvv-images {
    display: flex;
    gap: 5px;
    margin-left: 5px;
}
.btc-shopping-gmopg-card-pc__cvv-images img {
    height: 30px;
    width: auto;
}

/* 注文確定メッセージ */
.btc-shopping-gmopg-card-pc__confirm-msg {
    text-align: left;
    font-size: 15px;
    line-height: 1.7;
    margin: 30px 0 10px;
    font-weight: 500;
}
.btc-shopping-gmopg-card-pc__wait-note {
    display: block;
    text-align: left;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
}

/* --- [07. ボタン共通設定] --- */
.btc-shopping-gmopg-card-pc__btn-container {
    padding: 0 35px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btc-shopping-gmopg-card-pc__form-btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    box-sizing: border-box;
    border-radius: 30px;
}
.btc-shopping-gmopg-card-pc__form-btn:hover {
    opacity: 0.8;
}

.btc-shopping-gmopg-card-pc__btn-primary {
    background-color: #1a2a40;
    color: #ffffff;
}
.btc-shopping-gmopg-card-pc__btn-outline {
    background-color: #ffffff;
    color: #1a2a40;
    border: 1px solid #1a2a40;
}


/* --- [ステップインジケーター 案A：丸バッジ＋コネクターライン] --- */
.btc-shopping-gmopg-card-pc__step-wrapper {
    max-width: 800px;
    margin: 0 auto 10px;
    padding: 0 25px;
}

.btc-shopping-gmopg-card-pc__order-step {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    counter-reset: step-counter;
}

.btc-shopping-gmopg-card-pc__order-step__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    counter-increment: step-counter;
}

/* バッジ間のコネクターライン */
.btc-shopping-gmopg-card-pc__order-step__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

/* 丸バッジ */
.btc-shopping-gmopg-card-pc__order-step__left {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #d5d5d5;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.btc-shopping-gmopg-card-pc__order-step__left span {
    display: none;
}

.btc-shopping-gmopg-card-pc__order-step__left::before {
    content: counter(step-counter);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    line-height: 1;
}

.btc-shopping-gmopg-card-pc__order-step__left::after {
    content: 'STEP';
    font-family: 'Inter', sans-serif;
    font-size: 7px;
    color: #ddd;
    letter-spacing: 0.08em;
    margin-top: 1px;
    line-height: 1;
}

/* ステップラベル */
.btc-shopping-gmopg-card-pc__order-step__right {
    margin-top: 10px;
    text-align: center;
    font-size: 10px;
    color: #bbb;
    line-height: 1.6;
    padding: 0 4px;
}

.btc-shopping-gmopg-card-pc__order-step__right span {
    display: block;
}

/* 現在ステップ */
.btc-shopping-gmopg-card-pc__order-step__item--current .btc-shopping-gmopg-card-pc__order-step__left {
    background: #1a2a40;
    border-color: #1a2a40;
    box-shadow: 0 3px 10px rgba(26, 42, 64, 0.25);
}

.btc-shopping-gmopg-card-pc__order-step__item--current .btc-shopping-gmopg-card-pc__order-step__left::before {
    color: #fff;
}

.btc-shopping-gmopg-card-pc__order-step__item--current .btc-shopping-gmopg-card-pc__order-step__left::after {
    color: rgba(189, 161, 107, 0.85);
}

.btc-shopping-gmopg-card-pc__order-step__item--current .btc-shopping-gmopg-card-pc__order-step__right span {
    color: #1a2a40;
    font-weight: 700;
    font-size: 11px;
}



/* =============================================
   PC レスポンシブ (768px)
   ============================================= */
@media (min-width: 768px) {
    .btc-shopping-gmopg-card-pc__page-header {
        padding: 120px 40px 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .btc-shopping-gmopg-card-pc__page-title { font-size: 28px; }
    .btc-shopping-gmopg-card-pc__page-title span { font-size: 14px; }

    .btc-shopping-gmopg-card-pc__btn-container {
        padding: 0 40px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 60px;
        flex-direction: column;
    }
    .btc-shopping-gmopg-card-pc__confirm-msg,
    .btc-shopping-gmopg-card-pc__wait-note {
        text-align: center;
    }
    .btc-shopping-gmopg-card-pc__confirm-msg {
        font-size: 16px;
    }
    .btc-shopping-gmopg-card-pc__wait-note {
        font-size: 14px;
    }
}

/* =============================================
   PC レスポンシブ (1024px)
   ============================================= */
@media (min-width: 1024px) {
    .btc-shopping-gmopg-card-pc__main-content { max-width: 900px; }
    .btc-shopping-gmopg-card-pc__page-header {
        padding: 128px 40px 40px;
    }
    .btc-shopping-gmopg-card-pc__btn-container {
        padding: 0 60px;
    }
    .btc-shopping-gmopg-card-pc__step-wrapper {
        max-width: 900px;
    }
}
