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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #0a0a0a;
    /* GPU acceleration for smooth scrolling */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Optimized smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Optimized Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    /* Reduced blur for better performance */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* GPU acceleration */
    will-change: transform, background;
    transform: translate3d(0, 0, 0);
}

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

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Optimized shadow */
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
    will-change: transform;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    will-change: color, text-shadow;
}

.nav-link:hover {
    color: #667eea;
    /* Reduced shadow for performance */
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    /* Reduced shadow */
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
    will-change: width;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    will-change: transform, opacity;
}

/* Optimized Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    /* GPU acceleration */
    will-change: scroll-position;
    transform: translate3d(0, 0, 0);
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 1000px;
    padding: 0 20px;
}

.company-header {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* Optimized Catchphrase Container */
.catchphrase-container {
    margin: 4rem 0;
    position: relative;
}

/* Optimized "ひらめき" Typography */
.catchphrase-main {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem 0;
    overflow: visible;
}

.hirameki-text {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.15;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: elegantReveal 1.5s ease 0.8s forwards;
    /* GPU acceleration */
    will-change: transform, filter;
    transform: translate3d(0, 0, 0);
}

/* Optimized glow effect */
.hirameki-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 60%);
    border-radius: 50%;
    /* Reduced blur for better performance */
    filter: blur(20px);
    opacity: 0;
    animation: subtleGlow 3s ease-in-out 1.5s infinite;
    z-index: 1;
    will-change: opacity;
}

/* Optimized "を、次の景色へ。" 3D Effect */
.catchphrase-sub {
    perspective: 1000px;
    opacity: 0;
    animation: float3D 1.5s ease 1.2s forwards;
}

.tsugi-text {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    color: #fff;
    display: block;
    transform: rotateX(15deg) translateZ(50px);
    /* Optimized shadow */
    text-shadow:
        0 5px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(102, 126, 234, 0.15);
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    will-change: transform, text-shadow;
}

.tsugi-text:hover {
    transform: rotateX(0deg) translateZ(80px);
    text-shadow:
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(102, 126, 234, 0.3);
}

/* Hero Description and Buttons */
.hero-description {
    font-size: 1.2rem;
    margin: 3rem 0 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.8s forwards;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 1s ease 2.1s forwards;
}

/* Optimized Light Particles Background */
.light-trails {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Performance optimization */
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Optimized particle trails */
.trail {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatParticle 10s ease-in-out infinite;
    /* Simplified blur for better performance */
    filter: blur(0.5px);
    /* GPU acceleration */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
}

.trail-1 {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.5) 0%, transparent 70%);
}

.trail-2 {
    left: 70%;
    top: 10%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.4) 0%, transparent 70%);
    width: 4px;
    height: 4px;
}

.trail-3 {
    left: 40%;
    top: 60%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    width: 2px;
    height: 2px;
}

.trail-4 {
    left: 85%;
    top: 40%;
    animation-delay: 6s;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.5) 0%, transparent 70%);
    width: 3px;
    height: 3px;
}

.trail-5 {
    left: 20%;
    top: 80%;
    animation-delay: 8s;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
}

/* Optimized Button Styles */
.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 0 15px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    /* GPU acceleration */
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.4s ease;
    will-change: transform;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    /* Reduced shadow for better performance */
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) translate3d(0, 0, 0);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    /* Reduced blur for better performance */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px) translate3d(0, 0, 0);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.08);
}

/* Section Common Styles */
section:not(.hero) {
    padding: 100px 0;
    background: #fff;
    position: relative;
}

section:nth-child(even):not(.hero) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

/* About Section */
.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 50px;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    /* GPU acceleration - hover effects removed for performance */
    will-change: opacity, transform;
    transform: translate3d(0, 0, 0);
}

/* Hover animations removed for better performance */

.feature i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
}

.feature h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.feature p {
    color: #666;
    font-size: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    /* GPU acceleration */
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.service-icon i {
    font-size: 2.2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Company Info Section */
.company-content {
    max-width: 800px;
    margin: 0 auto;
}

.company-card {
    background: white;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    /* GPU acceleration */
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.company-info-grid {
    display: grid;
    gap: 40px;
}

.company-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.company-info-item:last-child {
    border-bottom: none;
}

.company-info-item:hover {
    transform: translateX(5px);
    background: rgba(102, 126, 234, 0.02);
    margin: 0 -20px;
    padding: 20px 20px;
    border-radius: 15px;
    border-bottom: 1px solid transparent;
}

.company-info-item:last-child:hover {
    border-bottom: 1px solid transparent;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.info-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-content {
    flex: 1;
}

.info-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

/* Contact Section */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 50px;
    color: #555;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: all 0.3s ease;
    /* GPU acceleration */
    will-change: transform, box-shadow;
    transform: translate3d(0, 0, 0);
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.contact-method i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 25px;
    min-width: 50px;
}

.contact-method h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
}

.contact-method p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

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

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-section a:hover {
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
/* Optimized animations with GPU acceleration */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes elegantReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, 20px, 0) scale(0.96);
        filter: blur(3px);
    }

    50% {
        opacity: 0.7;
        transform: translate3d(0, 8px, 0) scale(0.98);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes subtleGlow {

    0%,
    100% {
        opacity: 0;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }

    50% {
        opacity: 0.2;
        transform: translate3d(-50%, -50%, 0) scale(1.05);
    }
}

@keyframes float3D {
    from {
        opacity: 0;
        transform: rotateX(35deg) translate3d(0, 30px, -50px);
    }

    to {
        opacity: 1;
        transform: rotateX(15deg) translate3d(0, 0, 50px);
    }
}

/* Optimized particle animation */
@keyframes floatParticle {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate3d(15px, -25px, 0) scale(1.1);
        opacity: 0.7;
    }

    50% {
        transform: translate3d(-10px, -50px, 0) scale(0.9);
        opacity: 0.4;
    }

    75% {
        transform: translate3d(20px, -25px, 0) scale(1.05);
        opacity: 0.6;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        backdrop-filter: blur(15px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .hirameki-text {
        font-size: clamp(3rem, 15vw, 6rem);
        line-height: 1.2;
    }

    .catchphrase-main {
        padding: 1.5rem 0;
    }

    .tsugi-text {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .company-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .company-card {
        padding: 40px 30px;
    }

    .company-info-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 25px 0;
    }

    .company-info-item:hover {
        transform: none;
        margin: 0;
        padding: 25px 15px;
    }

    .info-icon {
        align-self: center;
        margin-top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .btn {
        display: block;
        margin: 15px auto;
        max-width: 250px;
    }
}

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

    .hirameki-text {
        line-height: 1.25;
    }

    .catchphrase-main {
        padding: 2rem 0;
    }

    .service-card,
    .company-card {
        padding: 30px 20px;
    }

    .company-info-item {
        padding: 20px 0;
    }

    .info-icon {
        width: 45px;
        height: 45px;
    }

    .info-icon i {
        font-size: 1.3rem;
    }

    .info-content h4 {
        font-size: 1.2rem;
    }

    .info-content p {
        font-size: 1rem;
    }

    .feature {
        padding: 30px 20px;
    }

    .contact-method {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-method i {
        margin-right: 0;
        margin-bottom: 15px;
    }
}