 body { 
            background-color: #000; margin: 0; height: 100vh; width: 100vw; overflow: hidden;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        .bg-layer {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background-size: cover; background-position: center;
            transition: opacity 4s ease-in-out; z-index: 1; opacity: 0;
        }
        .bg-layer.active { opacity: 1; }

        /* デスクトップ要素 */
        .desktop-icons, .window { z-index: 100; }
        .desktop-icons {
            position: fixed; top: 40px; right: 30px;
            display: flex; flex-direction: column; gap: 25px;
            opacity: 0; transition: opacity 1.5s ease-out;
        }
        body.system-ready .desktop-icons { opacity: 1; }

        .icon { width: 85px; text-align: center; cursor: pointer; user-select: none; }
        .icon-img { font-size: 45px; margin-bottom: 5px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
        .icon-label {
            font-size: 11px; color: white; background: rgba(0,0,0,0.4);
            padding: 2px 8px; border-radius: 10px; backdrop-filter: blur(5px); display: inline-block;
        }

        /* 共通ウィンドウ設定 */
        .window {
            position: absolute; 
            background: rgba(0, 0, 0, 0.4); 
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1); 
            border-radius: 12px; display: flex; flex-direction: column;
            box-shadow: 0 30px 60px rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
            transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1), left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        /* メインターミナル */
        .terminal { 
            width: 90%; max-width: 600px; height: 380px; 
            top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); 
        }
        body.system-ready .terminal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
        .terminal.slide-left { left: 28% !important; }

        /* 地図ウィンドウ */
        .map-window {
            width: 40%;
            max-width: 500px;
            height: 380px;
            top: 50%;
            left: 72%;
            transform: translate(-50%, -50%) scale(0.9);
            z-index: 90;
            overflow: hidden;
        }
        .map-window.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

        .header { 
            background: rgba(40, 40, 40, 0.4); 
            height: 30px; display: flex; align-items: center; justify-content: space-between; 
            padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,0.1); border-top-left-radius: 12px; border-top-right-radius: 12px;
            position: relative; flex-shrink: 0;
        }
        .dots { display: flex; gap: 8px; align-items: center; }
        .dot { width: 12px; height: 12px; border-radius: 50%; border: 0.5px solid rgba(0,0,0,0.2); cursor: pointer; }
        .red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
        .title { font-size: 12px; color: #bbb; font-weight: 600; position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }

        .content { 
            padding: 20px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 14px; 
            color: #00FF41; flex-grow: 1; overflow: hidden; 
            text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
        }
        .prompt { font-weight: 900; }
        /* カーソルを縦線（モダンなキャレット）に変更 */
.cursor { 
    display: inline-block; 
    width: 2px;             /* 8px から 2px に変更 */
    height: 1.2em; 
    background-color: #00FF41; 
    vertical-align: middle; 
    margin-left: 2px;
    animation: blink 1s step-end infinite; 
    /* 💡 縦線を光らせて存在感を出す */
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}
        @keyframes blink { 50% { background-color: transparent; } }

        /* 💡 地図を表示する親要素（map-container） */
        #map-container {
            width: 100%;
            height: calc(100% - 30px);
            overflow: hidden; 
            background: #000; 
            display: block; 
        }

        /* 💡 地図画像自体の設定 */
        #map-img {
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
            min-width: 100%;
            min-height: 100%;
            display: block;
            opacity: 0;
            /* Google Map風の色味に寄せるフィルター */
            filter: brightness(1.05) contrast(1.05) saturate(1.1) hue-rotate(-2deg);
            transition: opacity 0.8s ease;
        }

        /* 天気ウィジェット */
        .weather-widget {
            position: fixed; bottom: 30px; right: 30px;
            background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 255, 65, 0.2); border-radius: 12px;
            padding: 12px 18px; color: #00FF41; font-family: "SFMono-Regular", Consolas, monospace;
            z-index: 50; text-shadow: 0 0 5px rgba(0, 255, 65, 0.5); font-size: 13px; opacity: 0; transition: opacity 1.5s;
        }
        body.system-ready .weather-widget { opacity: 1; }
        /* 気温の数字 */
.weather-temp { 
    font-size: 28px; 
    font-weight: bold; 
    line-height: 1; 
}

/* 🛰️ アイコン：サイズを上げ、少し浮かせた位置を微調整 */
#w-icon { 
    font-size: 32px; /* 24pxから32pxにアップ */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.3)); /* ほんのり光らせる */
}

/* 下の都市名ライン */
.weather-city { 
    margin-top: 8px; 
    border-top: 0.5px solid rgba(0, 255, 65, 0.2); 
    padding-top: 6px; 
    font-size: 11px; 
    letter-spacing: 1px;
}


        /* About モーダル */
        /* About モーダル */
.modal { 
    width: 440px; 
    height: auto;             /* 固定を解除して中身に合わせる */
    min-height: 460px;        /* 最低限の高さは維持 */
    max-height: 90vh;         /* 画面からはみ出さないよう、画面高の90%を上限に */
    overflow-y: auto;         /* 万が一上限を超えたらスクロール可能に */
    padding-bottom: 25px;     /* 下部の余白をしっかり確保 */
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.9); 
}
        .modal.open { opacity: 1 !important; visibility: visible !important; transform: translate(-50%, -50%) scale(1) !important; }

        @media (max-width: 900px) {
            .terminal.slide-left { left: 50% !important; top: 30% !important; }
            .map-window { height: 380px !important; }
        }


     
        #title-copy-btn {
    background: transparent;     /* ← これが最重要 */
    border: none;
    color: #00FF41;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    
    /* ブラウザのネイティブ見た目を完全に殺す */
    appearance: none;
    -webkit-appearance: none;

    /* 光らせたいなら */
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.6);
}

#title-copy-btn:hover {
    opacity: 0.8;
}

#title-copy-btn:active {
    transform: translateY(1px);
}

.system-footer {
    position: fixed;   /* 画面の特定の位置に固定 */
    bottom: 20px;      /* 下から20pxの位置 */
    left: 0;
    width: 100%;       /* 横幅いっぱい */
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    / color: rgba(0, 255, 65, 0.4);
    color: black;
    letter-spacing: 2px;
    z-index: 9999;     /* ターミナルの上に強制的に表示 */
    pointer-events: none; /* 下にある要素の操作を邪魔しない */
}


/* ウィジェットをまとめるスタックの位置を強制指定 */
.widget-stack {
    position: fixed !important; /* 画面に固定 */
    top: 20px !important;      /* 上から20px */
    right: 20px !important;    /* 右から20px */
    z-index: 9999 !important;  /* 最前面に持ってくる */
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;      /* ウィジェット間の隙間 */
    width: 220px;
}

/* 個別のウィジェット内の固定位置設定を解除する */
#ranking-box, #weather-box {
    position: static !important; /* スタックの中で順番に並ぶようにする */
    margin: 0 !important;
}

/* 1. デスクトップアイコン：右上に配置 */
.desktop-icons {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important; /* 右に寄せる */
    left: auto !important;  /* 左設定をリセット */
    display: flex !important;
    flex-direction: column !important; /* 上下に並べる */
    align-items: flex-end !important;  /* アイコン内の文字も右寄せ */
    gap: 20px !important;
    z-index: 500 !important;
}

/* 2. ウィジェットスタック：右下に配置 */
.widget-stack {
    position: fixed !important;
    bottom: 40px !important; /* 画面下端からの距離（フッターとの隙間） */
    right: 20px !important;  /* 右に寄せる */
    top: auto !important;    /* 上設定をリセット */
    left: auto !important;   /* 左設定をリセット */
    display: flex !important;
    flex-direction: column !important; /* ウィジェットを上下に並べる */
    gap: 15px !important;
    width: 220px !important;
    pointer-events: none;
    z-index: 1000 !important;
}

/* 中のウィジェットの配置をリセット（共通設定） */
.widget-stack #ranking-box, 
.widget-stack #weather-box {
    position: static !important;
    margin: 0 !important;
    inset: auto !important;
    pointer-events: auto;
}