/* Floating Contact */
.floating-contact {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .floating-contact {
        right: 16px;
    }
    
    .floating-contact-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .floating-contact-panel {
        width: 280px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        right: 12px;
    }
    
    .floating-contact-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .floating-contact-panel {
        width: 260px;
        right: -20px;
    }
}

.floating-contact-container {
    position: relative;
}

.floating-contact-btn {
    width: 56px;
    height: 56px;
    background: #2563EB;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.floating-contact-btn:hover {
    background: #1D4ED8;
    transform: scale(1.1);
}

.floating-contact-btn i {
    transition: transform 0.3s ease;
}

.floating-contact-btn.active i {
    transform: rotate(45deg);
}

.floating-contact-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid #E5E7EB;
    z-index: 10000;
}

.floating-contact-panel.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.floating-contact-panel.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    display: block !important;
    visibility: visible !important;
}

.contact-panel-header {
    background: #2563EB;
    color: white;
    padding: 8px 16px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.contact-panel-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.contact-panel-header p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-panel-content {
    padding: 16px;
}

.contact-option {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.contact-option:hover {
    background: #F3F4F6;
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-option i {
    font-size: 20px;
}

.wechat-btn {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.wechat-btn:hover {
    background: #059669;
    border-color: #059669;
}

.email-btn {
    background: #F9FAFB;
    color: #1F2937;
}

.working-hours {
    padding: 12px;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}

.working-hours-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 4px;
}

.working-hours-time {
    font-size: 0.875rem;
    color: #1F2937;
    font-weight: 500;
}

.qr-code-panel {
    position: relative;
    padding: 24px;
}

.close-qr-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #F3F4F6;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-qr-btn:hover {
    background: #E5E7EB;
}

.qr-code-container {
    margin-bottom: 16px;
}

.qr-code-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-code-title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
    color: #1F2937;
}

.qr-code-subtitle {
    font-size: 0.875rem;
    text-align: center;
    color: #6B7280;
    margin-bottom: 16px;
}

.phone-contact {
    background: #EBF8FF;
    border-radius: 10px;
    padding: 10px;
}

.phone-title {
    font-weight: 600;
    color: #1E40AF;
    font-size: 0.8rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.phone-number {
    color: #2563EB;
    font-weight: 700;
    font-size: 0.9rem;
}
