/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ナビゲーション */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffd700;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: #ffd700;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

/* 特徴セクション */
.features {
    padding: 80px 0;
    background: white;
}

.features h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1e3c72;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 市場概況 */
.market-overview {
    padding: 80px 0;
    background: #f8f9fa;
}

.market-overview h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1e3c72;
}

.market-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.market-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.market-item .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.market-item .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.market-item .change {
    font-size: 1rem;
    font-weight: 600;
}

.change.positive {
    color: #28a745;
}

.change.negative {
    color: #dc3545;
}

/* ニュースセクション */
.latest-news {
    padding: 80px 0;
    background: white;
}

.latest-news h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1e3c72;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
}

.news-item h4 {
    color: #1e3c72;
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2a5298;
}

/* フッター */
footer {
    background: #1e3c72;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 市場情報ページ */
.market-summary {
    padding: 60px 0;
    background: white;
}

.market-summary h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.summary-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid #1e3c72;
}

.summary-item h4 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.summary-item .price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.summary-item .change {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-item .time {
    font-size: 0.9rem;
    color: #666;
}

/* セクター別パフォーマンス */
.sector-performance {
    padding: 60px 0;
    background: #f8f9fa;
}

.sector-performance h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.sector-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.sector-item h4 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.sector-item .change {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sector-item.positive .change {
    color: #28a745;
}

.sector-item.negative .change {
    color: #dc3545;
}

/* 銘柄テーブル */
.top-stocks {
    padding: 60px 0;
    background: white;
}

.top-stocks h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

.stocks-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.table-header {
    background: #1e3c72;
    color: white;
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
    padding: 15px;
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.table-row:nth-child(even) {
    background: #f8f9fa;
}

.table-row .col {
    padding: 5px;
}

/* 市場分析 */
.market-analysis {
    padding: 60px 0;
    background: #f8f9fa;
}

.market-analysis h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

.analysis-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.analysis-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.analysis-item h4 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* 銘柄分析ページ */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.analysis-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #1e3c72;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stock-header h4 {
    color: #1e3c72;
    font-size: 1.2rem;
}

.stock-code {
    background: #1e3c72;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.stock-info {
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.analysis-content h5 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* 投資戦略ページ */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.strategy-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
}

.strategy-card h4 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* ニュースページ */
.news-item.featured {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #ffd700;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 5px;
}

.market-commentary {
    padding: 60px 0;
    background: #f8f9fa;
}

.market-commentary h3 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1e3c72;
}

.commentary-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.commentary-item h4 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.commentary-item p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 免責事項ページ */
.disclaimer-content {
    padding: 60px 0;
    background: white;
}

.disclaimer-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1e3c72;
}

.disclaimer-section h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.disclaimer-section p {
    line-height: 1.8;
    color: #555;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
}

.important-notice h3 {
    color: #856404;
    margin-bottom: 20px;
}

.important-notice p {
    color: #856404;
    line-height: 1.8;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content h2,
    .page-header h2 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .market-data,
    .news-grid,
    .summary-grid,
    .sector-grid,
    .analysis-grid,
    .strategy-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .disclaimer-section,
    .commentary-content {
        padding: 20px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.market-item,
.news-item {
    animation: fadeInUp 0.6s ease-out;
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示 */
a:focus,
button:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}
