/* ============================================
   Process Page Specific Styles
   ============================================ */

/* Color Variables */
:root {
    --color-teal-process: #0BFFB7;
    --color-dark-process: #0F1214;
    --color-deep-navy: #0A0D12;
    --color-light-bg: #F6F7F8;
    --color-text-dark: #1A1D23;
    --color-text-gray: #5A6169;
}

/* Body Override */
body {
    background: var(--color-light-bg);
}

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

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

section {
    position: relative;
}

/* Content elements above particles */
section:not(.process-hero) * {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.process-hero {
    background: linear-gradient(135deg, var(--color-deep-navy) 0%, var(--color-dark-process) 100%);
    padding: 140px 0 100px;
    position: relative;
}

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

.process-hero .hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

.process-hero .hero-subtitle {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

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

/* Process Overview Section */
.process-overview {
    padding: 100px 0 80px;
    background: var(--color-dark-process);
}

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

.overview-step {
    display: block;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(11, 255, 183, 0.15);
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.overview-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-teal-process);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(11, 255, 183, 0.2);
}

.overview-step:active {
    transform: translateY(-3px);
}

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

.step-icon svg {
    transition: transform 0.3s ease;
}

.overview-step:hover .step-icon svg {
    transform: scale(1.1);
}

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

.step-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.05em;
}

/* Process Details Section */
.process-details {
    padding: 100px 0;
    background: var(--color-light-bg);
}

.process-details .container {
    max-width: 900px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(11, 255, 183, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    scroll-margin-top: 100px;
}

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

.detail-card:target {
    border-color: var(--color-teal-process);
    box-shadow: 0 8px 40px rgba(11, 255, 183, 0.3);
    animation: highlight-pulse 1.5s ease-out;
}

@keyframes highlight-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 40px rgba(11, 255, 183, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 50px rgba(11, 255, 183, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 40px rgba(11, 255, 183, 0.3);
    }
}

.detail-card:last-child {
    margin-bottom: 0;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #12ce96;
    opacity: 0.8;
    line-height: 1;
}

.detail-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 0.02em;
}

.detail-content {
    padding-left: 5rem;
}

.detail-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

.detail-line {
    margin-top: 2rem;
    margin-left: 5rem;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-teal-process), transparent);
}

/* CTA Section */
.process-cta {
    padding: 100px 0;
    background: var(--color-dark-process);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

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

/* Footer Override */
.footer {
    background: var(--color-dark-process);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

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

/* SP版の間隔設定 */
@media (max-width: 768px) {
    .process-hero {
        padding: 120px 0 80px;
    }
    
    .process-hero .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .process-hero .hero-title,
    .process-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;
    }
    
    .process-hero .hero-line,
    .process-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;
    }
    
    .process-hero .hero-subtitle,
    .process-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;
    }

    .process-overview {
        padding: 80px 0 60px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .overview-step {
        padding: 2rem 1.25rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .process-details {
        padding: 80px 0;
    }

    .detail-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-number {
        font-size: 2.5rem;
    }

    .detail-title {
        font-size: 1.4rem;
    }

    .detail-content {
        padding-left: 0;
        margin-top: 1rem;
    }

    .detail-text {
        font-size: 0.95rem;
    }

    .detail-line {
        margin-left: 0;
        margin-top: 1.5rem;
    }

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

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

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

@media (max-width: 480px) {
    .process-hero {
        padding: 100px 0 60px;
    }

    .process-hero .hero-title {
        font-size: 1.75rem;
    }

    .process-hero .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .process-overview {
        padding: 60px 0 50px;
    }

    .overview-step {
        padding: 1.75rem 1rem;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .step-icon svg {
        width: 35px;
        height: 35px;
    }

    .process-details {
        padding: 60px 0;
    }

    .detail-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .detail-number {
        font-size: 2rem;
    }

    .detail-title {
        font-size: 1.2rem;
    }

    .detail-text {
        font-size: 0.9rem;
    }

    .process-cta {
        padding: 60px 0;
    }

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

    .cta-text {
        font-size: 0.95rem;
    }
}

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

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

/* Stagger animation delay */
[data-delay="0"] {
    transition-delay: 0s;
}

[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

[data-delay="600"] {
    transition-delay: 0.6s;
}

[data-delay="700"] {
    transition-delay: 0.7s;
}
