/* ========================================
   ダッシュボードページ
   ======================================== */
.dashboard-page {
    margin: 2rem 0;
}
.dashboard-page__ttl {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: .8rem;
}


/* --- ダッシュボードカード --- */

.dash-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    padding: 2rem;
    margin-bottom: 3rem;
}

.dash-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid #d0d0d0;
}

.dash-card__empty {
    font-size: 0.875rem;
    color: #999;
}


/* --- ヘッダーナビリンク --- */
.header-nav-link {
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    padding: .2rem 1rem;
    border-radius: 3px;
    background: #83B8DD;
    transition: background 0.2s;
}







/* ========================================
   アコーディオン カウンセラーカード
   ======================================== */

.counselor-acc {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.counselor-acc:last-child {
    margin-bottom: 0;
}

.counselor-acc:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* サマリー行 */
.counselor-acc__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.counselor-acc__summary:hover {
    background: #fafafa;
}

.counselor-acc__name {
    font-size: .875rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 56px;
}

.counselor-acc__bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.counselor-acc__bar {
    flex: 1;
    height: 8px;
    background: #c8c8c8;
    border-radius: 4px;
    overflow: hidden;
}

.counselor-acc__bar-fill {
    height: 100%;
    background: #83B8DD;
    border-radius: 3px;
    transition: width 0.3s;
}

.counselor-acc__bar-fill--complete {
    background: #5A9AC7;
}

.counselor-acc__percent {
    font-size: 0.875rem;
    font-weight: 700;
    color: #83B8DD;
    white-space: nowrap;
    min-width: 40px;
    text-align: right;
}

.counselor-acc__percent--complete {
    color: #5A9AC7;
}

.counselor-acc__arrow {
    font-size: 0.75rem;
    color: #bbb;
    transition: transform 0.25s;
    margin-left: 4px;
}

.counselor-acc.is-open .counselor-acc__arrow {
    transform: rotate(180deg);
}

/* 詳細エリア */
.counselor-acc__detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.counselor-acc.is-open .counselor-acc__detail {
    max-height: 1000px;
}

.counselor-acc__detail-inner {
    padding: 0 16px 16px;
    border-top: 1px solid #d0d0d0;
}


/* --- STEP行 --- */

.acc-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #d0d0d0;
}

.acc-step:last-child {
    border-bottom: none;
}

.acc-step__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    flex-shrink: 0;
    margin-top: 2px;
    background: #e8e8e8;
    color: #bbb;
}

.acc-step__icon--done {
    background: #5A9AC7;
    color: #fff;
}

.acc-step__content {
    flex: 1;
    min-width: 0;
}

.acc-step__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.acc-step--done .acc-step__title {
    color: #5A9AC7;
}

.acc-step__label {
    font-size: 0.6875rem;
    color: #5A9AC7;
    margin-top: 4px;
}

/* 動画チップ */
.acc-step__videos {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.acc-video {
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #aaa;
}

.acc-video--done {
    background: #E8F2FA;
    color: #5A9AC7;
}


/* ========================================
   スタッフ管理（ダッシュボード内）
   ======================================== */

.staff-form-wrap {
    margin-bottom: 24px;
}

.staff-add-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.staff-add-form__field {
    flex: 1;
    min-width: 140px;
}

.staff-add-form__field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.staff-add-form__field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #fff;
}

.staff-add-form__field input:focus {
    outline: none;
    border-color: #83B8DD;
}

.staff-add-form__hint {
    font-size: .75rem;
    color: #666;
    margin-top: .2rem;
}

.staff-add-form__btn-wrap {
    padding-top: 20px;
}

.staff-add-form__btn {
    padding: 8px 20px;
    background: #83B8DD;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.staff-add-form__btn:hover {
    background: #5A9AC7;
}


/* フィードバック */

.staff-msg {
    padding: 10px 16px;
    background: #E8F2FA;
    color: #5A9AC7;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.staff-msg--error {
    background: #FFF0F0;
    color: #D32F2F;
}


/* スタッフ一覧 */

.staff-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    margin-bottom: 8px;
}

.staff-list__item:last-child {
    margin-bottom: 0;
}

.staff-list__info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.staff-list__name {
    font-size: .875rem;
    font-weight: 600;
    color: #333;
}

.staff-list__username {
    font-size: .75rem;
    color: #999;
    padding-left: 1rem;
}

.staff-list__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-list__pw-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-list__pw-input {
    width: 160px;
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.staff-list__btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.staff-list__btn--pw {
    background: #e0e0e0;
    color: #333;
}

.staff-list__btn--pw:hover {
    background: #d0d0d0;
}

.staff-list__btn--del {
    background: none;
    color: #D32F2F;
    border: 1px solid #D32F2F;
}

.staff-list__btn--del:hover {
    background: #FFF5F5;
}


/* ========================================
   ダッシュボード レスポンシブ
   ======================================== */

@media (max-width: 600px) {
    
    .dash-card {
        padding: 1.5rem 1rem;
    }
    
    .counselor-acc__summary {
        padding: 12px;
        gap: 10px;
    }
    .counselor-acc__name {
        font-size: .875rem;
        min-width: 44px;
    }
    .counselor-acc__detail-inner {
        padding: 0 12px 12px;
    }
    .acc-step {
        gap: 8px;
        padding: 10px 0;
    }
    .acc-step__title {
        font-size: 0.8125rem;
    }
    .staff-add-form {
        flex-direction: column;
    }
    .staff-add-form__btn-wrap {
        padding-top: 0;
    }
    .staff-list__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    .staff-list__actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .staff-list__pw-form {
        flex: 1;
        min-width: 0;
    }
    .staff-list__pw-input {
        flex: 1;
        width: auto;
    }
    .staff-list__btn {
        padding: .5rem;
    }
    
    
}
