/* ============================================
   日本語株式診断ランディングページ
   Premium Stock Analysis Landing Page
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    /* Primary Colors - Deep Ocean & Gold */
    --primary-dark: #0a0e1a;
    --primary-navy: #121a2d;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    
    /* Gradient Colors */
    --gradient-main: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 50%, #0a0e1a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    --gradient-glow: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Shadows */
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
    --shadow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Fonts */
    --font-heading: 'Noto Sans JP', 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-accent: 'Zen Kaku Gothic New', sans-serif;
    
    /* Spacing */
    --container-width: 420px;
    --section-padding: 60px 20px;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ========== Container ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ========== Header ========== */
.header {
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-gold);
}

.logo-text {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ========== Hero Section ========== */
.hero {
    padding: var(--section-padding);
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--accent-gold);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.9;
}

/* ========== Stock Input Section ========== */
.stock-input-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px 25px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.input-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: left;
}

.stock-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.stock-input {
    width: 100%;
    padding: 18px 20px;
    padding-left: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.stock-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.stock-input::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* ========== CTA Button ========== */
.cta-btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-gold);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.cta-btn:active {
    transform: translateY(-1px);
}

.cta-btn i {
    font-size: 1.2rem;
}

/* ========== Features Section ========== */
.features {
    padding: 40px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== Stats Section ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 30px 0;
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== Live Notifications ========== */
.live-notifications {
    margin-top: 25px;
    overflow: hidden;
    height: 160px;
    position: relative;
}

.live-notifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-dark), transparent);
    z-index: 2;
    pointer-events: none;
}

.live-notifications::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, var(--primary-dark), transparent);
    z-index: 2;
    pointer-events: none;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: scrollUp 8s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.notification-item .user-icon {
    width: 28px;
    height: 28px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.notification-item .user-name {
    color: var(--accent-gold);
    font-weight: 500;
}

.notification-item .notification-text {
    color: var(--text-secondary);
}

.notification-item .time-ago {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: auto;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* ========== Modal Overlay ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

/* ========== Analysis Modal ========== */
.analysis-modal {
    width: 100%;
    max-width: 380px;
    background: var(--primary-navy);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/analysis-modal-bg.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.analysis-modal > * {
    position: relative;
    z-index: 1;
}

.analysis-header {
    text-align: center;
    margin-bottom: 30px;
}

.analysis-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analysis-icon i {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.analysis-header h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.analysis-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.progress-container {
    margin-bottom: 15px;
}

.progress-item {
    margin-bottom: 18px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.progress-label span:first-child {
    color: var(--text-secondary);
}

.progress-label span:last-child {
    color: var(--accent-gold);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.progress-fill.gold {
    background: var(--gradient-gold);
}

.progress-fill.cyan {
    background: linear-gradient(90deg, #00d4ff, #00f5d4);
}

.progress-fill.purple {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

/* ========== Result Modal ========== */
.result-modal {
    width: 100%;
    max-width: 380px;
    background: var(--primary-navy);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.result-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/result-modal-bg.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.result-modal > * {
    position: relative;
    z-index: 1;
}

.result-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid var(--accent-cyan);
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
    }
}

.result-icon i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.result-modal h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.result-modal .result-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.stock-code-display {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stock-code-display i {
    color: var(--accent-gold);
}

.stock-code-display span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-accent);
}

.line-cta {
    width: 100%;
    padding: 16px 30px;
    background: #06c755;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.line-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 199, 85, 0.4);
}

.line-cta i {
    font-size: 1.3rem;
}

.free-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(6, 199, 85, 0.1);
    border: 1px solid rgba(6, 199, 85, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #06c755;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-overlay.active .analysis-modal,
.modal-overlay.active .result-modal {
    animation: slideUp 0.4s ease-out;
}

/* ========== Policy Modal ========== */
.policy-modal {
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    background: var(--primary-navy);
    border-radius: 24px;
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-modal h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-content {
    max-height: calc(85vh - 150px);
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.8;
}

.policy-content::-webkit-scrollbar {
    width: 6px;
}

.policy-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.policy-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

.policy-content::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.policy-content h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.policy-content h4:first-child {
    margin-top: 0;
}

.policy-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.policy-content ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.policy-content ul li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    list-style-type: disc;
}

.policy-content .policy-date {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.modal-overlay.active .policy-modal {
    animation: slideUp 0.4s ease-out;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    :root {
        --container-width: 100%;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .policy-modal {
        max-height: 90vh;
        padding: 25px 20px;
    }
    
    .policy-content {
        max-height: calc(90vh - 130px);
    }
}

