/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif; 
}

body {
    height: 100vh; 
    display: flex; 
    justify-content: center;
    align-items: center;
    color: #fff; 
    overflow: hidden; 
}

/* --- 1. 背景動画の設定 --- */
.video-background {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* --- 2. ページ全体のぼかし効果 --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(10px); 
}


/* --- 3. メインコンテンツ（Flarionエリア） --- */
.content {
    position: relative; 
    z-index: 1; 
    text-align: center;
    padding: 20px 40px;
    
    /* 白の半透明ガラス風 */
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
}

h1 {
    font-size: 3em;
    margin-bottom: 5px;
    color: #ff5c5c; 
    text-shadow: 0 0 10px rgba(255, 92, 92, 0.8); 
}

/* ステータス表示の高さ固定とランダム切り替え用CSS */
.updated-text {
    font-size: 0.9em;
    margin-bottom: 30px;
    opacity: 0.7;
    white-space: pre-line; 
    
    height: 3em; /* 以前ご要望のあった高さ */
    line-height: 1.1em; 
    overflow: hidden; 
    position: relative;
}

/* ランダム切り替え用 (visibility & opacity) */
.status-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease-in-out; 
}

.status-text.active {
    opacity: 1;
    visibility: visible;
}


.buttons {
    display: flex;
    gap: 15px; 
    justify-content: center;
    margin-bottom: 20px;
}

/* ボタンのスタイル (白っぽい透明なデザイン) */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.3);
    
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}


.copyright {
    font-size: 0.8em;
    opacity: 0.5;
}

/* --- 4. ダウンロードウィンドウのスタイル --- */
.download-window {
    position: fixed;
    top: -150px; 
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    padding: 20px;
    
    /* 白の半透明ガラス風 */
    background-color: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(8px); 
    
    border: 1px solid rgba(255, 255, 255, 0.5); 
    border-radius: 0 0 10px 10px; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
    
    z-index: 100; 
    color: #000; 
    text-align: center;
    
    transition: top 0.5s ease-in-out; 
}

.download-window.is-active {
    top: 0; 
}

/* ダウンロードコンテンツにアニメーションを設定 */
#downloadContent {
    opacity: 1; 
    transition: opacity 0.5s ease-out; 
}

.download-text {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* --- 5. プログレスバーのスタイル --- */
.progress-bar-container {
    width: 90%;
    height: 15px;
    margin: 0 auto 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%; 
    background: linear-gradient(to right, #ff5c5c, #e73c3c); 
    border-radius: 8px;
    transition: width 0.1s linear; 
}

.progress-percentage {
    font-size: 1em;
    opacity: 0.8;
}