/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #3366ff;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --text-light: #999999;
    --background-white: #ffffff;
    --background-light: #fafafa;
    --border-color: #e5e5e5;
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 8px 60px rgba(0, 0, 0, 0.15);
    
    /* タイポグラフィ */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    /* スペーシング */
    --section-padding: 120px;
    --container-padding: 40px;
    
    /* アニメーション */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
    --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ローディング画面 */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* カスタムカーソル */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-medium);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
    z-index: 1001;
}

.nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-medium);
    border-radius: 1px;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particle-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s var(--cubic-bezier) forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeInUp 1s var(--cubic-bezier) 0.6s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s var(--cubic-bezier) 0.8s forwards;
}

.cta-button {
    position: relative;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.cta-button.primary {
    background: var(--accent-color);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.button-hover {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-medium);
}

.cta-button:hover .button-hover {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 48vw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 1s var(--cubic-bezier) 1s forwards;
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--text-light);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollAnimation {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* セクション共通スタイル */
.section-intro {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-label.light {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.section-title.light {
    color: white;
}

/* ビジョンセクション */
.vision {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.vision-item {
    display: flex;
    gap: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.vision-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.vision-number {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 40px;
}

.vision-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.vision-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* イノベーションセクション */
.innovation {
    padding: var(--section-padding) 0;
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.innovation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.05;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 10%;
    left: 80%;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    transform: rotate(45deg);
    bottom: 20%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 20px;
    top: 60%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.innovation-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.innovation-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 60px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* テクノロジー軌道 */
.tech-orbit {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transform-origin: 0 0;
    animation: orbit 20s linear infinite;
    scale: 1;
}

.orbit-item {
    --orbit-radius: 120px;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                scale 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ホバー時の拡散エフェクト */
.tech-orbit:hover .orbit-item {
    --orbit-radius: 160px;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 25px rgba(51, 102, 255, 0.4);
    scale: 1.1;
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(120px) rotate(calc(-1 * var(--angle))); }
    to { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateX(120px) rotate(calc(-1 * (var(--angle) + 360deg))); }
}

/* ソリューションセクション */
.solutions {
    padding: var(--section-padding) 0;
    background: var(--background-white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.solution-card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(40px);
}

.solution-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.card-header {
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.card-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.learn-more {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.learn-more:hover {
    color: var(--text-primary);
}

/* コンタクトセクション */
.contact {
    padding: var(--section-padding) 0;
    background: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form {
    background: var(--background-white);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.1);
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* フッター */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

@media (min-width: 769px) {
    .footer-logo-container {
        justify-content: flex-start;
    }
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --container-padding: 20px;
    }

    .navbar {
        height: 70px;
        padding: 0 20px;
    }

    .brand-logo {
        height: 32px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 60px 0;
        gap: 40px;
        transform: translateX(-100%);
        transition: transform var(--transition-medium);
        z-index: 1000;
        border-right: 1px solid var(--border-color);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.2rem;
        font-weight: 500;
        color: var(--text-primary);
        padding: 15px 30px;
        border-radius: 12px;
        transition: all var(--transition-fast);
        min-width: 200px;
        text-align: center;
    }

    .nav-item:hover {
        background: var(--accent-color);
        color: white;
        transform: scale(1.05);
    }

    .nav-item::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .innovation-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 0 15px;
        height: 65px;
    }

    .brand-logo {
        height: 28px;
    }

    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 40px 0;
        gap: 30px;
    }

    .nav-item {
        font-size: 1.1rem;
        padding: 12px 25px;
        min-width: 180px;
    }

    .hero {
        padding: 0 15px;
        min-height: calc(100vh - 65px);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .cta-button {
        max-width: 250px;
        padding: 16px 28px;
        font-size: 1rem;
        min-height: 52px;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
    }

    .vision-item {
        padding: 25px 15px;
    }

    .solution-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 16px 18px;
        min-height: 52px;
    }

    .submit-button {
        padding: 16px;
        min-height: 52px;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }

    .scroll-line {
        height: 25px;
    }
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}