/* 基础样式和CSS变量 */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --light-blue: #f0f9ff;
    --accent-blue: #60a5fa;
    --dark-blue: #1e3a8a;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #f1f5f9;
    --gray: #64748b;
    --dark-gray: #334155;
    --success-green: #10b981;
    --light-green: #f0fdf4;
    --warning-orange: #f59e0b;
    --light-orange: #fffbeb;
    --purple: #8b5cf6;
    --light-purple: #faf5ff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}


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


/* メインビジュアル */
.hero {
    padding: 60px 0 80px;
    background: var(--dark-blue);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--secondary-blue);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--white);
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-blue);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-line {
    background: #00B900;
    color: var(--white);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-line:hover {
    background: #009900;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--light-blue);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary-large{
    color: #fff;

    background: var(--primary-blue);
}


/* セクション共通スタイル */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 3rem;
}

/* 機能セクション */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
}

.feature-card:nth-child(2)::before {
    background: var(--success-green);
}

.feature-card:nth-child(3)::before {
    background: var(--warning-orange);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    color: var(--dark-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}




/* CTA */
.cta {
    padding: 80px 0;
    background: var(--white);
    color: var(--dark-gray);
    border-top: 1px solid var(--border-color);
}

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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-note {
    font-size: 0.875rem;
    margin-top: 1rem !important;
    opacity: 0.8;
}

/* フッター */
.footer {
    background: var(--white);
    color: var(--dark-gray);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 30px 0 50px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #ffffff;
        --light-gray: #334155;
        --dark-gray: #002f6c;
        --border-color: #475569;
    }
}

/* AI プレビューエリア */
.ai-preview-area {
    margin: 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.preview-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preview-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
}

.preview-content p {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.preview-examples {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.example-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chat-header {
    background: var(--primary-blue) !important;
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-avatar {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-messages {
    padding: 1.5rem;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message:last-child {
    margin-bottom: 0;
}

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.ai-avatar-small {
    font-size: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-small {
    font-size: 1.25rem;
    background: var(--gray);
    color: var(--white);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--dark-gray);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.5;
    animation: messageSlideIn 0.3s ease-out;
}

.user-message .message-content {
    background: var(--primary-blue);
    color: var(--white);
    border: 1px solid var(--primary-blue);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-input-area {
    padding: 1rem 1.5rem;
    background: var(--white);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

#stockInput, #demoStockInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#stockInput:focus, #demoStockInput:focus {
    border-color: var(--primary-blue);
}

.predict-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.predict-btn:hover {
    background: var(--primary-blue);
    opacity: 0.9;
    transform: translateY(-1px);
}

.predict-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

/* タイピングアニメーション */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 80px;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--gray);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* AI予測結果表示 */
.prediction-result {
    background: var(--white) !important;
    border: 2px solid var(--success-green);
    color: var(--dark-gray);
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.prediction-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prediction-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.prediction-item {
    text-align: center;
    background: var(--white) !important;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 8px;
}

.prediction-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.prediction-value {
    font-size: 1.125rem;
    font-weight: 700;
}

/* モーダル関連 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.ai-modal {
    padding: 2rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--gray);
    z-index: 10;
}

.close:hover {
    color: var(--dark-gray);
}

.modal-content h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.demo-chat-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.demo-chat-messages {
    padding: 1.5rem;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--white);
}

.demo-input-area {
    padding: 1rem 1.5rem;
    background: var(--white);
    display: flex;
    gap: 0.75rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.demo-notice {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.demo-notice p {
    margin-bottom: 1rem;
    color: var(--dark-blue);
    font-weight: 500;
}

.demo-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.success-message {
    text-align: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--success-green);
}

.success-message h4 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--dark-gray);
    line-height: 1.6;
}

.line-benefits {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.line-benefits p {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.line-benefits ul {
    list-style: none;
    padding: 0;
}

.line-benefits li {
    color: var(--dark-gray);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.line-benefits li:last-child {
    border-bottom: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .ai-preview-area {
        margin: 2rem 0;
    }
    
    .chat-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-messages, .demo-chat-messages {
        padding: 1rem;
        min-height: 100px;
    }
    
    .chat-input-area, .demo-input-area {
        padding: 0.75rem 1rem;
        flex-direction: column;
    }
    
    #stockInput, #demoStockInput {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .predict-btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .ai-modal {
        padding: 1.5rem;
    }
    
    .demo-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .demo-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 印刷スタイル */
@media print {
    .modal,
    .btn,
    .ai-demo-area {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}
