/* ==========================================================
   CTAボタン (acf/cta-button)
   サイト全体のトーン（#fc2348 アクセント / 角丸10-12px /
   カード型 / 浮き上がりホバー）に合わせた意匠。
   ========================================================== */

.cv-cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 1.8em 0 2.2em;
}

/* 編集画面のみ表示するプレースホルダ */
.cv-cta-button__placeholder {
    margin: 1em 0;
    padding: 1em;
    text-align: center;
    color: #999;
    background: #f8f8f8;
    border: 1px dashed #ddd;
    border-radius: 8px;
    font-size: .9em;
}

/* ----- マイクロコピー（ボタンを指す吹き出し） ----- */
.cv-cta-button__copy {
    position: relative;
    display: inline-block;
    padding: 6px 18px;
    color: #fc2348;
    background: #fff;
    border: 2px solid #fc2348;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.5;
    animation: cv-cta-bubble-float 3.2s ease-in-out infinite;
    will-change: transform;
}

/* 上下にゆっくりふわふわ */
@keyframes cv-cta-bubble-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* 動きを嫌うユーザーには静止表示（macOS/iOS/Windows のアクセシビリティ設定を尊重） */
@media (prefers-reduced-motion: reduce) {
    .cv-cta-button__copy {
        animation: none;
    }
}

/* 吹き出しのしっぽ（外側=赤）— 下向き */
.cv-cta-button__copy::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid #fc2348;
}

/* 吹き出しのしっぽ（内側=白で外側を抜く）— アウトライン三角を作る */
.cv-cta-button__copy::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #fff;
}

/* ----- ボタン本体（カード型 + 赤グロー） ----- */
.cv-cta-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    max-width: 520px;
    padding: 16px 22px;
    background: #fc2348;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(252, 35, 72, .28);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    position: relative;
}

.cv-cta-button__link:hover,
.cv-cta-button__link:focus {
    background: #ff3a5c;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(252, 35, 72, .38);
}

/* ----- ロゴサムネ（配信状況ブロックと同じ薄灰枠） ----- */
.cv-cta-button__logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.cv-cta-button__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-sizing: border-box;
    display: block;
}

/* ----- ラベル（メイン文言） ----- */
.cv-cta-button__label {
    flex: 1;
    text-align: center;
    white-space: normal;
}

/* ----- 右側の山括弧（矢印代わり） ----- */
.cv-cta-button__arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease;
}

.cv-cta-button__link:hover .cv-cta-button__arrow,
.cv-cta-button__link:focus .cv-cta-button__arrow {
    background: rgba(255, 255, 255, .3);
    transform: translateX(3px);
}

/* ----- レスポンシブ ----- */
@media (min-width: 600px) {
    .cv-cta-button__link {
        font-size: 19px;
        padding: 18px 28px;
        gap: 16px;
    }
    .cv-cta-button__logo-wrap {
        width: 54px;
        height: 54px;
    }
    .cv-cta-button__copy {
        font-size: 14px;
        padding: 7px 22px;
    }
    .cv-cta-button__arrow {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .cv-cta-button__link {
        font-size: 17px;
        padding: 14px 16px;
        gap: 10px;
    }
    .cv-cta-button__logo-wrap {
        width: 42px;
        height: 42px;
    }
    .cv-cta-button__arrow {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}
