:root {
    --primary-blue: #007AFF;
    --secondary-blue: #0055FF;
    --accent-blue: #00C6FF;
    --background: rgba(255, 255, 255, 0.95);
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --success-green: #34C759;
    --warning-orange: #FF9500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo and Title Section */
.logo-container {
    margin-bottom: 30px;
}

.main-logo {
    height: 60px;
    width: auto;
}

.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0,122,255,0.3);
}

.title-separator {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    margin: 20px auto 40px;
    border-radius: 2px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 0.9rem;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Input Section */
.input-section {
    width: 100%;
    max-width: 500px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

#stockCode {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid rgba(0,122,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

#stockCode:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0,122,255,0.2);
}

.input-hint {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Button Styles */
.glow-button {
    position: relative;
    padding: 15px 30px;
    font-size: 1.1rem;
    color: var(--text-light);
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,122,255,0.3);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    animation: buttonGlow 3s infinite;
    pointer-events: none;
}

@keyframes buttonGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 90%;
    width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Analysis Modal */
.analysis-modal {
    background: rgba(255,255,255,0.95);
}

.analysis-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-item.active {
    opacity: 1;
}

.step-icon {
    font-size: 1.5rem;
    width: 40px;
}

.step-text {
    flex: 1;
    text-align: left;
    font-size: 1rem;
}

.progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    width: 100px;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.step-item.active .progress-bar::after {
    width: 100%;
}

/* Analysis Animation */
.analysis-animation {
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.scanning-effect {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scanning-effect::before,
.scanning-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s linear infinite;
}

.scanning-effect::before {
    background: conic-gradient(
        from 0deg,
        rgba(0, 122, 255, 0),
        rgba(0, 122, 255, 0.3),
        rgba(0, 198, 255, 0.6),
        rgba(0, 122, 255, 0.3),
        rgba(0, 122, 255, 0)
    );
    animation: rotate 4s linear infinite;
}

.scanning-effect::after {
    background: 
        radial-gradient(circle at center, 
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.2) 47%,
            rgba(0,122,255,0.3) 48%,
            rgba(0,122,255,0.5) 49%,
            rgba(0,198,255,0.7) 50%,
            rgba(0,122,255,0.5) 51%,
            rgba(0,122,255,0.3) 52%,
            rgba(255,255,255,0.2) 53%,
            rgba(255,255,255,0) 100%
        );
    animation: scan 2s ease-in-out infinite;
}

.scanning-effect .inner-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: 
        linear-gradient(45deg, rgba(0,122,255,0.1), rgba(0,198,255,0.2)),
        linear-gradient(-45deg, rgba(0,122,255,0.1), rgba(0,198,255,0.2));
    border: 2px solid rgba(0,122,255,0.3);
    box-shadow: 
        0 0 20px rgba(0,122,255,0.2),
        inset 0 0 20px rgba(0,198,255,0.2);
}

.scanning-effect .scan-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,122,255,0.1) 0px,
        rgba(0,122,255,0.1) 1px,
        transparent 1px,
        transparent 8px
    );
    animation: scanLines 4s linear infinite;
    opacity: 0.5;
}

.scanning-effect .data-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0,198,255,0.8);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,198,255,0.6);
    opacity: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scan {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes scanLines {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.analysis-status {
    margin-top: 30px;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0,122,255,0.3);
}

/* Result Modal */
.result-header {
    margin-bottom: 30px;
}

.stock-info {
    margin-top: 10px;
}

.stock-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-right: 10px;
}

.stock-code {
    color: #666;
}

.analysis-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.preview-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.preview-item h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #666;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.trend-indicator {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: 500;
}

.trend-indicator.positive {
    background: var(--success-green);
}

.trend-indicator.negative {
    background: var(--warning-orange);
}

/* LINE Section */
.line-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.line-section h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.line-button-container {
    margin-top: 20px;
}

.line-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #00B900;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.line-button:hover {
    background: #009900;
}

.line-icon {
    width: 24px;
    height: 24px;
}

.line-id {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #666;
}

.copy-button {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .analysis-preview {
        grid-template-columns: 1fr;
    }
} 

/* Accessibility Helpers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Semantic Structure */
article {
    display: block;
}

section {
    display: block;
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Interactive Elements */
button:focus,
input:focus {
    box-shadow: 0 0 0 2px var(--primary-blue);
}

[role="dialog"] {
    outline: none;
}

/* Progress Indicators */
[role="progressbar"] {
    position: relative;
}

[role="meter"] {
    position: relative;
}

/* Status Indicators */
[role="status"] {
    position: relative;
} 