/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    --secondary-gradient: linear-gradient(135deg, #888888 0%, #444444 100%);
    --dark-bg: #000000;
    --darker-bg: #000000;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000000;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#globe-container canvas {
    display: block;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.subtitle {
    font-weight: 300;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #000000;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; top: 8px; }
    50% { opacity: 1; }
    100% { opacity: 0; top: 20px; }
}

/* Vision Section */
.vision {
    padding: 120px 0;
    text-align: center;
    background: var(--darker-bg);
}

.vision-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 60px;
}

/* Featured Products Sections */
.featured-product {
    padding: 120px 0;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.featured-product:nth-child(even) {
    background: var(--darker-bg);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-reverse .featured-content {
    direction: rtl;
}

.featured-reverse .featured-text,
.featured-reverse .featured-visual {
    direction: ltr;
}

.featured-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.featured-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.featured-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.125rem;
}

.featured-features {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.featured-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-text-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-text-link:hover {
    color: #8b9ff0;
}

.featured-visual {
    position: relative;
}

.visual-placeholder {
    width: 100%;
    height: 500px;
    background: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-icon {
    font-size: 120px;
    opacity: 0.5;
    z-index: 2;
    position: relative;
}

/* データビジュアライゼーション共通スタイル */
.data-viz {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Canvas共通スタイル */
.wave-canvas,
.dots-canvas,
.grid-3d-canvas {
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 400px;
}

/* グリッドオーバーレイ */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 20px, rgba(255,255,255,0.03) 21px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, transparent 1px, transparent 20px, rgba(255,255,255,0.03) 21px);
    pointer-events: none;
}

/* ASCII オーバーレイ */
.ascii-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
    pointer-events: none;
}

.ascii-overlay::before {
    content: "[ DATA ]";
}

/* ドットマトリックス */
.dot-matrix {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 削除: 古いスタイルは不要 */

.visual-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

/* Other Products Section */
.other-products {
    padding: 120px 0;
    background: var(--dark-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    margin-bottom: 20px;
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #8b9ff0;
}

/* Metrics Section */
.metrics {
    padding: 120px 0;
    background: var(--darker-bg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.metric-item {
    animation: fadeIn 1s ease-out;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Team Section */
/* Team Section */
.team {
    padding: 120px 0;
    background: var(--dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.team-member {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.member-photo:hover img {
    filter: grayscale(0%);
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.member-name {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    padding: 0;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    display: block;
}

.member-role {
    color: var(--accent);
    font-size: 0.9rem;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0;
    height: 22px;
    line-height: 22px;
    display: block;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
    margin: 0;
    padding: 0;
    display: block;
}

/* News Section */
.news {
    padding: 120px 0;
    background: var(--darker-bg);
}

.news-grid {
    display: grid;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.news-date {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.25rem;
    margin: 10px 0 15px;
    color: var(--text-primary);
}

.news-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--accent);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--dark-bg);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 20px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    /* Sections spacing */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Products Section */
    .products {
        padding: 60px 0;
    }
    
    /* Team Section */
    .team {
        padding: 60px 0;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    /* Container padding */
    .container {
        padding: 0 20px;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr !important;
    }
    
    .featured-reverse .featured-content {
        direction: ltr !important;
    }
    
    /* モバイルでは画像を先に表示 */
    .featured-visual {
        order: -1;
    }
    
    .featured-title {
        font-size: 2rem;
    }
    
    .featured-subtitle {
        font-size: 1.25rem;
    }
    
    .visual-placeholder {
        height: 300px;
    }
    
    .visual-icon {
        font-size: 80px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .team-member {
        padding: 20px 15px;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
        margin: 0 auto 15px;
    }
    
    .member-name {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .member-role {
        font-size: 0.75rem;
        margin-bottom: 10px;
        height: 18px;
        line-height: 18px;
    }
    
    .member-bio {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    /* Footer - コンパクト化 */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .footer-tagline {
        display: none; /* タグラインを非表示 */
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-column h4 {
        display: none; /* カテゴリ名を非表示 */
    }
    
    .footer-column a {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }
    
    .footer-bottom {
        flex-direction: column;
        padding-top: 15px;
        text-align: center;
        font-size: 0.75rem;
        gap: 20px;
        text-align: center;
    }
}