/* Floating CTA shared by the homepage and facility pages:
   a short stack of buttons at the lower right, shown after the first screen. */

.floating-cta {
    position: fixed;
    right: 0;
    bottom: 70px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: env(safe-area-inset-bottom);
    transform: translateX(110%);
    transition: transform 0.3s ease;
}

.floating-cta.is-visible {
    transform: translateX(0);
}

.floating-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.floating-cta a:hover,
.floating-cta a:focus-visible {
    filter: brightness(1.08);
    transform: translateX(-4px);
}

.floating-cta-visit {
    background: var(--color-primary);
}

.floating-cta-recruit,
.floating-cta-doc {
    background: var(--color-secondary);
}

/* Phone button: phones only (a tel: link is of little use on a desktop) */
.floating-cta-tel {
    display: none !important;
    background: #fff;
    color: var(--color-primary) !important;
    border: 2px solid currentColor;
    border-right: none;
}

/* Line break used only in the narrow layout ("見学・" / "資料請求") */
.floating-cta-br {
    display: none;
}

@media (max-width: 768px) {
    .floating-cta-br {
        display: inline;
    }

    .floating-cta {
        gap: 8px;
    }

    .floating-cta a {
        width: 104px;
        min-height: 45px;
        padding: 8px 10px;
        font-size: 0.9rem;
        letter-spacing: 0.04em;
    }

    .floating-cta-tel {
        display: flex !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-cta,
    .floating-cta a {
        transition: none;
    }
}
