/**
 * サイト共通 — 優待くらしアプリ誘導バナー
 * template-parts/company-app-cta.php と共用（cp-app-cta クラス）
 */

.yk-app-banner-section {
    padding: 32px 0 40px;
}

.yk-app-banner-section .container {
    width: 100%;
    max-width: var(--yk-app-banner-max-width, var(--max-width));
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 企業詳細 — 本文と同じ 960px（body_class: yutai-company-detail） */
body.yutai-company-detail .yk-app-banner-section {
    --yk-app-banner-max-width: 960px;
}

.yk-app-banner-section .cp-app-cta {
    margin-top: 0;
    --cp-radius: 12px;
    --cp-text: #1c1c1e;
    --cp-text-sub: #636366;
    --cp-inset-y: 32px;
    --cp-inset-x-right: 28px;
    --cp-inset-x-left: 28px;
}

.cp-app-cta {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: calc(var(--cp-radius, 12px) + 4px);
    margin-top: 28px;
    border: 1px solid rgba(52, 199, 89, 0.22);
    box-shadow: 0 8px 32px rgba(36, 138, 61, 0.1), 0 2px 8px rgba(0, 122, 255, 0.06);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f4 42%, #eef6ff 100%);
    color: inherit;
}

.cp-app-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 92% 12%, rgba(0, 122, 255, 0.12) 0%, transparent 42%),
        radial-gradient(circle at 8% 88%, rgba(52, 199, 89, 0.16) 0%, transparent 45%);
}

.cp-app-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 28px;
    padding: 32px var(--cp-inset-x-right, 28px) 32px var(--cp-inset-x-left, 28px);
}

.cp-app-cta-visual {
    flex-shrink: 0;
    width: 148px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cp-app-cta-phone {
    width: 100%;
    max-width: 148px;
    height: auto;
    border-radius: 22px;
    box-shadow:
        0 18px 40px rgba(28, 28, 30, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.65) inset;
}

.cp-app-cta-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cp-app-cta-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(52, 199, 89, 0.14);
    color: #248a3d;
    font-size: calc(0.72rem + 1px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.cp-app-cta-title {
    margin: 0 0 10px;
    font-size: calc(1.45rem + 1px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--cp-text, #1c1c1e);
    letter-spacing: -0.02em;
}

.cp-app-cta-title-accent {
    display: inline;
    background: linear-gradient(90deg, #248a3d 0%, #34c759 55%, #007aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cp-app-cta-lead {
    margin: 0 0 14px;
    font-size: calc(0.88rem + 1px);
    line-height: 1.65;
    color: var(--cp-text-sub, #636366);
    max-width: 42em;
}

.cp-app-cta-points {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 7px;
}

.cp-app-cta-points li {
    position: relative;
    padding-left: 1.35em;
    font-size: calc(0.82rem + 1px);
    font-weight: 600;
    line-height: 1.45;
    color: #2d3748;
}

.cp-app-cta-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34c759, #007aff);
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.18);
}

.cp-app-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    line-height: 0;
}

.cp-app-cta-store-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cp-app-cta-store-link:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.cp-app-cta-store-link:focus-visible {
    outline: 2px solid #007aff;
    outline-offset: 3px;
    border-radius: 8px;
}

.cp-app-cta-store-badge {
    display: block;
    height: 44px;
    width: auto;
}

.cp-app-cta-store-fallback {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #1c1c1e;
    color: #fff;
    font-size: calc(0.82rem + 1px);
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .yk-app-banner-section {
        padding: 32px 0 40px;
    }

    .yk-app-banner-section .cp-app-cta {
        --cp-inset-x-right: 20px;
        --cp-inset-x-left: 20px;
    }

    .cp-app-cta-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 24px var(--cp-inset-x-right, 20px) 24px var(--cp-inset-x-left, 20px);
        gap: 18px;
    }

    .cp-app-cta-visual {
        width: 100%;
    }

    .cp-app-cta-phone {
        max-width: 132px;
        margin: 0 auto;
    }

    .cp-app-cta-title {
        font-size: calc(1.28rem + 1px);
    }
}
