/* ウィンター・サロン ポップアップスタイル */
.winter-salon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.winter-salon-popup {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(30px);
    animation: popupSlideIn 0.8s ease-out 0.3s forwards;
}

.popup-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 60px 25px 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.popup-title {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    padding-right: 10px;
    word-wrap: break-word;
    line-height: 1.3;
}

.popup-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.popup-content {
    padding: 35px 30px 30px;
    line-height: 1.7;
    color: #2c3e50;
}

.event-details {
    background: #f8f9fa;
    border-left: 4px solid #34495e;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.event-date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.event-location {
    color: #5a6c7d;
    margin-bottom: 15px;
    font-style: italic;
}

.event-description {
    margin-bottom: 15px;
}

.reservation-section {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.reservation-link {
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.reservation-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
    color: white;
    text-decoration: none;
}

.closing-message {
    text-align: center;
    font-style: italic;
    color: #5a6c7d;
    margin-top: 20px;
    font-size: 0.9rem;
}

.close-button {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.snowflake {
    color: #74b9ff;
    font-size: 1.2rem;
    margin: 0 5px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    to {
        transform: scale(1) translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(180deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .winter-salon-popup {
        max-width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 25px 55px 20px 20px;
    }
    
    .popup-title {
        font-size: 1.1rem;
        line-height: 1.4;
        padding-right: 5px;
    }
    
    .popup-subtitle {
        font-size: 0.9rem;
    }
    
    .close-button {
        top: 10px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .popup-content {
        padding: 25px 20px 20px;
    }
    
    .event-details {
        padding: 15px;
        margin: 15px 0;
    }
    
    .reservation-section {
        padding: 15px;
        margin: 15px 0;
    }
}

/* 小さなスマートフォン対応 */
@media (max-width: 480px) {
    .popup-header {
        padding: 20px 50px 18px 18px;
    }
    
    .popup-title {
        font-size: 1.0rem;
        line-height: 1.5;
    }
    
    .popup-subtitle {
        font-size: 0.85rem;
    }
    
    .close-button {
        top: 8px;
        right: 10px;
        width: 26px;
        height: 26px;
        font-size: 16px;
    }
}

/* アニメーション遅延 */
.popup-content > * {
    opacity: 0;
    animation: contentFadeIn 0.6s ease-out forwards;
}

.popup-content > *:nth-child(1) { animation-delay: 0.8s; }
.popup-content > *:nth-child(2) { animation-delay: 1.0s; }
.popup-content > *:nth-child(3) { animation-delay: 1.2s; }
.popup-content > *:nth-child(4) { animation-delay: 1.4s; }

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