 :root {
            --primary-orange: #f39c12;
            --secondary-orange: #e67e22;
            --accent-green: #27ae60;
            --dark-blue: #2c3e50;
            --light-bg: #ecf0f1;
            --white: #ffffff;
            --text-dark: #2c3e50;
            --text-light: #7f8c8d;
            --success: #27ae60;
            --warning: #e74c3c;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
            --line-green: #06C755;
            --doraemon-blue: #1E90FF;
            --japan-red: #BC002D;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--dark-blue);
            color: var(--white);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .main-container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .video-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            object-fit: cover;
            z-index: -1;
            opacity: 0.2;
        }

        .logo-container {
            margin-bottom: 20px;
            text-align: center;
            position: relative;
        }

        .logo-container img {
             width: 100px;
            height: 100px;
           
            border-radius: 50%;
            height: auto;
        }

        .japan-flag {
            position: absolute;
            top: -10px;
            right: -20px;
            width: 40px;
            height: 30px;
            background: white;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
        }

        .japan-flag::after {
            content: "";
            width: 20px;
            height: 20px;
            background: var(--japan-red);
            border-radius: 50%;
        }

        .doraemon-container {
            position: absolute;
            top: -30px;
            left: -30px;
            width: 60px;
            height: 60px;
            background: var(--doraemon-blue);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
            z-index: 10;
            animation: float 3s ease-in-out infinite;
        }

        .doraemon-container::before {
            content: "🐱";
            font-size: 30px;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        .main-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-orange);
            text-align: center;
            margin-bottom: 10px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
        }

        .subtitle {
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--secondary-orange);
            text-align: center;
            margin-bottom: 30px;
        }

        .info-card {
            background: linear-gradient(135deg, var(--primary-orange), var(--accent-green));
            color: var(--white);
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-bottom: 25px;
            text-align: center;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        .sakura {
            position: absolute;
            font-size: 24px;
            opacity: 0.3;
            z-index: 0;
        }

        .sakura-1 {
            top: 10px;
            left: 10px;
        }

        .sakura-2 {
            bottom: 10px;
            right: 10px;
        }

        .highlight-percentage {
            font-weight: 700;
            font-size: 1.2em;
            color: #f1c40f;
        }

        .viewer-count {
            font-weight: 700;
            color: #f1c40f;
        }

        .doraemon-text {
            display: block;
            margin-top: 10px;
            font-weight: bold;
            color: var(--doraemon-blue);
            background: rgba(255, 255, 255, 0.2);
            padding: 5px 10px;
            border-radius: 20px;
        }

        .input-group {
            width: 100%;
            margin-bottom: 30px;
        }

        .stock-input {
            width: 100%;
            padding: 15px;
            border: 2px solid var(--secondary-orange);
            border-radius: var(--border-radius);
            font-size: 16px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            background-color: rgba(255, 255, 255, 0.9);
        }

        .stock-input:focus {
            outline: none;
            border-color: var(--accent-green);
            box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
        }

        .analyze-btn {
            background: linear-gradient(to right, var(--primary-orange), var(--accent-green));
            color: var(--white);
            border: none;
            padding: 15px 30px;
            border-radius: var(--border-radius);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            box-shadow: var(--shadow);
        }

        .analyze-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        }

        .line-btn {
            background: linear-gradient(to right, var(--line-green), #00B900);
        }

        .ai-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .ai-progress, .ai-result {
            background-color: var(--white);
            border-radius: var(--border-radius);
            padding: 25px;
            width: 100%;
            max-width: 500px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            color: var(--text-dark);
        }

        .progress-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            justify-content: center;
            color: var(--dark-blue);
        }

        .progress-title {
            font-size: 18px;
            font-weight: bold;
        }

        .progress-container {
            margin-top: 15px;
        }

        .progress-item {
            margin-bottom: 15px;
        }

        .item-title {
            font-size: 14px;
            margin-bottom: 5px;
            color: var(--text-dark);
        }

        .progress-bar {
            height: 10px;
            background-color: #e0e0e0;
            border-radius: 5px;
            overflow: hidden;
        }

        .progress-bar-inner {
            height: 100%;
            width: 0;
            background: linear-gradient(to right, var(--secondary-orange), var(--accent-green));
            border-radius: 5px;
            transition: width 0.5s ease;
        }

        .result-header {
            margin-bottom: 15px;
            text-align: center;
        }

        .result-title {
            font-size: 16px;
            font-weight: bold;
            color: var(--dark-blue);
        }

        .stock-code {
            color: var(--success);
        }

        .result-content {
            font-size: 14px;
            margin-bottom: 20px;
            color: var(--text-light);
            text-align: center;
        }

        .result-list {
            padding-left: 0;
            list-style: none;
            margin-top: 12px;
            text-align: center;
        }

        .result-list li {
            margin-bottom: 5px;
        }

        .urgent-text {
            color: var(--warning);
            font-weight: bold;
        }

        .line-icon {
            display: inline-block;
            vertical-align: middle;
            margin-right: 5px;
            font-weight: bold;
        }

        .footer-container {
            margin-top: auto;
            padding: 20px;
            text-align: center;
            color: var(--text-light);
            font-size: 14px;
        }

        @media (max-width: 600px) {
            .main-title {
                font-size: 2rem;
            }
            
            .subtitle {
                font-size: 1.2rem;
            }
            
            .info-card {
                padding: 15px;
            }
            
            .doraemon-container {
                top: -20px;
                left: -20px;
                width: 50px;
                height: 50px;
            }
            
            .doraemon-container::before {
                font-size: 24px;
            }
        }