/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #000814;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Common Elements */
.section-title {
    font-size: clamp(2.5rem, 7vw, 3rem);
    color: #ffffff;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: linear-gradient(135deg, #00f5ff 0%, #00b4d8 100%);
    color: #001d3d;
    box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 245, 255, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #00f5ff 100%);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.cta-button.secondary:hover {
    transform: translateY(-5px) scale(1.05);
    background: #ffffff;
    color: #001d3d;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

/* Link Styles */
.news-link {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #caf0f8 100%);
    color: #001d3d;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.news-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #caf0f8 0%, #ffffff 100%);
}

.footer-link {
    color: #00b4d8;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #00f5ff;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
    transform: translateY(-2px);
}

/* Grid Systems */
.problem-grid,
.tech-grid,
.team-grid,
.news-grid {
    display: grid;
    gap: 40px;
    margin-top: 100px;
    position: relative;
    z-index: 2;
}

.problem-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.news-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.vision-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 100px;
}

.mechanism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.asc-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

/* Text Highlight */
.tech-highlight {
    color: #00f5ff;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.6);
}

/* Badge Styles */
.tech-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(0, 180, 216, 0.3) 100%);
    color: #00f5ff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

/* ヘッダースタイル */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 180, 216, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
}

.header-scrolled {
    background: rgba(0, 8, 20, 0.98);
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.2);
    padding: 0;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    min-height: 70px;
}

/* ロゴスタイル（左寄せ） */
.logo {
    flex-shrink: 0;
    min-width: 180px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1); /* 白色に変換 */
    transition: all 0.3s ease;
}

.logo a:hover .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 180, 216, 0.6));
}

.logo-subtitle {
    color: #00b4d8;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-left: -5px;
}

/* ナビゲーション（右寄せ） */
.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px; /* 間隔を狭く */
}

.nav-link {
    color: #caf0f8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00b4d8, #00f5ff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #00f5ff;
    background: rgba(0, 180, 216, 0.1);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.nav-link:hover::before {
    width: 80%;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .nav-list {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

@media (max-width: 1024px) {
    .nav-list {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 8, 20, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 180, 216, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 20px;
        margin-left: 0;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        border-radius: 12px;
        background: rgba(0, 180, 216, 0.05);
        border: 1px solid rgba(0, 180, 216, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(0, 180, 216, 0.15);
        border-color: rgba(0, 180, 216, 0.3);
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .nav {
        padding: 15px;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* メインコンテンツの上部余白調整 */
.hero {
    margin-top: 80px; /* ヘッダーの高さ分 */
}

@media (max-width: 900px) {
    .hero {
        margin-top: 70px;
    }
}