/* エッジコンピューティング業界サイト - カスタムスタイル */

/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'BIZ UDPGothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after {
    width: 80%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
    gap: 4px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* メインコンテンツ */
.main-content {
    margin-top: 70px;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9)), url('images/hero-main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    color: #cbd5e1;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* セクション共通スタイル */
.overview,
.news,
.market-analysis,
.applications,
.technology-trends {
    padding: 80px 0;
    background: rgba(15, 23, 42, 0.95);
    color: white;
}

.overview:nth-child(odd),
.news:nth-child(odd),
.market-analysis:nth-child(odd),
.applications:nth-child(odd),
.technology-trends:nth-child(odd) {
    background: rgba(30, 41, 59, 0.95);
}

section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 50px;
    background: linear-gradient(45deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 概要セクション */
.overview p {
    text-align: center;
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 50px;
    line-height: 1.8;
}

.key-technologies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-card {
    background: rgba(51, 65, 85, 0.5);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #475569;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(51, 65, 85, 0.7);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.tech-card h3 {
    color: #3b82f6;
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* ニュースセクション */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    background: rgba(51, 65, 85, 0.5);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    background: rgba(51, 65, 85, 0.7);
    border-color: #06b6d4;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.2);
}

.news-date {
    color: #06b6d4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-item h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-item p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 市場分析セクション */
.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: rgba(51, 65, 85, 0.5);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(51, 65, 85, 0.7);
    border-color: #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.stat-card h3 {
    color: #10b981;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* アプリケーションセクション */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.app-card {
    background: rgba(51, 65, 85, 0.5);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    background: rgba(51, 65, 85, 0.7);
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.app-card h3 {
    color: #f59e0b;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.app-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* 技術トレンドセクション */
.trend-timeline {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.trend-item {
    background: rgba(51, 65, 85, 0.5);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #8b5cf6;
    position: relative;
    transition: all 0.3s ease;
}

.trend-item:hover {
    transform: translateX(10px);
    background: rgba(51, 65, 85, 0.7);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.trend-year {
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.trend-item h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.trend-item p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* フッター */
.footer {
    background: rgba(15, 23, 42, 0.98);
    border-top: 1px solid #334155;
    padding: 50px 0 30px;
    color: #cbd5e1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #3b82f6;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-section:last-child {
    text-align: center;
    grid-column: 1 / -1;
    border-top: 1px solid #334155;
    padding-top: 30px;
    margin-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav.active {
        left: 0;
    }

    .nav a {
        padding: 15px 30px;
        border-bottom: 1px solid #334155;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        background-attachment: scroll;
        min-height: 70vh;
    }

    .key-technologies,
    .news-grid,
    .market-stats,
    .application-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section:last-child {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .tech-card,
    .news-item,
    .stat-card,
    .app-card,
    .trend-item {
        padding: 20px;
    }

    section {
        padding: 60px 0;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-card,
.news-item,
.stat-card,
.app-card,
.trend-item {
    animation: fadeInUp 0.6s ease-out;
}

/* スクロール効果 */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}