/* Footer CTA bar (Google UX 基準準拠) */
.kf-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: none;
    background: #45546c;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
    /* iOS Safe Area 対応 */
    padding: 0.6em 3em calc(0.6em + env(safe-area-inset-bottom)) 0.5em;
}

.kf-cta--visible {
    display: block;
}

.kf-cta__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.4;
    padding: 0.5em 0.75em;
    min-height: 48px;
    border-radius: 6px;
}

.kf-cta__link:hover,
.kf-cta__link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.kf-cta__link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* バッジ: 元のオレンジ #f99a00 のまま、文字色を黒にしてコントラスト 9.5:1 確保 */
.kf-cta__badge {
    display: inline-block;
    background: #f99a00;
    color: #1a1a1a;
    padding: 0.2em 0.6em;
    border-radius: 0.4em;
    font-size: 0.85em;
    font-weight: 700;
    white-space: nowrap;
}

.kf-cta__close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.kf-cta__close:hover,
.kf-cta__close:focus {
    background: rgba(255, 255, 255, 0.32);
}

.kf-cta__close:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .kf-cta {
        padding-right: 2.75em;
    }
    .kf-cta__link {
        font-size: 0.92rem;
        padding: 0.4em 0.5em;
    }
    .kf-cta__badge {
        font-size: 0.78em;
    }
    .kf-cta__close {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}
