﻿.preferred-source-cta {
    margin: 64px auto 40px;
    padding: 0 20px;
}

.preferred-source-cta__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px;
    text-align: center;
    background: #f5f8fc;
    border: 1px solid #dce6f2;
    border-radius: 16px;
}

.preferred-source-cta h2 {
    margin: 0 0 12px;
    color: #17365d;
    font-size: 24px;
    line-height: 1.5;
}

.preferred-source-cta p {
    /*max-width: 680px;*/
    margin: 0 auto;
    color: #333;
    font-size: 16px;
    line-height: 1.9;
}

/* 1. ボタンを包む親要素 */
.preferred-source-cta__button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    margin-top:20px;
}

/* Googleボタンの親要素（幅を無効化して中央寄せ） */
div[google-add-preferred-source-btn] {
    width: auto !important;
    max-width: fit-content !important; /* ボタンのコンテンツサイズに合わせる */
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
}

    /* 内部のiframeの幅を固定/適正化して中央配置 */
    div[google-add-preferred-source-btn] iframe {
        position: relative !important; /* 絶対配置(absolute)による画面埋め尽くしを解除 */
        width: 280px !important; /* ボタンの適切な横幅を指定（240px〜300px程度） */
        margin: 0 auto !important;
        height: 60px !important;
    }

@media (max-width: 767px) {
    .preferred-source-cta {
        margin-top: 40px;
        padding: 0 16px;
    }

    .preferred-source-cta__inner {
        padding: 24px 18px;
    }

    .preferred-source-cta h2 {
        font-size: 20px;
    }

    .preferred-source-cta p {
        font-size: 15px;
        text-align: left;
    }
}
