/* ========================================
   Process Section (Sticky Flow)
   ======================================== */
.process-wrapper {
    position: relative;
    width: 100%;
    /* PCではスクロール領域を確保 */
    height: 400vh;
}

.process {
    /* PCでは画面固定 */
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    /* 背景色確保 */
    z-index: 10;
}

.process__bg {
    /* 背景画像用 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.process__container {
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    margin: 0 auto;
    /* 上下の余白調整 */
    padding-top: 60px;
}

/* Header */
.process__header {
    text-align: center;
    margin-bottom: 80px;
}

.process__label {
    display: block;
    font-size: 14px;
    color: #C9A962;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.process__title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.process__desc {
    font-size: 16px;
    color: #888;
    line-height: 1.8;
}

/* Timeline Container */
.process__timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 50px;
    /* マーカー上の余白 */
}

/* Progress Line (PC) - SVG Wave */
/* Progress Line (PC) - Straight Line */
.process__line-container {
    position: absolute;
    top: 50px;
    /* パディング分 */
    margin-top: 18px;
    /* マーカー中心(20px) - ライン高さ半分(2px) = 18px */
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 0;
}

.process__line-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.process__line-filled {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    /* JS controlled */
    height: 100%;
    background: linear-gradient(90deg, #C9A962 0%, #F0D085 100%);
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.5);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Step Item */
.process__step {
    position: relative;
    width: 18%;
    /* 5要素を均等配置 */
    z-index: 1;
    opacity: 0.3;
    /* 非アクティブ時は薄く */
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}

.process__step.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* Marker */
.process__step-marker {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
    /* 背景色と同じにして線を隠す */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.process__step.is-active .process__step-marker {
    border-color: #C9A962;
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
}

.process__step-num {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    transition: color 0.3s;
    font-weight: 600;
}

.process__step.is-active .process__step-num {
    color: #C9A962;
}

.process__step-dot {
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    transition: all 0.3s;
}

.process__step.is-active .process__step-dot {
    background: #C9A962;
    transform: scale(1.5);
    box-shadow: 0 0 10px #C9A962;
}

/* Body Content */
.process__step-body {
    text-align: center;
}

.process__step-main {
    margin-bottom: 24px;
}

.process__step-en {
    font-size: 20px;
    margin-bottom: 8px;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.process__step-ja {
    display: block;
    font-size: 13px;
    color: #C9A962;
    margin-bottom: 12px;
    font-weight: 500;
}

.process__step-desc {
    font-size: 13px;
    color: #BBB;
    line-height: 1.6;
    text-align: center;
}

/* Meta Info */
.process__step-meta {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
    text-align: left;
}

.process__meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.4;
}

.process__meta-item:last-child {
    margin-bottom: 0;
}

.process__meta-label {
    width: 40px;
    flex-shrink: 0;
    color: #666;
    font-weight: 500;
}

.process__meta-text {
    color: #EEE;
}

/* ========================================
   Mobile Styles
   ======================================== */
@media (max-width: 768px) {

    /* Wrapper - Reduce height for mobile, let content flow naturally */
    .process-wrapper {
        height: auto;
        min-height: 100vh;
    }

    /* Process - Remove sticky, allow normal flow */
    .process {
        position: relative;
        height: auto;
        min-height: auto;
        padding: 60px 0 80px;
        overflow: visible;
    }

    .process__container {
        padding-top: 0;
        padding: 0 16px;
    }

    /* Header - Compact for mobile */
    .process__header {
        margin-bottom: 40px;
    }

    .process__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .process__desc {
        font-size: 14px;
    }

    .process__desc .sp-only {
        display: block;
    }

    /* Timeline - Vertical layout */
    .process__timeline {
        flex-direction: column;
        padding-top: 0;
        padding-left: 50px;
        margin-left: 0;
        gap: 0;
    }

    /* Hide horizontal line container */
    .process__line-container {
        display: none;
    }

    /* Hide SVG wave */
    .process__wave {
        display: none;
    }

    /* Each Step - Display vertically */
    .process__step {
        width: 100%;
        display: flex;
        align-items: flex-start;
        margin-bottom: 32px;
        padding-left: 40px;
        position: relative;
        opacity: 1;
        transform: none;
    }

    .process__step.is-active {
        transform: none;
    }

    /* Vertical connecting line */
    .process__step::before {
        content: '';
        position: absolute;
        left: 19px;
        top: 40px;
        width: 2px;
        height: calc(100% + 32px);
        background: rgba(201, 169, 98, 0.3);
    }

    .process__step:last-child::before {
        display: none;
    }

    /* Marker positioning */
    .process__step-marker {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        width: 40px;
        height: 40px;
        z-index: 2;
        background: #000;
    }

    .process__step-num {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 12px;
        color: #C9A962;
    }

    .process__step-dot {
        display: none;
    }

    /* Body Content */
    .process__step-body {
        text-align: left;
        width: 100%;
        padding-left: 16px;
    }

    .process__step-main {
        margin-bottom: 12px;
    }

    .process__step-en {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .process__step-ja {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .process__step-desc {
        font-size: 12px;
        text-align: left;
        line-height: 1.6;
    }

    /* Meta Info */
    .process__meta-item {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .process__meta-label {
        width: 36px;
        font-size: 10px;
    }

    .process__meta-text {
        font-size: 10px;
    }

    .process__step-meta {
        margin-top: 8px;
        padding: 12px;
    }
}