/**
 * お問い合わせCTAカード（共通）
 * .p-cta / .access-cta の両方で使用
 */

.p-cta {
    background: #ffffff;
    padding: 4.5rem 0;
}

.p-cta__card {
    position: relative;
    max-width: 45rem;
    margin: 0 auto;
    padding: 3.5rem 2.5rem 3rem;
    background: #ffffff;
    border: 2px solid #020283;
    border-radius: 12px;
    box-shadow:
        0 12px 32px rgba(7, 29, 102, 0.1),
        0 2px 8px rgba(2, 2, 131, 0.04);
    text-align: center;
    overflow: hidden;
}

.p-cta__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #E6192E 0%, #E6192E 42%, #FFD700 42%, #FFD700 100%);
    pointer-events: none;
    z-index: 2;
}

.p-cta__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.p-cta__star {
    position: absolute;
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    background: #E6192E;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    opacity: 0.55;
}

.p-cta__star--tl {
    top: 1.75rem;
    left: 1.25rem;
    background: #E6192E;
}

.p-cta__star--tl2 {
    top: 3.15rem;
    left: 2.4rem;
    width: 0.55rem;
    height: 0.55rem;
    background: #FFD700;
    opacity: 0.7;
}

.p-cta__star--tr {
    top: 1.75rem;
    right: 1.25rem;
    background: #020283;
    opacity: 0.35;
}

.p-cta__star--tr2 {
    top: 3.15rem;
    right: 2.4rem;
    width: 0.55rem;
    height: 0.55rem;
    background: #E6192E;
    opacity: 0.45;
}

.p-cta__title,
.p-cta__text,
.p-cta__button {
    position: relative;
    z-index: 1;
}

.p-cta__title {
    margin: 0 0 1.15rem;
    color: #020283;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.5;
}

.p-cta__title-accent {
    color: #E6192E;
}

.p-cta__text {
    margin: 0 0 2rem;
    color: #4a4a5c;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.8;
}

.p-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 14rem;
    padding: 1rem 2.25rem 1rem 2.35rem;
    background: #020283;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 0 #01015c;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.p-cta__button::after {
    content: '';
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-top: 2px solid #FFD700;
    border-right: 2px solid #FFD700;
    transform: rotate(45deg);
    transition: border-color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

@media (hover: hover) {
    .p-cta__button:hover {
        background: #FFD700;
        color: #020283;
        box-shadow: 0 4px 0 rgba(2, 2, 131, 0.25);
    }

    .p-cta__button:hover::after {
        border-color: #020283;
        transform: rotate(45deg) translate(3px, -3px);
    }
}

@media (max-width: 767px) {
    .p-cta {
        padding: 3rem 0;
    }

    .p-cta__card {
        padding: 2.75rem 1.25rem 2.25rem;
    }

    .p-cta__star--tl,
    .p-cta__star--tr {
        width: 0.55rem;
        height: 0.55rem;
        top: 1.5rem;
    }

    .p-cta__star--tl {
        left: 0.75rem;
    }

    .p-cta__star--tr {
        right: 0.75rem;
    }

    .p-cta__star--tl2,
    .p-cta__star--tr2 {
        display: none;
    }

    .p-cta__title {
        font-size: 1.5rem;
    }

    .p-cta__text {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .p-cta__button {
        width: 100%;
        max-width: 22.5rem;
        min-width: 0;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        box-sizing: border-box;
    }
}
