/* ================================================
   Services Page Styles
   ================================================ */

:root {
    --color-teal-services: #0BFFB7;
    --color-dark-services: #0F1214;
    --color-deep-services: #111418;
    --color-light-bg: #F6F7F8;
}

/* ================================================
   Body & General
   ================================================ */

body {
    background: linear-gradient(135deg, rgba(10, 13, 18, 1) 0%, rgba(15, 17, 20, 1) 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ================================================
   Particles Canvas
   ================================================ */

.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

/* Z-index Management */
.header {
    position: relative;
    z-index: 1000;
}

section {
    position: relative;
}

.container {
    position: relative;
    z-index: auto;
}

.footer {
    background: var(--color-dark-services) !important;
    z-index: auto;
}

/* ================================================
   Hero Section
   ================================================ */

.services-hero {
    padding: 140px 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: auto;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: block !important;
    grid-template-columns: none !important;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-teal-services), transparent);
    margin: 0 auto;
    box-shadow: 0 0 20px var(--color-teal-services);
}

/* ================================================
   Services Overview Section
   ================================================ */

.services-overview {
    padding: 100px 0;
    background: var(--color-light-bg);
    z-index: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Card */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(11, 255, 183, 0.15);
    border-color: rgba(11, 255, 183, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal-services);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-dark-services);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(15, 18, 20, 0.7);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-list li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.65);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-teal-services);
    font-weight: 700;
}

/* ================================================
   Common Section Styles
   ================================================ */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark-services);
    margin-bottom: 1.5rem;
}

.services-flow .section-title,
.services-pricing .section-title,
.services-faq .section-title {
    color: var(--color-dark-services);
}

.section-line {
    width: 80px;
    height: 1px;
    background: var(--color-teal-services);
    margin: 0 auto;
}

/* ================================================
   Flow Section
   ================================================ */

.services-flow {
    padding: 100px 0;
    background: var(--color-light-bg);
    z-index: auto;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.flow-step {
    text-align: center;
    padding: 2.5rem 2rem;
}

.step-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #12ce96;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark-services);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(15, 18, 20, 0.7);
}

/* ================================================
   Pricing Section
   ================================================ */

.services-pricing {
    padding: 100px 0;
    background: var(--color-light-bg);
    z-index: auto;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(11, 255, 183, 0.3);
    background: transparent;
    color: rgba(15, 18, 20, 0.6);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #12ce96;
    color: #FFFFFF;
    border-color: #12ce96;
    box-shadow: 0 4px 15px rgba(18, 206, 150, 0.3);
}

.toggle-btn:hover:not(.active) {
    border-color: var(--color-teal-services);
    color: var(--color-teal-services);
}

.pricing-content {
    display: none;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-content.active {
    display: block;
}

.pricing-card {
    padding: 3rem 2.5rem;
}

.pricing-list {
    margin-bottom: 2rem;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #0BFFB7;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-dark-services);
}

.pricing-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(15, 18, 20, 0.85);
}

.pricing-note {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(11, 255, 183, 0.2);
}

.pricing-note p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(15, 18, 20, 0.6);
    margin-bottom: 0.5rem;
}

.pricing-note p:last-child {
    margin-bottom: 0;
}

/* ================================================
   FAQ Section
   ================================================ */

.services-faq {
    padding: 100px 0;
    background: var(--color-light-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark-services);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--color-teal-services);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-teal-services);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.7);
    margin: 0;
}

/* ================================================
   CTA Section
   ================================================ */

.services-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-deep-services) 0%, var(--color-dark-services) 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* PC版の間隔設定 */
@media (min-width: 769px) {
    .services-hero .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .services-hero .hero-line {
        margin-bottom: 2rem;
    }
    
    .services-hero .hero-subtitle {
        margin-bottom: 3rem;
    }
}

/* SP版の間隔設定 */
@media (max-width: 768px) {
    .services-hero .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .services-hero .hero-title,
    .services-hero h1 {
        order: 1 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        font-size: 2.5rem !important;
    }
    
    .services-hero .hero-line,
    .services-hero div.hero-line {
        order: 2 !important;
        margin-top: 1rem !important;
        margin-right: auto !important;
        margin-bottom: 1rem !important;
        margin-left: auto !important;
        padding: 0 !important;
    }
    
    .services-hero .hero-subtitle,
    .services-hero p {
        order: 3 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        font-size: 1rem !important;
    }

    .services-hero {
        padding: 120px 0 80px;
    }

    .services-overview,
    .services-flow,
    .services-pricing,
    .services-faq {
        padding: 60px 0;
    }

    .services-grid,
    .flow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card,
    .flow-step,
    .pricing-card,
    .faq-item {
        padding: 2rem 1.5rem;
    }

    .pricing-toggle {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-btn {
        width: 100%;
    }

    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .services-cta {
        padding: 80px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .service-card,
    .flow-step,
    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1.25rem 1.5rem;
    }
}

/* ================================================
   Animation Utilities
   ================================================ */

[data-animate="fade-up"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}