/* =========================================================
   SMPS2 ステップナビゲーション（ウィザード）スタイル
========================================================= */

.smps2-step-nav-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 24px auto;
    padding: 10px 15px;
    box-sizing: border-box;
}

.smps2-step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 8px 12px;
    position: relative;
    overflow-x: auto;
}

.smps2-step-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
}

.smps2-step-item:hover:not(.is-disabled) {
    background-color: #f8fafc;
    color: #1e293b;
}

.smps2-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

/* アクティブ（現在のステップ） */
.smps2-step-item.is-active {
    background-color: #ff9900;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 153, 0, 0.25);
}

.smps2-step-item.is-active .smps2-step-number {
    background: #ffffff;
    color: #ff9900;
}

.smps2-step-item.is-active .smps2-step-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 完了済みステップ（戻れる） */
.smps2-step-item.is-completed {
    color: #0f172a;
}

.smps2-step-item.is-completed .smps2-step-number {
    background: #e0f2fe;
    color: #0284c7;
}

/* 非活性ステップ */
.smps2-step-item.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* バッジ（選択枚数など） */
.smps2-step-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-left: 4px;
}

/* ステップ間の矢印コネクタ */
.smps2-step-arrow {
    color: #cbd5e1;
    font-size: 14px;
    padding: 0 4px;
    user-select: none;
}

/* 「写真を選び直す」アクションボタン */
.smps2-back-to-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background-color: #ff9900;
    color: #ffffff !important;
    border: 1px solid #ff9900;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(255, 153, 0, 0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.smps2-back-to-select-btn:hover {
    background-color: #e68a00;
    border-color: #e68a00;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 153, 0, 0.35);
}

.smps2-back-to-select-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(255, 153, 0, 0.2);
}

/* 写真選択ページの写真選択バッジバー */
.smps2-select-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.smps2-selected-status-text {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.smps2-selected-highlight {
    color: #ff9900;
    font-size: 18px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .smps2-step-nav {
        padding: 6px;
    }

    .smps2-step-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .smps2-step-number {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .smps2-step-badge {
        display: none;
    }
}
