.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fd5790 0%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(253, 87, 144, 0.4);
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(253, 87, 144, 0.6);
}

.chat-button:active {
    transform: scale(1.05);
}

/* モーダルスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 540px;
    max-height: 100svh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 1);
    -webkit-backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 24px;
    color: #333;
    z-index: 10001;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(31, 38, 135, 0.2);
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* レスポンシブ対応 */
@media screen and (min-width: 541px) {
    .modal-container {
        max-width: 540px;
        max-height: 90svh;
        border-radius: 12px;
    }
    
    .modal-close {
        top: 8px;
        right: 8px;
        color: #333;
    }
    
}

@media screen and (max-width: 540px) {
    .modal-container {
        width: 100vw;
        height: 100svh;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-container.animate {
    animation: fadeIn 0.3s ease;
}

/* スマートフォン向け追加スタイル */
@media screen and (max-width: 540px) {
    .chat-button {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}