/* =========================================================
   Services Page Styles - AdQuecto Ultimate Website v5.0
   サービスページ専用スタイル
   ========================================================= */

/* ----------------------------------------
   Page Hero - Services
   ---------------------------------------- */
.services-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 1.25rem 4rem;
    background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-width);
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.services-hero-title {
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.services-hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* ----------------------------------------
   Service Overview Section
   ---------------------------------------- */
.services-overview {
    padding: var(--section-padding-mobile);
    background: var(--color-bg-white);
}

.overview-intro {
    max-width: var(--content-width-narrow);
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
}

.overview-grid {
    display: grid;
    gap: 2rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

.overview-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-gold-light));
}

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

.overview-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.overview-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.overview-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
}

.overview-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-deep);
    margin-bottom: 0.75rem;
}

.overview-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.overview-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.overview-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

.overview-feature svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent-gold);
}

/* ----------------------------------------
   Service Detail Sections
   ---------------------------------------- */
.service-detail {
    padding: var(--section-padding-mobile);
    scroll-margin-top: 80px;
}

.service-detail:nth-child(odd) {
    background: var(--color-bg-secondary);
}

.service-detail:nth-child(even) {
    background: var(--color-bg-white);
}

.service-detail-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.service-detail-header {
    margin-bottom: 2.5rem;
}

.service-detail-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-en);
    margin-bottom: 0.75rem;
}

.service-detail-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--color-primary-deep);
    margin-bottom: 1rem;
}

.service-detail-lead {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
}

.service-detail-grid {
    display: grid;
    gap: 1.5rem;
}

.detail-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.detail-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-primary-deep);
    margin-bottom: 0.75rem;
}

.detail-card-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent-gold);
}

.detail-card-content {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.detail-card-list {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.detail-card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.detail-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--color-accent-gold);
    border-radius: 50%;
}

/* ----------------------------------------
   Service Flow Section
   ---------------------------------------- */
.service-flow {
    padding: var(--section-padding-mobile);
    background: var(--color-bg-secondary);
}

.flow-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.flow-step {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.flow-content {
    flex: 1;
}

.flow-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-primary-deep);
    margin-bottom: 0.375rem;
}

.flow-desc {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------
   Service CTA Section
   ---------------------------------------- */
.services-cta {
    padding: var(--section-padding-mobile);
    background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(201, 162, 39, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.services-cta-content {
    position: relative;
    z-index: 1;
    max-width: var(--content-width-narrow);
    margin: 0 auto;
    text-align: center;
}

.services-cta-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.services-cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ----------------------------------------
   Tablet Styles (768px+)
   ---------------------------------------- */
@media (min-width: 768px) {
    .services-hero {
        min-height: 45vh;
        padding: 10rem 2rem 5rem;
    }
    
    .services-overview {
        padding: var(--section-padding-tablet);
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-detail {
        padding: var(--section-padding-tablet);
    }
    
    .service-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-flow {
        padding: var(--section-padding-tablet);
    }
    
    .flow-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .flow-item {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .services-cta {
        padding: var(--section-padding-tablet);
    }
}

/* ----------------------------------------
   Desktop Styles (1024px+)
   ---------------------------------------- */
@media (min-width: 1024px) {
    .services-hero {
        min-height: 50vh;
        padding: 12rem 2rem 6rem;
    }
    
    .services-overview {
        padding: var(--section-padding-desktop);
    }
    
    .overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .overview-card {
        padding: 2.5rem;
    }
    
    .service-detail {
        padding: var(--section-padding-desktop);
    }
    
    .service-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-flow {
        padding: var(--section-padding-desktop);
    }
    
    .flow-item {
        flex: 1;
    }
    
    .services-cta {
        padding: var(--section-padding-desktop);
    }
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */
.services-hero-title,
.services-hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.services-hero-subtitle {
    animation-delay: 0.2s;
}

.overview-card,
.detail-card,
.flow-item {
    opacity: 0;
    transform: translateY(20px);
}

.overview-card.animate-in,
.detail-card.animate-in,
.flow-item.animate-in {
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}
