/**
 * ローディング画面専用スタイル
 * Nozomi Theme
 */

/* ローディング画面のメインコンテナ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* ローディング画面が非表示になる時のスタイル */
#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ロゴコンテナ */
.loading-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ロゴ画像 */
.loading-logo img {
    width: 300px;
    height: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    animation: logoFadeIn 1.5s ease-out 0.3s forwards, logoFloat 3s ease-in-out 2s infinite;
}

/* 温泉名のテキスト - 非表示 */
.loading-title,
.loading-subtitle {
    display: none;
}

/* ローディングスピナー - 非表示 */
.loading-spinner {
    display: none;
}

/* ローディングテキスト - 非表示 */
.loading-text {
    display: none;
}

/* アニメーションの定義 */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ロゴの浮遊アニメーション */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

/* パルスエフェクト（軽微） */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .loading-logo img {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .loading-logo img {
        width: 200px;
    }
}

/* 初期状態でメインコンテンツを非表示 */
body.loading #page {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
}

/* ローディング完了後のメインコンテンツ表示 */
body.loaded #page {
    visibility: visible;
    opacity: 1;
} 