/* Service Page Styles */


@keyframes gradientRotateDark {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Service Page Container - 追加パディング付き */
.service-container {
    padding: 40px 20px;
}

/* Service Page Hero Section - 共通スタイルを継承 */
/* paddingは共通クラスで管理 */


/* White Background Section */
.white-background-section {
    background-color: #FFFFFF;
    padding: 0;
    position: relative;
    z-index: 0;
    margin-top: 0; /* AI Solutionセクションと重なるように */
}

/* Service Hero Section */
.service-hero-section {
    background: linear-gradient(45deg, 
        rgba(26, 42, 108, 1) 0%, 
        rgba(176, 190, 197, 1) 25%, 
        rgba(26, 42, 108, 1) 50%, 
        rgba(176, 190, 197, 1) 75%, 
        rgba(26, 42, 108, 1) 100%);
    background-size: 400% 400%;
    animation: gradientRotate 30s ease-in-out infinite;
    padding: 70px 0 200px 0; /* 下部の余白を増やして重なりを表現 */
    position: relative;
    z-index: 2;
}

.service-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 62.97px;
    line-height: 1.27;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    text-align: left;
}

.service-hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0 0 60px 0;
    text-align: left;
}

/* AI Solution Section */
.ai-solution-section {
    background: linear-gradient(45deg, 
        rgba(10, 35, 66, 1) 0%, 
        rgba(44, 83, 100, 1) 25%, 
        rgba(10, 35, 66, 1) 50%, 
        rgba(44, 83, 100, 1) 75%, 
        rgba(10, 35, 66, 1) 100%);
    background-size: 400% 400%;
    animation: gradientRotateDark 35s ease-in-out infinite;
    padding: 70px 0 200px 0; /* 下部の余白を増やして重なりを表現 */
    position: relative;
    z-index: 1;
    /* margin-top: -100px; */ /* 上部セクションと重なるように */
}

.ai-solution-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 64.69px;
    line-height: 1.24;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    text-align: left;
}

.ai-solution-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    margin: 0 0 60px 0;
    text-align: left;
}

/* SES Services Grid */
.ses-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 0;
    position: relative;
    z-index: 3;
}

/* 5つのカードの配置調整 */
.ses-services-grid .service-card:nth-child(4) {
    grid-column: 1;
}

.ses-services-grid .service-card:nth-child(5) {
    grid-column: 2;
}

/* AI Services Grid */
.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 0;
    position: relative;
    z-index: 3;
}

/* Service Card/Item */
.service-card,
.service-item {
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 198px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.19;
    color: #151515;
    margin: 0 0 15px 0;
}

.service-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
    color: #818181;
    margin: 0;
}

.service-link {
    padding: 0 20px 20px 20px;
    display: flex;
    justify-content: flex-end;
}

.view-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #818181;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.66;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.view-more-btn:hover {
    color: #00AF98;
}

.view-more-btn svg {
    transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ses-services-grid,
    .ai-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* レスポンシブ時の5つ目のカード配置調整 */
    .ses-services-grid .service-card:nth-child(4) {
        grid-column: auto;
    }
    
    .ses-services-grid .service-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    
    
    .service-hero-section {
        padding: 80px 0 150px 0;
    }
    
    .ai-solution-section {
        padding: 80px 0 150px 0;
        /* margin-top: -75px; */
    }
    
    .white-background-section {
        margin-top: -75px;
    }
    
    .service-hero-title {
        font-size: 48px;
    }
    
    .ai-solution-title {
        font-size: 48px;
    }
    
    .ses-services-grid,
    .ai-services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-hero-title,
    .ai-solution-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    
    
    .service-hero-section {
        padding: 30px 0 120px 0;
    }
    
    .ai-solution-section {
        padding: 60px 0 120px 0;
        /* margin-top: -60px; */
    }
    
    .white-background-section {
        margin-top: -60px;
    }
    
    .service-hero-title,
    .ai-solution-title {
        font-size: 28px;
    }
    
    .service-content {
        padding: 16px;
    }
    
    .service-link {
        padding: 0 16px 16px 16px;
    }
}