/* ========================================
   全体の設定
   ======================================== */

/* ページ全体をリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body全体のスタイル */
body {
    font-family: 'Arial', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background-color: #000000; /* 真っ黒な背景 */
    color: #ffffff; /* 白い文字 */
    overflow: hidden; /* スクロールバーを消す */
    height: 100vh; /* 画面いっぱいに表示 */
}

/* ========================================
   背景のグラデーション
   ======================================== */

.background {
    position: fixed; /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 未来的なグラデーション（紫→青→黒） */
    background: linear-gradient(135deg, #1a0033 0%, #000033 50%, #000000 100%);
    z-index: -1; /* 一番後ろに配置 */
    animation: gradientShift 10s ease infinite; /* ゆっくり動くアニメーション */
}

/* グラデーションが動くアニメーション */
@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ========================================
   メインコンテナ
   ======================================== */

.container {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    justify-content: center; /* 縦方向の中央 */
    align-items: center; /* 横方向の中央 */
    height: 100vh; /* 画面の高さいっぱい */
    padding: 20px;
}

/* ========================================
   タイトルエリア
   ======================================== */

.title-area {
    text-align: center;
    margin-bottom: 40px;
}

/* メインタイトル */
.main-title {
    font-size: 4rem; /* 大きな文字 */
    font-weight: bold;
    letter-spacing: 8px; /* 文字間隔を広く */
    color: #00ffff; /* ネオンブルー */
    text-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #0088ff; /* ネオン風の光るエフェクト */
    margin-bottom: 10px;
    animation: titleGlow 2s ease-in-out infinite; /* 光るアニメーション */
}

/* タイトルが光るアニメーション */
@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #0088ff;
    }
    50% {
        text-shadow:
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            0 0 40px #00ffff,
            0 0 50px #0088ff,
            0 0 60px #0088ff;
    }
}

/* サブタイトル */
.subtitle {
    font-size: 1.2rem;
    color: #aaaaaa; /* グレー */
    letter-spacing: 4px;
}

/* ========================================
   入場フォーム
   ======================================== */

.entry-form {
    background: rgba(255, 255, 255, 0.05); /* 半透明の白 */
    backdrop-filter: blur(10px); /* ぼかし効果（グラスモーフィズム） */
    border: 1px solid rgba(255, 255, 255, 0.1); /* 薄い枠線 */
    border-radius: 20px; /* 角を丸く */
    padding: 40px;
    width: 100%;
    max-width: 400px; /* 最大幅 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* 影をつける */
}

/* ラベル */
.entry-form label {
    display: block;
    font-size: 0.9rem;
    color: #00ffff; /* ネオンブルー */
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* 番号表示エリア */
.number-display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 番号バッジ */
.number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 20px 40px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

/* 番号プレフィックス（No.） */
.number-prefix {
    font-size: 1.5rem;
    color: #00ffff;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 番号の値 */
.number-value {
    font-size: 3rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    min-width: 80px;
    text-align: center;
}

/* 番号の説明文 */
.number-info {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888888;
    text-align: center;
}

/* ========================================
   入場ボタン
   ======================================== */

.enter-button {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000; /* 黒い文字 */
    background: linear-gradient(135deg, #00ffff, #8b5cf6); /* グラデーション */
    border: none;
    border-radius: 10px;
    cursor: pointer; /* マウスを乗せると指のマークになる */
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

/* ボタンにマウスを乗せた時 */
.enter-button:hover {
    transform: translateY(-2px); /* 少し上に浮く */
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.6); /* 光る影 */
}

/* ボタンを押した時 */
.enter-button:active {
    transform: translateY(0); /* 元の位置に戻る */
}

/* ========================================
   説明文
   ======================================== */

.description {
    margin-top: 40px;
    text-align: center;
    color: #888888; /* グレー */
    font-size: 0.9rem;
    line-height: 1.8;
}

.description p {
    margin: 5px 0;
}

/* ========================================
   スマホ対応（画面が小さい時）
   ======================================== */

@media (max-width: 600px) {
    .main-title {
        font-size: 2.5rem; /* タイトルを小さく */
        letter-spacing: 4px;
    }

    .entry-form {
        padding: 30px 20px; /* パディングを小さく */
    }
}
