/* ========================================
   live2025.html専用 ローディングアニメーションスタイル
   ======================================== */

/* Loading Animation Styles */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color-start) 0%, var(--main-color-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-container {
    position: relative;
    width: 60vw;
    height: calc(60vw * 540 / 776);
    max-width: 776px;
    max-height: 540px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* mannnakaは裏（z-index: 1） */
.person-center {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

/* kumoは表（z-index: 2） */
.cloud-left, .cloud-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
}

.cloud-left {
    animation: cloudSlideInLeft 2s ease-out forwards;
    animation-delay: 0s;
    transform: translateX(-100%);
}

.cloud-right {
    animation: cloudSlideInRight 2s ease-out forwards;
    animation-delay: 0s;
    transform: translateX(100%);
}

@keyframes cloudSlideInLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cloudSlideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.person-center {
    animation: personFadeIn 2s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes personFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-center {
    position: absolute;
    width: 15vw;
    max-width: 200px;
    min-width: 120px;
    height: auto;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: logoDrawIn 3s ease-out forwards;
    animation-delay: 3.5s;
    z-index: 3;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

@keyframes logoDrawIn {
    0% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) scale(1);
    }
}

#loading.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

body.loading .main-content,
body.loading .sidebar,
body.loading .top-navbar {
    opacity: 0;
    transition: opacity 1s ease-in;
}

body.loaded .main-content,
body.loaded .sidebar,
body.loaded .top-navbar {
    opacity: 1;
}

/* main-visualのカスタムスタイルとフェードインアニメーション */
.main-visual {
    height: 500px !important;
    background: url('../image/iseshima2025.png') center center / contain no-repeat !important;
    background-color: #FFFFFF !important;
    opacity: 0;
    animation: mainVisualFadeIn 1.5s ease-out forwards;
    animation-delay: 4s;
}

.main-visual::before {
    display: none !important;
}

.main-visual-text {
    display: none !important;
}

@keyframes mainVisualFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* page-titleの文字色を黒に上書き（live2025.html専用） */
.aboutus-page .page-title {
    color: #333 !important;
}

@media (max-width: 768px) {
    .loading-container {
        width: 90vw;
        height: calc(90vw * 540 / 776);
    }
    .logo-center {
        width: 25vw;
        min-width: 100px;
    }
    .main-visual {
        height: 300px !important;
    }
}

@media (max-width: 767px) {
    .loading-container {
        width: 90vw;
        height: calc(90vw * 540 / 776);
    }
    .logo-center {
        width: 25vw;
        min-width: 100px;
    }
    .main-visual {
        height: 250px !important;
    }
}

/* main-visualの上下余白を削除 */
.main-visual {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* content-areaの上余白も削除 */
.content-area {
    padding-top: 0 !important;
}