/**
 * One-Stop Comparison Diagram Styles
 * v8.0 - Comparison Sectionにワンストップ比較図を追加
 */

/* ===========================
   1. Container
   =========================== */

.onestop-comparison {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.onestop-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.onestop-title i {
    color: #3b82f6;
    font-size: 32px;
}

/* ===========================
   2. Grid Layout
   =========================== */

.onestop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.onestop-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===========================
   3. Card Headers
   =========================== */

.onestop-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid;
}

.onestop-others .onestop-header {
    border-color: #ef4444;
}

.onestop-us .onestop-header {
    border-color: #10b981;
}

.onestop-header h4 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.onestop-others .onestop-header h4 {
    color: #dc2626;
}

.onestop-others .onestop-header h4 i {
    color: #ef4444;
}

.onestop-us .onestop-header h4 {
    color: #059669;
}

.onestop-us .onestop-header h4 i {
    color: #10b981;
}

/* ===========================
   4. Flow Diagrams - Others
   =========================== */

.onestop-flow {
    margin-bottom: 25px;
}

.flow-box {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #7f1d1d;
    font-size: 16px;
}

.flow-arrow {
    text-align: center;
    color: #dc2626;
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.flow-note {
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
    background: #fef2f2;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid #fecaca;
}

/* ===========================
   5. Flow Diagrams - Us
   =========================== */

.flow-box-direct {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 3px solid #10b981;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.direct-icon {
    font-size: 36px;
    color: #059669;
    margin-bottom: 10px;
}

.direct-text {
    font-size: 18px;
    font-weight: 700;
    color: #064e3b;
}

.flow-process {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    gap: 8px;
}

.process-badge {
    background: #10b981;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.flow-manage {
    background: #ecfdf5;
    border: 2px solid #6ee7b7;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flow-manage i {
    color: #059669;
    font-size: 20px;
}

.flow-manage span {
    font-weight: 700;
    color: #064e3b;
}

/* ===========================
   6. Problems & Benefits
   =========================== */

.onestop-problems,
.onestop-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.problem-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #7f1d1d;
    font-weight: 500;
}

.problem-item i {
    color: #ef4444;
    font-size: 16px;
    flex-shrink: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #064e3b;
    font-weight: 500;
}

.benefit-item i {
    color: #10b981;
    font-size: 16px;
    flex-shrink: 0;
}

.benefit-item strong {
    color: #059669;
    font-weight: 700;
}

/* ===========================
   7. Conclusion
   =========================== */

.onestop-conclusion {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #f59e0b;
    border-radius: 15px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.onestop-conclusion i {
    color: #f59e0b;
    font-size: 32px;
    flex-shrink: 0;
}

.onestop-conclusion p {
    margin: 0;
    font-size: 18px;
    color: #78350f;
    font-weight: 600;
}

.onestop-conclusion strong {
    color: #92400e;
    font-weight: 700;
}

/* ===========================
   8. Responsive Design
   =========================== */

/* タブレット（968px以下） */
@media (max-width: 968px) {
    .onestop-comparison {
        padding: 30px 25px;
        margin: 40px 0;
    }
    
    .onestop-title {
        font-size: 24px;
        gap: 12px;
    }
    
    .onestop-title i {
        font-size: 28px;
    }
    
    .onestop-grid {
        gap: 25px;
    }
    
    .onestop-card {
        padding: 25px 20px;
    }
}

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .onestop-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .onestop-comparison {
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .onestop-title {
        font-size: 22px;
        gap: 10px;
    }
    
    .onestop-title i {
        font-size: 26px;
    }
    
    .flow-process {
        flex-wrap: wrap;
    }
    
    .process-badge {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .onestop-conclusion {
        padding: 18px 20px;
        gap: 12px;
    }
    
    .onestop-conclusion i {
        font-size: 28px;
    }
    
    .onestop-conclusion p {
        font-size: 16px;
    }
}

/* モバイル（576px以下） */
@media (max-width: 576px) {
    .onestop-comparison {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .onestop-title {
        font-size: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .onestop-title i {
        font-size: 24px;
    }
    
    .onestop-card {
        padding: 20px 15px;
    }
    
    .onestop-header h4 {
        font-size: 18px;
        gap: 8px;
    }
    
    .flow-box,
    .flow-box-direct {
        padding: 12px;
        font-size: 15px;
    }
    
    .direct-icon {
        font-size: 32px;
    }
    
    .direct-text {
        font-size: 16px;
    }
    
    .flow-note {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .process-badge {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .flow-manage {
        padding: 10px;
        font-size: 14px;
    }
    
    .problem-item,
    .benefit-item {
        font-size: 13px;
        gap: 8px;
    }
    
    .onestop-conclusion {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .onestop-conclusion i {
        font-size: 24px;
    }
    
    .onestop-conclusion p {
        font-size: 15px;
    }
}

/* ===========================
   9. Accessibility
   =========================== */

@media (prefers-reduced-motion: reduce) {
    .onestop-card {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .onestop-card {
        border: 2px solid currentColor;
    }
    
    .flow-box,
    .flow-box-direct,
    .process-badge {
        border-width: 3px;
    }
}
