/**
 * Cookie consent banner — fixed top bar, shown until the visitor consents.
 * Self-contained; does not depend on the LP stylesheet.
 */

.cookie-consent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 28px;
    padding: 14px clamp(16px, 4vw, 40px);
    background: rgba(20, 24, 30, 0.97);
    color: #f4f6f8;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.7;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);

    /* Hidden off-canvas by default; JS slides it in only when consent is unset. */
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    will-change: transform;
}

.cookie-consent.is-visible {
    transform: translateY(0);
}

/* `hidden` fully removes it (before JS runs, and after consent). */
.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__text {
    max-width: 820px;
    margin: 0;
}

.cookie-consent__link {
    color: #7cc4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-consent__btn {
    appearance: none;
    cursor: pointer;
    padding: 10px 26px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3aa0f5, #1f7fe0);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.cookie-consent__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.cookie-consent__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-consent {
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1;
    }
}
