/* AI Stock Analyzer JP - Custom Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a1628 0%, #0f1f3a 100%);
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 22, 40, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00d4ff;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(15, 31, 58, 0.8) 100%);
    border-radius: 1rem;
    margin: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #a0aec0;
    margin: 0 0 1.5rem 0;
    line-height: 1.8;
}

.hero-description {
    font-size: 0.95rem;
    color: #a0aec0;
    margin: 0 0 2rem 0;
}

.disclaimer {
    font-size: 0.85rem;
    color: #a0aec0;
    margin: 1rem 0;
    font-style: italic;
}

/* Search Form */
.stock-search-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 0.5rem;
}

.stock-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(15, 31, 58, 0.8);
    color: #ffffff;
    transition: all 0.3s ease;
}

.stock-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.stock-input::placeholder {
    color: #a0aec0;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
    color: #0a1628;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.btn-line {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #ffffff;
}

.btn-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #a0aec0;
    border: 1px solid #a0aec0;
}

.btn-secondary:hover {
    background: rgba(160, 174, 192, 0.1);
    color: #ffffff;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 1rem;
}

.feature-card {
    background: rgba(15, 31, 58, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.feature-description {
    color: #a0aec0;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    background: rgba(15, 31, 58, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(15, 31, 58, 0.6);
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.1);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #a0aec0;
    line-height: 1.6;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

/* Loading Modal */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-modal.active {
    display: flex;
}

.loading-content {
    text-align: center;
    padding: 3rem;
    background: rgba(15, 31, 58, 0.9);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 1rem;
    max-width: 500px;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Battery Animation */
.battery-container {
    width: 200px;
    height: 100px;
    margin: 2rem auto;
    position: relative;
}

.battery {
    width: 180px;
    height: 80px;
    border: 4px solid #00d4ff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.battery-tip {
    width: 10px;
    height: 40px;
    background: #00d4ff;
    position: absolute;
    right: -14px;
    top: 20px;
    border-radius: 0 4px 4px 0;
}

.battery-level {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
    width: 0%;
    transition: width 0.5s ease;
    animation: batteryCharge 3s ease-in-out infinite;
}

@keyframes batteryCharge {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; }
}

/* Progress Steps */
.progress-steps {
    margin-top: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #00d4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: 700;
    color: #0a1628;
}

.progress-step-text {
    font-size: 1rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 3rem 1rem;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-description {
    color: #a0aec0;
    margin-bottom: 2rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #a0aec0;
    margin: 1rem 0;
}

/* Footer */
.site-footer {
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    background: rgba(10, 22, 40, 0.95);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.company-info {
    font-size: 0.95rem;
    color: #a0aec0;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-link {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00d4ff;
}

.disclaimer-section {
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.8;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(15, 31, 58, 0.6);
    border-radius: 0.5rem;
    border-left: 4px solid #ff4444;
}

.copyright {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-top: 2rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 31, 58, 0.98);
    border-top: 2px solid #00d4ff;
    padding: 1.5rem;
    display: none;
    z-index: 9998;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .stock-search-form {
        flex-direction: column;
    }
}
