/* ========================================
   Order Flow Section - エアコン工事ご注文の流れ
   ======================================== */

.order-flow-section {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: hidden;
    margin: 60px 0;
}

.order-flow-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 背景 */
.order-flow-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.order-flow-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.order-flow-background.active {
    opacity: 1;
}

/* スライド */
.order-flow-slides {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.order-flow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.order-flow-slide.active {
    opacity: 1;
    visibility: visible;
}

.order-flow-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 60px 80px;
    margin: 0 auto;
}

/* テキストエリア */
.order-flow-text {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: left;
    padding-right: 60px;
}

.order-flow-step {
    display: inline-block;
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* STEP番号のハイライトアンダーライン */
.order-flow-step::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #E5D53D;
    transform: translateX(-100%);
    transition: transform 0s;
}

.order-flow-slide.active .order-flow-step::after {
    animation: stepUnderline 1.2s ease-out 0.3s forwards;
}

@keyframes stepUnderline {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

.order-flow-title {
    font-size: 60px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 30px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* 非アクティブなスライドではタイトルを非表示 */
.order-flow-slide:not(.active) .order-flow-title {
    opacity: 0;
    transform: translateY(30px);
}

.order-flow-slide.active .order-flow-title {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.order-flow-description {
    font-size: 20px;
    line-height: 1.8;
    color: #ffffff;
    margin: 0;
}

/* 非アクティブなスライドでは説明文を非表示 */
.order-flow-slide:not(.active) .order-flow-description {
    opacity: 0;
    transform: translateY(30px);
}

.order-flow-slide.active .order-flow-description {
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 画像エリア */
.order-flow-image-area {
    flex: 0 0 50%;
    max-width: 50%;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-flow-ellipse {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 非アクティブなスライドでは楕円を非表示 */
.order-flow-slide:not(.active) .order-flow-ellipse {
    opacity: 0;
}

.order-flow-slide.active .order-flow-ellipse {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.order-flow-illustration {
    position: relative;
    width: 450px;
    height: auto;
    z-index: 2;
}

/* 非アクティブなスライドではイラストを非表示 */
.order-flow-slide:not(.active) .order-flow-illustration {
    opacity: 0;
    transform: scale(0.8);
}

.order-flow-slide.active .order-flow-illustration {
    animation: zoomIn 0.8s ease-out 0.5s forwards;
}

.order-flow-money {
    position: absolute;
    width: 650px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* 非アクティブなスライドではマネー画像を非表示 */
.order-flow-slide:not(.active) .order-flow-money {
    opacity: 0;
}

.order-flow-slide.active .order-flow-money {
    animation: fadeIn 0.8s ease-out 0.7s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ナビゲーション矢印 */
.order-flow-arrows {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.order-flow-arrow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.order-flow-arrow:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.order-flow-arrow img {
    width: 24px;
    height: 24px;
}

/* ページネーション */
.order-flow-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.order-flow-bullet {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-flow-bullet:hover {
    background: rgba(255, 255, 255, 0.5);
}

.order-flow-bullet.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    border-color: #ffffff;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 1200px) {
    .order-flow-content {
        padding: 40px 60px;
    }
    
    .order-flow-step {
        font-size: 44px;
    }
    
    .order-flow-title {
        font-size: 50px;
    }
    
    .order-flow-description {
        font-size: 18px;
    }
    
    .order-flow-image-area {
        height: 500px;
    }
    
    .order-flow-ellipse {
        width: 500px;
        height: 500px;
    }
    
    .order-flow-illustration {
        width: 380px;
    }
    
    .order-flow-money {
        width: 550px;
    }
}

@media (max-width: 991px) {
    .order-flow-section {
        height: 800px;
    }
    
    .order-flow-content {
        flex-direction: column;
        padding: 40px;
        justify-content: center;
    }
    
    .order-flow-text {
        flex: none;
        max-width: 100%;
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .order-flow-image-area {
        flex: none;
        max-width: 100%;
        height: 400px;
    }
    
    .order-flow-step {
        font-size: 40px;
    }
    
    .order-flow-title {
        font-size: 44px;
    }
    
    .order-flow-description {
        font-size: 16px;
    }
    
    .order-flow-ellipse {
        width: 400px;
        height: 400px;
    }
    
    .order-flow-illustration {
        width: 320px;
    }
    
    .order-flow-money {
        width: 450px;
    }
    
    .order-flow-arrows {
        right: 30px;
    }
    
    .order-flow-arrow {
        width: 50px;
        height: 50px;
    }
    
    .order-flow-arrow img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 767px) {
    .order-flow-section {
        height: 700px;
    }
    
    .order-flow-content {
        padding: 30px 20px;
    }
    
    .order-flow-step {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .order-flow-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .order-flow-description {
        font-size: 15px;
    }
    
    .order-flow-image-area {
        height: 300px;
    }
    
    .order-flow-ellipse {
        width: 300px;
        height: 300px;
    }
    
    .order-flow-illustration {
        width: 240px;
    }
    
    .order-flow-money {
        width: 350px;
    }
    
    .order-flow-arrows {
        right: 20px;
    }
    
    .order-flow-arrow {
        width: 45px;
        height: 45px;
    }
    
    .order-flow-arrow img {
        width: 18px;
        height: 18px;
    }
    
    .order-flow-pagination {
        bottom: 30px;
        flex-wrap: wrap;
        max-width: 90%;
        justify-content: center;
    }
    
    .order-flow-bullet {
        padding: 10px 20px;
        font-size: 12px;
    }
}

