/* リセットと基本設定 */
:root {
    --primary-red: #D21C1C; /* ロゴに近い赤 */
    --bg-color: #050505;    /* ほぼ黒に近いダークグレー */
    --text-color: #ffffff;
    --grid-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden; /* スクロールなしの1画面構成 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 背景のグリッド装飾（Web3っぽさを演出） */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* 背景の赤い発光（ロゴの赤を環境光として使う） */
.bg-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(210, 28, 28, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

/* コンテンツ配置 */
.container {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ロゴのスタイル */
.logo-wrapper {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.logo {
    width: 120px;
    height: auto;
    border-radius: 20px; /* アイコンっぽく角を丸める */
    box-shadow: 0 0 30px rgba(210, 28, 28, 0.4); /* 赤い光彩 */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(210, 28, 28, 0.6);
}

/* タイトルテキスト */
.title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    position: relative;
    text-transform: uppercase;
}

/* テキストの二重露光エフェクト（Glitch風） */
.text-wrapper {
    position: relative;
    display: inline-block;
}

.text-wrapper::before,
.text-wrapper::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.text-wrapper::before {
    color: #00ffff;
    z-index: -1;
    transform: translate(-2px, 0);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.text-wrapper::after {
    color: #ff00ff;
    z-index: -1;
    transform: translate(2px, 0);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

/* サブタイトル */
.subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3em;
    font-weight: 300;
}

/* アニメーション定義 */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    .logo {
        width: 100px;
    }
}

/* --- オーロラテキスト (Solid Red / High Heat ver.) --- */
.text-wrapper {
    /* 純粋な赤の濃淡と、光の反射（白）だけで構成 
      紫や青は一切混ぜない
    */
    background: linear-gradient(
        110deg, 
        #8a0000 0%,    /* 暗い赤 (影) */
        #D21C1C 30%,   /* ロゴの赤 (ベース) */
        #ffffff 50%,   /* 純白 (光の反射/コア) */
        #D21C1C 70%,   /* ロゴの赤 */
        #8a0000 100%   /* 暗い赤 */
    );
  
    /* テキスト切り抜き */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  
    /* グラデーション幅を広げて、光が走る余地を作る */
    background-size: 200% auto;
  
    /* 金属が光を反射するように、鋭く移動させる */
    animation: shine-flow 4s linear infinite;
  
    /* グローも純粋な赤のみを使用 */
    filter: drop-shadow(0 0 15px rgba(210, 28, 28, 0.6));
  
    display: inline-block;
    font-weight: 700;
}

/* ホバー時はさらに熱量を上げる */
.text-wrapper:hover {
    filter: drop-shadow(0 0 25px rgba(255, 50, 50, 0.9));
}

/* アニメーション: 白い光が左から右へ流れる */
@keyframes shine-flow {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}