* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background: #FFFFFF;
    overflow-x: hidden;
}

/* Hero exact styling from original */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #024F83;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-catchcopy {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: #024F83;
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: rgba(2, 79, 131, 0.85);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Font families */
.hero-title,
.hero-catchcopy {
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Arial, sans-serif;
}

.hero-description {
    font-family: 'Roboto', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: #024F83;
    color: #FFFFFF;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(2, 79, 131, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(2, 79, 131, 0.4);
    background: rgba(2, 79, 131, 0.9);
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

.cta-secondary {
    background: transparent;
    color: #024F83;
    border: 2px solid #024F83;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(2, 79, 131, 0.2);
}

.cta-secondary span {
    position: relative;
    z-index: 1;
}

/* Button ripple effect */
.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(2, 79, 131, 0.8) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease-out;
    z-index: 0;
}

.cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-secondary::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 79, 131, 0.1) 100%);
    transition: height 0.4s ease-out;
    z-index: 0;
}

.cta-secondary:hover::before {
    height: 100%;
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem;
    padding-top: 8rem;
    overflow: visible;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-left: 4rem;
}

.hero-content > * {
    opacity: 1;
    transform: none;
}

/* Performance optimizations */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* ← widthとheightを追記してアスペクト比を保証 */
    height: 100%; /* ← widthとheightを追記してアスペクト比を保証 */
    z-index: 1;
    /* 重要: アスペクト比を維持 */
    object-fit: cover;
    image-rendering: pixelated; /* モバイルでの描画を改善 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#canvas,
.hero-section {
    will-change: transform;
}

/* Responsive design */
@media (max-width: 768px) {
    #canvas {
        /* モバイルでの描画品質を向上 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .hero-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .hero-section {
        padding: 1rem;
        padding-top: 6rem;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: stretch;
    }
}




@media (min-width: 1400px) {
    .hero-content {
        margin-left: 8rem;
    }
}

/* Simple fade animation - no transforms */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animate-fade-in-up {
    opacity: 1;
    animation: fade-in 0.4s ease-out forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in-up {
        opacity: 1 !important;
        animation: none !important;
    }
}