/* =============================================================================
   ⚙️ WORKFLOW COMPONENTS - ワークフロー専用コンポーネント
   ============================================================================= */

/* 🔧🔧🔧 【ワークフローレイアウト】業務フロー用特殊レイアウト 🔧🔧🔧 */

/* ワークフロータイトル */
.workflow-layout .service-detail-title {
    display: block !important;
    flex: 1;
    align-self: stretch;
    width: 100% !important;
    min-width: 100%;
    box-sizing: border-box;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2332;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ✅ 修正完了: responsive.cssのtransform:none阻害を削除済み */
.workflow-layout .service-detail-title.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* 表示状態のワークフロータイトル - より具体的なセレクタで確実に適用 */
.service-detail-section.service-workflow .workflow-layout .service-detail-title.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ワークフローメッセージボックス */
.workflow-layout .service-detail-message {
    /* 🔧🔧🔧 【左側メッセージボックス幅制限解除】画像拡大のために左側制約も解除 🔧🔧🔧 */
    max-width: none !important;  /* 強制的に幅制限を解除 */
    max-height: none;
    overflow-y: visible;
    margin: 0;
    width: 100% !important;  /* 強制的に親要素幅いっぱい */
    padding: 35px 40px !important;  /* 🔧 タブレット用：さらにパディングを狭く */
}

/* 🔧🔧🔧 【ワークフローステップ】段階別表示 🔧🔧🔧 */
.workflow-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.workflow-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.workflow-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.workflow-step-content {
    flex: 1;
}

.workflow-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.workflow-step-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* 🔧🔧🔧 【ワークフロー矢印】ステップ連結 🔧🔧🔧 */
.workflow-arrow {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    opacity: 0;
    animation: fadeInDown 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

.workflow-arrow-icon {
    font-size: 2rem;
    color: #4ecdc4;
    transform: rotate(90deg);
}

/* 🔧🔧🔧 【ワークフロープロセス】プロセス表示 🔧🔧🔧 */
.workflow-process {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4ecdc4;
    position: relative;
    overflow: hidden;
}

.workflow-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4ecdc4, #44a08d);
}

.workflow-process-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow-process-icon {
    width: 24px;
    height: 24px;
    background: #4ecdc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.workflow-process-content {
    color: #666;
    line-height: 1.6;
}

/* 🔧🔧🔧 【ワークフロータイムライン】時系列表示 🔧🔧🔧 */
.workflow-timeline {
    position: relative;
    padding-left: 2rem;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #4ecdc4, #44a08d);
}

.workflow-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.workflow-timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #4ecdc4;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #4ecdc4;
}

.workflow-timeline-time {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.25rem;
}

.workflow-timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.workflow-timeline-description {
    color: #666;
    line-height: 1.5;
}

/* 🔧🔧🔧 【アニメーション】ワークフロー用アニメーション 🔧🔧🔧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
} 

/* =============================================================================
   📊 WORKFLOW DIAGRAM COMPONENTS - ワークフロー図専用コンポーネント
   ============================================================================= */

/* 🔧🔧🔧 【ワークフロー図コンテナ】画像コンテナ 🔧🔧🔧 */
.workflow-diagram-container {
    position: relative;
    width: 100%;
    /* 🔧🔧🔧 【画像サイズ調整】この値を変更すると画像の最大幅が変わります 🔧🔧🔧 */
    max-width: none;  /* 制限なし → 右側エリアいっぱいに表示 */
    /* 🔧 サイズ調整例:
       max-width: 1000px;  // とても大きめ
       max-width: 1100px;  // 最大推奨
       max-width: 1200px;  // 超大サイズ
       max-width: none;    // 制限なし（現在） → 右側エリアいっぱい
    🔧 */
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* 🔧🔧 【カクつき対策】transitionを細分化して競合回避 */
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
    /* 🔧🔧🔧 【画像位置調整】上部マージンを削除してトップ位置に 🔧🔧🔧 */
    margin-top: 0;  /* calc(3.25rem + 30px) → 0 に変更 */
    /* 🔧🔧 【GPU最適化】レンダリング最適化でスムーズ化 */
    will-change: transform;  /* GPU アクセラレーション明示 */
    transform: translateZ(0);  /* GPU レイヤー作成 */
}

/* 🔧🔧🔧 【workflow専用】画像コンテナの上端揃え強化 🔧🔧🔧 */
.workflow-top-section .workflow-diagram-container {
    margin-top: -15px !important;    /* 上部マージン完全削除 */
    align-self: flex-start;      /* 上端揃え */
    vertical-align: top;         /* 垂直位置：上端 */
}

.workflow-diagram-container:hover {
    transform: scale(1.02) translateZ(0);  /* 🔧 GPUレイヤー維持しながらscale効果 */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 🔧🔧🔧 【カクつき根絶】ワークフロー図表コンテナにふわふわアニメーション追加 */
.workflow-diagram-container.visible {
    animation: float 6s ease-in-out infinite 3s;  /* 🔧🔧🔧 1.2s → 3s にさらに延長してカクつき完全解消 */
}

/* 🔧🔧🔧 【ワークフロー図本体】画像要素 🔧🔧🔧 */
.workflow-diagram {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: block;
}

.workflow-diagram:hover {
    transform: scale(1.02);
}

/* 🔧🔧🔧 【図プレースホルダー】画像がない場合の表示 🔧🔧🔧 */
.diagram-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.1), 
        rgba(255, 105, 180, 0.05)
    );
    border-radius: 15px;
    border: 2px dashed rgba(255, 105, 180, 0.3);
}

.diagram-placeholder .placeholder-content {
    text-align: center;
    padding: 40px 20px;
}

.diagram-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
} 