/**
 * サービスセクション スタイル
 * css/components/services.css
 */

/* ================================
   サービスセクション
================================ */
.services-section {
    background: var(--bg-white);
    overflow: hidden;
}

/* サービスグリッド */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* サービスアイテム */
.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    background: white;
}

.service-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* サービスリンク */
.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* サービスバナー */
.service-banner {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.service-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-banner img {
    transform: scale(1.1);
}

/* サービスオーバーレイ */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
    transition: var(--transition-base);
}

.service-item:hover .service-overlay {
    background: linear-gradient(
        to bottom,
        rgba(52, 152, 219, 0.7) 0%,
        rgba(44, 62, 80, 0.95) 100%
    );
}

/* サービス番号 */
.service-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 40px;
    font-weight: var(--font-weight-light);
    opacity: 0.3;
    transition: var(--transition-base);
}

.service-item:hover .service-number {
    opacity: 0.5;
    transform: scale(1.1);
}

/* サービスタイトル */
.service-title {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 8px;
    transition: var(--transition-base);
}

/* サービス説明 */
.service-desc {
    font-size: 13px;
    font-weight: var(--font-weight-light);
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* サービス価格 */
.service-price {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: #f1c40f;
    transition: var(--transition-base);
}

.service-item:hover .service-price {
    transform: translateX(5px);
}

/* ================================
   レスポンシブ対応
================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .service-banner {
        height: 200px;
    }
    
    .service-overlay {
        padding: 20px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .service-number {
        font-size: 32px;
    }
    
    .service-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-banner {
        height: 180px;
    }
    
    .service-overlay {
        padding: 16px;
    }
    
    .service-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .service-number {
        font-size: 28px;
        top: 12px;
        right: 12px;
    }
    
    .service-desc {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .service-price {
        font-size: 13px;
    }
}

/* ================================
   アニメーション
================================ */
/* 個別アニメーション遅延 */
.service-item:nth-child(1) { animation-delay: 0s; }
.service-item:nth-child(2) { animation-delay: 0.1s; }
.service-item:nth-child(3) { animation-delay: 0.2s; }
.service-item:nth-child(4) { animation-delay: 0.3s; }
.service-item:nth-child(5) { animation-delay: 0.4s; }
.service-item:nth-child(6) { animation-delay: 0.5s; }

/* ホバー時の波紋効果 */
.service-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 0;
}

.service-item:hover::before {
    width: 100%;
    height: 100%;
}

/* ================================
   特殊効果
================================ */
/* グラデーションアニメーション */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.service-item:hover .service-overlay {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}