/* =========================================================
 * CTA バナー / ポップアップ（記事・地域・事務所ページ共通）
 * 基調カラー：青／ホバー時に半透明（透過）
 * ========================================================= */

/* --- CTAバナー --- */
.notary-cta-banner {
    margin: 28px 0;
    text-align: center;
}

.notary-cta-banner__lead {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 600;
    color: #333;
}

.notary-cta-banner__body {
    text-align: center;
}

.notary-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 280px;
    padding: 14px 32px;
    background: var(--notary-cta-bg, #1a6fe0);
    color: var(--notary-cta-fg, #ffffff);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(26, 111, 224, 0.3);
    transition: opacity 0.25s ease;
}

/* ホバー時：半透明に光る（透過するイメージ） */
.notary-cta-banner a:hover,
.notary-cta-banner__btn:hover {
    opacity: 0.6;
}

/* 記事本文内のリンク色ルール（.article-content a { color:#3B82F6 !important }）に
 * 勝てるよう、高い詳細度でCTAボタンの文字色を維持する。 */
.column-article .article-content .notary-cta-banner__btn,
.column-article .article-lead-text .notary-cta-banner__btn {
    color: var(--notary-cta-fg, #ffffff) !important;
    font-weight: 700 !important;
}

/* ポップアップ発火用センチネル（レイアウトに影響しない） */
.notary-cta-popup-sentinel {
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* --- ポップアップ --- */
.notary-cta-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.notary-cta-popup-overlay[hidden] {
    display: none;
}

.notary-cta-popup {
    position: relative;
    box-sizing: border-box;
    /* PC：画面幅30% × 高さ30%程度 */
    width: 30vw;
    min-width: 300px;
    max-width: 92vw;
    height: 30vh;
    min-height: 220px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow: auto;
}

.notary-cta-popup__close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}

.notary-cta-popup__close:hover {
    color: #333;
}

.notary-cta-popup__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.notary-cta-popup__lead {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    color: #222;
}

.notary-cta-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 14px 32px;
    background: #1a6fe0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: opacity 0.25s ease;
}

.notary-cta-popup a:hover,
.notary-cta-popup__btn:hover {
    opacity: 0.6;
}

/* --- スマホ --- */
@media (max-width: 768px) {
    .notary-cta-popup {
        width: 90vw;
        height: auto;
        min-height: 0;
    }

    .notary-cta-banner__btn {
        display: flex;
        width: 100%;
        min-width: 0;
        padding: 15px 20px;
        font-size: 16px;
    }
}
