/* ===================================
   B19 Services Section - 新規作成
   =================================== */

/* メインセクション */
.b19-services-section {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
    padding: 80px 0;
    color: #fff;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ラッパー */
.b19-services-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 6;
}

/* ヘッダー */
.b19-services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.b19-services-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #4ecdc4;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.b19-services-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* 説明文 */
.b19-services-description {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.b19-services-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.b19-services-description strong {
    color: #4ecdc4;
    font-weight: 600;
}

/* サービスグリッド */
.b19-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* サービスアイテム */
.b19-service-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 350px;
    display: flex !important;
    flex-direction: column;
    z-index: 7;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: hidden;
}

/* シャッターエフェクト */
.b19-service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4ecdc4;
    transform: translateY(0);
    transition: transform 0.8s ease;
    z-index: 1;
}

.b19-service-item.shutter-open::after {
    transform: translateY(0);
}

.b19-service-item.shutter-close::after {
    transform: translateY(-100%);
}

/* 背景エフェクト */
.b19-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

/* サービスアイコン */
.b19-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* アプリ開発アイテムの特別スタイル */
.b19-service-item:nth-child(5) .b19-service-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    font-size: 2.5rem;
}

.b19-service-item:nth-child(5) .b19-service-link {
    color: #667eea;
}

.b19-service-item:nth-child(5) .b19-service-link:hover {
    color: #fff;
}

/* サービスタイトル */
.b19-service-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* サービス説明 */
.b19-service-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* サービスリンク */
.b19-service-link {
    display: inline-block;
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.b19-service-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* ホバーエフェクト */
.b19-service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.b19-service-item:hover .b19-service-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.4);
}

/* アプリ開発アイテムの特別ホバーエフェクト */
.b19-service-item:nth-child(5):hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.b19-service-item:nth-child(5):hover .b19-service-icon {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .b19-services-section {
        padding: 60px 0;
    }
    
    .b19-services-wrapper {
        padding: 0 1rem;
    }
    
    .b19-services-header {
        margin-bottom: 3rem;
    }
    
    .b19-services-title {
        font-size: 2rem;
    }
    
    .b19-services-subtitle {
        font-size: 1rem;
    }
    
    .b19-services-description {
        margin-bottom: 3rem;
    }
    
    .b19-services-description p {
        font-size: 1rem;
    }
    
    .b19-services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }
    
    .b19-service-item {
        padding: 2.5rem 1.5rem;
        min-height: 320px;
    }
    
    .b19-service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .b19-service-item h3 {
        font-size: 1.2rem;
    }
    
    .b19-service-item p {
        font-size: 0.95rem;
    }
    
    /* モバイルでのアプリ開発アイテム調整 */
    .b19-service-item:nth-child(5) .b19-service-icon {
        font-size: 2rem;
    }
}

/* タブレット対応 */
@media (min-width: 769px) and (max-width: 1024px) {
    .b19-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .b19-service-item {
        padding: 2.5rem 2rem;
    }
}
