html,
body {
    overflow-x: hidden;
}

.c-card {
    overflow: visible;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.service-card {
    padding: 40px;
    background: linear-gradient(145deg, #f8f9ff, #e6eeff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.zeh-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    padding: 80px 40px;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.zeh-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.zeh-content {
    position: relative;
    z-index: 2;
}

.zeh-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.zeh-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.achievement-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
}

.parallax-section {
    width: 100vw;
    overflow-x: hidden;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 400px;
    background: url('/assets/img/services/realestate/002.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;


}

@supports (-webkit-touch-callout: none) {
    .parallax-section {
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        background: url('/assets/img/services/realestate/002.webp');
        background-attachment: scroll !important;
        /* iOSでは固定しない */
        /* 明示的にカバーサイズと位置を再指定 */
        background-size: cover !important;
        background-position: center !important;
    }
}

.parallax-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}


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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .zeh-section {
        padding: 60px 20px;
        margin: 60px 0;
    }

    .zeh-title {
        font-size: 2rem;
    }

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

    .parallax-section {
        background-attachment: fixed;
        height: 300px;
    }

    .parallax-content h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        box-shadow: none;
    }

    .parallax-section {
        background-attachment: fixed;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .parallax-content {
        margin: 0 1rem;
        padding: 40px 0;
    }

    .parallax-content h2 {
        font-size: 1.25rem;
    }

    .parallax-content p {
        font-size: 0.75rem;
    }

    .section {
        padding: 30px 0;
    }
}