@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&display=swap');

/* アンチグラビティ・アニメーション定義 */
@keyframes wp-fcta-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes wp-fcta-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ラッパー */
.wp-fcta-wrapper {
    position: fixed;
    bottom: 24px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    font-family: "Zen Maru Gothic", sans-serif;
    animation: wp-fcta-float 6s ease-in-out infinite;
    pointer-events: none;
    /* エリア外のクリックを透過 */
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform;
    /* パフォーマンス最適化 */
}

/* 非表示状態 */
.wp-fcta-wrapper.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* ガラスコンテナ */
.wp-fcta-glass {
    pointer-events: auto;
    /* ボタン部分はクリック可能に */
    background: var(--fcta-bg);
    border-radius: 9999px;
    padding: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    /* shadow-2xl */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1.5rem;
    /* pl-6 */
    padding-right: 0.5rem;
    /* pr-2 */
    height: 4rem;
    /* h-16 */
    max-width: 28rem;
    /* max-w-md */
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* ring-white/20 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
    .wp-fcta-glass {
        padding-left: 0.5rem;
        /* スマホ時は左パディングをリセットして中央寄せ */
    }
}

/* テキストグループ (PCのみ表示) */
.wp-fcta-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

@media (max-width: 640px) {
    .wp-fcta-text-group {
        display: none;
    }
}

.wp-fcta-sub {
    font-size: 10px;
    color: var(--fcta-text-sub);
    letter-spacing: 0.025em;
    font-weight: 500;
    line-height: 1.2;
}

.wp-fcta-main {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--fcta-text-main);
}

/* ボタンエリア */
.wp-fcta-actions {
    display: flex;
    gap: 0.5rem;
    width: auto;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .wp-fcta-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* ボタン共通 */
.wp-fcta-btn {
    height: 3rem;
    /* h-12 */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.1s, background-color 0.2s;
    flex: none;
}

.wp-fcta-btn:active {
    transform: scale(0.95);
}

/* スマホ時はボタンを均等幅に */
@media (max-width: 640px) {
    .wp-fcta-btn {
        flex: 1;
        padding: 0 1rem;
    }
}

/* メールボタン */
.wp-fcta-btn--mail {
    background-image: linear-gradient(to right, var(--fcta-mail-start), var(--fcta-mail-end));
    border: none;
    padding: 0 1.25rem;
    backdrop-filter: blur(4px);
    color: var(--fcta-text-mail);
}

.wp-fcta-btn--mail:hover {
    filter: brightness(1.1);
}

/* 電話ボタン */
.wp-fcta-btn--phone {
    background-image: linear-gradient(to right, var(--fcta-btn-start), var(--fcta-btn-end));
    padding: 0 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: var(--fcta-text-phone);
}

.wp-fcta-btn--phone:hover {
    box-shadow: 0 4px 6px -1px rgba(230, 126, 34, 0.3);
    /* shadow-orange-500/30 近似 */
}

/* ボタン内テキスト */
.wp-fcta-btn span {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
}