/* 🌌 夜空の背景 */
body {
    background: radial-gradient(circle at bottom, #001f4d, #000);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow-x: hidden; /* はみ出し防止 */
    margin: 0;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    height: 100%;
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 100vw; /* はみ出し防止 */
    box-sizing: border-box;
}

/* 🖥️ ネオンかわいいサイバー風ブラウザ */
.retro-window {
    width: 90%;
    max-width: 500px;
    background: rgba(20, 20, 30, 0.9);
    border: 4px solid #00ffff;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff00ff;
    margin: 50px auto;
    font-family: 'Press Start 2P', cursive;
    text-align: center; /* 文章を中央寄せ */
    border-radius: 15px;
    padding: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

/* 🎮 宇宙ガールちゃん（スクロール対応） */
.space-girl {
   max-width: 80%; /* 画面幅の80%まで縮小 */
    height: auto; /* 縦横比を維持 */
    display: block;
    margin: 0 auto; /* 中央揃え */
}

@media (max-width: 768px) {
    .space-girl{
        max-width: 60%; /* スマホではさらに縮小 */
    }
}

/* ぼや〜っと光るエフェクト */
@keyframes glow {
    0% { filter: brightness(1.5); }
    50% { filter: brightness(2); }
    100% { filter: brightness(1.5); }
}

/* 🌍 控えめなネオンかわいいサイバー枠のフッター */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    border-top: 2px solid #ff66ff;
    box-shadow: 0px -2px 10px #ff66ff;
    max-width: 100vw;
    box-sizing: border-box;
}

/* 📖 普通の文章（中央寄せ & ネオンかわいいサイバー色） */
p {
    font-size: 1rem;
    color: #ffffe0;
    text-shadow: 0px 0px 5px #ff66ff, 0px 0px 10px #00ffff;
    margin: 10px auto;
    line-height: 1.6;
    text-align: center;
    max-width: 90%;
}

/* ✨ 文字の装飾（ネオンかわいいサイバー風） */
h1 {
    font-size: 2rem;
    color: white;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 10px 
    margin-top: 30px;
}

h2 {
    font-size: 1.75rem;
    color: #ffffe0;
    text-shadow: 2px 2px 10px #ff66ff;;
    margin-top: 20px;
}

h3 {
    font-size: 1.5rem;
    color: #ffffe0;
    text-shadow: 2px 2px 10px #00ffff;
    margin-top: 20px;
}

h4 {
    font-size: 1.25rem;
    color: #ffffe0;
    text-shadow: 2px 2px 10px #ffcc00;
    margin-top: 20px;
}

/* 🌈 可愛いテキストリンク */
.cute-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 3px 3px 0px #ff00ff;
    margin-top: 15px;
}

.cute-link:hover {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    transform: scale(1.1);
    box-shadow: 5px 5px 0px #00ffff;
}

/* 🌈 ゲームドット風の区切り線（hr） */
.pixel-hr {
    border: none;
    width: 80%;
    max-width: 400px;
    height: 8px;
    background: repeating-linear-gradient(
        45deg,
        #00ffff 0px, #00ffff 4px,
        #ff00ff 4px, #ff00ff 8px
    );
    margin: 20px auto;
    image-rendering: pixelated; /* ピクセル感を強調 */
}



/* 📱 スマホ対応（はみ出し防止） */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .retro-window {
        width: 95%;
        margin: 0 auto;
        max-width: 100vw;
    }

    .footer {
        height: 50px;
    }

    .space-girl img {
        width: 60px;
        max-width: 100vw;
    }

    p {
        font-size: 0.9rem;
    }
}