/* Sticky CTA Button Multi - フロントエンドスタイル */

.sticky-cta-wrapper {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.sticky-cta-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 30px;
    color: white;
    text-decoration: none;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ホバーエフェクト */
.sticky-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    color:rgb(220, 220, 220);
}

.sticky-cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.sticky-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
}

.sticky-cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* アイコン位置 */
.sticky-cta-button.icon-left {
    flex-direction: row;
}

.sticky-cta-button.icon-right {
    flex-direction: row-reverse;
}

.sticky-cta-button.icon-top {
    flex-direction: column;
}

.sticky-cta-button.icon-bottom {
    flex-direction: column-reverse;
}

/* 形状タイプ */
.sticky-cta-button.shape-rounded {
    padding: 20px 30px;
    border-radius: 50px;
}

.sticky-cta-button.shape-square {
    padding: 25px;
    min-width: 120px;
    min-height: 120px;
    flex-direction: column;
    border-radius: 15px;
}

.sticky-cta-button.shape-square .cta-text {
    white-space: normal;
    text-align: center;
    word-break: keep-all;
    line-height: 1.4;
}

.sticky-cta-button.shape-vertical {
    padding: 30px 20px;
    flex-direction: column;
    min-height: 180px;
    border-radius: 25px;
    writing-mode: horizontal-tb;
}

.sticky-cta-button.shape-vertical .cta-text {
    white-space: normal;
    text-align: center;
    line-height: 1.6;
}

/* 縦書き表示 */
.sticky-cta-button.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.sticky-cta-button.vertical-text .cta-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

.sticky-cta-button.vertical-text .cta-icon {
    writing-mode: horizontal-tb;
}

/* アイコンとテキスト */
.cta-icon {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    display: block;
}

.cta-text {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

/* 複数ボタン表示時のアニメーション */
.sticky-cta-button:nth-child(1) {
    animation-delay: 0s;
}

.sticky-cta-button:nth-child(2) {
    animation-delay: 0.1s;
}

.sticky-cta-button:nth-child(3) {
    animation-delay: 0.2s;
}

.sticky-cta-wrapper.visible .sticky-cta-button {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .sticky-cta-wrapper {
        right: 10px;
        gap: 12px;
    }

    .sticky-cta-button {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .sticky-cta-button.shape-rounded {
        padding: 16px 24px;
    }
    
    .sticky-cta-button.shape-square {
        padding: 20px;
        min-width: 100px;
        min-height: 100px;
    }
    
    .sticky-cta-button.shape-vertical {
        padding: 25px 18px;
        min-height: 150px;
    }

    .cta-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .sticky-cta-wrapper {
        gap: 10px;
    }
    
    .sticky-cta-button {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .sticky-cta-button.shape-rounded {
        padding: 14px 20px;
    }
    
    .sticky-cta-button.shape-square {
        padding: 18px;
        min-width: 90px;
        min-height: 90px;
    }
    
    .sticky-cta-button.shape-vertical {
        padding: 22px 16px;
        min-height: 140px;
    }
    
    .cta-text {
        font-size: 0.9rem;
    }
}

/* パルスアニメーション（オプション） */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.sticky-cta-button.pulse {
    animation: pulse 2s infinite;
}
