:root {
            --neon-green: #0f0;
            --neon-alert: #ff0055;
            --dark-bg: #000;
            --glass-bg: rgba(0, 20, 0, 0.6);
        }

        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            font-family: 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--dark-bg);
            color: white;
            overflow-x: hidden;
        }

        /* --- 1. イントロ画面 --- */
        #intro-screen {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(to bottom, #020111 0%, #191621 100%);
            z-index: 9999;
            overflow: hidden;
        }
        .ground {
            position: absolute; bottom: 0; width: 100%; height: 15%;
            background: #0a0a0a; border-top: 1px solid #333; z-index: 5;
        }
        .star {
            position: absolute; background: white; border-radius: 50%;
            opacity: 0.8; pointer-events: none;
        }
        #ufo {
            font-size: 100px; position: absolute; top: -150px; left: 50%;
            transform: translateX(-50%); z-index: 20; filter: drop-shadow(0 0 10px cyan);
        }
        #beam {
            position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
            width: 120px; height: 0;
            background: linear-gradient(to bottom, rgba(0, 255, 255, 0.5), rgba(0, 255, 255, 0));
            opacity: 0; z-index: 10; transition: height 0.5s, opacity 0.3s;
        }
        #human-wrapper {
            position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
            z-index: 15; text-align: center; transition: bottom 2s ease-in, transform 2s;
        }
        #human { font-size: 50px; display: block; }
        #bubble {
            position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%);
            background: #fff; color: #000; padding: 10px 15px; border-radius: 15px;
            font-size: 14px; font-weight: bold; white-space: nowrap; opacity: 0;
            transition: opacity 0.3s; pointer-events: none;
        }
        #bubble::after {
            content: ''; position: absolute; bottom: -10px; left: 50%;
            transform: translateX(-50%); border-width: 10px 10px 0; border-style: solid;
            border-color: #fff transparent transparent transparent;
        }

        /* --- 2. ターミナル画面 --- */
        #main-content {
            display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: #000; color: var(--neon-green);
            font-family: 'Courier New', Courier, monospace;
            z-index: 8000; flex-direction: column; align-items: center; justify-content: center;
        }
        .terminal-box {
            border: 2px solid var(--neon-green); padding: 2rem; max-width: 600px; width: 90%;
            background: rgba(0, 20, 0, 0.95); box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
            box-sizing: border-box;
        }
        .data-row {
            display: flex; justify-content: space-between; margin-bottom: 10px;
            font-size: 1.2rem; border-bottom: 1px dotted #004400;
        }
        .typing-cursor::after { content: '▋'; animation: blink 1s infinite; }

        /* --- 3. ポートフォリオ画面 --- */
        #portfolio-screen {
            display: none; min-height: 100vh;
            background: radial-gradient(circle at center, #0b0b1a 0%, #000000 100%);
            padding: 20px; box-sizing: border-box;
            font-family: 'Helvetica Neue', Arial, sans-serif;
            overflow-y: auto; position: relative;
        }
        /* パララックス星空用コンテナ */
        #stars-bg {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 0;
        }

        /* コントロールパネル */
        .control-panel {
            position: sticky; top: 0; z-index: 100;
            background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
            padding: 15px; border-bottom: 1px solid var(--neon-green);
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 30px;
        }
        .switch-btn {
            background: transparent; border: 1px solid var(--neon-green); color: var(--neon-green);
            padding: 5px 15px; cursor: pointer; font-size: 0.9rem; transition: 0.3s;
            font-family: monospace;
        }
        .switch-btn.active {
            background: var(--neon-green); color: black; box-shadow: 0 0 15px var(--neon-green);
        }

        .grid-container {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
        }

        /* カードデザイン & グリッチ効果 */
        .card {
            background: var(--glass-bg); border: 1px solid rgba(0, 255, 0, 0.3);
            border-radius: 4px; padding: 25px; backdrop-filter: blur(4px);
            box-shadow: 0 4px 6px rgba(0,0,0,0.3);
            transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
            position: relative; overflow: hidden;
        }
        .card:hover {
            transform: translateY(-5px); box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
            border-color: var(--neon-green);
        }
        /* 装飾バー */
        .card::before {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
            background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
            opacity: 0.5;
        }

        .card h2 {
            margin-top: 0; color: var(--neon-green);
            border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;
            position: relative; display: inline-block;
        }
        /* ホバー時のテキストグリッチ */
        .card:hover h2 { animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; }

        @keyframes glitch {
            0% { transform: translate(0); }
            20% { transform: translate(-2px, 2px); }
            40% { transform: translate(-2px, -2px); }
            60% { transform: translate(2px, 2px); }
            80% { transform: translate(2px, -2px); }
            100% { transform: translate(0); }
        }

        /* Xボタン */
        .x-btn {
            display: inline-block; background: #000; color: #fff; text-decoration: none;
            padding: 10px 20px; border: 1px solid #fff; border-radius: 30px;
            font-weight: bold; margin-top: 10px; transition: 0.3s;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            width: fit-content;
        }
        .x-btn:hover {
            background: #fff; color: #000; box-shadow: 0 0 15px rgba(255,255,255,0.8);
        }
        .x-icon { font-size: 1.2rem; }

        /* エイリアンの独り言（トースト通知） */
        #alien-toast {
            position: fixed; bottom: 20px; right: 20px;
            background: rgba(0, 20, 0, 0.9); border: 1px solid var(--neon-green);
            color: var(--neon-green); padding: 15px; border-radius: 5px;
            font-family: 'Courier New', monospace; font-size: 0.9rem;
            box-shadow: 0 0 10px rgba(0,255,0,0.3);
            transform: translateY(150%); transition: transform 0.5s; z-index: 200;
            max-width: 300px;
        }
        #alien-toast::before { content: '👽 ALIEN LOG:'; display: block; font-size: 0.7rem; color: #fff; margin-bottom: 5px; }

        /* 無重力アニメーション */
        @keyframes float {
            0% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(2deg); }
            100% { transform: translateY(0px) rotate(0deg); }
        }
        .gravity-off .card { animation: float 6s ease-in-out infinite; }
        .gravity-off .card:nth-child(2n) { animation-delay: 1s; }
        .gravity-off .card:nth-child(3n) { animation-delay: 2s; }

        /* スマホ対応 */
        @media (max-width: 600px) {
            #ufo { font-size: 70px; top: -100px; }
            #human { font-size: 35px; }
            #beam { width: 80px; }
            h1 { font-size: 1.4rem; }
            .card h2 { font-size: 1.3rem; }
        }
        
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
        @keyframes shake { 0% { transform: translateX(-50%) rotate(0deg); } 25% { transform: translateX(-52%) rotate(-5deg); } 75% { transform: translateX(-48%) rotate(5deg); } 100% { transform: translateX(-50%) rotate(0deg); } }