/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    font-weight: 700;
}

/* Market Overview */
.market-overview {
    padding: 4rem 0;
    background: white;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.market-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-5px);
}

.market-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.change {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.change.positive {
    color: #28a745;
}

.change.negative {
    color: #dc3545;
}

/* Featured Stocks */
.featured-stocks {
    padding: 4rem 0;
    background: #f8f9fa;
}

.stocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.stock-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stock-card:hover {
    transform: translateY(-5px);
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-header h3 {
    color: #1e3c72;
    font-size: 1.2rem;
}

.sector {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-price {
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stock-info p {
    color: #666;
    font-size: 0.9rem;
}

/* News Section */
.news-section {
    padding: 4rem 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.news-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Investment Tips */
.investment-tips {
    padding: 4rem 0;
    background: #f8f9fa;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.tip-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .market-grid,
    .stocks-grid,
    .news-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .market-card,
    .stock-card,
    .news-card,
    .tip-card {
        padding: 1.5rem;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Disclaimer Page */
.disclaimer-content {
    padding: 4rem 0;
    background: white;
}

.disclaimer-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.disclaimer-section h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.disclaimer-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.disclaimer-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.disclaimer-section li {
    margin-bottom: 0.5rem;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

/* Market Page */
.market-card.large {
    padding: 2.5rem;
}

.price.large {
    font-size: 2.5rem;
}

.change.large {
    font-size: 1.3rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.analysis-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.analysis-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.analysis-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.analysis-card ul {
    margin-left: 1.5rem;
}

.analysis-card li {
    margin-bottom: 0.5rem;
}

/* Stocks Page */
.stock-detail-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stock-detail-card:hover {
    transform: translateY(-5px);
}

.stock-info {
    margin: 1rem 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-item .label {
    font-weight: 600;
    color: #666;
}

.info-item .value {
    font-weight: 600;
    color: #333;
}

.stock-comment {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.search-examples {
    margin-top: 1rem;
}

.search-examples h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.search-examples ul {
    list-style: none;
    padding: 0;
}

.search-examples li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* News Page */
.news-list {
    padding: 4rem 0;
    background: white;
}

.news-article {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.news-article:hover {
    transform: translateY(-5px);
}

.news-article h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.news-article p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* About Page */
.company-info {
    padding: 4rem 0;
    background: white;
}

.company-details {
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.info-grid .info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.company-mission {
    margin-bottom: 3rem;
}

.company-mission p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.value-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.value-item h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

/* Privacy Page */
.privacy-content {
    padding: 4rem 0;
    background: white;
}

.privacy-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.privacy-section h2 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
    background: white;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-info .info-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-info .info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact-form {
    margin-bottom: 3rem;
}

.form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.contact-notice {
    background: #fff3cd;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #ffeaa7;
}

.contact-notice h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.contact-notice ul {
    margin-left: 1.5rem;
}

.contact-notice li {
    margin-bottom: 0.5rem;
    color: #856404;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.market-card,
.stock-card,
.news-card,
.tip-card,
.stock-detail-card,
.news-article,
.value-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
} 